:root {
    --teal: #a8867d;
    --teal-light: #c2ada4;
    --teal-dark: #8c6a61;
    --amber: #D4944A;
    --amber-light: #F0D4A8;
    --sage: #c7b7af;
    --sage-light: #e0d8d4;
    --cream: #f6ebdd;
    --sand: #e8dccb;
    --text-dark: #3b2c29;
    --text-medium: #70554f;
    --text-light: #a8867d;
    --glass-bg: rgba(246, 235, 221, 0.95);
    --glass-border: rgba(168, 134, 125, 0.2);
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Onest', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg,
        rgba(246, 235, 221, 1) 0%,
        rgba(250, 240, 230, 1) 60%,
        rgba(235, 225, 210, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preloader-icon {
    width: 80px;
    height: 80px;
    background: rgba(168, 134, 125, .10);
    border: 1.5px solid rgba(168, 134, 125, .22);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pldrPulse 1.8s ease-in-out infinite;
}

.preloader-icon svg {
    width: 44px;
    height: 44px;
}

@keyframes pldrPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0   0   rgba(168, 134, 125,.15); }
    50%       { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(168, 134, 125,0);   }
}

.preloader-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--teal-dark);
    letter-spacing: .02em;
}

.preloader-bar-wrap {
    width: 180px;
    height: 5px;
    background: rgba(168, 134, 125, .15);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 10px;
    transition: width .3s ease;
}

.preloader-pct {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ── Background ── */
.bg-hero {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(246, 235, 221, 0.95) 0%,
            rgba(246, 235, 221, 0.95) 30%,
            rgba(246, 235, 221, 0.95) 60%,
            rgba(246, 235, 221, 0.95) 100%);
    z-index: 2;
}

/* Статичне фонове зображення — без анімації */
.bg-hero-image {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1200&q=70') center/cover;
    will-change: auto;
}

/* Floating icons — прибрані (джерело лагів) */
.floating-elements {
    display: none;
}

/* ── Decorative floating shapes ── */
.deco-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.deco-shape {
    position: absolute;
}

.ds-1 { width: 108px; top: 24%; left: 11%;  animation: dsFloat1 6.2s ease-in-out infinite; }
.ds-2 { width:  84px; top: 10%; left: 62%;  animation: dsFloat2 7.4s ease-in-out infinite 1.8s; }
.ds-3 { width: 100px; top: 53%; right: 14%; animation: dsFloat3 5.8s ease-in-out infinite 0.4s; }
.ds-4 { width:  92px; top: 74%; left: 21%;  animation: dsFloat4 6.8s ease-in-out infinite 2.6s; }

@keyframes dsFloat1 {
    0%,100% { transform: translateY(0)    rotate(-12deg); }
    50%      { transform: translateY(-14px) rotate(-7deg);  }
}
@keyframes dsFloat2 {
    0%,100% { transform: translateY(0)    rotate(8deg);  }
    50%      { transform: translateY(-12px) rotate(13deg); }
}
@keyframes dsFloat3 {
    0%,100% { transform: translateY(0)    rotate(15deg); }
    50%      { transform: translateY(-16px) rotate(10deg); }
}
@keyframes dsFloat4 {
    0%,100% { transform: translateY(0)    rotate(-6deg); }
    50%      { transform: translateY(-11px) rotate(-1deg); }
}

@media (max-width: 1100px) {
    .deco-shapes {
        display: none;
    }
}

/* ── Container ── */
.container {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Hero layout ── */
.card-wrapper {
    position: relative;
}

.hero-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-top: 28px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hero-left .btn-primary,
.hero-left .scroll-hint {
    width: 400px;
    max-width: 100%;
    justify-content: center;
    margin-top: 0;
}

.hero-photo-inline {
    transition: opacity .4s ease;
}

.hero-photo-inline img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .20));
    border-radius: 10px;
}

.hero-photo-inline.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Vertical trust-stats (right column) */
.trust-stats--col {
    flex-direction: column;
    width: 210px;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: flex-start;
}

.trust-stats--col .trust-stat {
    flex: none;
    text-align: left;
    padding: 10px 18px;
}

.trust-stats--col .trust-stat-num {
    font-size: 1.6rem;
}

.trust-stats--col .trust-stat-label {
    font-size: 0.85rem;
}

.trust-stats--col .trust-stat+.trust-stat::before {
    top: 0;
    bottom: auto;
    left: 10%;
    right: 10%;
    width: auto;
    height: 1.5px;
}

@media (max-width: 425px) {
    .trust-stats--col {
        width: 100%;
        align-self: stretch;
        flex-direction: row;
    }

    .trust-stats--col .trust-stat {
        flex: 1;
        text-align: center;
        padding: 10px 4px;
    }

    .trust-stats--col .trust-stat-num {
        font-size: 1.15rem;
    }

    .trust-stats--col .trust-stat-label {
        font-size: 0.68rem;
        white-space: normal;
        line-height: 1.3;
    }

    .trust-stats--col .trust-stat+.trust-stat::before {
        top: 15%;
        bottom: 15%;
        left: 0;
        right: auto;
        width: 1.5px;
        height: auto;
    }
}

