/* Shared public visual language with app.choicervoicer.ru.
   Presentation only: demo/carousel markup, media URLs and JS stay intact. */
:root {
    --bg: #111114;
    --bg-2: #151519;
    --bg-3: #19191d;
    --panel: #19191d;
    --panel-2: #222227;
    --line: #333339;
    --text: #eeeef0;
    --text-dim: #a6a6af;
    --text-faint: #6f6f78;
    --accent: #ed4868;
    --accent-glow: rgba(237, 72, 104, .18);
    --ok: #a6bdb0;
    --warn: #dcc18a;
    --blue: #a7b9c4;
    --landing-header-height: clamp(70px, 5.4vw, 96px);
}

html { background: var(--bg); }

html { scroll-padding-top: var(--landing-header-height); }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 76% 12%, rgba(237, 72, 104, .045), transparent 28rem),
        linear-gradient(180deg, #111114 0%, #101013 100%);
    color: var(--text);
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 120px 120px;
}

body::after {
    content: "REC / CASTING";
    position: fixed;
    z-index: 0;
    right: -42px;
    bottom: 110px;
    color: rgba(237, 72, 104, .18);
    font: 8px var(--mono);
    letter-spacing: 4px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.container {
    width: min(2080px, calc(100% - clamp(44px, 10vw, 256px)));
    max-width: 2080px;
    padding-inline: 0;
}

.site-nav {
    height: var(--landing-header-height);
    background: rgba(17, 17, 20, .96);
    border-color: var(--line);
    backdrop-filter: none;
}

.nav-inner {
    height: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: clamp(16px, 1.8vw, 36px);
    padding-block: 0;
}

.logo {
    gap: 10px;
    font-family: var(--sans);
    font-size: clamp(21px, 1.6vw, 32px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.logo-mark {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: none;
    animation: none;
}

.logo-text span, .accent { color: var(--accent); }
.nav-links {
    gap: clamp(20px, 2.1vw, 42px);
    margin-left: auto;
    font-size: clamp(12px, .8vw, 16px);
}
.nav-actions { margin-left: clamp(12px, 1.45vw, 28px); }

.nav-login {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
}

.btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: none;
}

.btn-primary, .btn-primary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #1a0f13;
    box-shadow: none;
}

.btn-primary:hover { background: #f35c78; transform: translateY(-1px); }

.btn-ghost {
    border-color: #505057;
    background: #17171b;
    color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); background: #1d1d22; }

.hero {
    min-height: calc(100svh - var(--landing-header-height) - 62px);
    display: grid;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 60px);
    min-height: calc(100svh - var(--landing-header-height) - 62px - 40px);
    align-items: center;
}

.hero-grid > div:first-child {
    min-width: 0;
}

.badge {
    position: absolute;
    top: 10px;
    left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #b9b9c0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.badge .dot, .demo-title .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: none;
    animation: none;
}

.hero h1 {
    max-width: 13.5em;
    margin-bottom: 30px;
    font-size: clamp(42px, min(3.9vw, 7.5svh), 84px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.065em;
}

.landing-title-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    transform-origin: left center;
}

.landing-title-accent {
    position: relative;
    padding-bottom: .13em;
    color: var(--accent);
}

.landing-title-accent-word { color: var(--accent); }

.landing-title-underline {
    position: absolute;
    left: 1%;
    bottom: 0;
    width: 98%;
    height: .22em;
    overflow: visible;
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
}

.landing-title-outline {
    color: #e9e4d8;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.2px #e9e4d8;
    font-size: .86em;
    letter-spacing: -.055em;
}

.hero p.lead {
    max-width: 42ch;
    color: #c2c0c8;
    font-size: clamp(14px, 1vw, 22px);
    line-height: 1.75;
}

.hero-ctas { gap: 19px 23px; }
.hero .btn { min-height: 57px; padding-inline: 23px; font-size: clamp(12px, .8vw, 16px); }
.carousel-wrapper {
    width: min(100%, 720px);
    justify-self: center;
    --card-w: min(100%, clamp(460px, 36vw, 560px));
    --card-h: clamp(440px, 31vw, 520px);
}
.arcade-carousel { height: clamp(470px, 66svh, 700px); }

.carousel-item, .carousel-item.active {
    border-width: 1px;
    border-radius: 2px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .55);
}

.carousel-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(237, 72, 104, .28), 0 26px 65px rgba(0, 0, 0, .62);
}

.carousel-item-badge, .carousel-hint, .carousel-nav,
.indicator, .indicator.active { border-radius: 2px; }
.carousel-item-badge, .carousel-nav { box-shadow: none; }
.carousel-nav { border-width: 1px; }

