/* =========================================================================
   Floze Agent — основной CSS (без Tailwind).
   Конвертация всех стилей из React-версии в обычный CSS.
   ========================================================================= */

/* --- Шрифты --- */
@font-face {
    font-family: 'Nebulica';
    src: url('/assets/fonts/Nebulica-ExtraBold.otf') format('opentype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Flex';
    src: url('/assets/fonts/RobotoFlex-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Onest — для кириллических заголовков (Nebulica без кириллицы) */
@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest-cyrillic-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS-переменные (палитра + типографика) --- */
:root {
    --color-cream:         #FFF8F0;
    --color-cream-dark:    #F5EDE3;
    --color-cream-mid:     #FAF3EB;
    --color-brown:         #3D2B1F;
    --color-brown-light:   #5C4033;
    --color-brown-muted:   #8B7355;
    --color-orange:        #FF9959;
    --color-orange-hover:  #FF8040;
    --color-orange-light:  #FFE8D6;
    --color-footer-bg:     #2C1E14;
    --color-footer-text:   #D4C5B5;

    --font-heading: 'Nebulica', 'Onest', ui-sans-serif, system-ui, sans-serif;
    --font-body:    'Roboto Flex', 'Onest', ui-sans-serif, system-ui, sans-serif;
}

/* --- Базовая нормализация --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-brown);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: normal;
    font-variant-ligatures: normal;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
    letter-spacing: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Шрифт заголовков --- */
.font-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-style: normal;
    font-synthesis: none;
}

/* Для русского хедер использует Onest, чтобы не падать в системный sans */
html[lang='ru'] .font-heading {
    font-family: 'Onest', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-style: normal;
    font-synthesis: none;
}

/* --- Контейнер с общими отступами --- */
.site-container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-left: max(1rem, calc(env(safe-area-inset-left, 0px) + 1rem));
    padding-right: max(1rem, calc(env(safe-area-inset-right, 0px) + 1rem));
}

@media (min-width: 640px) {
    .site-container {
        padding-left: max(1.25rem, calc(env(safe-area-inset-left, 0px) + 1.125rem));
        padding-right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 1.125rem));
    }
}

@media (min-width: 1024px) {
    .site-container {
        padding-left: max(1.5rem, calc(env(safe-area-inset-left, 0px) + 1.25rem));
        padding-right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 1.25rem));
    }
}

/* =========================================================================
   Анимации
   ========================================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.anim-delay-100 { animation-delay: 0.1s; }
.anim-delay-200 { animation-delay: 0.2s; }
.anim-delay-300 { animation-delay: 0.3s; }
.anim-delay-400 { animation-delay: 0.4s; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Кнопки
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 9999px;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn--orange {
    background-color: var(--color-orange);
    color: #fff;
}

.btn--orange:hover {
    background-color: var(--color-orange-hover);
    box-shadow: 0 4px 20px rgba(255, 153, 89, 0.35);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .btn--lg {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
}

.btn--xl {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn--lg:hover,
.btn--xl:hover {
    box-shadow: 0 6px 30px rgba(255, 153, 89, 0.4);
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1rem;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================================
   Хедер
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
    background: transparent;
}

.header[data-scrolled='true'] {
    background-color: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.06);
}

.header__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 2rem;
    }
}

.header__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .header__logo {
        grid-column: 1;
        justify-self: start;
    }
}

.header__logo-mascot {
    height: 2.25rem;
    width: 2.25rem;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header__logo-wordmark {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header__logo-text {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-brown);
    transition: transform 0.3s ease;
}

.header__logo:hover .header__logo-mascot,
.header__logo:hover .header__logo-wordmark,
.header__logo:hover .header__logo-text {
    transform: scale(1.05);
}

.header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .header__nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
}

.header__nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brown-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-brown);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .header__right {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }
}

#header-beta-btn {
    display: none;
    min-width: 6.75rem;
    justify-content: center;
}

.header__right .lang-switcher {
    display: inline-flex;
}

@media (min-width: 1024px) {
    #header-beta-btn {
        display: inline-flex;
    }
}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .header__burger {
        display: none;
    }
}

.header__burger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-brown);
    border-radius: 9999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger[data-open='true'] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header__burger[data-open='true'] span:nth-child(2) {
    opacity: 0;
}

.header__burger[data-open='true'] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Мобильное меню --- */
.header__mobile {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header__mobile[data-open='true'] {
    max-height: 24rem;
    opacity: 1;
}

@media (min-width: 1024px) {
    .header__mobile {
        display: none;
    }
}

.header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header__mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-brown-muted);
    transition: color 0.3s ease;
}

