/* ============ Базовое ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #2E5BFF;
    --blue-dark: #1E42CC;
    --dark: #0F172A;
    --gray: #64748B;
    --gray-light: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --red: #EF4444;
    --green: #22C55E;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: padding-bottom 0.3s ease;
}

body.has-cookie-banner {
    padding-bottom: 100px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

section[id],
.cta,
.how {
    scroll-margin-top: 90px;
}

/* ============ Анимация появления ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger — карточки появляются по очереди */
.features__grid .feature:nth-child(1) { transition-delay: 0s; }
.features__grid .feature:nth-child(2) { transition-delay: 0.1s; }
.features__grid .feature:nth-child(3) { transition-delay: 0.2s; }
.features__grid .feature:nth-child(4) { transition-delay: 0.3s; }

.why-beta__grid .why-beta__item:nth-child(1) { transition-delay: 0s; }
.why-beta__grid .why-beta__item:nth-child(2) { transition-delay: 0.1s; }
.why-beta__grid .why-beta__item:nth-child(3) { transition-delay: 0.2s; }

.how__grid .how__item:nth-child(1) { transition-delay: 0s; }
.how__grid .how__item:nth-child(2) { transition-delay: 0.1s; }
.how__grid .how__item:nth-child(3) { transition-delay: 0.2s; }
.how__grid .how__item:nth-child(4) { transition-delay: 0.3s; }

.security__grid .security__item:nth-child(1) { transition-delay: 0s; }
.security__grid .security__item:nth-child(2) { transition-delay: 0.1s; }
.security__grid .security__item:nth-child(3) { transition-delay: 0.2s; }

/* ============ Кнопки ============ */
.btn {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(46, 91, 255, 0.15);
}

.btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 91, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 17px;
    width: 100%;
    max-width: 320px;
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 11px 24px;
    font-size: 14px;
    box-shadow: none;
}

.btn--ghost:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.25);
    transform: translateY(-1px);
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(46, 91, 255, 0.15);
    }
    50% {
        box-shadow: 0 2px 24px rgba(46, 91, 255, 0.45);
    }
}

.btn--large {
    animation: cta-pulse 3s ease-in-out infinite;
}

.btn--large:hover,
.btn--large:active {
    animation: none;
}

.cta .btn--large {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .btn--large {
        animation: none;
    }
}

/* ============ Плашка «Приложение запущено» ============ */
.launch-banner {
    background: linear-gradient(90deg, #2E5BFF 0%, #1E42CC 100%);
    color: var(--white);
    font-size: 14px;
    position: relative;
    z-index: 99;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.launch-banner--hidden {
    display: none;
}

.launch-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    position: relative;
    flex-wrap: wrap;
}

.launch-banner__text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.launch-banner__dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    animation: dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1); }
}

.launch-banner__link {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.2s, gap 0.2s;
}

.launch-banner__link:hover {
    border-color: #FFFFFF;
    gap: 10px;
}

.launch-banner__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    opacity: 0.7;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.launch-banner__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ============ Шапка ============ */
.header {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
}

.header__logo-icon {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header__logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1;
    color: var(--dark);
}

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

/* ============ Герой ============ */
.hero {
    padding: 72px 0 80px;
    position: relative;
    background:
        radial-gradient(circle at 85% 15%, rgba(46, 91, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(46, 91, 255, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 16px;
}

.hero__title-accent {
    color: var(--gray);
    position: relative;
    display: inline-block;
}

.hero__title-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
    display: block;
    pointer-events: none;
    opacity: 0.55;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
    max-width: 480px;
    line-height: 1.6;
}

.hero__counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero__counter-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero__features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 460px;
    margin-bottom: 28px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero__feature:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.08);
    transform: translateY(-1px);
}

.hero__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(46, 91, 255, 0.08);
    color: var(--blue);
    flex-shrink: 0;
}

.hero__feature-text {
    line-height: 1.3;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 4px;
}

.btn--large-inline {
    width: auto;
    max-width: none;
}

.btn--ghost-large {
    width: auto;
    max-width: none;
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: none;
    animation: none;
}

