/* Тема «ARGELIT Промо» — презентация CMS ARGELIT.
   Цвета — фирменные ARGELIT (как в админке CMS): тёмно-синий #0E1930, синий #0066FF, светлый #F2F4F7, голубой #66A3FF.
   Каждый слайд — <section class="slide slide--{вид} slide--{фон}">, анимация появления — [data-reveal] (включает js/deck.js). */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #0E1930;
    --navy-2: #15244A;
    --navy-3: #091124;
    --blue: #0066FF;
    --blue-2: #0052CC;
    --sky: #66A3FF;
    --ice: #EAF2FF;
    --light: #F2F4F7;
    --white: #FFFFFF;
    --ink: #0E1930;
    --text: #2E3A55;
    --muted: #5B6884;
    --line: #DCE2EC;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 30px 70px -28px rgba(14, 25, 48, .45), 0 10px 24px -14px rgba(14, 25, 48, .3);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    --header: 68px;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1240px;
}

/* ---------- Основа ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font: 400 17px/1.6 var(--font);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--blue);
}

code {
    font-family: var(--mono);
    font-size: .9em;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.site-main:focus {
    outline: none;
}

/* ---------- Шапка ---------- */

.promo-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: var(--header);
    /* Сплошной фон без размытия: размытие под шапкой браузер пересчитывает на каждом кадре прокрутки. */
    background: rgba(14, 25, 48, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-bar .promo-header {
    top: 32px;
}

.promo-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.promo-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.promo-logo__mark {
    display: block;
    width: auto;
    height: 30px;
}

.promo-logo__cms {
    margin-top: 11px;
    color: var(--sky);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .32em;
}

.promo-logo--small .promo-logo__mark {
    height: 22px;
}

.promo-logo--small .promo-logo__cms {
    margin-top: 8px;
    font-size: 10px;
}

.promo-nav {
    display: flex;
    align-items: center;
}

.promo-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.promo-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    color: rgba(242, 244, 247, .78);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}

/* «Текущий» пункт подсвечивает deck.js по открытому слайду (у ссылок вида /#якорь CMS считает текущими все). */
.promo-menu a:hover,
.promo-menu a.is-current {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.promo-menu .promo-menu__cta > a {
    margin-left: 10px;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    font-weight: 650;
    box-shadow: 0 10px 26px -12px rgba(0, 102, 255, .9);
}

.promo-menu .promo-menu__cta > a:hover {
    background: var(--blue-2);
}

.promo-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.promo-nav__icon,
.promo-nav__icon::before,
.promo-nav__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, opacity .25s;
}

.promo-nav__icon {
    position: relative;
}

.promo-nav__icon::before,
.promo-nav__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.promo-nav__icon::before {
    top: -6px;
}

.promo-nav__icon::after {
    top: 6px;
}

.promo-nav__toggle[aria-expanded="true"] .promo-nav__icon {
    background: transparent;
}

.promo-nav__toggle[aria-expanded="true"] .promo-nav__icon::before {
    transform: translateY(6px) rotate(45deg);
}

.promo-nav__toggle[aria-expanded="true"] .promo-nav__icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.promo-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    overflow: hidden;
}

.promo-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--sky));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

/* ---------- Слайды ---------- */

.deck {
    position: relative;
}

.slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header) + 32px) var(--gutter) 56px;
    overflow: hidden;
}

.admin-bar .slide {
    min-height: calc(100svh - 32px);
}

.slide__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

.slide--dark {
    background: var(--navy);
    color: #fff;
}

.slide--blue {
    background: linear-gradient(125deg, var(--navy) 0%, #0A3C9C 52%, var(--blue) 100%);
    color: #fff;
}

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

.slide--white {
    background: var(--white);
    color: var(--ink);
}

/* Сетка и свечение на тёмных слайдах — как на обложке ARGELIT. */
.slide__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.slide--dark .slide__glow {
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(0, 102, 255, .38), transparent 62%),
        radial-gradient(700px 480px at 4% 96%, rgba(102, 163, 255, .14), transparent 60%);
}