/* Mobile M — 375px */
@media (max-width: 375px) {
    .trust-stats--col .trust-stat-num {
        font-size: 1.05rem;
    }

    .trust-stats--col .trust-stat-label {
        font-size: 0.63rem;
    }
}

/* Mobile S — 320px */
@media (max-width: 320px) {
    .trust-stats--col .trust-stat {
        padding: 8px 2px;
    }

    .trust-stats--col .trust-stat-num {
        font-size: 0.95rem;
    }

    .trust-stats--col .trust-stat-label {
        font-size: 0.6rem;
    }
}

/* ── Glass card — без blur (дуже важкий для GPU) ── */
.glass-card {
    background: var(--glass-bg);
    border: 1.5px solid rgba(168, 134, 125, 0.18);
    border-radius: 32px;
    box-shadow: 0 12px 40px rgba(168, 134, 125, .10), 0 4px 16px rgba(0, 0, 0, .05);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-decoration {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.decoration-1 {
    top: -20px;
    right: -15px;
    width: 90px;
    height: 90px;
    color: var(--teal);
}

.decoration-2 {
    bottom: -15px;
    left: -10px;
    width: 70px;
    height: 70px;
    color: var(--amber);
}

/* ── Screens ── */
.screen {
    display: none;
    animation: fadeSlideIn .55s cubic-bezier(.22, 1, .36, 1);
}

.screen.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Back button ── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 16px;
    transition: color .2s ease, transform .2s ease;
}

.back-btn:hover {
    color: var(--teal);
    transform: translateX(-3px);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Step dots ── */
.step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sand);
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
}

.step-dot.active {
    background: var(--teal);
    width: 24px;
    border-radius: 4px;
}

.step-dot.done {
    background: var(--teal-light);
}

/* ── Progress ── */
.progress-container {
    margin-bottom: 6px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--sand);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 20px;
    transition: width .6s cubic-bezier(.65, 0, .35, 1);
    box-shadow: 0 2px 10px rgba(168, 134, 125, .3);
}

/* ── Hero ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sage-light), var(--sage));
    border: 2px solid rgba(168, 134, 125, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--teal-dark);
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 134, 125, .15);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-dark);
    
    text-shadow: 2px 2px 0 rgba(255, 255, 255, .5);
}

.hero-title span {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Trust stats ── */
.trust-stats {
    display: flex;
    gap: 0;
    background: rgba(168, 134, 125, .07);
    border: 1.5px solid rgba(168, 134, 125, .14);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 0;
}

.trust-stat {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    position: relative;
}

.trust-stat+.trust-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1.5px;
    background: rgba(168, 134, 125, .15);
}

.trust-stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.trust-stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 8px 30px rgba(168, 134, 125, .35), 0 4px 15px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    opacity: 0;
    transition: opacity .4s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 134, 125, .45), 0 6px 20px rgba(0, 0, 0, .12);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform .4s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(6px);
}

/* ── Questions ── */
.question-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.25;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(168, 134, 125, 0.2);
    border-radius: 18px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

.option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sage-light), var(--amber-light));
    opacity: 0;
    transition: opacity .3s ease;
}

.option-btn:hover {
    border-color: var(--teal);
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(168, 134, 125, .15), 0 2px 8px rgba(0, 0, 0, .06);
}

.option-btn:hover::before {
    opacity: 0.35;
}

.option-btn:active {
    transform: translateX(5px) scale(.98);
}

/* selected state */
.option-btn.selected {
    border-color: var(--teal) !important;
    background: rgba(168, 134, 125, .08) !important;
    transform: translateX(8px);
}

.option-btn.selected .option-icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
}

.option-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1rem;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(168, 134, 125, .28);
}

.option-btn:hover .option-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(168, 134, 125, .42);
}

.option-text {
    position: relative;
    z-index: 1;
}

.checkmark {
    margin-left: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0);
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    color: var(--teal);
    flex-shrink: 0;
}

.option-btn.selected .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkmark svg {
    width: 22px;
    height: 22px;
}

/* ── Form ── */
.form-header {
    text-align: center;
    margin-bottom: 14px;
}

.form-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(168, 134, 125, .32);
    animation: pulse 2.5s ease-in-out infinite;
}

.form-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(168, 134, 125, .32);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 12px 40px rgba(168, 134, 125, .48);
    }
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.accent-text {
    color: var(--teal-dark);
    font-style: italic;
}

.form-subtitle {
    color: var(--text-medium);
    font-size: .95rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.88rem;
    color: var(--text-medium);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(168, 134, 125, 0.2);
    border-radius: 14px;
    
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all .3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
    box-shadow: 0 6px 24px rgba(168, 134, 125, .15);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: var(--sage);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-light);
    padding-left: 4px;
}