.header__mobile-link:hover {
    color: var(--color-brown);
}

.header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

/* --- Языковой переключатель --- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(245, 237, 227, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brown-muted);
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.lang-switcher:hover {
    background-color: var(--color-cream-dark);
    color: var(--color-brown);
}

.lang-switcher__opt {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.lang-switcher__opt.is-active {
    opacity: 1;
    color: var(--color-brown);
    font-weight: 600;
}

.lang-switcher__sep {
    color: rgba(139, 115, 85, 0.4);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    overflow-x: clip;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 7.5rem;
        padding-bottom: 3.5rem;
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 3rem;
        align-items: center;
    }
}

.hero__col-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hero__heading {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    font-size: clamp(1.75rem, 1.2vw + 1.25rem, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-brown);
    margin: 0;
    width: 100%;
}

.hero__heading-line {
    display: block;
}

.hero__desc {
    margin: 1rem 0 0;
    width: 100%;
    max-width: 32rem;
    font-size: clamp(0.9375rem, 0.35vw + 0.82rem, 1.0625rem);
    color: var(--color-brown-muted);
    line-height: 1.55;
}

.hero__cta {
    margin-top: 1.25rem;
    width: 100%;
    align-self: stretch;
}

@media (min-width: 480px) {
    .hero__cta {
        width: auto;
        align-self: flex-start;
    }
}

.hero__subtext {
    margin: 0.75rem 0 0;
    width: 100%;
    max-width: 32rem;
    font-size: 0.8125rem;
    color: rgba(139, 115, 85, 0.7);
    line-height: 1.45;
}

/* --- Hero визуал (монитор) --- */
.hero__col-visual {
    min-width: 0;
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .hero__col-visual {
        max-width: none;
        margin-inline: 0;
    }
}

.hero__monitor-wrap {
    position: relative;
    width: 100%;
}

.hero__monitor {
    position: relative;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 60px rgba(61, 43, 31, 0.12);
    border: 1px solid var(--color-cream-dark);
    overflow: hidden;
}

.hero__monitor-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--color-cream-mid);
    border-bottom: 1px solid rgba(245, 237, 227, 0.5);
}

.hero__monitor-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--color-cream-dark);
    flex-shrink: 0;
}

.hero__monitor-dot--orange {
    background-color: rgba(255, 153, 89, 0.5);
}

.hero__monitor-addr {
    flex: 1;
    margin: 0 0.75rem;
    height: 1.25rem;
    background-color: rgba(245, 237, 227, 0.6);
    border-radius: 9999px;
}

