/* Second design pass: composition, readability and checkout */
:root {
    --v2-ink: #171a20;
    --v2-copy: #4d5563;
    --v2-muted: #747c88;
    --v2-paper: #fffdf8;
    --v2-canvas: #f3f0e9;
    --v2-orange: #e2742d;
    --v2-orange-dark: #ba5620;
    --v2-blue: #355b87;
    --v2-border: rgba(23, 26, 32, .13);
    --v2-shadow: 0 30px 90px rgba(59, 49, 35, .13);
}

body {
    color: var(--v2-ink);
    background: var(--v2-canvas);
}

.ambient-scene {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 48% 0%, rgba(255,255,255,.86), transparent 32rem),
        linear-gradient(rgba(23,26,32,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23,26,32,.028) 1px, transparent 1px);
    background-size: auto, 7rem 7rem, 7rem 7rem;
}

.ambient-orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .72; animation: orbDrift 16s ease-in-out infinite alternate; }
.ambient-orb-a { width: 34rem; height: 34rem; left: -12rem; top: 7rem; background: radial-gradient(circle at 35% 35%, rgba(255,190,118,.6), rgba(226,116,45,.06) 68%, transparent 72%); }
.ambient-orb-b { width: 42rem; height: 42rem; right: -15rem; top: 31rem; background: radial-gradient(circle at 45% 45%, rgba(108,151,193,.28), rgba(53,91,135,.04) 65%, transparent 72%); animation-delay: -5s; }
.ambient-orb-c { width: 28rem; height: 28rem; left: 40%; top: 98rem; background: radial-gradient(circle, rgba(240,170,108,.24), transparent 68%); animation-delay: -9s; }
.contour-map { position: absolute; inset: 10% -5% auto; width: 110%; height: 43rem; opacity: .16; animation: contourFloat 22s ease-in-out infinite alternate; }
.contour-map path { fill: none; stroke: var(--v2-orange); stroke-width: 1.2; stroke-dasharray: 5 12; }
.map-coordinate { position: absolute; color: rgba(23,26,32,.28); font-size: .64rem; font-weight: 700; letter-spacing: .18em; }
.coord-a { top: 29rem; left: 4%; transform: rotate(-90deg); }
.coord-b { top: 58rem; right: 5%; }
@keyframes orbDrift { to { transform: translate3d(5rem, 3rem, 0) scale(1.12); } }
@keyframes contourFloat { to { transform: translate3d(-3rem, 2rem, 0); opacity: .24; } }

.container { width: min(100%, 94rem); max-width: 94rem; padding-inline: clamp(1.25rem, 4vw, 4.5rem); }
.header { width: min(96rem, calc(100% - 3rem)); max-width: none; }
.header-content { max-width: none; }
.nav a { font-size: .82rem; }

