:root {
    --color-bg: #f4efe7;
    --color-surface: #fffdf9;
    --color-surface-soft: rgba(255, 253, 249, 0.78);
    --color-ui-light: #ece4d8;
    --color-ui-border: #d8ccbc;
    --color-text-primary: #1f1b17;
    --color-text-secondary: #5f574d;
    --color-text-muted: #887f73;
    --color-primary: #2f4557;
    --color-primary-hover: #243848;
    --color-success: #4d6a52;
    --color-error: #b25555;
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Manrope", sans-serif;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 38px;
    --shadow-sm: 0 10px 30px rgba(31, 27, 23, 0.05);
    --shadow-md: 0 20px 60px rgba(31, 27, 23, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(47, 69, 87, 0.06), transparent 38%),
        linear-gradient(180deg, #f7f2eb 0%, #f4efe7 100%);
    color: var(--color-text-primary);
}

.container {
    max-width: 1180px;
    padding: 0 28px;
}

.header {
    background: rgba(247, 242, 235, 0.84);
    border-bottom: 1px solid rgba(216, 204, 188, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header__inner {
    height: 84px;
}

.logo {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav {
    gap: 28px;
}

.nav__link {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(47, 69, 87, 0.18);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(47, 69, 87, 0.2);
}

.btn--outline,
.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(95, 87, 77, 0.18);
    box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus-visible,
.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: rgba(255, 253, 249, 0.72);
    border-color: rgba(47, 69, 87, 0.25);
    transform: translateY(-1px);
}

.btn--light {
    background: #fff;
    color: var(--color-text-primary);
    box-shadow: none;
}

.btn--light:hover,
.btn--light:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.btn--lg {
    min-height: 56px;
    padding: 0 32px;
    font-size: 1rem;
}

.btn.loading,
.btn:disabled {
    opacity: 0.72;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn:focus-visible,
.nav__link:focus-visible,
.footer__links a:focus-visible,
.logo:focus-visible {
    outline: 2px solid rgba(47, 69, 87, 0.28);
    outline-offset: 4px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: rgba(47, 69, 87, 0.35);
}

.eyebrow--center {
    justify-content: center;
}

.eyebrow--center::before {
    display: none;
}

.eyebrow--muted {
    color: var(--color-text-secondary);
}

.eyebrow--muted::before {
    background: rgba(95, 87, 77, 0.24);
}

.eyebrow--on-dark {
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow--on-dark::before {
    background: rgba(255, 255, 255, 0.3);
}

.section-header {
    margin-bottom: 56px;
}

.section-header--narrow {
    max-width: 760px;
}

.section-header--left {
    max-width: 760px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.section-title {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.section-desc,
.page-copy {
    max-width: 620px;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.page-title {
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.page-intro {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-hero {
    padding: 88px 0 112px;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 44px;
    align-items: end;
}

.home-hero__content {
    max-width: 640px;
}

.home-hero__title {
    margin-bottom: 22px;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6.1vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.home-hero__subtitle {
    max-width: 560px;
    margin-bottom: 34px;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero__actions .btn {
    width: auto;
}

.home-hero__panel {
    padding: 34px;
    background: var(--color-surface-soft);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.home-hero__panel-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.05;
}

.home-hero__note {
    margin-top: 18px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-proof-list {
    display: grid;
    gap: 12px;
}

.hero-proof-list li,
.pricing-card__features li,
.summary-list li {
    position: relative;
    padding-left: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.hero-proof-list li::before,
.pricing-card__features li::before,
.summary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(47, 69, 87, 0.72);
    transform: translateY(-50%);
}

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.home-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-hero__meta span::before {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(95, 87, 77, 0.28);
}

.home-pricing,
.process-section,
.cta-band,
.order-page {
    padding: 110px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px 30px;
    background: rgba(255, 253, 249, 0.72);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-card--featured {
    background: #f2ece3;
    border-color: rgba(47, 69, 87, 0.28);
}

.pricing-card__label {
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-card__title {
    margin-bottom: 12px;
    font-size: 2rem;
    line-height: 1.02;
}

.pricing-card__desc {
    margin-bottom: 26px;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.pricing-card__price {
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.pricing-card__price span {
    display: inline-block;
    margin-left: 6px;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
}

.pricing-card__features {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
}

.pricing-card__btn {
    margin-top: auto;
    width: 100%;
}

.page-home .section-title,
.page-order .section-title,
.page-thanks .section-title,
.page-home .page-title,
.page-order .page-title,
.page-thanks .page-title,
.page-home .home-hero__title,
.page-home .pricing-card__title,
.page-home .process-item__title,
.page-home .cta-band__title {
    font-family: var(--font-display);
}

.process-list {
    display: grid;
    gap: 20px;
    max-width: 860px;
}

.process-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid rgba(216, 204, 188, 0.95);
}

.process-item:last-child {
    border-bottom: 1px solid rgba(216, 204, 188, 0.95);
}

.process-item__number {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.9;
}

.process-item__title {
    margin-bottom: 10px;
    font-size: 1.9rem;
}

.process-item__desc {
    max-width: 560px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.cta-band {
    padding-top: 0;
}

.cta-band__inner {
    padding: 64px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%),
        linear-gradient(135deg, #1f2328 0%, #2a3138 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 80px rgba(31, 27, 23, 0.16);
    text-align: center;
}

.cta-band__title {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    line-height: 0.98;
}

.cta-band__desc {
    max-width: 620px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.8;
}

.footer {
    background: transparent;
    border-top: 1px solid rgba(216, 204, 188, 0.9);
    padding: 34px 0 46px;
}

.footer__inner {
    gap: 20px;
}

.footer__brand {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer__links a {
    color: var(--color-text-secondary);
}

.footer__links a:hover,
.footer__links a:focus-visible {
    color: var(--color-primary);
}

.order-shell,
.thanks-shell {
    max-width: 760px;
    margin: 0 auto;
}

.summary-strip {
    margin-bottom: 28px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(216, 204, 188, 0.95);
    border-bottom: 1px solid rgba(216, 204, 188, 0.95);
}

.summary-strip__label {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.summary-plan {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.summary-list li {
    margin: 0;
}

.form-panel {
    padding: 34px;
    background: rgba(255, 253, 249, 0.72);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    background: var(--color-surface);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: 18px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-control::placeholder {
    color: #9a9084;
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: rgba(47, 69, 87, 0.35);
    box-shadow: 0 0 0 4px rgba(47, 69, 87, 0.08);
}

.form-control.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(178, 85, 85, 0.08);
}

.phone-field {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
    overflow: visible;
    background: var(--color-surface);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: 18px;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.phone-field:focus-within {
    background: #fff;
    border-color: rgba(47, 69, 87, 0.35);
    box-shadow: 0 0 0 4px rgba(47, 69, 87, 0.08);
}

.phone-field__country {
    position: relative;
    display: block;
    border-right: 1px solid rgba(216, 204, 188, 0.95);
    background: rgba(31, 27, 23, 0.04);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.phone-field__toggle {
    width: 100%;
    height: 100%;
    min-height: 56px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.phone-field__toggle::after {
    content: "";
    width: 10px;
    height: 6px;
    background: var(--color-text-secondary);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    flex: 0 0 auto;
}

.phone-field__toggle:focus {
    outline: none;
}

.phone-field__flag,
.phone-field__dial {
    line-height: 1;
}

.phone-field__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: 320px;
    max-width: min(320px, calc(100vw - 48px));
    background: rgba(255, 253, 249, 0.99);
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(31, 27, 23, 0.16);
    overflow: hidden;
}

.phone-field__search-wrap {
    padding: 12px;
    border-bottom: 1px solid rgba(216, 204, 188, 0.8);
    background: rgba(255, 253, 249, 0.98);
}

.phone-field__search {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(216, 204, 188, 0.95);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.phone-field__search:focus {
    outline: none;
    border-color: rgba(47, 69, 87, 0.35);
    box-shadow: 0 0 0 4px rgba(47, 69, 87, 0.08);
}

.phone-field__list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.phone-field__option {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text-primary);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}

.phone-field__option:hover,
.phone-field__option.is-selected {
    background: rgba(47, 69, 87, 0.08);
}

.phone-field__option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
}

.phone-field__option-dial {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.phone-field__empty {
    padding: 18px 12px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.phone-field__input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.phone-field__input:focus {
    border: 0;
    box-shadow: none;
}

.phone-field__input.error {
    box-shadow: inset 0 0 0 1px var(--color-error);
}

.error-msg {
    display: none;
    margin-top: 8px;
    color: var(--color-error);
    font-size: 0.88rem;
}

.form-note {
    margin-top: 16px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: center;
}

.page-thanks .header,
.page-order .header {
    background: rgba(247, 242, 235, 0.92);
}

.thanks-page {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    padding: 86px 0 110px;
}

.thanks-shell {
    text-align: center;
}

.thanks__title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.thanks__desc {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.thanks__actions {
    margin-top: 30px;
}

.thanks__actions .btn {
    min-width: 220px;
}

@media (max-width: 1024px) {
    .home-hero__grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .home-hero__content,
    .home-hero__subtitle {
        max-width: none;
    }

    .home-hero__panel {
        max-width: 620px;
    }

    .cta-band__inner {
        padding: 56px 42px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header__inner {
        height: auto;
        min-height: 84px;
        flex-wrap: wrap;
        gap: 12px 18px;
        padding: 18px 0;
    }

    .nav {
        display: none;
    }

    .home-hero,
    .home-pricing,
    .process-section,
    .order-page {
        padding: 84px 0;
    }

    .home-hero__actions,
    .summary-list {
        flex-direction: column;
        align-items: stretch;
    }

    .process-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cta-band__inner,
    .form-panel,
    .home-hero__panel {
        padding: 28px 24px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