.btn--ghost-large:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(46, 91, 255, 0.25);
    transform: translateY(-2px);
    animation: none;
}

.hero__note {
    font-size: 14px;
    color: var(--gray);
    margin-top: 12px;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.phone-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.14));
    animation: phone-breathe 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes phone-breathe {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone-svg {
        animation: none;
    }
}

/* ============ Преимущества (Bento Grid) ============ */
.features {
    padding: 40px 0;
    background: var(--gray-light);
}

.features__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
}

.feature {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(46, 91, 255, 0.08);
    transform: translateY(-2px);
}

.feature--large {
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(46, 91, 255, 0.08);
    color: var(--blue);
    margin-bottom: 16px;
}

.feature--large .feature__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.feature__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature--large .feature__title {
    font-size: 26px;
}

.feature__text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
}

/* ============ Для кого ============ */
.audience {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    text-align: center;
}

.audience__text {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 28px;
}

.audience__tags {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 12px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gray-light);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.tag svg {
    color: var(--blue);
    flex-shrink: 0;
}

.tag:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.1);
}

/* ============ Почему бета ============ */
.why-beta {
    padding: 40px 0;
    background: var(--gray-light);
}

.why-beta__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.why-beta__item {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-beta__item:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(46, 91, 255, 0.08);
    transform: translateY(-2px);
}

.why-beta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(46, 91, 255, 0.08);
    color: var(--blue);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.why-beta__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-beta__text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
    flex: 1;
}

/* ============ Как это работает ============ */
.how {
    padding: 40px 0;
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.how__grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1040px;
}

.how__item {
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.how__grid--4 .how__item {
    padding: 0 4px;
}

.how__number {
    font-size: 72px;
    font-weight: 800;
    color: rgba(46, 91, 255, 0.20);
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: -3px;
}

.how__title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.how__grid--4 .how__title {
    font-size: 18px;
}

.how__text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
}

.how__grid--4 .how__text {
    font-size: 14px;
    line-height: 1.55;
}

.how__cta {
    margin-top: 56px;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.how__cta-note {
    font-size: 14px;
    color: var(--gray);
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

/* ============ Дорожная карта ============ */
.whats-next {
    padding: 40px 0;
    background: var(--gray-light);
}

.roadmap {
    position: relative;
    max-width: 960px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.roadmap__line {
    position: absolute;
    top: 32px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.roadmap__item {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 64px;
}

.roadmap__dot {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    z-index: 2;
}

.roadmap__dot--now {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(46, 91, 255, 0.15);
}

.roadmap__dot--soon {
    border-color: var(--blue);
    background: var(--white);
}

.roadmap__dot--later {
    border-color: var(--border);
    background: var(--white);
}

.roadmap__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.roadmap__badge--now {
    background: rgba(46, 91, 255, 0.1);
    color: var(--blue);
}

.roadmap__badge--soon {
    background: rgba(46, 91, 255, 0.08);
    color: var(--blue);
}

.roadmap__badge--later {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.roadmap__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.roadmap__text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* ============ Безопасность и данные ============ */
.security {
    padding: 40px 0;
}

.security__subtitle {
    font-size: 17px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.security__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.security__item {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.security__item:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(46, 91, 255, 0.08);
    transform: translateY(-2px);
}

.security__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(46, 91, 255, 0.08);
    color: var(--blue);
    margin-bottom: 20px;
}

.security__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.security__text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
}

/* ============ FAQ ============ */
.faq {
    padding: 40px 0;
    background: var(--gray-light);
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 28px;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__question {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    transition: color 0.2s;
}

.faq__question span {
    flex: 1;
    padding-right: 16px;
}

.faq__question:hover {
    color: var(--blue);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--blue);
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(46, 91, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
}

.faq__question:hover::after {
    background: rgba(46, 91, 255, 0.15);
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
    background: rgba(46, 91, 255, 0.15);
}

.faq__answer {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
    max-width: 620px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq__item[open] .faq__answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 0 18px;
}

/* ============ Форма ============ */
.cta {
    padding: 40px 0;
}

.cta__inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.cta__subtitle {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 8px;
}

.cta__urgency {
    font-size: 14px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 28px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 460px;
}

.form input[type="text"],
.form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.12);
}

.form__select {
    width: 100%;
    max-width: 460px;
    padding: 14px 44px 14px 18px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--white);
    color: var(--dark);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form__select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.12);
}

.form__select:invalid,
.form__select option[value=""] {
    color: var(--gray);
}

.form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 460px;
}