.landing-voice-tape {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 17px;
    overflow: hidden;
    contain: paint;
    background: var(--accent);
    color: #181116;
}

.landing-voice-tape-track {
    display: flex;
    width: max-content;
}

.landing-voice-tape-copy {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(28px, 3vw, 48px);
    padding-right: clamp(28px, 3vw, 48px);
}

.landing-voice-tape-copy span {
    font-size: clamp(14px, 1.35vw, 20px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.landing-voice-tape-copy i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #181116;
}

section { padding: 88px 0; }

.section-head {
    max-width: 900px;
    margin: 0 0 38px;
    text-align: left;
}

.dubs-section .section-head,
.dubs-section .section-title {
    max-width: none;
}

.dubs-section .section-sub {
    max-width: 72ch;
}

.section-tag, .legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.section-tag::before, .legal-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.section-title {
    max-width: 880px;
    margin-bottom: 12px;
    font-size: clamp(34px, 4.1vw, 58px);
    line-height: 1;
    letter-spacing: -.055em;
}

.section-sub {
    max-width: 680px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
}

.steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.step, .pain-card, .seo-faq-grid article {
    min-height: 190px;
    padding: 22px;
    border-radius: 2px;
    border-color: var(--line);
    background: rgba(25, 25, 29, .86);
    box-shadow: none;
}

.step { display: block; }
.step:hover, .pain-card:hover { transform: translateY(-2px); border-color: #55545b; }

.step-num {
    margin-bottom: 40px;
    color: var(--accent);
    font-size: 18px;
    text-shadow: none;
}

.step h3, .seo-faq-grid h3 { font-size: 16px; }
.step p, .seo-faq-grid p { font-size: 12px; line-height: 1.65; }

#demo-section, .faq-section, .dubs-section { border-top: 1px solid var(--line); }

.studio-demo {
    padding: 16px;
    border-radius: 2px;
    background: #18181c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

.demo-header { min-height: 44px; margin-bottom: 14px; padding: 0 4px 12px; }
.demo-title, .demo-meta, .demo-info, .rec-label { font-size: 9px; letter-spacing: 1px; }
.demo-steps { gap: 5px; }

.step-pill, .step-pill .step-n, .subtitle-line, .demo-video,
.landing-yandex-consent { border-radius: 2px; }

.step-pill {
    min-height: 36px;
    padding: 7px 11px;
    background: #131317;
    font-size: 10px;
}

.step-pill.active { box-shadow: none; }

.demo-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 14px;
}

.demo-controls { border-radius: 2px; background: #141418; }

.global-counter {
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 2px;
    background: #18181c;
    box-shadow: none;
    font-size: 11px;
}

.counter-text strong { font-size: inherit; }
.dubs-section { padding: 88px 0; }

@media (min-width: 901px) {
    #demo-section,
    .dubs-section {
        min-height: calc(100svh - var(--landing-header-height));
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        padding-block: clamp(28px, 4svh, 60px);
    }

    #demo-section > .container,
    .dubs-section > .container {
        min-width: 0;
        justify-self: center;
    }

    #demo-section .section-head,
    .dubs-section .section-head {
        margin-bottom: clamp(18px, 2.8svh, 38px);
    }

    .dubs-section {
        --card-h: clamp(330px, 50svh, 568px);
        --card-w: calc(var(--card-h) * .5634);
    }

    .dubs-carousel {
        height: calc(var(--card-h) + clamp(52px, 7svh, 82px));
    }

    .dubs-carousel-wrapper {
        padding-bottom: clamp(56px, 8svh, 92px);
    }
}

@media (min-width: 901px) and (max-height: 1100px) {
    #demo-section .demo-video,
    #demo-section .demo-controls {
        height: clamp(360px, 55svh, 620px);
    }

    #demo-section .demo-video { aspect-ratio: auto; }
    #demo-section .studio-demo { padding: 12px; }
    #demo-section .demo-header { min-height: 34px; margin-bottom: 9px; padding-bottom: 8px; }
    #demo-section .demo-steps { margin-bottom: 10px; }
    #demo-section .section-title { font-size: clamp(34px, 3.2vw, 48px); }
    #demo-section .section-sub { line-height: 1.45; }
}

@media (min-width: 901px) and (max-height: 800px) {
    #demo-section .demo-video,
    #demo-section .demo-controls {
        height: clamp(330px, 50svh, 390px);
    }
}

@media (min-width: 901px) and (max-height: 1000px) {
    .dubs-section {
        --card-h: clamp(300px, 42svh, 400px);
        padding-block: 20px;
    }

    .dubs-section .section-head { margin-bottom: 8px; }
    .dubs-section .section-title { max-width: none; font-size: clamp(34px, 3.2vw, 42px); }
    .dubs-section .global-counter { margin-top: 8px; }
    .dubs-section .dubs-carousel { height: calc(var(--card-h) + 30px); }
    .dubs-section .dubs-carousel-wrapper { padding-bottom: 58px; }
}

.dub-card, .dub-card-media, .dub-card-badge, .card-total-views,
.card-dubs-count, .dub-main-cta, .dub-activity-toast { border-radius: 2px; }

.dub-card.active {
    box-shadow: 0 0 0 1px rgba(237, 72, 104, .42), 0 30px 75px rgba(0, 0, 0, .6);
}

.dubs-nav { border-radius: 2px; box-shadow: none; }

.seo-faq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.offer-wrap, .bonus-wrap {
    padding: clamp(42px, 6vw, 76px);
    border-radius: 2px;
    border-color: #e9e4d8;
    background: #e9e4d8;
    color: #171519;
    text-align: left;
}

.offer-wrap::before, .bonus-wrap::before { display: none; }

.offer-wrap h2, .bonus-title {
    max-width: 850px;
    font-size: clamp(34px, 4.7vw, 64px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.offer-wrap p, .offer-wrap .hero-meta, .bonus-text, .bonus-meta {
    color: #555058 !important;
}

.offer-price { justify-content: flex-start; }
.offer-price .new {
    color: #ff829a;
    text-shadow: 0 0 24px rgba(237, 72, 104, .24);
}

.site-footer, .legal-footer {
    border-top: 1px solid var(--line);
    background: #0f0f12;
}

.site-footer { padding: 0; }
.footer-inner {
    min-height: 110px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding-block: 18px;
}
.footer-brand {
    max-width: none;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}
.footer-record {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--accent);
}
.footer-logo { font: 800 21px/1 var(--sans); letter-spacing: -1px; }
.footer-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px clamp(14px, 1.2vw, 23px);
    font-size: 10px;
}
.footer-links a,
.privacy-settings-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-legal {
    color: var(--text-faint);
    font: 9px/1.55 var(--sans);
    white-space: nowrap;
}

@media (max-width: 1320px) {
    .footer-inner { grid-template-columns: auto minmax(0, 1fr); gap: 4px 24px; }
    .footer-links { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; justify-content: flex-start; }
    .footer-legal { grid-column: 2; grid-row: 1; justify-self: end; }
}
.modal-overlay {
    background:
        radial-gradient(circle at 50% 45%, rgba(34, 24, 29, .45), transparent 42rem),
        rgba(7, 7, 9, .94);
}

.seo-faq, #offer {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

.modal, .landing-auth-modal {
    border-radius: 2px;
    border-color: #3f3f46;
    background: #19191d;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .62);
}

.landing-auth-brand {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.landing-auth-brand i { width: 9px; height: 9px; box-shadow: none; }

.field input[type="text"], .field input[type="email"],
.field input[type="password"] {
    min-height: 48px;
    border-radius: 2px;
    background: #111115;
}

.landing-yandex-button, .landing-auth-error, .modal-close { border-radius: 2px; }

.privacy-banner, .privacy-panel, .legal-card, .price-card,
.price-card__for, .hero-pricing-note, .faq-item, .faq-icon,
.founder-seats, .plan-summary { border-radius: 2px; }

.privacy-banner, .privacy-panel, .legal-card, .price-card, .faq-item {
    background: #19191d;
    box-shadow: none;
}

.pricing-hero { padding-block: 58px 28px; }
.hero-pricing-note { background: #19191d; }
.pricing-grid { gap: 12px; }
.price-card { padding: 24px; }
.price-card:hover { transform: translateY(-2px); }

.price-card--featured, .price-card--founder, .bonus-wrap { background-image: none; }

.price-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(237, 72, 104, .22);
}

.price-card__ribbon, .founder-tag { border-radius: 2px; }

.price-card__price .price-value, .price-card--featured .price-value {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
}

.price-card--featured .price-value { color: var(--accent); }
.faq-section { background: #131317; }
.faq-item.open { border-color: var(--accent); }
.legal-shell { padding-block: clamp(38px, 6vw, 84px); }
.legal-card { border-color: var(--line); }

@media (min-width: 981px) and (max-height: 1050px) {
    .pricing-hero { padding: clamp(8px, 1.2svh, 18px) 0 4px; }
    .pricing-hero .back-link { margin-bottom: 8px; }
    .pricing-hero .section-head { margin-bottom: 0 !important; }
    .pricing-hero .section-tag { margin-bottom: 8px; }
    .pricing-hero .section-title { margin-bottom: 6px; font-size: clamp(38px, 3.2vw, 48px); }
    .pricing-hero .section-sub { max-width: 780px; font-size: 14px; line-height: 1.5; }
    .pricing-hero .hero-pricing-note { margin-top: 6px; padding-block: 5px; }
    .pricing-section { padding: 0 0 32px; }
    .pricing-grid { gap: 12px; }
    .price-card { padding: 14px 18px; }
    .price-card__icon { margin-bottom: 5px; font-size: 26px; }
    .price-card__name { margin-bottom: 8px; font-size: 20px; }
    .price-value { font-size: 38px; }
    .price-currency { font-size: 20px; }
    .price-card__period { margin-bottom: 10px; font-size: 10px; }
    .price-card__desc { margin-bottom: 10px; font-size: 13px; line-height: 1.4; }
    .price-card__features { gap: 5px; margin-bottom: 10px; }
    .price-card__features li { gap: 7px; font-size: 12px; line-height: 1.3; }
    .price-card__for { margin-bottom: 10px; padding: 9px 11px; font-size: 11px; line-height: 1.4; }
    .price-card__for strong { margin-bottom: 2px; font-size: 10px; }
    .price-card__footnote { margin-bottom: 8px; }
    .founder-seats { margin-bottom: 9px; }
    .price-card__btn { min-height: 42px; }
}

@media (max-width: 1040px) {
    .steps, .seo-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero-grid, .demo-layout { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; }
    .badge { position: static; }
    .carousel-wrapper {
        justify-self: center;
        --card-w: min(420px, 82vw);
        --card-h: min(480px, 104vw);
    }
    .demo-controls { min-height: 300px; }
}

@media (max-width: 720px) {
    :root { --landing-header-height: 64px; }
    .nav-inner { min-height: 64px; }
    .logo { font-size: 18px; letter-spacing: -.9px; }
    .nav-actions .btn, .nav-inner > .btn {
        min-height: 40px;
        padding-inline: 12px;
        font-size: 9px;
    }
    .hero { padding-block: 42px 54px; }
    .hero h1 { font-size: clamp(40px, 12vw, 58px); }
    section, .dubs-section { padding-block: 64px; }
    .carousel-wrapper { --card-w: min(278px, 72vw); --card-h: min(390px, 104vw); }
    .arcade-carousel { height: 470px; }
    .landing-voice-tape { padding-block: 13px; }
    .landing-voice-tape-copy { gap: 24px; padding-right: 24px; }
    .landing-voice-tape-copy span { font-size: 14px; }
    .studio-demo { padding: 10px; }
    .offer-wrap, .bonus-wrap { padding: 34px 24px; }
    .footer-inner { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
    .footer-brand, .footer-links, .footer-legal { grid-column: 1; grid-row: auto; justify-self: start; }
    .footer-links { gap: 2px 18px; }
    .footer-legal { white-space: normal; }
}

@media (max-width: 400px) and (max-height: 680px) {
    :root { --landing-header-height: 56px; }
    .nav-inner { min-height: 56px; padding-block: 8px; }
    .nav-actions .btn, .nav-inner > .btn { min-height: 36px; padding-inline: 9px; font-size: 8px; }
    .hero { padding-block: 22px 34px; }
    .hero-grid { gap: 30px; }
    .hero h1 { margin-bottom: 16px; font-size: clamp(32px, 10.2vw, 40px); }
    .hero p.lead { margin-bottom: 18px; font-size: 13px; line-height: 1.5; }
    .hero-ctas { gap: 10px; margin-bottom: 0; }
    .hero .btn { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .landing-title-line, .carousel-wrapper, .landing-voice-tape-track {
        transform: none !important;
        opacity: 1 !important;
        clip-path: none !important;
    }
}

@media (max-width: 560px) {
    .steps, .seo-faq-grid { grid-template-columns: 1fr; }
    .step, .seo-faq-grid article { min-height: 0; }
    .step-num { margin-bottom: 24px; }
    .demo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .step-pill { justify-content: center; padding-inline: 6px; font-size: 8px; }
    .dubs-carousel-wrapper { padding-inline: 24px; }
    .modal { width: calc(100vw - 24px); }
}

@media (max-width: 360px) {
    .nav-login { display: none; }
}