.hero { padding-top: clamp(8.5rem, 12vw, 10.5rem); padding-bottom: clamp(6rem, 9vw, 9rem); }
.hero-container { grid-template-columns: minmax(31rem, .92fr) minmax(38rem, 1.08fr); gap: clamp(4rem, 7vw, 8rem); }
.hero h1 { max-width: 10ch; font-size: clamp(4rem, 6vw, 6.7rem); }
.hero-text > p { max-width: 38rem; color: var(--v2-copy) !important; font-size: 1.08rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.55rem; }
.hero-proof span { display: inline-flex; gap: .45rem; align-items: center; color: #59606b; font-size: .74rem; font-weight: 600; }
.hero-proof i { color: var(--v2-orange); }
.hero-stats { margin-top: 2.2rem; }
.hero-actions { margin-top: 2.1rem; }

.hero-visual { padding: 2.7rem 0 2rem; }
.hero-visual::before { display: none; }
.hero-visual::after { inset: 17% -5% 2% 12%; border-radius: 1.5rem; background: linear-gradient(145deg, rgba(226,116,45,.12), rgba(53,91,135,.08)); }
.hero-window-label { position: absolute; top: .2rem; right: 2rem; display: flex; align-items: center; gap: .55rem; color: #777f8a; font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.hero-window-label span { width: .5rem; height: .5rem; border-radius: 50%; background: #55a76a; box-shadow: 0 0 0 .3rem rgba(85,167,106,.14); }
.hero-img { border-radius: 1.1rem; transform: rotate(.6deg); box-shadow: 0 3rem 6rem rgba(23,26,32,.22); }
.hero-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.65); border-radius: .85rem; color: var(--v2-ink); background: rgba(255,253,248,.86); box-shadow: 0 1.2rem 3rem rgba(23,26,32,.14), inset 0 1px rgba(255,255,255,.8); backdrop-filter: blur(14px); animation: cardFloat 5s ease-in-out infinite alternate; }
.hero-float-card b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; color: #fff; background: var(--v2-orange); }
.hero-float-card span { max-width: 10rem; font-size: .72rem; font-weight: 650; line-height: 1.3; }
.hero-float-card i { color: var(--v2-orange); font-size: 1.15rem; }
.hero-float-card-a { left: -2.5rem; bottom: .4rem; }
.hero-float-card-b { right: -1.5rem; top: 17%; animation-delay: -2s; }
@keyframes cardFloat { to { transform: translateY(-9px); } }