.form__radio {
    cursor: pointer;
}

.form__radio input {
    display: none;
}

.form__radio span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.2s;
    background: var(--white);
}

.form__radio input:checked + span {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.form__radio span:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    text-align: left;
    max-width: 460px;
    margin-top: 4px;
}

.form__checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.form__checkbox a {
    color: var(--blue);
    text-decoration: none;
}

.form__checkbox a:hover {
    text-decoration: underline;
}

.cta__note {
    font-size: 14px;
    color: var(--gray);
    margin-top: 20px;
}

.cta__note a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.cta__note a:hover {
    text-decoration: underline;
}

/* ============ Валидация формы ============ */
.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 460px;
}

.form__error {
    display: none;
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
    margin: 0;
    text-align: left;
    padding-left: 4px;
}

.form__error--visible {
    display: block;
}

.form input.form__input--error,
.form select.form__input--error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form input.form__input--error:focus,
.form select.form__input--error:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form input.form__input--valid {
    border-color: var(--green);
}

.form input.form__input--valid:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* ============ Подвал ============ */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
}

.footer__logo-icon {
    height: 32px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer__logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1;
    color: var(--dark);
}

.footer__tagline {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
}

.footer__copy {
    font-size: 14px;
    color: var(--gray);
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 14px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__sep {
    color: var(--gray);
    opacity: 0.5;
}

.footer__link--muted {
    color: var(--gray);
    font-weight: 600;
}

.footer__link--muted:hover {
    color: var(--blue);
}

.footer__share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    margin-left: 4px;
}

.footer__share:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(46, 91, 255, 0.05);
}

/* ============ Плавающая кнопка ============ */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(46, 91, 255, 0.4);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.floating-cta--visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(46, 91, 255, 0.5);
}

/* Показываем только на мобильных */
@media (max-width: 900px) {
    .floating-cta {
        display: inline-flex;
    }
}

/* ============ Куки-баннер ============ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: var(--dark);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.cookie-banner--visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner p {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner .btn {
    background: var(--white);
    color: var(--dark);
    flex-shrink: 0;
    box-shadow: none;
}

.cookie-banner .btn:hover {
    background: var(--gray-light);
    transform: none;
    box-shadow: none;
}

.cookie-banner .btn--ghost-cookie {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner .btn--ghost-cookie:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* ============ Блоки «Спасибо» и «Ошибка» ============ */
.cta__success,
.cta__error {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
}

.cta__success--visible,
.cta__error--visible {
    display: flex;
}

.cta__form-wrap--hidden {
    display: none;
}

.cta__success-icon,
.cta__error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 24px;
}

.cta__success-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.cta__error-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.cta__success-title,
.cta__error-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-align: center;
}

.cta__success-text,
.cta__error-text {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 16px;
}

