/* =========================================================
   Rétköz Vagyonértékelő – landing page
   Fonts → Tokens → Base → Layout → Animations → Components
   → Sections → Responsive
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Hedvig Letters Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/hedvig-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Hedvig Letters Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/hedvig-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    --navy: #091e31;
    --ink: #141414;
    --gray: #636363;
    --muted-bg: #fafafa;
    --white: #fff;

    --font-sans: 'Inter', 'Inter Placeholder', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Hedvig Letters Serif', 'Hedvig Letters Serif Placeholder', Georgia, serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, p {
    margin: 0;
}

strong {
    font-weight: 600;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--navy);
    color: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 20px;
}

.section__head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.section__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 45px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

.section__title--left {
    text-align: left;
}

.section__title--light {
    color: var(--white);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.eyebrow--center {
    justify-content: center;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.88);
}

.eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.prose p {
    color: var(--gray);
    font-size: 18px;
    line-height: 1.65;
}

.prose p + p {
    margin-top: 16px;
}

.prose strong {
    color: var(--ink);
}

/* ---------- Animations ---------- */
[data-anim] {
    opacity: 0;
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

[data-anim="up"] {
    transform: translateY(24px);
}

[data-anim="scale"] {
    transform: scale(0.85);
}

[data-anim="fade"] {
    transform: none;
}

[data-anim].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border: none;
    border-radius: 1000px;
    padding: 9px 9px 9px 20px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), opacity 0.2s var(--ease);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.08s;
}

.btn--primary {
    background: var(--navy);
    color: var(--white);
}