.section, .trust-section { position: relative; padding: clamp(5.5rem, 7vw, 7.5rem) 0; scroll-margin-top: 6.5rem; }
.section-alt { background: rgba(239,235,226,.72); }
.section-heading { display: grid; grid-template-columns: minmax(0, 50rem); gap: .8rem; margin-bottom: clamp(2.5rem, 4vw, 4.5rem); }
.section-heading-split { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .55fr); align-items: end; gap: 4rem; }
.section-kicker { color: var(--v2-orange-dark); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-heading .section-title { max-width: 15ch; margin: 0; color: var(--v2-ink); font-size: clamp(2.6rem, 4.2vw, 4.6rem); }
.section-heading > p, .section-heading-split > p, .section-subtitle { max-width: 39rem !important; margin: 0 !important; color: var(--v2-copy) !important; font-size: 1rem !important; line-height: 1.75; text-align: left !important; }

.features-grid { grid-template-columns: repeat(12, 1fr); border-radius: 1.35rem; box-shadow: var(--v2-shadow); }
.feature-card, .feature-card:first-child, .feature-card:last-child { grid-column: auto; min-height: 18rem; }
.feature-card:nth-child(1) { grid-column: span 7; }
.feature-card:nth-child(2) { grid-column: span 5; }
.feature-card:nth-child(3), .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: span 4; }
.feature-card:nth-child(6) { grid-column: span 12; min-height: 13rem; display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-content: center; }
.feature-card:nth-child(6) .f-icon { grid-row: 1 / 3; margin: 0; }
.feature-card { color: var(--v2-ink); background: rgba(255,253,248,.94); }
.feature-card h3 { font-size: 1.25rem; }
.feature-card p { color: var(--v2-copy); font-size: .92rem; line-height: 1.65; }
.feature-card:hover { background: #fff; }

.gallery { grid-template-columns: 1.25fr .75fr; grid-template-rows: 15rem 15rem; gap: 1rem; }
.gallery-item { box-shadow: 0 1.5rem 3rem rgba(23,26,32,.11); }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item:nth-child(4) { position: absolute; width: min(34rem, 43vw); right: 9%; bottom: -8rem; transform: rotate(-2deg); border: .55rem solid var(--v2-paper); z-index: 3; }
#capabilities { padding-bottom: 13rem; overflow: hidden; }

.trust-section { padding-block: 6.5rem; background: radial-gradient(circle at 70% 0%, rgba(226,116,45,.18), transparent 24rem), linear-gradient(135deg, #1b2028, #181916 70%); overflow: hidden; }
.section-heading-dark { margin-bottom: 2rem; }
.section-heading-dark .section-title { color: #fff; }
.section-heading-dark .section-kicker { color: #f5a76e; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.trust-item { min-height: 15rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-inline: clamp(1.5rem,4vw,4rem); border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border-right: 0; }
.trust-number { font-size: clamp(3.5rem,6vw,6rem); }
.trust-label { font-size: .76rem; }

#rewards .container { display: grid; grid-template-columns: minmax(20rem,.65fr) minmax(30rem,1.35fr); column-gap: clamp(4rem,8vw,9rem); align-items: start; }
#rewards .section-heading { position: sticky; top: 7rem; grid-column: 1; }
#rewards .reward-rules, #rewards > .container > .reveal:not(.section-heading), #rewards #rewards-loading, #rewards #rewards-history, #rewards #trophy-holders-section { grid-column: 2; }
.reward-rules { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.reward-rule-card { min-height: 9rem; padding: 1.25rem; align-items: flex-start; flex-direction: column; justify-content: space-between; background: rgba(255,253,248,.9); }
.rr-days { font-size: 1.25rem; }
.trophy-badge { padding: .6rem .8rem; font-size: .72rem; }

#leaderboard { min-height: 34rem; }
#leaderboard .section-heading { margin-bottom: 1.5rem; }
.lb-meta { justify-content: flex-start; margin-bottom: 2rem; color: var(--v2-copy) !important; }
.error-state { width: min(100%, 36rem); margin: 2rem 0 0; padding: 1.5rem; border: 1px solid rgba(163,69,53,.18); border-radius: 1rem; color: #9a3f32; background: rgba(255,246,242,.75); text-align: left; }
.error-state i { margin-right: .7rem; font-size: 1rem !important; }

#reviews { background: rgba(255,253,248,.66); }
.reviews-external { max-width: none !important; margin: 0 0 2rem !important; text-align: left !important; }
.reviews-external > p { color: var(--v2-copy) !important; text-align: left; }
.reviews-external > div { justify-content: flex-start !important; }
.reviews-external a { max-width: 23rem !important; padding: 1rem 1.15rem !important; border: 1px solid var(--v2-border) !important; border-radius: .85rem !important; background: rgba(255,255,255,.72) !important; box-shadow: none !important; }
.reviews-external a > div:first-child { width: 2.6rem !important; height: 2.6rem !important; background: var(--v2-ink) !important; }
.reviews-external a div[style*="color:#fff"] { color: var(--v2-ink) !important; }
.reviews-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr !important; align-items: start; }
.review-card { padding: 1.45rem; color: var(--v2-ink); background: rgba(255,255,255,.82); border: 1px solid var(--v2-border); }
.review-card[style*="grid-column"] { grid-column: auto !important; grid-row: span 2; }
.review-text, .review-card .review-text[style] { color: var(--v2-copy) !important; font-size: .9rem; line-height: 1.7 !important; opacity: 1 !important; }
.review-header { color: var(--v2-ink); }

#pricing { background: linear-gradient(180deg, rgba(235,229,217,.72), rgba(247,244,237,.92)); }
.currency-toggle { margin: -2.8rem 0 2rem auto; }
.pricing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.price-card { min-height: 29rem; padding: 2rem; border-radius: 1.1rem; }
.price-card:nth-child(4) { grid-column: span 2; min-height: 24rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.price-card:nth-child(4) .price-head, .price-card:nth-child(4) .price-amount, .price-card:nth-child(4) .price-old, .price-card:nth-child(4) .price-per-day { grid-column: 1; }
.price-card:nth-child(4) .price-features { grid-column: 2; grid-row: 1 / 5; align-self: center; }
.price-card:nth-child(4) .btn { grid-column: 2; align-self: end; }
.price-card:nth-child(5) { min-height: 24rem; }
.price-head h3 { font-size: 1.45rem; }
.price-head p { color: var(--v2-copy); }
.price-features li { color: var(--v2-copy); font-size: .86rem; }
.price-card .btn { margin-top: auto; }
#pricing > .container > .reveal[style] { max-width: none !important; margin-top: 2rem !important; padding: 1.35rem 1.6rem !important; background: rgba(255,255,255,.68) !important; border-color: var(--v2-border) !important; }

#faq .container { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(3rem,8vw,8rem); align-items: start; }
#faq .section-title { position: sticky; top: 7rem; }
.faq-container { margin: 0; }
.faq-head { font-size: 1rem; }
.faq-content { color: var(--v2-copy); }

.footer p, .footer a, .footer-legal-list, .footer-bottom, .footer .legal { color: #c1bbb0 !important; opacity: 1 !important; }
.footer-col h4 { color: #fff !important; }

/* Checkout is a product surface, not a legacy popup. */
#modal-email.modal { padding: 1.5rem; background: rgba(12,15,20,.72); }
#modal-email .checkout-modal { width: min(72rem, 96vw); max-width: 72rem; max-height: min(50rem, 92dvh); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 1.5rem; background: var(--v2-paper); box-shadow: 0 3rem 8rem rgba(0,0,0,.36); }
#modal-email .checkout-shell { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 42rem; }
#modal-email .checkout-summary { position: relative; padding: 3rem; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(226,116,45,.45), transparent 20rem), linear-gradient(150deg,#202834,#15181e); overflow: hidden; }
#modal-email .checkout-summary::after { content: ''; position: absolute; width: 26rem; height: 26rem; left: -13rem; bottom: -15rem; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.018); }
#modal-email .checkout-titlebar { display: block; }
#modal-email .checkout-kicker { color: #f6a56e; }
#modal-email .checkout-summary h2 { max-width: 8ch; margin-top: 1rem; color: #fff; font-size: clamp(2.6rem,4vw,4.2rem); line-height: .98; letter-spacing: -.06em; }
#modal-email .checkout-summary p { max-width: 24rem; color: #c0c8d2; line-height: 1.65; }
#modal-email .checkout-plan { margin-top: 2.2rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
#modal-email .checkout-plan span { color: #9ea8b5; }
#modal-email .checkout-plan strong { color: #fff; font-size: 1.45rem; }
#modal-email .checkout-plan small { color: #f4a36c; font-size: 1rem; }
#modal-email .checkout-benefits { position: relative; z-index: 1; margin-top: 2rem; }
#modal-email .checkout-benefit { color: #d8dee6; background: transparent; }
#modal-email .checkout-benefit i { color: #f4a36c; }
#modal-email .checkout-form { padding: 3rem; overflow-y: auto; background: #fffdf8; }
#modal-email .checkout-section-title { margin-bottom: 1.3rem; }
#modal-email .checkout-section-title h3 { color: var(--v2-ink); font-size: 1.45rem; }
#modal-email .checkout-section-title span { color: var(--v2-muted); background: transparent; }
.checkout-assurance { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: 1.6rem; color: var(--v2-muted); font-size: .72rem; }
.checkout-assurance i { color: var(--v2-orange); }
#modal-email .payment-provider { margin-bottom: 1.4rem; }
#modal-email .payment-options { display: block; }
#modal-email .payment-option[data-provider-option="robokassa"] { display: none; }
#modal-email .payment-option { padding: 1rem; border: 1px solid var(--v2-border); border-radius: .9rem; background: #fff; }
#modal-email .payment-option.selected { border-color: rgba(226,116,45,.5); box-shadow: 0 0 0 3px rgba(226,116,45,.09); }
#modal-email .payment-icon { color: #fff; background: var(--v2-orange); }
#modal-email .payment-copy strong { color: var(--v2-ink); }
#modal-email .payment-copy span { color: var(--v2-muted); }
#modal-email .checkout-grid { grid-template-columns: 1fr; gap: 1rem; }
#modal-email .email-field label { color: var(--v2-ink); }
#modal-email .email-field input { min-height: 3.35rem; border: 1px solid var(--v2-border) !important; border-radius: .75rem; color: var(--v2-ink) !important; background: #fff !important; box-shadow: inset 0 1px 2px rgba(23,26,32,.03); }
#modal-email .email-field input:focus { border-color: var(--v2-orange) !important; box-shadow: 0 0 0 3px rgba(226,116,45,.12); }
#modal-email .field-hint { color: var(--v2-muted); }
#modal-email .checkout-tg-link { margin-top: 1rem; padding: .95rem; border: 1px solid var(--v2-border); border-radius: .9rem; background: #f4f1ea; }
#modal-email #tg-link-label { color: var(--v2-ink); }
#modal-email .tg-link-sub { color: var(--v2-muted); }
#modal-email .checkout-tg-btn { color: #fff; background: #2d6fb0; }
#modal-email .email-actions { display: grid; grid-template-columns: 1fr auto; margin-top: 1.4rem; }
#modal-email #email-submit { min-height: 3.5rem; background: var(--v2-ink); }
#modal-email #email-submit:hover { background: var(--v2-orange); }
#modal-email .email-note { color: var(--v2-muted); font-size: .7rem; line-height: 1.55; }
#modal-email .close-btn { top: 1rem; right: 1rem; z-index: 4; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); }

@media (max-width: 1120px) {
    .hero-container { grid-template-columns: 1fr 1fr; }
    .hero-float-card-b { right: 0; }
    .pricing-grid { grid-template-columns: repeat(2,1fr); }
    .price-card:nth-child(4) { grid-column: auto; display: flex; }
    .price-card:nth-child(4) > * { grid-column: auto !important; grid-row: auto !important; }
    .price-card:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .ambient-scene { background-size: auto, 4rem 4rem, 4rem 4rem; }
    .header { width: calc(100% - 1rem); }
    .hero-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(3.25rem,15vw,5rem); }
    .hero-proof { display: grid; }
    .hero-float-card-a { left: .5rem; }
    .hero-float-card-b { right: .5rem; }
    .section-heading-split { grid-template-columns: 1fr; gap: 1rem; }
    .section-heading .section-title { font-size: clamp(2.6rem,12vw,4rem); }
    .feature-card, .feature-card:nth-child(n) { display: block; grid-column: auto; min-height: 0; }
    .feature-card:nth-child(6) .f-icon { margin-bottom: 2rem; }
    #capabilities { padding-bottom: 6rem; }
    .gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item, .gallery-item:first-child, .gallery-item:nth-child(4) { position: static; width: auto; transform: none; grid-row: auto; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { min-height: 10rem; border-right: 0; }
    #rewards .container, #faq .container { display: block; }
    #rewards .section-heading, #faq .section-title { position: static; }
    #rewards .reward-rules, #rewards > .container > .reveal, #rewards #rewards-loading, #rewards #rewards-history { grid-column: auto; }
    .reward-rules { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr !important; }
    .review-card[style*="grid-column"] { grid-row: auto; }
    .pricing-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem,84vw); grid-template-columns: none; }
    .price-card, .price-card:nth-child(4), .price-card:nth-child(5) { display: flex; grid-column: auto; min-height: 30rem; }
    #modal-email.modal { padding: 0; align-items: flex-end; }
    #modal-email .checkout-modal { width: 100%; max-width: none; max-height: 96dvh; border-radius: 1.3rem 1.3rem 0 0; }
    #modal-email .checkout-shell { display: block; }
    #modal-email .checkout-summary { padding: 2rem 1.25rem 1.35rem; }
    #modal-email .checkout-summary h2 { font-size: 2.4rem; }
    #modal-email .checkout-summary p, #modal-email .checkout-benefits { display: none; }
    #modal-email .checkout-plan { margin-top: 1.25rem; }
    #modal-email .checkout-form { padding: 1.35rem 1.25rem 2rem; }
    #modal-email .close-btn { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-orb, .contour-map, .hero-float-card { animation: none !important; }
}