.hero__monitor-screen {
    aspect-ratio: 16 / 10;
    background-image: linear-gradient(to bottom right, var(--color-cream), var(--color-cream-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero__monitor-content {
    text-align: center;
}

.hero__monitor-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background-color: rgba(255, 153, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__monitor-icon img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.hero__monitor-text {
    font-size: 0.875rem;
    color: rgba(139, 115, 85, 0.5);
    font-weight: 500;
    margin: 0;
}

.hero__stand-neck {
    margin: 0 auto;
    width: 5rem;
    height: 1.5rem;
    background-image: linear-gradient(to bottom, var(--color-cream-dark), rgba(245, 237, 227, 0.6));
    border-radius: 0 0 0.5rem 0.5rem;
}

.hero__stand-base {
    margin: 0 auto;
    width: 8rem;
    height: 0.5rem;
    background-color: rgba(245, 237, 227, 0.5);
    border-radius: 9999px;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 153, 89, 0.05);
    pointer-events: none;
    filter: blur(40px);
}

.hero__glow--tr {
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
}

.hero__glow--bl {
    bottom: -0.75rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    filter: blur(48px);
}

@media (min-width: 640px) {
    .hero__glow--tr {
        top: -1.5rem;
        right: -1.5rem;
        width: 6rem;
        height: 6rem;
    }
    .hero__glow--bl {
        bottom: -1rem;
        left: -2rem;
        width: 8rem;
        height: 8rem;
    }
}

/* =========================================================================
   Общая разметка секций
   ========================================================================= */
.section {
    padding-top: clamp(2.75rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section--tinted {
    background-color: rgba(250, 243, 235, 0.5);
}

.section--narrow .section__inner {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

.section__title {
    font-size: clamp(1.625rem, 1vw + 1.25rem, 2.125rem);
    color: var(--color-brown);
    margin: 0 0 1rem;
    line-height: 1.2;
    text-wrap: balance;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-brown-muted);
    margin: 0;
}

.section__text {
    font-size: clamp(1rem, 0.35vw + 0.9rem, 1.0625rem);
    color: var(--color-brown-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Разделитель секций --- */
.section-divider {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

@media (min-width: 640px) {
    .section-divider {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

.section-divider__line {
    height: 1px;
    width: 100%;
    background-color: rgba(61, 43, 31, 0.35);
}

/* =========================================================================
   How it works
   ========================================================================= */
.hiw__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hiw__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .hiw__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hiw__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.hiw__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(245, 237, 227, 0.3);
    box-shadow: 0 2px 20px rgba(61, 43, 31, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hiw__card:hover {
    box-shadow: 0 8px 40px rgba(255, 153, 89, 0.1);
    transform: translateY(-4px);
}

.hiw__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: var(--color-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.hiw__card:hover .hiw__icon {
    transform: scale(1.1);
}

.hiw__icon span {
    font-size: 1.875rem;
    line-height: 1;
}

.hiw__title {
    font-size: 1.25rem;
    color: var(--color-brown);
    margin: 0 0 0.75rem;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    .hiw__title {
        min-height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hiw__text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Видео-блок --- */
.hiw__video-block {
    max-width: 56rem;
    margin: 3rem auto 0;
}

@media (min-width: 640px) {
    .hiw__video-block {
        margin-top: 3.5rem;
    }
}

.hiw__video-title {
    font-size: 1.5rem;
    color: var(--color-brown);
    text-align: center;
    margin: 0 0 2.5rem;
}

@media (min-width: 640px) {
    .hiw__video-title {
        font-size: 1.875rem;
    }
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    background-image: linear-gradient(to bottom right, var(--color-cream-dark), var(--color-cream));
    box-shadow: 0 4px 40px rgba(61, 43, 31, 0.08);
    border: 1px solid rgba(245, 237, 227, 0.4);
    cursor: pointer;
    transition: box-shadow 0.4s ease;
}

.video-placeholder:hover {
    box-shadow: 0 8px 50px rgba(255, 153, 89, 0.12);
}

.video-placeholder__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.video-placeholder__play {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgba(255, 153, 89, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(255, 153, 89, 0.4);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .video-placeholder__play {
    transform: scale(1.1);
}

.video-placeholder__play svg {
    margin-left: 0.25rem;
}

.video-placeholder__main {
    color: var(--color-brown-muted);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

.video-placeholder__sub {
    color: rgba(139, 115, 85, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.video-placeholder__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background-image: linear-gradient(to top, rgba(245, 237, 227, 0.3), transparent);
    display: flex;
    align-items: flex-end;
    padding: 0 1.5rem 0.75rem;
}

.video-placeholder__bar-track {
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background-color: rgba(245, 237, 227, 0.5);
    overflow: hidden;
}

.video-placeholder__bar-fill {
    width: 33%;
    height: 100%;
    background-color: rgba(255, 153, 89, 0.6);
    border-radius: 9999px;
}

/* =========================================================================
   Beta
   ========================================================================= */
.beta__text {
    font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
    color: var(--color-brown-muted);
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 32rem;
}

/* =========================================================================
   Modal
   ========================================================================= */
.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(61, 43, 31, 0.3);
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background-color: var(--color-cream);
    border-radius: 1.5rem;
    box-shadow: 0 16px 80px rgba(61, 43, 31, 0.15);
    padding: 2rem;
}

@media (min-width: 640px) {
    .modal__panel {
        padding: 2.5rem;
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(245, 237, 227, 0.5);
    color: var(--color-brown-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
    background-color: var(--color-cream-dark);
    color: var(--color-brown);
}

.modal__title {
    font-size: 1.5rem;
    color: var(--color-brown);
    margin: 0 0 0.75rem;
}

.modal__desc {
    font-size: 0.875rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal__input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    background-color: #fff;
    border: 1px solid rgba(245, 237, 227, 0.4);
    color: var(--color-brown);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal__input::placeholder {
    color: rgba(139, 115, 85, 0.4);
}

.modal__input:focus {
    outline: none;
    border-color: rgba(255, 153, 89, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 153, 89, 0.1);
}

.modal__input[disabled] {
    opacity: 0.6;
}

.modal__error {
    font-size: 0.875rem;
    color: var(--color-orange-hover);
    margin: 0;
}

.modal__success {
    text-align: center;
    padding: 1.5rem 0;
}

.modal__success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(255, 153, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__success-title {
    font-size: 1.5rem;
    color: var(--color-brown);
    margin: 0 0 0.5rem;
}

.modal__success-text {
    color: var(--color-brown-muted);
    margin: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
    }
}

.footer__col {
    min-width: 0;
}

@media (min-width: 1024px) {
    .footer__col {
        flex: 1;
    }
    .footer__col--brand {
        flex: 1.4;
    }
    .footer__col--contacts {
        max-width: 20rem;
        justify-self: end;
    }
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__brand img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}

.footer__brand-name {
    font-size: 1.125rem;
    color: #fff;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(212, 197, 181, 0.7);
    line-height: 1.6;
    margin: 0;
}

.footer__h {
    font-size: 0.875rem;
    color: #fff;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__h--right {
    text-align: center;
}

@media (min-width: 640px) {
    .footer__h--right {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer__h--right {
        text-align: right;
    }
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__link {
    font-size: 0.875rem;
    color: rgba(212, 197, 181, 0.7);
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: #fff;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .footer__contacts {
        flex-direction: row;
        align-items: stretch;
    }
}

.footer__contact {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(212, 197, 181, 0.9);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer__contact:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(212, 197, 181, 0.5);
    margin: 0;
}

/* =========================================================================
   Юридические страницы (privacy, faq)
   ========================================================================= */
.legal-page {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
    min-height: 50vh;
}

.legal-page__inner {
    max-width: 42rem;
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brown-muted);
    transition: color 0.2s ease;
}

.legal-page__back:hover {
    color: var(--color-orange);
}

.legal-page__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-brown);
    margin: 0 0 1.25rem;
}

.legal-page__placeholder {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-brown-muted);
    margin: 0;
}

/* =========================================================================
   Hero accent
   ========================================================================= */
.hero__accent {
    color: var(--color-orange);
}

/* =========================================================================
   Параграфы внутри section__inner
   ========================================================================= */
.section__text--spaced {
    margin-bottom: 1rem;
}
.section__text--spaced:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   Полоса-тезисы (highlights)
   ========================================================================= */
.highlights {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.highlights__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 2rem;
    margin: 0;
}

.highlights__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-brown-light);
}

.highlights__icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-orange-light);
    color: var(--color-orange-hover);
}

/* =========================================================================
   Шаги (how it works)
   ========================================================================= */
.steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.steps__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 237, 227, 0.5);
    box-shadow: 0 2px 20px rgba(61, 43, 31, 0.04);
}

.steps__num {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background-color: var(--color-orange);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

.steps__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    color: var(--color-brown);
    line-height: 1.3;
}

.steps__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
}

/* =========================================================================
   Возможности (features) — чередующиеся блоки
   ========================================================================= */
.features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.features__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .features__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
    .features__row:nth-child(even) .features__text {
        order: 2;
    }
    .features__row:nth-child(even) .features__visual {
        order: 1;
    }
}

.features__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: var(--color-brown);
    line-height: 1.25;
}

.features__desc {
    margin: 0;
    font-size: 1rem;
    color: var(--color-brown-muted);
    line-height: 1.65;
}

.features__mock {
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    background-image: linear-gradient(to bottom right, var(--color-cream), var(--color-cream-mid));
    border: 1px solid var(--color-cream-dark);
    box-shadow: 0 8px 40px rgba(61, 43, 31, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features__mock-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(139, 115, 85, 0.5);
}

.features__soon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-brown-muted);
}

.features__soon-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    background-color: var(--color-orange-light);
    color: var(--color-orange-hover);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================================
   Чем отличается (why floze)
   ========================================================================= */
.why__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.why__card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 237, 227, 0.5);
    box-shadow: 0 2px 20px rgba(61, 43, 31, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.why__card:hover {
    box-shadow: 0 8px 40px rgba(255, 153, 89, 0.1);
    transform: translateY(-4px);
}

.why__mark {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background-color: var(--color-orange-light);
    color: var(--color-orange-hover);
    margin-bottom: 1rem;
}

.why__title {
    margin: 0 0 0.6rem;
    font-size: 1.1875rem;
    color: var(--color-brown);
    line-height: 1.3;
}

.why__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
}

/* =========================================================================
   Демо
   ========================================================================= */
.demo__frame {
    max-width: 56rem;
    margin: 0 auto;
}

.demo__video {
    width: 100%;
    display: block;
    border-radius: 1.5rem;
}

/* =========================================================================
   FAQ-страница
   ========================================================================= */
.legal-page__lead {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    border: 1px solid rgba(245, 237, 227, 0.7);
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 1.0625rem;
    color: var(--color-brown);
    cursor: pointer;
    list-style: none;
}

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

.faq__q::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-orange);
}

.faq__item[open] .faq__q::after {
    content: '\2013';
}

.faq__a {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: var(--color-brown-muted);
    line-height: 1.65;
}

.faq__cta {
    margin-top: 2.5rem;
    text-align: center;
}

.faq__cta-text {
    margin: 0 0 1rem;
    color: var(--color-brown-muted);
}

/* =========================================================================
   Медиа в визуальных слотах (hero / features)
   ========================================================================= */
.hero__monitor-screen--img {
    padding: 0;
    display: block;
}

.hero__monitor-screen--img picture,
.hero__monitor-screen--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features__mock {
    overflow: hidden;
    padding: 0;
}

.features__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Финальная плашка «Возможностей» без скриншота */
.features__highlight {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 1.5rem;
    background-image: linear-gradient(to bottom right, #fff, var(--color-cream-mid));
    border: 1px solid rgba(245, 237, 227, 0.6);
    box-shadow: 0 2px 20px rgba(61, 43, 31, 0.04);
}

.features__highlight .features__desc {
    max-width: 34rem;
    margin-inline: auto;
}

.features__highlight-icon {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background-color: var(--color-orange-light);
    color: var(--color-orange-hover);
}

/* =========================================================================
   Модалка: согласие, honeypot, captcha
   ========================================================================= */
.modal__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--color-brown-muted);
    line-height: 1.45;
    cursor: pointer;
}

.modal__consent input {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-orange);
}

.modal__consent a {
    color: var(--color-orange-hover);
    text-decoration: underline;
}

/* =========================================================================
   Юридические страницы — контент
   ========================================================================= */
.legal-page__meta {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: rgba(139, 115, 85, 0.8);
}

.legal-page__operator {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: var(--color-brown-muted);
    line-height: 1.6;
}

.legal-section__h {
    font-size: 1.1875rem;
    color: var(--color-brown);
    margin: 1.75rem 0 0.6rem;
    line-height: 1.3;
}

/* Вкладки политик */
.tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    border-bottom: 1px solid rgba(245, 237, 227, 0.8);
}

.tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-brown-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tabs__tab:hover {
    color: var(--color-brown);
    background-color: rgba(245, 237, 227, 0.4);
}

.tabs__tab.is-active {
    color: var(--color-brown);
    border-bottom-color: var(--color-orange);
}

.tabs__badge {
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tabs__badge--active {
    background-color: var(--color-orange-light);
    color: var(--color-orange-hover);
}

.tabs__badge--soon {
    background-color: var(--color-cream-dark);
    color: var(--color-brown-muted);
}

.tabs__panel[hidden] {
    display: none;
}

.legal-section {
    margin-bottom: 0.5rem;
}

.legal-section__text {
    margin: 0;
    color: var(--color-brown-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