.slide--dark .slide__glow::after,
.slide--blue .slide__glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.slide--blue .slide__glow {
    background: radial-gradient(800px 500px at 10% 100%, rgba(102, 163, 255, .35), transparent 60%);
}

.slide--light .slide__glow,
.slide--white .slide__glow {
    background: radial-gradient(800px 460px at 92% 0%, rgba(0, 102, 255, .08), transparent 60%);
}

/* Заголовки слайдов */

.slide-head {
    max-width: 640px;
}

.slide-head--center {
    max-width: 880px;
    margin: 0 auto 40px;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, .16);
}

.slide--dark .kicker,
.slide--blue .kicker {
    color: var(--sky);
}

.slide--dark .kicker::before,
.slide--blue .kicker::before {
    box-shadow: 0 0 0 4px rgba(102, 163, 255, .2);
}

.slide-title {
    margin: 0 0 20px;
    color: inherit;
    font-size: clamp(2rem, 2.9vw + .7rem, 3.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.slide-head--big .slide-title {
    font-size: clamp(2.3rem, 4.4vw + .4rem, 4.5rem);
    line-height: 1.04;
}

.hero .slide-title {
    font-size: clamp(2.4rem, 3.9vw + .6rem, 4.25rem);
    line-height: 1.03;
}

/* Рядом со скриншотом колонка текста уже — заголовок меньше, чтобы уложиться в две-три строки. */
.showcase .slide-title,
.tour .slide-title {
    font-size: clamp(1.9rem, 1.4vw + 1.1rem, 2.6rem);
    line-height: 1.1;
}

.slide-lead {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, .45vw + .95rem, 1.28rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.slide-head--center .slide-lead {
    margin: 0 auto;
}

.slide--dark .slide-lead,
.slide--blue .slide-lead {
    color: rgba(226, 234, 250, .76);
}

/* Кнопки */

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.promo-actions--center {
    justify-content: center;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.promo-btn svg {
    transition: transform .2s;
}

.promo-btn:hover svg {
    transform: translateX(3px);
}

.promo-btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 34px -14px rgba(0, 102, 255, .95);
}

.promo-btn--primary:hover {
    background: var(--blue-2);
    color: #fff;
    transform: translateY(-1px);
}

.promo-btn--outline {
    border-color: var(--line);
    color: var(--ink);
}

.promo-btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.promo-btn--link {
    min-height: 0;
    padding: 14px 6px;
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.slide--dark .promo-btn--outline,
.slide--blue .promo-btn--outline {
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
}

.slide--dark .promo-btn--outline:hover,
.slide--blue .promo-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

.slide--dark .promo-btn--link,
.slide--blue .promo-btn--link {
    color: #fff;
}

.slide--blue .promo-btn--primary {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .55);
}

.slide--blue .promo-btn--primary:hover {
    background: var(--ice);
}

/* ---------- Рамки скриншотов ---------- */

.frame {
    margin: 0;
}

.frame__img {
    display: block;
    width: 100%;
    height: auto;
}

.frame--browser {
    overflow: hidden;
    border: 1px solid rgba(14, 25, 48, .1);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.frame__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid #E1E6EF;
    background: #EEF1F6;
}

.frame__dots {
    display: inline-flex;
    flex: none;
    gap: 6px;
}

.frame__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}

.frame__dots i:nth-child(2) {
    background: #FEBC2E;
}

.frame__dots i:nth-child(3) {
    background: #28C840;
}

.frame__address {
    display: flex;
    flex: 0 1 46%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 22px;
    margin: 0 auto;
    padding: 0 12px;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-24px);
}

.frame__address::before {
    content: "";
    flex: none;
    width: 9px;
    height: 10px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
    -webkit-mask: radial-gradient(circle at 50% 15%, transparent 2.5px, #000 3px) top / 100% 55% no-repeat, linear-gradient(#000, #000) bottom / 100% 55% no-repeat;
    mask: radial-gradient(circle at 50% 15%, transparent 2.5px, #000 3px) top / 100% 55% no-repeat, linear-gradient(#000, #000) bottom / 100% 55% no-repeat;
}

.slide--dark .frame--browser,
.slide--blue .frame--browser {
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(102, 163, 255, .08);
}

.slide--dark .frame__bar,
.slide--blue .frame__bar {
    border-bottom-color: rgba(255, 255, 255, .06);
    background: #18284C;
}

.slide--dark .frame__address,
.slide--blue .frame__address {
    background: #0E1930;
    color: #9DB2DA;
}

.frame--phone {
    width: 100%;
    max-width: 300px;
    padding: 9px;
    border-radius: 40px;
    background: #0B1220;
    box-shadow: var(--shadow), inset 0 0 0 1.5px #2C3A5C;
}

.frame__screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 390 / 844;
    border-radius: 32px;
    background: #fff;
}

.frame__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.frame--plain img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Титульный ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.hero__visual {
    position: relative;
    padding: 0 0 40px 40px;
}

.hero__browser {
    transform: perspective(1800px) rotateY(-9deg) rotateX(3deg);
    transform-origin: left center;
}

.hero__phone {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 27%;
    min-width: 130px;
    transform: rotate(-4deg);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.badges li {
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(226, 234, 250, .85);
    font-size: 14px;
    font-weight: 500;
}

.scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(226, 234, 250, .6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-hint svg {
    animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
    50% {
        transform: translateY(5px);
    }
}

/* ---------- Главная мысль ---------- */

.statement {
    text-align: center;
}

.statement .slide-head--center {
    margin-bottom: 0;
}

.facts {
    display: grid;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 56px auto 0;
    padding: 0;
    list-style: none;
}

.facts__item {
    padding: 22px 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
}

.facts__value {
    display: block;
    color: var(--sky);
    font-size: clamp(1.6rem, 2vw + .8rem, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.facts__label {
    display: block;
    margin-top: 6px;
    color: rgba(226, 234, 250, .7);
    font-size: 15px;
}

/* Факты без подписей — разбросанные ярлычки (слайд «Знакомо?»). */
.facts--chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.facts--chips .facts__item {
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    border-style: dashed;
    border-color: rgba(102, 163, 255, .35);
}

.facts--chips .facts__item:nth-child(odd) {
    transform: rotate(-2.5deg);
}

.facts--chips .facts__item:nth-child(3n) {
    transform: rotate(2deg) translateY(6px);
}

.facts--chips .facts__value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
}

.facts--chips .facts__value::before {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(102, 163, 255, .2);
    color: var(--sky);
    font-size: 15px;
}

.slide--light .facts__item,
.slide--white .facts__item {
    border-color: var(--line);
    background: #fff;
}

.slide--light .facts__value,
.slide--white .facts__value {
    color: var(--blue);
}

.slide--light .facts__label,
.slide--white .facts__label {
    color: var(--muted);
}

/* ---------- Текст и скриншот ---------- */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5.5vw, 80px);
    align-items: center;
}

.showcase--left .showcase__visual {
    order: -1;
}

.showcase--left {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.showcase--phone {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.showcase--phone.showcase--left {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.showcase__visual {
    position: relative;
}

.showcase--phone .showcase__visual {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.showcase--phone .frame--phone {
    max-width: 280px;
}

.showcase--phone .showcase__extra--phone {
    margin-top: 60px;
}

.showcase--duo:not(.showcase--phone) .showcase__visual {
    padding-bottom: 56px;
}

.showcase__extra--browser {
    position: absolute;
    right: -4%;
    bottom: 0;
    width: 52%;
}

.showcase__extra--phone:not(.showcase--phone *) {
    position: absolute;
    bottom: -6%;
    left: -5%;
    width: 30%;
}

.showcase__extra--none {
    position: absolute;
    right: -3%;
    bottom: -4%;
    width: 50%;
}

.showcase__text .slide-head {
    margin-bottom: 26px;
}

.points {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.points__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.5;
}

.points__check {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 9px;
    background: rgba(0, 102, 255, .1);
    color: var(--blue);
}

.points__title {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

.points__text {
    display: block;
    color: var(--muted);
}

.points__text a {
    color: inherit;
}

.slide--dark .points__check,
.slide--blue .points__check {
    background: rgba(102, 163, 255, .16);
    color: var(--sky);
}

.slide--dark .points__title,
.slide--blue .points__title {
    color: #fff;
}

.slide--dark .points__text,
.slide--blue .points__text {
    color: rgba(226, 234, 250, .7);
}

/* ---------- Карточки ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
}

.cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    padding: 26px 26px 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
    border-color: rgba(0, 102, 255, .35);
    box-shadow: 0 24px 50px -30px rgba(14, 25, 48, .4);
    transform: translateY(-3px);
}

.slide--white .card {
    background: var(--light);
    border-color: transparent;
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 102, 255, .12), rgba(102, 163, 255, .2));
    color: var(--blue);
}

.card__title {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.card__text {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
}

.card--photo {
    padding: 0;
}

.card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card--photo .card__body {
    padding: 22px 24px 26px;
}

.slide--dark .card,
.slide--blue .card {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .04);
}

.slide--dark .card:hover,
.slide--blue .card:hover {
    border-color: rgba(102, 163, 255, .4);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7);
}

.slide--dark .card__icon,
.slide--blue .card__icon {
    background: rgba(102, 163, 255, .14);
    color: var(--sky);
}

.slide--dark .card__title,
.slide--blue .card__title {
    color: #fff;
}

.slide--dark .card__text,
.slide--blue .card__text {
    color: rgba(226, 234, 250, .68);
}

/* ---------- Экскурсия по экранам ---------- */

.tour {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
}

.tour__side .slide-head {
    margin-bottom: 24px;
}

.tour__tabs {
    display: grid;
    gap: 6px;
}

.tour__tab {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.tour__tab:hover {
    background: var(--light);
}

.tour__tab[aria-selected="true"] {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 18px 40px -26px rgba(14, 25, 48, .45);
}

.slide--light .tour__tab[aria-selected="true"] {
    border-color: transparent;
}

.tour__icon {
    display: inline-grid;
    grid-row: span 2;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--light);
    color: var(--muted);
    transition: background-color .2s, color .2s;
}

.tour__tab[aria-selected="true"] .tour__icon {
    background: var(--blue);
    color: #fff;
}

.tour__label {
    font-size: 16px;
    font-weight: 700;
}

.tour__text {
    display: none;
    grid-column: 2;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.tour__tab[aria-selected="true"] .tour__text {
    display: block;
}

.tour__panel[hidden] {
    display: none;
}

.tour__panel {
    animation: fade-in .45s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ---------- Шаги ---------- */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    right: calc(100% / var(--n, 4) / 2);
    left: calc(100% / var(--n, 4) / 2);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px);
    opacity: .6;
}

.steps__item {
    position: relative;
    text-align: center;
}

.steps__num {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 0 0 8px var(--ice), 0 16px 30px -12px rgba(0, 102, 255, .8);
}

.slide--light .steps__num {
    box-shadow: 0 0 0 8px var(--light), 0 16px 30px -12px rgba(0, 102, 255, .8);
}

.slide--dark .steps__num,
.slide--blue .steps__num {
    box-shadow: 0 0 0 8px var(--navy-2), 0 16px 30px -12px rgba(0, 0, 0, .6);
}

.steps__title {
    margin: 0 0 8px;
    color: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.steps__text {
    margin: 0 auto;
    max-width: 280px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
}

.slide--dark .steps__text,
.slide--blue .steps__text {
    color: rgba(226, 234, 250, .7);
}

/* ---------- Код ---------- */

.showcase--code {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.code-window {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: #0A1020;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(102, 163, 255, .06);
}

.code-window__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #121C36;
}

.code-window__file {
    padding: 4px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: #B8C7E6;
    font-family: var(--mono);
    font-size: 12.5px;
}

.code-window__code {
    margin: 0;
    padding: 22px 24px 26px;
    overflow: auto;
    color: #D6DFF2;
    font-family: var(--mono);
    font-size: clamp(12.5px, .55vw + 7px, 14.5px);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    line-height: 1.75;
    tab-size: 4;
}

.code-window__code code {
    font-size: inherit;
}

.tok-comment {
    color: #6C80AC;
    font-style: italic;
}

.tok-string {
    color: #A6E9C8;
}

.tok-var {
    color: #FFC879;
}

.tok-kw {
    color: var(--sky);
    font-weight: 600;
}

.tok-call {
    color: #8FB8FF;
}

/* ---------- Сравнение ---------- */

.compare {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.compare__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
}

.compare__table th,
.compare__table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.compare__table thead th {
    border-bottom: 0;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.compare__table tbody th {
    color: var(--ink);
    font-weight: 700;
}

.compare__left {
    color: var(--muted);
}

.compare__right {
    background: var(--ice);
    color: var(--ink);
}

thead .compare__right {
    border-radius: 16px 16px 0 0;
    background: var(--blue);
    color: #fff;
}

tbody tr:last-child .compare__right {
    border-radius: 0 0 16px 16px;
}

td.compare__right {
    font-weight: 600;
}

td.compare__right svg {
    margin: 2px 10px 0 0;
    color: var(--blue);
    vertical-align: -3px;
}

.compare__note {
    max-width: 1000px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 14.5px;
    text-align: center;
}

/* ---------- Призыв ---------- */

.cta .slide-head--center {
    margin-bottom: 0;
}

.cta__note {
    max-width: 720px;
    margin: 30px auto 0;
    color: rgba(226, 234, 250, .7);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.cta__note a {
    color: #fff;
}

/* ---------- Форма связи ---------- */

.showcase--contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.slide--white .contact-card {
    border: 1px solid var(--line);
}

.slide--dark .contact-card {
    color: var(--text);
}

.contact-card .cms-form__form {
    display: grid;
    gap: 16px;
}

.contact-card .cms-form__field {
    margin: 0;
}

.contact-card .cms-form__label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
}

.contact-card .cms-form__input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--light);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.contact-card textarea.cms-form__input {
    min-height: 110px;
    resize: vertical;
}

.contact-card .cms-form__input:focus {
    border-color: var(--blue);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, .14);
}

.contact-card .cms-form__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.contact-card .cms-form__check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue);
}

.contact-card .cms-form__submit {
    margin: 4px 0 0;
}

.contact-card .cms-form__button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 14px 34px -14px rgba(0, 102, 255, .95);
    transition: background-color .2s;
}

.contact-card .cms-form__button:hover {
    background: var(--blue-2);
}

.contact-card .cms-form__success {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--ice);
    color: var(--ink);
    font-weight: 600;
}

.contact-card .cms-form__alert,
.contact-card .cms-form__error {
    margin: 6px 0 0;
    color: #C62828;
    font-size: 14px;
}

.contact-card .has-error .cms-form__input {
    border-color: #E53935;
}

/* ---------- Обычная страница (политика конфиденциальности) ---------- */

.page {
    background: #fff;
}

.page__header {
    padding: calc(var(--header) + 64px) 0 56px;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(0, 102, 255, .35), transparent 60%),
        var(--navy);
    color: #fff;
}

.page__header .kicker {
    color: var(--sky);
}

.page__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.page__title {
    margin: 0;
    font-size: clamp(2rem, 3vw + .8rem, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.page__content {
    padding-top: 48px;
    padding-bottom: 80px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.page__content h2 {
    margin: 2em 0 .6em;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.page__content li + li {
    margin-top: .4em;
}

.page__list {
    padding-left: 1.2em;
}

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

.promo-footer {
    background: var(--navy-3);
    color: rgba(226, 234, 250, .6);
    font-size: 14px;
}

.promo-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px var(--gutter);
}

.promo-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.promo-footer a {
    color: rgba(226, 234, 250, .8);
    text-decoration: none;
}

.promo-footer a:hover {
    color: #fff;
}

.promo-footer__info {
    margin: 0;
}

/* ---------- Управление презентацией ---------- */

.deck-dots {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transform: translateY(-50%);
}

.deck-dots[hidden],
.deck-controls[hidden] {
    display: none;
}

.deck-dots button {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(160, 178, 214, .45);
    cursor: pointer;
    transition: height .25s, background-color .25s;
}

.deck-dots button::before {
    content: "";
    position: absolute;
    inset: -6px;
}

.deck-dots button[aria-current="true"] {
    height: 28px;
    background: var(--blue);
}

.deck-dots button span {
    position: absolute;
    top: 50%;
    right: 22px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .2s, transform .2s;
}

.deck-dots button:hover span,
.deck-dots button:focus-visible span {
    opacity: 1;
    transform: translate(0, -50%);
}

[data-slide-theme="light"] .deck-dots button:not([aria-current="true"]),
[data-slide-theme="white"] .deck-dots button:not([aria-current="true"]) {
    background: rgba(14, 25, 48, .22);
}

.deck-controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(14, 25, 48, .94);
    color: #fff;
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6);
}

.deck-controls__btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color .2s;
}

.deck-controls__btn:hover {
    background: rgba(255, 255, 255, .1);
}

.deck-controls__btn:disabled {
    opacity: .35;
    cursor: default;
}

.deck-controls__counter {
    min-width: 64px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: rgba(226, 234, 250, .7);
}

.deck-controls__counter b {
    color: #fff;
}

.deck-controls__sep {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: rgba(255, 255, 255, .14);
}

/* ---------- Появление при пролистывании ---------- */

.js-deck [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--d, 0) * 70ms);
}

.js-deck [data-reveal="zoom"] {
    transform: translateY(28px) scale(.965);
}

.js-deck .is-visible [data-reveal] {
    opacity: 1;
    transform: none;
}

.js-deck .facts--chips .is-visible .facts__item,
.js-deck .is-visible .facts--chips .facts__item:nth-child(odd) {
    transform: rotate(-2.5deg);
}

.js-deck .is-visible .facts--chips .facts__item:nth-child(3n) {
    transform: rotate(2deg) translateY(6px);
}

/* Невысокие экраны ноутбуков (1366×768, 1440×900): всё плотнее, чтобы слайд помещался целиком. */
@media (min-width: 901px) and (max-height: 920px) {
    .slide {
        padding-top: calc(var(--header) + 22px);
        padding-bottom: 40px;
    }

    .slide-title {
        margin-bottom: 14px;
        font-size: clamp(1.8rem, 2vw + .7rem, 2.8rem);
    }

    .slide-head--big .slide-title {
        font-size: clamp(2.2rem, 3vw + .6rem, 3.7rem);
    }

    .hero .slide-title {
        font-size: clamp(2.2rem, 2.9vw + .7rem, 3.7rem);
    }

    .showcase .slide-title,
    .tour .slide-title {
        font-size: clamp(1.7rem, 1.1vw + 1.05rem, 2.3rem);
    }

    .slide-lead {
        font-size: clamp(1rem, .3vw + .9rem, 1.12rem);
    }

    .slide-head--center {
        margin-bottom: 28px;
    }

    .showcase__text .slide-head {
        margin-bottom: 20px;
    }

    .points {
        gap: 10px;
    }

    .points__item {
        font-size: 15px;
        line-height: 1.45;
    }

    .card {
        padding: 18px 20px 20px;
    }

    .card__icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .card__title {
        font-size: 17px;
    }

    .card__text {
        font-size: 14.5px;
    }

    .card--photo .card__body {
        padding: 16px 20px 20px;
    }

    .card__photo {
        aspect-ratio: 16 / 9;
    }

    .facts {
        margin-top: 36px;
    }

    .promo-actions {
        margin-top: 26px;
    }

    .badges {
        margin-top: 22px;
    }

    .tour__tab {
        padding: 7px 12px;
    }

    .tour__icon {
        width: 34px;
        height: 34px;
    }

    .steps__num {
        margin-bottom: 16px;
    }

    .contact-card {
        padding: 22px 26px;
    }

    .contact-card .cms-form__form {
        gap: 10px;
    }

    .contact-card .cms-form__input {
        min-height: 42px;
        padding: 8px 12px;
    }

    .contact-card textarea.cms-form__input {
        min-height: 76px;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    .slide-lead {
        font-size: .98rem;
    }

    .points__text {
        font-size: 14px;
    }

    .compare__table th,
    .compare__table td {
        padding: 11px 16px;
    }

    .contact-card textarea.cms-form__input {
        min-height: 60px;
    }
}

/* Прокрутка без «прилипания» к слайдам (оно делало её рывками). Плавность колеса, ссылок меню, стрелок и точек
   даёт js/deck.js — одинаково и там, где анимация в системе выключена. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js-deck [data-reveal] {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Планшеты и телефоны ---------- */

@media (max-width: 1100px) {
    .cards--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-menu a {
        padding: 8px 9px;
        font-size: 14.5px;
    }
}

@media (max-width: 900px) {
    :root {
        --header: 62px;
    }

    .promo-nav__toggle {
        display: block;
    }

    .promo-menu {
        position: fixed;
        top: var(--header);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - var(--header));
        padding: 14px var(--gutter) 22px;
        overflow-y: auto;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        background: var(--navy);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    }

    .admin-bar .promo-menu {
        top: calc(var(--header) + 46px);
    }

    .promo-menu.is-open {
        display: flex;
    }

    .promo-menu a {
        padding: 12px 14px;
        font-size: 17px;
    }

    .promo-menu .promo-menu__cta > a {
        margin: 8px 0 0;
        text-align: center;
    }

    .slide {
        min-height: 0;
        padding: calc(var(--header) + 40px) var(--gutter) 64px;
    }

    .slide--hero {
        min-height: 100svh;
    }

    .hero,
    .showcase,
    .showcase--left,
    .showcase--phone,
    .showcase--phone.showcase--left,
    .showcase--code,
    .showcase--contact,
    .tour {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase--left .showcase__visual {
        order: 0;
    }

    .showcase__extra--browser,
    .showcase__extra--none {
        right: 0;
    }

    .hero__visual {
        padding: 0 0 24px 24px;
    }

    .hero__browser {
        transform: none;
    }

    .hero__phone {
        width: 30%;
        min-width: 0;
    }

    .slide-head,
    .slide-lead {
        max-width: none;
    }

    .slide-head--center {
        margin-bottom: 36px;
    }

    .cards,
    .cards--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        max-width: 520px;
        margin: 0 auto;
    }

    .steps::before {
        top: 28px;
        bottom: 28px;
        left: 27px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--sky) 0 8px, transparent 8px 16px);
    }

    .steps__item {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 0 20px;
        text-align: left;
    }

    .steps__num {
        grid-row: span 2;
        margin: 0;
    }

    .steps__text {
        max-width: none;
        margin: 0;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scroll-hint {
        display: none;
    }

    .deck-dots {
        display: none;
    }

    .deck-controls {
        right: 12px;
        bottom: 12px;
    }

    .deck-controls [data-fullscreen],
    .deck-controls [data-print],
    .deck-controls__sep {
        display: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .promo-header {
        top: 46px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .cards,
    .cards--2,
    .cards--4,
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-actions .promo-btn {
        justify-content: center;
        width: 100%;
    }

    .frame__bar {
        height: 26px;
        gap: 8px;
        padding: 0 10px;
    }

    .frame__dots i {
        width: 7px;
        height: 7px;
    }

    .frame__address {
        height: 16px;
        font-size: 10px;
    }

    .showcase--phone .frame--phone {
        max-width: 46%;
    }

    .compare__table th,
    .compare__table td {
        padding: 12px 12px;
        font-size: 14.5px;
    }

    .deck-controls {
        display: none;
    }
}

/* ---------- Печать и PDF: слайд на страницу 16:9 ---------- */

@page {
    size: 13.333in 7.5in;
    margin: 0;
}

@media print {
    body {
        background: #fff;
    }

    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        animation: none !important;
        transition: none !important;
    }

    .promo-header,
    .promo-footer,
    .deck-dots,
    .deck-controls,
    .scroll-hint,
    .skip-link,
    #cms-front-bar {
        display: none !important;
    }

    .slide {
        height: 7.5in;
        min-height: 0 !important;
        padding: .45in .65in;
        break-after: page;
        break-inside: avoid;
        page-break-after: always;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__browser {
        transform: none;
    }
}
