@font-face {
    font-family: "Poppins";
    src: url(../fonts/Poppins-VariableFont_wght.otf);
}

:root {
    --primary: #2c5f8a;
    --primary-light: #5b8fbd;
    --primary-dark: #1a3d5c;
    --accent: #d4912a;
    --accent-light: #e8b84b;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f8f6f2;
    --bg-gray: #f0ede6;
    --border-radius: 20px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.11);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background: #fefefd;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header ---------- */
.header {
    background: #ffffff;
    border-bottom: 2px solid #f0ede6;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo img, .footer__logo img {
    border-radius: 0px;
}

.logo__line1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.header__notice {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 500;
    border: 1px solid #e8e2d6;
}

/* ---------- Hero ---------- */
.hero {
    padding: 70px 0;
    background: linear-gradient(160deg, #fef9f0 0%, #fdf6e8 30%, #ffffff 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(212, 145, 42, 0.28);
}

.btn--primary:hover {
    background: #c07d1e;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 145, 42, 0.35);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.2rem;
    width: 100%;
    justify-content: center;
}

/* ---------- Feature Blocks ---------- */
.feature-block {
    padding: 80px 0;
    background: #ffffff;
}

.feature-block:nth-child(even) {
    background: #fdfaf5;
}

.feature-block--reverse .feature-block__container {
    direction: rtl;
}

.feature-block--reverse .feature-block__content {
    direction: ltr;
}

.feature-block__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.feature-block__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 16px;
}

.feature-block__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.feature-block__text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.testimonial-quote {
    border-left: 5px solid var(--accent);
    padding-left: 24px;
    font-style: italic;
    color: var(--text-dark);
    background: #fefdf9;
    padding: 20px 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.testimonial-quote cite {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-style: normal;
    color: var(--primary);
}

/* ---------- Steps ---------- */
.steps {
    padding: 80px 0;
    background: #faf8f4;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: white;
    padding: 40px 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #f0e8d5;
}

.step-card__number {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.step-card__text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 80px 0;
    background: #ffffff;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: #fefdf9;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0e8d5;
    transition: transform 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-card__rating {
    color: #e8a817;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.testimonial-card__text {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-dark);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0e8d5;
}

.testimonial-card__author strong {
    display: block;
    font-weight: 600;
}

.testimonial-card__author span {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ---------- Facebook-style Comments ---------- */
.facebook-comments {
    padding: 60px 0;
    background: #faf8f4;
}

.facebook-comments__title {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.comment__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e8e2d6;
}

.comment__body {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0ede6;
}

.comment__name {
    color: #2c5f8a;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.comment__text {
    margin-bottom: 10px;
}

.comment--reply {
    margin-top: 16px;
    margin-left: 50px;
}

/* ---------- Order Section ---------- */
.order {
    padding: 80px 0;
    background: linear-gradient(160deg, #fef9f0, #fdf6e8, #ffffff);
}

.order__container {
    display: grid;
    justify-content: center;
}

.order__content {
    max-width: 560px;
}

.order__title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.order__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-block__old {
    font-size: 1.6rem;
    text-decoration: line-through;
    color: #999;
}

.price-block__new {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-block__discount {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
}

.order__limited {
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e2d6;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.25s, box-shadow 0.25s;
    background: #fefefd;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 95, 138, 0.08);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group--checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.order__guarantee {
    margin-top: 28px;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- Footer ---------- */
.footer {
    background: #1a1f25;
    color: #c8cdd3;
    padding: 56px 0 24px;
    margin-top: auto;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__logo a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: white;
}

.footer__logo .logo__line1 {
    color: #ffffff;
}

.footer__contacts p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__legal a {
    color: #e8b84b;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer__legal a:hover {
    color: #f0d080;
}

.footer__disclaimer {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: #a0a5ab;
    border-top: 1px solid #3a3f45;
    padding-top: 32px;
    margin-top: 16px;
}

.footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: #888d93;
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.modal__content {
    position: relative;
    max-width: 500px;
    margin: 10vh auto;
    background: white;
    padding: 40px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
    animation: fadeInUp 0.3s;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.modal__close:hover {
    color: #333;
}

.modal__content img {
    margin: 0 auto 24px;
    border-radius: 16px;
}

.modal__content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.modal__content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero__container,
    .feature-block__container,
    .feature-block--reverse .feature-block__container,
    .order__container {
        grid-template-columns: 1fr;
    }

    .feature-block--reverse .feature-block__container {
        direction: ltr;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
    }

    .comment--reply {
        margin-left: 30px;
    }

    .order__content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .header__container {
        flex-direction: column;
        text-align: center;
    }

    .footer__container {
        grid-template-columns: 1fr;
    }

    .order-form {
        max-width: 100%;
    }

    .comment--reply {
        margin-left: 10px;
    }
    .comment {
        flex-direction: column;
    }
}

/* Legal pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.legal-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 36px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

footer .logo__line1 {
    color: #ffffff !important;
}