/* ============================================================
   Saport — дизайн в духе Apple / Tesla.
   Системная типографика, полноэкранные секции,
   реалистичные CSS-макеты устройств.
   ============================================================ */

:root {
    --ink: #1d1d1f;
    /* основной текст на светлом */
    --ink-secondary: #6e6e73;
    /* серый Apple */
    --paper: #ffffff;
    --paper-gray: #f5f5f7;
    --dark: #000000;
    --dark-text: #f5f5f7;
    --dark-secondary: #86868b;
    --blue: #0071e3;
    /* кнопки Apple */
    --blue-hover: #0077ed;
    --link: #06c;
    --link-dark: #2997ff;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --header-h: 48px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Inter", "Helvetica Neue", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ============ Типографика ============ */

h1,
h2 {
    letter-spacing: -0.015em;
    line-height: 1.07;
    font-weight: 700;
}

h2 {
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
}

h3 {
    font-size: 1.3125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.center {
    text-align: center;
}

/* Градиентные заголовки — как на продуктовых страницах Apple */
.grad {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.grad-cool {
    background-image: linear-gradient(90deg, #0090f7, #ba62fc 55%, #f2416b 110%);
}

.grad-teal {
    background-image: linear-gradient(90deg, #30d158, #64d2ff 55%, #0a84ff 110%);
}

.grad-blue {
    background-image: linear-gradient(90deg, #0071e3, #bf5af2);
}

/* ============ Шапка ============ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(22, 22, 23, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f5f5f7;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang:hover {
    color: #fff;
}

.nav-cta {
    font-size: 0.75rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
    padding: 5px 14px;
    border-radius: 980px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Бургер — только на мобильных */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-btn span {
    display: block;
    height: 1.5px;
    background: #f5f5f7;
    border-radius: 1px;
    transition: transform 0.35s var(--ease);
}

.menu-open .menu-btn span:nth-child(1) {
    transform: translateY(3.25px) rotate(45deg);
}

.menu-open .menu-btn span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* ============ Мобильное меню (оверлей, как у Apple) ============ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 10, 11, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: calc(var(--header-h) + 36px) 32px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.menu-open .mobile-menu a {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .mobile-menu a:nth-child(1) {
    transition-delay: 0.05s;
}

.menu-open .mobile-menu a:nth-child(2) {
    transition-delay: 0.1s;
}

.menu-open .mobile-menu a:nth-child(3) {
    transition-delay: 0.15s;
}

.menu-open .mobile-menu a:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-open .mobile-menu a:nth-child(5) {
    transition-delay: 0.25s;
}

.menu-open .mobile-menu a:nth-child(6) {
    transition-delay: 0.3s;
}

.menu-open .mobile-menu a:nth-child(7) {
    transition-delay: 0.35s;
}

.mobile-menu .mobile-lang {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--dark-secondary);
    border-bottom: none;
    margin-top: 18px;
}

/* ============ Кнопки и ссылки ============ */

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 400;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition: background 0.3s ease, transform 0.3s var(--ease);
}

.btn:hover {
    background: var(--blue-hover);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.35);
}

.btn:active {
    transform: scale(0.98);
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 1.0625rem;
    color: var(--link);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.panel-dark .link,
.stats .link {
    color: var(--link-dark);
}

.chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    transition: margin-left 0.3s var(--ease);
}

.link:hover .chevron {
    margin-left: 7px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
}

/* ============ Панели ============ */

.panel {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 56px) 22px 72px;
    overflow: hidden;
    position: relative;
}

.panel-auto {
    padding: 110px 0;
    overflow: hidden;
}

.panel-light {
    background: var(--paper);
    color: var(--ink);
}

.panel-gray {
    background: var(--paper-gray);
    color: var(--ink);
}

.panel-dark {
    background: var(--dark);
    color: var(--dark-text);
}

.panel-head {
    width: 100%;
    max-width: 760px;
}

.panel-sub {
    margin-top: 14px;
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ink-secondary);
    letter-spacing: -0.01em;
}

.panel-dark .panel-sub {
    color: var(--dark-secondary);
}

.panel-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 20px;
}

.panel-visual {
    position: relative;
    margin-top: 56px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Свечение позади макетов в тёмных секциях */
.panel-dark .panel-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%);
    width: min(620px, 90vw);
    height: min(620px, 90vw);
    background: radial-gradient(circle,
            rgba(10, 132, 255, 0.30),
            rgba(94, 92, 230, 0.14) 45%,
            transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

#custom .panel-visual::before {
    background: radial-gradient(circle,
            rgba(48, 209, 88, 0.20),
            rgba(10, 132, 255, 0.14) 45%,
            transparent 70%);
}

.panel-visual>* {
    position: relative;
    z-index: 1;
}

/* Нумерованный ярлык над заголовком секции */
.eyebrow {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 12px;
}

.panel-dark .eyebrow {
    color: var(--link-dark);
}

/* Цвет надзаголовка подстраивается под секцию */
.eyebrow.eb-blue {
    color: #2997ff;
}

.eyebrow.eb-indigo {
    color: #0071e3;
}

.eyebrow.eb-purple {
    color: #bf5af2;
}

.eyebrow.eb-teal {
    color: #64d2ff;
}

/* ============ Появление при скролле ============ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

/* ============ Hero: тёмный, со свечением, как страницы iPhone ============ */

.hero {
    background: var(--dark);
    color: var(--dark-text);
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 10vh);
}