.btn--primary:hover {
    box-shadow: 0 12px 28px rgba(9, 30, 49, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--light {
    background: var(--white);
    color: var(--ink);
}

.btn--light:hover {
    box-shadow: 0 10px 24px rgba(9, 30, 49, 0.16);
}

.btn--block {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 17px 24px;
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

.btn__icon--dark {
    background: var(--navy);
    color: var(--white);
}

.btn--block .btn__icon {
    display: none;
}

/* ---------- Navbar (fixed) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: padding 0.4s var(--ease);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 24px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: max-width 0.4s var(--ease), height 0.4s var(--ease),
        background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
        border-radius 0.4s var(--ease), padding 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

/* floating glass navbar on scroll */
.navbar.is-scrolled {
    padding-top: 12px;
}

.navbar.is-scrolled .navbar__inner {
    max-width: 1080px;
    height: 60px;
    padding: 0 14px 0 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 34px rgba(9, 30, 49, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--navy);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.07), inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.logo__icon img {
    width: 17px;
    height: auto;
}

.logo__text {
    font-family: var(--font-serif);
    font-size: 21px;
    letter-spacing: -0.03em;
    color: var(--ink);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0 auto;
}

.nav-menu__link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color 0.18s ease;
}

.nav-menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.5px;
    background: var(--navy);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-menu__link:hover::after {
    transform: scaleX(1);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu__cta {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: transparent;
    border: none;
}

.menu-toggle {
    transition: transform 0.12s var(--ease);
}

.menu-toggle:active {
    transform: scale(0.9);
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding: calc(var(--nav-h) + 20px) 0 18px;
}

.hero__card {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 38px;
    align-items: center;
    background: var(--navy);
    border-radius: 28px;
    padding: 16px;
    color: var(--white);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px 16px 22px 30px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.rating__stars {
    display: inline-flex;
    gap: 3px;
    color: var(--white);
}

.rating__stars svg {
    fill: currentColor;
}

.rating__label {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 56px;
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-top: 22px;
    max-width: 560px;
}

.hero__lead {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.74);
    max-width: 46ch;
}

.hero__lead strong {
    color: var(--white);
    font-weight: 600;
}

.hero__buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
}

.hero__textlink {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    transition: opacity 0.18s ease;
}

.hero__textlink:hover {
    opacity: 0.6;
}

.hero__image {
    border-radius: 20px;
    overflow: hidden;
    height: 530px;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 14px auto 4px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(9, 30, 49, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    animation: cueIntro 0.7s var(--ease) 0.5s backwards;
}

@keyframes cueIntro {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.scroll-cue:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(9, 30, 49, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.scroll-cue:active {
    transform: scale(0.94);
    transition-duration: 0.08s;
}

.scroll-cue.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.scroll-cue__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(9, 30, 49, 0.35);
    animation: cuePulse 2.6s var(--ease) infinite;
}

@keyframes cuePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.scroll-cue__chevrons {
    position: relative;
    width: 20px;
    height: 22px;
}

.scroll-cue__chevrons svg {
    position: absolute;
    left: 0;
    top: 1px;
    animation: cueFlow 1.9s var(--ease) infinite;
}

.scroll-cue__chevrons svg:last-child {
    animation-delay: 0.28s;
}

@keyframes cueFlow {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    45% {
        opacity: 1;
    }
    80%,
    100% {
        opacity: 0;
        transform: translateY(7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue,
    .scroll-cue__ring,
    .scroll-cue__chevrons svg {
        animation: none;
    }
    .scroll-cue__chevrons svg:last-child {
        display: none;
    }
}

/* ---------- Section: Problem ---------- */
.problem {
    padding: 44px 0 80px;
}

.problem__inner {
    display: grid;
    grid-template-columns: 1fr 530px;
    gap: 80px;
    align-items: center;
}

.problem__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem__image {
    border-radius: 34px;
    overflow: hidden;
    height: 380px;
}

.problem__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.problem__image:hover img {
    transform: scale(1.05);
}

/* ---------- Section: Solution ---------- */
.solution {
    padding: 84px 0;
    background: var(--muted-bg);
}

.solution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(to left, #f1f2f3, #ffffff);
    border: 1px solid rgba(9, 30, 49, 0.05);
    border-radius: 38px;
}

.card {
    border-radius: 30px;
    padding: 34px 36px;
}

/* right (white, elevated) card */
.card--solid {
    background: var(--white);
    box-shadow: 0 1px 2px rgba(9, 30, 49, 0.04), 0 18px 40px rgba(9, 30, 49, 0.06);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card--solid:hover {
    transform: translateY(-5px);
    box-shadow: 0 1px 2px rgba(9, 30, 49, 0.05), 0 28px 60px rgba(9, 30, 49, 0.1);
}

.card__title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    min-height: 2.6em;
    margin-bottom: 36px;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.checklist li {
    position: relative;
    padding-left: 40px;
    max-width: 360px;
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* left card → thin check, no circle */
.checklist--plain li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6' fill='none' stroke='%23091e31' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

/* price card sits on navy → use a light circle */
.checklist--light li {
    color: rgba(255, 255, 255, 0.92);
}

.checklist--light li::before {
    background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23091e31' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.solution .btn--block {
    margin: 28px auto 0;
}

/* ---------- Section: About ---------- */
.about {
    padding: 88px 0 64px;
}

.about__top {
    display: grid;
    grid-template-columns: minmax(0, 430px) 1fr;
    gap: 90px;
    align-items: center;
}

.about__image {
    border-radius: 34px;
    overflow: hidden;
    height: 380px;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.about__image:hover img {
    transform: scale(1.05);
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
    text-align: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.07), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature:hover .feature__icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 28px rgba(9, 30, 49, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.feature p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

/* ---------- Section: Price ---------- */
.price {
    padding: 84px 0;
    background: var(--muted-bg);
}

.price .section__head {
    max-width: 760px;
}

.price .section__title {
    font-size: 54px;
}

.price__card {
    max-width: 660px;
    margin: 0 auto;
    background: var(--navy);
    color: var(--white);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(9, 30, 49, 0.18);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.price__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(9, 30, 49, 0.28);
}

.price__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.price__card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: -0.02em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 6px 13px;
    border-radius: 1000px;
}

.badge svg {
    color: #9ec5ff;
}

.price__lead {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
}

.price__lead + .price__lead {
    margin-top: 16px;
}

.price__lead strong {
    color: var(--white);
}

.price__card .checklist {
    margin-top: 22px;
}

.price__card .btn--block {
    margin-top: 30px;
}

/* ---------- Section: CTA ---------- */
.cta {
    padding: 88px 0;
}

.cta__inner {
    display: grid;
    grid-template-columns: 1fr 530px;
    gap: 80px;
    align-items: center;
}

.cta__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cta__content .btn {
    margin-top: 6px;
}

.cta__image {
    border-radius: 34px;
    overflow: hidden;
    height: 370px;
}

.cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.cta__image:hover img {
    transform: scale(1.05);
}

/* ---------- Section: Form ---------- */
.form-section {
    padding: 72px 0 76px;
    background: var(--navy);
    color: var(--white);
}

.form-section__head {
    margin-bottom: 40px;
}

.form-section__head .eyebrow {
    margin-bottom: 16px;
}

.quote-form__intro {
    margin: 0 0 28px;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.form-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-block__title {
    margin: 0 0 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.quote-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field--full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 12px;
    padding: 17px 18px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.field select:invalid {
    color: rgba(255, 255, 255, 0.78);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.field--select {
    position: relative;
}

.field--select::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.field select {
    color-scheme: dark;
    cursor: pointer;
}

/* themed native dropdown list (fallback when JS off) */
.field select option,
.field select optgroup {
    background: #102b45;
    color: var(--white);
}

.field select option:checked {
    background: #1c3e5e;
    color: var(--white);
}

.field select option[disabled] {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Custom select (enhanced dropdown) ---------- */
.field--select.is-enhanced::after {
    display: none;
}

.field--select.is-enhanced > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.select {
    position: relative;
}

.select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    text-align: left;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 17px 18px;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.select__trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.select.is-open .select__trigger {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select.is-placeholder .select__value {
    color: rgba(255, 255, 255, 0.78);
}

.select__chevron {
    display: inline-flex;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.32s var(--ease);
}

.select.is-open .select__chevron {
    transform: rotate(180deg);
}

.select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 278px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px;
    background: #11304c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transform-origin: top center;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
        visibility 0s linear 0.22s;
}

.select.is-open .select__list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
        visibility 0s linear 0s;
}

.select__list::-webkit-scrollbar {
    width: 9px;
}

.select__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
}

.select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.select.is-open .select__option {
    animation: selOptIn 0.3s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 0.028s);
}

@keyframes selOptIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.select__option:hover,
.select__option.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.select__option[aria-selected="true"] {
    color: var(--white);
}

.select__option-check {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--white);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.select__option[aria-selected="true"] .select__option-check {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .select.is-open .select__option {
        animation: none;
    }
}

.quote-form .btn {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.quote-form .btn .btn__icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.quote-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.quote-form .btn:not(:disabled) {
    background: var(--white);
    color: var(--ink);
}

.quote-form .btn:not(:disabled) .btn__icon {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.quote-form__status {
    margin-top: 16px;
    font-size: 15px;
    color: #9ee6b4;
    min-height: 1.2em;
}

.quote-form__status--error {
    color: #ffb4b4;
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.62));
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    color: var(--navy);
    box-shadow: 0 10px 30px rgba(9, 30, 49, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease), visibility 0s linear 0.3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease), visibility 0s linear 0s;
}

.to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(9, 30, 49, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.to-top:active {
    transform: scale(0.92);
    transition-duration: 0.08s;
}

.to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.to-top__track {
    fill: none;
    stroke: rgba(9, 30, 49, 0.12);
    stroke-width: 2.5;
}

.to-top__bar {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 144.5;
    stroke-dashoffset: 144.5;
    transition: stroke-dashoffset 0.1s linear;
}

.to-top__arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease);
}

.to-top:hover .to-top__arrow {
    transform: translateY(-2px);
}

@media (max-width: 809px) {
    .to-top {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
    }
}

/* ---------- Footer ---------- */
.footer {
    padding: 30px 0;
    background: var(--white);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    color: var(--gray);
}

.footer__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray);
}

.footer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1199px) {
    .hero__card {
        grid-template-columns: 1fr 400px;
    }
    .hero__title {
        font-size: 52px;
    }
    .section__title {
        font-size: 42px;
    }
    .problem__inner,
    .cta__inner {
        grid-template-columns: 1fr 460px;
        gap: 56px;
    }
    .about__top {
        grid-template-columns: minmax(0, 380px) 1fr;
        gap: 56px;
    }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 809px) {
    .section__title {
        font-size: 32px;
    }
    .price .section__title {
        font-size: 34px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 18px 44px rgba(9, 30, 49, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s var(--ease);
    }
    .nav-menu.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-menu__link {
        padding: 13px 14px;
        width: 100%;
        font-size: 17px;
        border-radius: 13px;
        transition: background-color 0.18s ease, color 0.18s ease;
    }
    .nav-menu__link::after {
        display: none;
    }
    .nav-menu__link:active {
        background: rgba(9, 30, 49, 0.06);
    }
    .nav-menu__cta {
        display: flex;
        margin-top: 6px;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .logo {
        min-width: 0;
    }
    .logo__text {
        font-size: 18px;
    }
    .menu-toggle {
        flex-shrink: 0;
    }
    .navbar.is-scrolled .navbar__inner {
        padding: 0 10px 0 18px;
    }
    .navbar__actions .btn--primary {
        display: none;
    }

    .hero {
        padding: calc(var(--nav-h) + 10px) 0 18px;
    }
    .hero__card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
        border-radius: 24px;
    }
    .hero__content {
        padding: 18px 14px 6px;
        min-height: 0;
    }
    .hero__title {
        font-size: 34px;
        line-height: 1.14;
        margin-top: 18px;
        max-width: none;
    }
    .hero__lead {
        font-size: 17px;
        margin-top: 16px;
    }
    .hero__buttons {
        gap: 14px;
        margin-top: 22px;
    }
    .hero__image {
        height: 360px;
        border-radius: 18px;
    }

    .problem,
    .cta {
        padding: 44px 0;
    }
    .solution,
    .price {
        padding: 44px 0;
    }
    .about {
        padding: 44px 0 16px;
    }

    .problem__inner,
    .about__top,
    .cta__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .problem__image,
    .about__image,
    .cta__image {
        height: 300px;
        order: -1;
    }

    .solution__grid {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 48px;
    }

    .price__card,
    .card {
        padding: 28px 22px;
    }

    .form-section .container {
        padding: 0 20px;
    }
    .quote-form__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-wrap: wrap;
    }
}

/* ---------- 404 page ---------- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
}

.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    max-width: 640px;
}

.error-404__visual {
    position: relative;
    margin-bottom: 36px;
}

.error-404__glow {
    position: absolute;
    left: 18%;
    top: 22%;
    width: 58%;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 236, 170, 0.28), transparent 72%);
    pointer-events: none;
    animation: errorGlow 3.2s ease-in-out infinite;
}

.error-404__image {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    height: auto;
    animation: errorImageIn 0.85s var(--ease) backwards,
        errorFloat 4.5s ease-in-out 0.85s infinite;
}

.error-404__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--white);
    animation: errorFadeUp 0.75s var(--ease) 0.18s backwards;
}

.error-404__text {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    animation: errorFadeUp 0.75s var(--ease) 0.32s backwards;
}

.error-404__btn {
    margin-top: 32px;
    padding: 14px 28px;
    animation: errorFadeUp 0.75s var(--ease) 0.46s backwards;
}

.error-404__btn:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

@keyframes errorImageIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes errorFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes errorFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes errorGlow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-404__glow,
    .error-404__image,
    .error-404__title,
    .error-404__text,
    .error-404__btn {
        animation: none;
    }
}