.form-privacy {
    text-align: center;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-privacy svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Answers summary ── */
.answers-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.summary-item {
    background: rgba(168, 134, 125, .06);
    border: 1.5px solid rgba(168, 134, 125, .12);
    border-radius: 14px;
    padding: 11px 14px;
}

.summary-item-label {
    color: var(--text-light);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.summary-item-value {
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.82rem;
}

/* ── Error ── */
.error-message {
    background: rgba(212, 148, 74, .12);
    border: 2px solid var(--amber);
    color: #7A4A18;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    display: none;
    animation: fadeSlideIn .3s ease;
}

.error-message.show {
    display: block;
}

/* ── Success ── */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(168, 134, 125, .35);
    animation: successPop .7s cubic-bezier(.34, 1.56, .64, 1);
}

.success-icon svg {
    width: 45px;
    height: 45px;
    color: white;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.success-text {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.success-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
    margin-bottom: 20px;
}

/* ── Loading ── */
.btn-loading {
    pointer-events: none;
    opacity: .8;
}

.btn-loading .btn-text {
    opacity: 0;
}

.spinner {
    display: none;
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.btn-loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Tablet — 768px ── */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .glass-card {
        padding: 32px 28px;
        border-radius: 28px;
    }
}

/* ── Mobile L — 425px ── */
@media (max-width: 425px) {
    .container {
        padding: 16px;
        justify-content: center;
    }

    .glass-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    /* Hero: stack photo above buttons, fix overflow */
    .hero-layout {
        flex-direction: column;
        gap: 12px;
    }

    .hero-photo-inline img {
        max-width: 100%;
    }

    .hero-left .btn-primary,
    .hero-left .scroll-hint {
        width: 100%;
    }

    .answers-summary,
    .success-summary {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.65rem;
    }
}

/* ── Mobile M — 375px ── */
@media (max-width: 375px) {
    .glass-card {
        padding: 22px 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .option-btn {
        padding: 13px 14px;
        font-size: 0.93rem;
    }

    .question-title {
        font-size: 1.25rem;
    }
}

/* ── Mobile S — 320px ── */
@media (max-width: 320px) {
    .container {
        padding: 12px;
    }

    .glass-card {
        padding: 18px 12px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .btn-primary {
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .option-btn {
        padding: 10px 12px;
        font-size: 0.88rem;
        gap: 10px;
    }

    .option-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .question-title {
        font-size: 1.15rem;
    }
}

@media (max-height: 700px) {
    .container {
        justify-content: flex-start;
        padding-top: 16px;
    }

    .container.is-quiz-screen {
        justify-content: center;
        padding-top: 24px;
    }

    .glass-card {
        padding: 24px;
    }

    .form-icon {
        width: 56px;
        height: 56px;
    }

    .form-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ── Scroll hint on hero ── */
.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    cursor: pointer;
    width: fit-content;
    background: rgba(168, 134, 125, 0.07);
    border: 1.5px solid rgba(168, 134, 125, 0.22);
    border-radius: 50px;
    padding: 9px 18px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    animation: hintBob 2.5s ease-in-out infinite;
}

.scroll-hint:hover {
    background: rgba(168, 134, 125, 0.13);
    border-color: rgba(168, 134, 125, 0.45);
    transform: translateY(3px);
}

.scroll-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes hintBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ── Portfolio section ── */
.portfolio-section {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.portfolio-heading {
    text-align: center;
    margin-bottom: 28px;
}

.portfolio-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.portfolio-heading h2 span {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-heading p {
    color: var(--text-medium);
    font-size: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--sand);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 40px rgba(168, 134, 125, .25);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.07);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 45, 42, .75) 0%, transparent 55%);
    opacity: 1;
    transition: opacity .3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}



.portfolio-item-label {
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(168, 134, 125, .75);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 8px;
}

.portfolio-item-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}



.portfolio-item-zoom svg {
    width: 16px;
    height: 16px;
    color: var(--teal-dark);
}



/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(30, 22, 20, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    object-fit: contain;
    transform: scale(.9);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    transition: all .25s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-nav:hover {
    background: white;
    color: var(--teal);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 22px;
    height: 22px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(168, 134, 125, 0.25);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.lightbox-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 10;
}

.portfolio-item.portfolio-hidden {
    display: none;
}

.btn-show-more {
    display: block;
    margin: 20px auto 0;
    background: none;
    border: 2px solid rgba(168, 134, 125, 0.2);
    border-radius: 50px;
    padding: 12px 32px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.btn-show-more:hover {
    background: rgba(168, 134, 125, .08);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* Tablet — portfolio 2 columns */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile L — tighter portfolio */
@media (max-width: 425px) {
    .portfolio-grid {
        gap: 8px;
    }

    .portfolio-section {
        padding: 0 16px 48px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.85);
    }
}

/* Mobile S — minimal portfolio padding */
@media (max-width: 320px) {
    .portfolio-section {
        padding: 0 12px 40px;
    }
}