/* Мягкий верхний свет */
.hero::before {
    content: "";
    position: absolute;
    top: -22%;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    height: 820px;
    background: radial-gradient(ellipse at center, rgba(10, 132, 255, 0.14), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.375rem, 8.5vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f5f7;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: word-in 0.9s var(--ease) forwards;
}

.hero-word:nth-child(1) {
    animation-delay: 0.15s;
}

.hero-word:nth-child(2) {
    animation-delay: 0.35s;
}

.hero-word:nth-child(3) {
    animation-delay: 0.55s;
}

@keyframes word-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    margin-top: 16px;
    font-size: clamp(1.1875rem, 2.5vw, 1.75rem);
    color: var(--dark-secondary);
    letter-spacing: -0.015em;
    opacity: 0;
    animation: word-in 0.9s var(--ease) 0.8s forwards;
}

.hero .link {
    color: var(--link-dark);
}

.hero .actions {
    opacity: 0;
    animation: word-in 0.9s var(--ease) 1s forwards;
}

.hero-visual {
    position: relative;
    margin-top: 64px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    animation: visual-in 1.2s var(--ease) 1.1s forwards;
}

/* Цветное свечение позади устройств */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -10% -14%;
    background: radial-gradient(ellipse at 50% 55%,
            rgba(10, 132, 255, 0.34),
            rgba(94, 92, 230, 0.18) 45%,
            transparent 72%);
    filter: blur(46px);
    pointer-events: none;
}

.hero-visual>* {
    position: relative;
    z-index: 1;
}

@keyframes visual-in {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
    }

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

.hero-browser {
    width: min(680px, 78vw);
}

.hero-phone {
    width: 250px;
    margin-left: -84px;
    margin-top: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.55));
}

/* В маленьком hero-телефоне суммам не хватает места — имена важнее */
.hero-phone .app-row em {
    display: none;
}

/* ============ Макет: окно браузера ============ */

.device-browser {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 30px 80px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    text-align: left;
}

.panel-dark .device-browser {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 40px 100px rgba(0, 0, 0, 0.6);
}

.browser-lg,
.dashboard {
    width: min(860px, 94vw);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #f6f6f8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d9d9de;
    flex-shrink: 0;
}

.browser-bar .dot:nth-child(1) {
    background: #ff5f57;
}

.browser-bar .dot:nth-child(2) {
    background: #febc2e;
}

.browser-bar .dot:nth-child(3) {
    background: #28c840;
}

.browser-url {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.6875rem;
    color: #86868b;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 7px;
    padding: 4px 12px;
}

.browser-body {
    padding: 22px 34px 32px;
}

/* --- Мини-сайт внутри браузера --- */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink);
}

.site-logo i {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: var(--ink);
}

.site-links {
    display: flex;
    gap: 18px;
}

.site-links i {
    font-style: normal;
    font-size: 0.6875rem;
    color: var(--ink-secondary);
}

.site-nav-btn {
    font-size: 0.6875rem;
    color: #fff;
    background: var(--blue);
    padding: 4px 12px;
    border-radius: 980px;
}

.site-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 30px 20px 28px;
}