.cta__success-note {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.cta__success-note a,
.cta__error-text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.cta__success-note a:hover,
.cta__error-text a:hover {
    text-decoration: underline;
}

.cta__error .btn {
    margin-top: 12px;
}

/* ============ Сравнение с альтернативами ============ */
.comparison {
    padding: 40px 0;
    background: var(--gray-light);
}

.comparison__subtitle {
    font-size: 17px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.comparison__table {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.comparison__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.comparison__row:last-child {
    border-bottom: none;
}

.comparison__row--head {
    background: var(--gray-light);
    font-weight: 700;
}

.comparison__row--cta {
    background: var(--gray-light);
    padding: 16px 0;
}

.comparison__cell {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    color: var(--dark);
}

.comparison__cell--label {
    align-items: flex-start;
    text-align: left;
    font-weight: 500;
    padding-left: 24px;
    color: var(--dark);
    font-size: 15px;
}

.comparison__cell--notebook,
.comparison__cell--excel,
.comparison__cell--taymik {
    font-weight: 700;
    font-size: 15px;
    gap: 6px;
}

.comparison__cell--notebook,
.comparison__cell--excel {
    color: var(--gray);
}

.comparison__cell--taymik {
    color: var(--blue);
}

.comparison__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.comparison__icon--brand {
    color: var(--blue);
}

.comparison__name {
    font-size: 14px;
    font-weight: 700;
}

.comparison__cell--yes {
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
}

.comparison__cell--no {
    color: var(--red);
    font-size: 18px;
    font-weight: 700;
    opacity: 0.7;
}

.comparison__cell--partial {
    color: #F59E0B;
    font-size: 20px;
    font-weight: 700;
}

.comparison__cell--highlight {
    background: none;
}

.comparison__row--cta .comparison__cell {
    padding: 0 12px;
}

.comparison__row--cta .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* ============ Мобильная адаптация ============ */
@media (max-width: 900px) {
    .hero {
        padding: 40px 0 48px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero__text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__features {
        grid-template-columns: 1fr 1fr;
        max-width: 420px;
        text-align: left;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        max-width: 240px;
        margin: 0 auto;
    }

    .phone-svg {
        max-width: 240px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .feature--large {
        grid-row: auto;
    }

    .why-beta__grid,
    .security__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .how__grid,
    .how__grid--4 {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .roadmap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .roadmap__line {
        display: none;
    }

    .roadmap__item {
        padding-top: 48px;
    }

    .roadmap__dot {
        top: 8px;
    }

    .section-title {
        font-size: 30px;
    }

    .header__logo-icon {
        height: 32px;
    }

    .header__logo-text {
        font-size: 22px;
    }

    .header__actions .btn--ghost {
        display: none;
    }

    .launch-banner__inner {
        font-size: 13px;
        padding: 8px 16px;
    }

    .launch-banner__text {
        font-size: 13px;
    }

    .btn--small {
        padding: 8px 14px;
        font-size: 13px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .audience__tags {
        grid-template-columns: repeat(3, auto);
        max-width: 540px;
    }
}

@media (max-width: 640px) {
    .comparison__table {
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison__row {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        min-width: 460px;
    }

    .comparison__cell {
        padding: 12px 8px;
        font-size: 13px;
    }

    .comparison__cell--label {
        padding-left: 16px;
        font-size: 13px;
    }

    .comparison__icon svg {
        width: 20px;
        height: 20px;
    }

    .comparison__name {
        font-size: 12px;
    }

    .comparison__cell--yes,
    .comparison__cell--no,
    .comparison__cell--partial {
        font-size: 16px;
    }

    .comparison__row--cta .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    body.has-cookie-banner {
        padding-bottom: 110px;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .hero__title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero__features {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn--large-inline,
    .btn--ghost-large {
        width: 100%;
        max-width: 100%;
    }

    .hero__visual {
        max-width: 200px;
    }

    .phone-svg {
        max-width: 200px;
    }

    .btn--large {
        max-width: 100%;
    }

    .how__grid,
    .how__grid--4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features,
    .audience,
    .why-beta,
    .how,
    .whats-next,
    .security,
    .faq,
    .cta {
        padding: 40px 0;
    }

    .faq__list {
        padding: 4px 16px;
    }

    .faq__question {
        font-size: 15px;
        padding: 16px 0;
    }

    .faq__question::after {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .audience__tags {
        grid-template-columns: repeat(2, auto);
        max-width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 14px 16px;
        gap: 12px;
        max-width: none;
        border-radius: 14px;
    }

    .cookie-banner p {
        font-size: 12px;
        line-height: 1.4;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    .form__radios {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 460px;
    }

    .form__radio span {
        display: block;
        text-align: center;
        padding: 10px 8px;
    }

    .cta__success-title,
    .cta__error-title {
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    .cta__success-icon,
    .cta__error-icon {
        width: 64px;
        height: 64px;
    }

    .cta__success-text,
    .cta__error-text {
        font-size: 15px;
    }

    .floating-cta {
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
        font-size: 14px;
    }
}
/* ============ Текст-примечание под hero CTA ============ */
.hero__note a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.hero__note a:hover {
    text-decoration: underline;
}