.site-hero strong {
    font-size: clamp(1.125rem, 2.4vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.site-hero>span {
    font-size: 0.8125rem;
    color: var(--ink-secondary);
    max-width: 360px;
}

.site-btn {
    font-size: 0.75rem;
    color: #fff;
    background: var(--blue);
    padding: 7px 18px;
    border-radius: 980px;
    margin-top: 6px;
}

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

.site-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--paper-gray);
    border-radius: 14px;
    padding: 16px 15px;
}

.sc-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sc-icon.c1 {
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
}

.sc-icon.c2 {
    background: linear-gradient(135deg, #bf5af2, #ff375f);
}

.sc-icon.c3 {
    background: linear-gradient(135deg, #30d158, #64d2ff);
}

.site-card b {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

.site-card u {
    text-decoration: none;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--ink-secondary);
}

/* ============ Макет: iPhone ============ */

.device-phone {
    background: #1d1d1f;
    border-radius: 44px;
    padding: 9px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
    text-align: left;
}

.phone-lg {
    width: min(310px, 80vw);
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
}

.phone-screen {
    position: relative;
    background: #f7f7fa;
    border-radius: 36px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
    padding: 44px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.phone-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    height: 19px;
    border-radius: 12px;
    background: #000;
    z-index: 3;
}

/* --- Приложение внутри телефона --- */

.app-status {
    position: absolute;
    top: 12px;
    left: 20px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
}

.app-status b {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.app-header span {
    display: flex;
    flex-direction: column;
}

.app-header u {
    text-decoration: none;
    font-size: 0.6875rem;
    color: var(--ink-secondary);
}

.app-header b {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.app-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    border-radius: 18px;
    padding: 14px 16px 15px;
    color: #fff;
    flex-shrink: 0;
}

.app-card u {
    text-decoration: none;
    font-size: 0.6875rem;
    opacity: 0.8;
}

.app-card b {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-card span {
    font-size: 0.6875rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Пара мини-плиток под карточкой выручки */
.app-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    flex-shrink: 0;
}

.app-tiles span {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 9px 12px 10px;
}

.app-tiles b {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.app-tiles u {
    text-decoration: none;
    font-size: 0.625rem;
    color: var(--ink-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-caption {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-top: 2px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 9px 11px;
    opacity: 0;
    transform: translateX(24px);
}

/* Строки въезжают по очереди, когда секция видна */
.visible .app-row,
.hero-visual .app-row {
    animation: row-in 0.6s var(--ease) forwards;
}

.app-row:nth-of-type(1) {
    animation-delay: 0.5s;
}

.app-row:nth-of-type(2) {
    animation-delay: 0.65s;
}

.app-row:nth-of-type(3) {
    animation-delay: 0.8s;
}

.app-row:nth-of-type(4) {
    animation-delay: 0.95s;
}

@keyframes row-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-ava {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-ava.c1 {
    background: #0a84ff;
}

.app-ava.c2 {
    background: #5e5ce6;
}

.app-ava.c3 {
    background: #ff375f;
}

.app-ava.c4 {
    background: #30d158;
}

.app-row span {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.app-row b {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row u {
    text-decoration: none;
    font-size: 0.625rem;
    color: var(--ink-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row em {
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.phone-screen .app-tabbar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 9px 8px 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-tabbar svg {
    width: 21px;
    height: 21px;
    color: #a6a6ad;
}

.app-tabbar svg.active {
    color: var(--blue);
}

/* ============ Макет: CRM-дашборд ============ */

.dash-body {
    display: flex;
    min-height: 360px;
    background: #fbfbfd;
}

.dash-side {
    width: 168px;
    background: #f6f6f8;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ink);
    padding: 4px 8px 14px;
    white-space: nowrap;
}

.dash-logo i {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    background: var(--ink);
    flex-shrink: 0;
}

.side-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 7px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.side-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.side-item.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dash-main {
    flex: 1;
    padding: 20px 24px 24px;
    min-width: 0;
}

.dash-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dash-top b {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dash-top u {
    text-decoration: none;
    font-size: 0.6875rem;
    color: var(--ink-secondary);
}

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

.tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
}

.tile u {
    text-decoration: none;
    font-size: 0.625rem;
    color: var(--ink-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile b {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.tile em {
    font-style: normal;
    font-size: 0.625rem;
    color: var(--ink-secondary);
}

.tile em.up {
    color: #1d7a3d;
}

/* Столбики диаграммы вырастают при появлении секции */
.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 118px;
    margin-top: 16px;
    padding: 0 2px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.chart-col i {
    display: block;
    width: 58%;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #0a84ff, #5e5ce6);
    transform: scaleY(0);
    transform-origin: bottom;
}

.visible .chart-col i {
    animation: bar-grow 0.9s var(--ease) forwards;
}

.chart-col:nth-child(1) i {
    animation-delay: 0.4s;
}

.chart-col:nth-child(2) i {
    animation-delay: 0.5s;
}

.chart-col:nth-child(3) i {
    animation-delay: 0.6s;
}

.chart-col:nth-child(4) i {
    animation-delay: 0.7s;
}

.chart-col:nth-child(5) i {
    animation-delay: 0.8s;
}

.chart-col:nth-child(6) i {
    animation-delay: 0.9s;
}

.chart-col:nth-child(7) i {
    animation-delay: 1s;
}

@keyframes bar-grow {
    to {
        transform: scaleY(1);
    }
}

.chart-col u {
    text-decoration: none;
    font-size: 0.5625rem;
    color: var(--ink-secondary);
    text-align: center;
}

.dash-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 9px 14px;
}

.dash-row b {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink);
    width: 32%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-row u {
    text-decoration: none;
    font-size: 0.6875rem;
    color: var(--ink-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip {
    font-style: normal;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 980px;
    white-space: nowrap;
}

.chip.new {
    background: #e8f2ff;
    color: #0071e3;
}

.chip.work {
    background: #fff3e0;
    color: #b25000;
}

.chip.done {
    background: #e8f9ee;
    color: #1d7a3d;
}

.dash-row em {
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

/* ============ Макет: окно кода ============ */

.device-code {
    width: min(680px, 94vw);
    background: #1f1f24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #2a2a30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-bar .dot {
    background: #48484a;
}

.code-title {
    margin: 0 auto;
    font-size: 0.6875rem;
    color: #98989d;
}

.code-body {
    padding: 24px 26px 28px;
    font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    overflow-x: auto;
}

.code-line {
    white-space: pre;
    opacity: 0;
    transform: translateX(-14px);
}

/* Строки кода печатаются по очереди */
.visible .code-line {
    animation: row-in 0.5s var(--ease) forwards;
}

.code-line:nth-child(1) {
    animation-delay: 0.35s;
}

.code-line:nth-child(2) {
    animation-delay: 0.45s;
}

.code-line:nth-child(3) {
    animation-delay: 0.55s;
}

.code-line:nth-child(4) {
    animation-delay: 0.65s;
}

.code-line:nth-child(5) {
    animation-delay: 0.75s;
}

.code-line:nth-child(6) {
    animation-delay: 0.85s;
}

.code-line:nth-child(7) {
    animation-delay: 0.95s;
}

.code-line:nth-child(8) {
    animation-delay: 1.05s;
}

.code-line:nth-child(9) {
    animation-delay: 1.15s;
}

.code-line:nth-child(10) {
    animation-delay: 1.25s;
}

/* Подсветка в духе Xcode (тёмная тема) */
.t-k {
    color: #fc5fa3;
}

/* ключевые слова */
.t-t {
    color: #5dd8ff;
}

/* типы */
.t-f {
    color: #a167e6;
}

/* функции */
.t-s {
    color: #fc6a5d;
}

/* строки */
.t-c {
    color: #6c7986;
}

/* комментарии */

.caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    vertical-align: text-bottom;
    background: #f5f5f7;
    animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
    50% {
        opacity: 0;
    }
}

/* ============ Бегущая строка технологий ============ */

.marquee-strip {
    background: var(--paper);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 24px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-track span {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #a1a1a6;
    white-space: nowrap;
    margin-right: 56px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ============ Процесс: bento-плитки ============ */

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 64px;
}

.step {
    text-align: left;
    background: var(--paper-gray);
    border-radius: 28px;
    padding: 40px 38px 42px;
    transition: transform 0.5s var(--ease);
}

.step.visible:hover {
    transform: scale(1.015);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.07);
}

.step-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--blue);
    margin-bottom: 18px;
}

.step-icon svg {
    width: 21px;
    height: 21px;
}

.step-num {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
}

.step h3 {
    font-size: 1.75rem;
    letter-spacing: -0.015em;
}

.step p {
    margin-top: 10px;
    font-size: 1.0625rem;
    color: var(--ink-secondary);
    line-height: 1.5;
    max-width: 380px;
}

/* ============ Цифры ============ */

.stats {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid .stat {
    padding: 8px 24px;
}

.stats-grid .stat:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-value {
    display: block;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background-image: linear-gradient(90deg, #2997ff, #a972ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    display: block;
    margin-top: 12px;
    font-size: 1.0625rem;
    color: var(--dark-secondary);
    letter-spacing: -0.01em;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 88px;
    padding-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.why-grid p {
    position: relative;
    font-size: 0.9375rem;
    color: var(--dark-secondary);
    line-height: 1.55;
    text-align: left;
    padding-left: 28px;
}

/* Синяя галочка перед каждым аргументом */
.why-grid p::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--link-dark);
    border-bottom: 2px solid var(--link-dark);
    transform: rotate(-45deg);
}

/* ============ CTA ============ */

.cta {
    min-height: 88vh;
}

/* Мягкое свечение снизу */
.cta::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -42%;
    transform: translateX(-50%);
    width: 1150px;
    height: 760px;
    background: radial-gradient(ellipse at center,
            rgba(0, 113, 227, 0.10),
            rgba(191, 90, 242, 0.05) 45%,
            transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.cta .panel-head {
    position: relative;
}

.cta h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

/* ============ Подвал ============ */

.footer {
    background: var(--paper-gray);
    border-top: 1px solid #d2d2d7;
    padding: 22px 0 28px;
}

.footer-note {
    font-size: 0.75rem;
    color: #86868b;
    line-height: 1.55;
    max-width: 680px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
    margin-bottom: 16px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--ink-secondary);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.footer a {
    color: var(--ink-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--ink);
}

/* ============ Адаптив ============ */

@media (max-width: 900px) {
    .hero-phone {
        display: none;
    }

    .hero-browser {
        width: min(680px, 94vw);
    }

    .panel-auto {
        padding: 90px 0;
    }
}

@media (max-width: 734px) {

    /* Шапка: бургер вместо навигации */
    .nav,
    .lang {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    /* Полноэкранность оставляем только hero и CTA */
    .panel {
        min-height: 0;
        padding: 96px 20px 84px;
    }

    .hero {
        /* На всю высоту экрана, но без гигантской пустоты на высоких вьюпортах */
        min-height: min(100svh, 860px);
        padding-top: calc(var(--header-h) + 48px);
        padding-bottom: 56px;
    }

    .hero-visual {
        margin-top: 48px;
    }

    .panel-visual {
        margin-top: 44px;
    }

    .actions {
        flex-direction: column;
        gap: 18px;
    }

    /* Мини-сайт в браузере */
    .browser-body {
        padding: 16px 18px 20px;
    }

    .site-links {
        display: none;
    }

    .site-hero {
        padding: 22px 8px 20px;
    }

    .site-cards {
        gap: 8px;
    }

    .site-card {
        padding: 12px 10px;
    }

    .site-card u {
        display: none;
    }

    /* Телефон */
    .phone-lg {
        width: min(280px, 82vw);
    }

    /* CRM: без сайдбара, компактные плитки */
    .dash-side {
        display: none;
    }

    .dash-main {
        padding: 16px 16px 18px;
    }

    .dash-tiles {
        gap: 8px;
    }

    .tile {
        padding: 10px 11px;
    }

    .tile b {
        font-size: 1rem;
    }

    .dash-row u {
        display: none;
    }

    /* Код */
    .code-body {
        padding: 18px 18px 22px;
        font-size: 0.6875rem;
    }

    /* Сетки */
    .steps {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 44px;
    }

    .step {
        padding: 32px 28px 34px;
        border-radius: 22px;
    }

    .step h3 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid .stat:not(:first-child) {
        border-left: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 60px;
        padding-top: 36px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .marquee-track span {
        font-size: 0.8125rem;
        margin-right: 40px;
    }

    .cta {
        min-height: 0;
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 2.625rem;
    }

    .hero-browser {
        width: 100%;
    }

    .site-nav-btn {
        display: none;
    }

    .dash-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .dash-tiles .tile:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* ============ Пониженная анимация ============ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .hero-word,
    .hero-sub,
    .hero .actions,
    .hero-visual,
    .app-row,
    .code-line {
        opacity: 1;
        transform: none;
    }

    .chart-col i {
        transform: scaleY(1);
    }

    .marquee-track {
        animation: none;
    }
}