/*
 * Стили публичного лендинга dobermoney.ru.
 *
 * Иллюстрации подключаются как background-image блоков .hero__shot,
 * .about__shot и .contacts__shot: размеры задаются через aspect-ratio,
 * поэтому отсутствие файла не влияет на сетку страницы.
 */

/* ------------------------------------------------------------------ fonts */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/unbounded-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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
    --font:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Unbounded', var(--font);

    --bg:          #05060a;
    --card:        #101319;
    --line:        rgba(255, 255, 255, .08);

    --ink:         #ffffff;
    --ink-2:       rgba(255, 255, 255, .74);
    --ink-3:       rgba(255, 255, 255, .5);

    --accent:      #e0854a;
    --ok:          #4ecd6b;
    --no:          #e0574f;
    --glow:        #2f6fe4;

    --shell:       1296px;
    --header-h:    69px;
    /* вынос крайнего столбца кавычек за текст блока, но не за экран */
    --outdent:     calc(-1 * min(62px, max(24px, (100vw - 1296px) / 2)));
    --radius:      22px;

    /* Стеклянная подложка карточек: полупрозрачный слой + блик сверху. */
    --glass:       linear-gradient(150deg, rgba(255,255,255,.06) 0%,
                                           rgba(255,255,255,.015) 45%,
                                           rgba(255,255,255,0) 100%),
                   rgba(18, 22, 30, .55);
    --glass-edge:  inset 0 1px 0 rgba(255, 255, 255, .08);
    --glass-blur:  blur(24px) saturate(135%);
}

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

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

#features { scroll-margin-top: -297px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(var(--shell), 100% - 48px);
    margin-inline: auto;
}

/* Текст для скринридеров и поисковых роботов: не виден глазами, но остаётся
   в потоке документа. clip-path вместо display:none — скрытые через display
   и visibility узлы не читает ни один вспомогательный сервис.
   position:absolute важен: .hero__title — flex-контейнер, и элемент в потоке
   сдвинул бы логотип. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 3.3vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.lead {
    max-width: 860px;
    margin-top: 20px;
    color: var(--ink-3);
    font-size: 16px;
}

.section { padding: 84px 0; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

/* ----------------------------------------------------------------- header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 6, 10, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.logo {
    margin: 0 0 0 -.0696em;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 40px;
    font-size: 15px;
    color: var(--ink-2);
}

.nav a { transition: color .18s; }
.nav a:hover { color: var(--ink); }

/* ----------------------------------------------------------- burger menu */
.burger {
    position: relative;
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--accent);
    transition: transform .25s ease, opacity .15s ease;
}

.burger span:nth-child(1) { top: 9px; }
.burger span:nth-child(2) { top: 17px; left: auto; right: 0; width: 76%; }
.burger span:nth-child(3) { top: 25px; }

/* Открытое меню: три полосы складываются в крестик того же размера. */
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: max(16px, calc((100vw - var(--shell)) / 2));
    z-index: 25;
    display: grid;
    gap: 6px;
    width: min(244px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 62%),
        #0a0c12;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 24px 50px rgba(0, 0, 0, .65);
}

.menu[hidden] { display: none; }

.menu a {
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    transition: border-color .18s, background-color .18s;
}

/* Подсветка только для курсора: на тач-устройствах :hover залипает после тапа. */
@media (hover: hover) and (pointer: fine) {
    .menu a:hover {
        border-color: rgba(224, 133, 74, .5);
        background: rgba(255, 255, 255, .05);
    }
}

body.is-menu-open { overflow: hidden; }

/* ------------------------------------------------------------------- hero */
.hero {
    --hero-title-fs: clamp(38px, 8.3vw, 119px);
    --hero-title-bearing: calc(var(--hero-title-fs) * .0696);
    --hero-title-bearing-end: calc(var(--hero-title-fs) * .038);
    position: relative;
    padding: 0;
    background:
        radial-gradient(120% 100% at 50% 108%, rgba(47, 111, 228, .22) 0%, transparent 62%),
        linear-gradient(180deg, #070b14 0%, #060810 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 68%;
    opacity: .5;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cpolyline points='0,330 90,300 170,340 260,250 350,290 440,190 540,240 640,150 740,205 840,120 940,175 1040,90 1140,140 1200,70' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3Cpolyline points='0,390 110,360 210,375 320,320 430,350 540,300 650,325 760,270 880,300 1000,250 1120,280 1200,240' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E")
        center bottom / 100% 100% no-repeat;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 580px;
    padding-top: 71px;
}

.hero__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 var(--hero-title-bearing-end) 0 calc(-1 * var(--hero-title-bearing));
    color: #eae8fb;
    font-family: var(--font-display);
    font-size: var(--hero-title-fs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}

.hero__gap { flex: 0 0 auto; width: clamp(80px, 15.8vw, 228px); }

/* Ширина и сдвиг подобраны так, чтобы корпус телефона встал ровно в
   .hero__gap между DOBER и MONEY, а кисть ушла под бегущую строку. */
.hero__shot {
    position: absolute;
    z-index: 2;
    top: 57px;
    left: 52.8%;
    transform: translateX(-50%);
    width: clamp(220px, 32vw, 462px);
    aspect-ratio: 476 / 612;
    background: url('img/hero-phone.webp') center / contain no-repeat;
}

.hero__sub {
    margin-top: 26px;
    color: var(--ink-2);
    font-size: clamp(14px, 2.05vw, 17px);
    line-height: 1.55;
}

/* ---------------------------------------------------------------- marquee */
.marquee {
    overflow: hidden;
    padding: 13px 0;
    background: #04050a;
    border-block: 1px solid var(--line);
}

.marquee__track {
    display: flex;
    min-width: 100%;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee__list { display: flex; align-items: center; }

.marquee__list li {
    padding: 0 18px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee__list li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 36px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

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

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

/* ------------------------------------------------------------------ about */
.about {
    position: relative;
    padding: 88px 0 72px;
    background:
        radial-gradient(70% 80% at 84% 34%, rgba(47, 111, 228, .18) 0%, transparent 66%),
        linear-gradient(180deg, #070c16 0%, #060810 62%, var(--bg) 100%);
    overflow: hidden;
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: center;
    gap: 48px;
    min-height: 700px;
}

.about__text p {
    margin-top: 20px;
    max-width: 660px;
    color: var(--ink-3);
    font-size: 16px;
    line-height: 1.72;
}

.about__text > p:first-of-type { margin-top: 30px; }

.about__shot {
    position: absolute;
    right: clamp(-92px, -6.4vw, -50px);
    bottom: 0;
    width: clamp(300px, 38vw, 545px);
    aspect-ratio: 642 / 962;
    background: url('img/about-phone.webp') center / contain no-repeat;
}

/* декоративная лесенка точек */
.dots {
    display: grid;
    grid-template-columns: repeat(3, 17px);
    gap: 21px 45px;
    width: max-content;
}

.dots i {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent);
}

/* закрывающая кавычка — под сеткой «Особенностей», прижата вправо */
.dots i:nth-child(1) { grid-area: 1 / 3; opacity: .26; }
.dots i:nth-child(2) { grid-area: 2 / 2; opacity: .34; }
.dots i:nth-child(3) { grid-area: 2 / 3; opacity: .30; }
.dots i:nth-child(4) { grid-area: 3 / 1; opacity: .52; }
.dots i:nth-child(5) { grid-area: 3 / 2; opacity: .40; }
.dots i:nth-child(6) { grid-area: 3 / 3; opacity: .34; }

.dots--right { margin: 46px var(--outdent) 0 auto; }

/* открывающая кавычка — над заголовком «Что нас отличает от других?» */
.dots--open { margin: 114px 0 46px var(--outdent); }

.dots--open i:nth-child(1) { grid-area: 1 / 1; opacity: .34; }
.dots--open i:nth-child(2) { grid-area: 1 / 2; opacity: .40; }
.dots--open i:nth-child(3) { grid-area: 1 / 3; opacity: .52; }
.dots--open i:nth-child(4) { grid-area: 2 / 1; opacity: .30; }
.dots--open i:nth-child(5) { grid-area: 2 / 2; opacity: .34; }
.dots--open i:nth-child(6) { grid-area: 3 / 1; opacity: .26; }

/* --------------------------------------------------------------- features */
.features { margin-top: 40px; }

.card {
    padding: 36px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), 0 18px 44px rgba(0, 0, 0, .32);
}

.card--flat { padding: 26px 30px; }

.card--center { text-align: center; }

.card h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.32;
}

.card--center p {
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.7;
}

.feat-icon {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.icon {
    width: 26px;
    height: 26px;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------------- pricing */
.section--pricing {
    background: radial-gradient(70% 55% at 50% 45%, rgba(47, 111, 228, .14) 0%, transparent 70%);
}

.notes {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.notes li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ink-3);
    font-size: 14px;
}

.notes li::before {
    content: '';
    flex: 0 0 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.plans { margin-top: 40px; }

.plan { position: relative; }

.plan--premium {
    border-color: rgba(94, 152, 255, .5);
    background:
        linear-gradient(150deg, rgba(130, 175, 255, .12) 0%,
                                rgba(80, 130, 235, .04) 45%,
                                rgba(255, 255, 255, 0) 100%),
        rgba(11, 19, 36, .55);
    box-shadow:
        inset 0 1px 0 rgba(170, 205, 255, .18),
        0 0 0 1px rgba(94, 152, 255, .16),
        0 0 64px rgba(47, 111, 228, .34);
}

.badge {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--accent);
    color: #14100c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.plan__name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.plan__price {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.plan__price--accent { color: var(--accent); }

.plan__note { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; }

.plan__group {
    margin-top: 30px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.feats {
    --feat-size: 20px;
    margin-top: 14px;
    display: grid;
    gap: 11px;
}

.feats li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.feats li::before {
    content: '';
    flex: 0 0 var(--feat-size);
    height: var(--feat-size);
    background-color: var(--feat-color);
    -webkit-mask: var(--feat-icon) no-repeat center / var(--feat-size) var(--feat-size);
    mask: var(--feat-icon) no-repeat center / var(--feat-size) var(--feat-size);
}

.feats .is-yes {
    --feat-color: var(--ok);
    --feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.6 9.3 17.4 4 12.1'/%3E%3C/svg%3E");
}

.feats .is-no {
    --feat-color: var(--no);
    --feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M5.9 18.1 18.1 5.9'/%3E%3C/svg%3E");
}

.feats .is-limit {
    --feat-color: var(--accent);
    --feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='7.9' r='1.35' fill='black'/%3E%3Cpath d='M12 11.3v5.3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.feats .is-no, .feats .is-limit { color: var(--ink-3); }

/* --------------------------------------------------------------------- ai */
.ai { margin-top: 34px; }

/* --------------------------------------------------------------- contacts */
.contacts {
    position: relative;
    background: radial-gradient(70% 80% at 72% 50%, rgba(47, 111, 228, .14) 0%, transparent 65%);
}

.contacts__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 48px;
}

.links {
    margin-top: 34px;
    display: grid;
    gap: 14px;
    max-width: 620px;
}

.links a {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    transition: border-color .18s, transform .18s;
}

.links a:hover {
    border-color: rgba(224, 133, 74, .5);
    transform: translateX(3px);
}

.contacts__shot {
    width: min(100%, 430px);
    margin-inline: auto;
    aspect-ratio: 472 / 741;
    background: url('img/dober-support.webp') center / contain no-repeat;
}

/* -------------------------------------------------------------------- cta */
.cta {
    position: relative;
    padding: 48px 0 104px;
    text-align: center;
    background: radial-gradient(50% 70% at 50% 45%, rgba(47, 111, 228, .16) 0%, transparent 70%);
}

.cta__line {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.6vw, 64px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}

.cta__line--accent {
    color: var(--accent);
    font-style: italic;
}

/* ----------------------------------------------------------------- footer */
.footer {
    padding: 48px 0 52px;
    background: #08090d;
    border-top: 1px solid var(--line);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
}

.footer__inner > :nth-child(2) { justify-self: center; }
.footer__inner > :nth-child(3) { justify-self: end; }

.footer .logo { font-size: 18px; }

.footer__req {
    margin-top: 5px;
    color: var(--ink-3);
    font-size: 13px;
}

.footer__req:first-of-type { margin-top: 30px; }

.footer__title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.footer nav a {
    display: block;
    margin-top: 9px;
    color: var(--ink-3);
    font-size: 14px;
    transition: color .18s;
}

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

/* ---------------------------------------------------------------- cookies */
.cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: min(var(--shell), 100% - 32px);
    margin-inline: auto;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), 0 26px 60px rgba(0, 0, 0, .6);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
}

.cookies.is-dismissed {
    visibility: hidden;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .cookies { animation: cookies-in .32s ease-out backwards; }
}

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

.cookies__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookies__note {
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.55;
}

.cookies__note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookies__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookies__btn {
    padding: 12px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s, background-color .18s;
}

.cookies__btn--accept {
    border-color: transparent;
    background: var(--accent);
    color: #0b0c10;
}

.cookies__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.cookies__btn--accept:focus-visible { outline-color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
    .cookies__btn:hover {
        border-color: rgba(224, 133, 74, .5);
        background: rgba(255, 255, 255, .09);
    }
    .cookies__btn--accept:hover {
        border-color: transparent;
        background: #ec9459;
    }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
    .about__inner,
    .contacts__inner { grid-template-columns: minmax(0, 1fr); }

    .about__shot,
    .contacts__shot { max-width: 320px; margin-inline: auto; }

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

    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__inner > :nth-child(2),
    .footer__inner > :nth-child(3) { justify-self: start; }

    .cookies__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Мобильный макет: одна колонка, контент по центру, навигация — в бургер-меню. */
@media (max-width: 700px) {
    .container { width: min(var(--shell), 100% - 32px); }

    .nav { display: none; }
    .burger { display: flex; }

    :root { --header-h: 61px; }
    .header__inner { height: 60px; }
    .logo { font-size: 17px; }

    .section { padding: 56px 0; }
    #features { scroll-margin-top: 0; }

    .h2 { font-size: clamp(23px, 7.2vw, 30px); text-align: center; }
    .lead { margin-inline: auto; text-align: center; font-size: 14px; }
    .dots { display: none; }

    /* hero */
    /* В макете порядок иной, чем на десктопе: заголовок, подзаголовок, экран. */
    .hero__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-top: 34px;
        text-align: center;
    }
    .hero__sub { order: 1; }
    .hero__shot { order: 2; }
    .hero__title {
        flex-direction: column;
        gap: 2px;
        margin-inline: 0;
        font-size: clamp(36px, 12.6vw, 52px);
    }
    .hero__gap { display: none; }
    .hero__shot {
        --w: min(62vw, 240px);
        position: static;
        transform: none;
        width: var(--w);
        height: calc(var(--w) * 1.131);
        aspect-ratio: auto;
        margin: 24px auto 0;
        background-size: 100% auto;
        background-position: top center;
    }
    .hero__sub { margin-top: 16px; font-size: 14px; }

    .marquee { padding: 11px 0; }
    .marquee__list li { padding: 0 13px; font-size: 10px; }
    .marquee__list li::before { margin-right: 26px; }

    /* «Больше, чем трекер финансов» */
    .about {
        padding: 56px 0 0;
        text-align: center;
    }
    .about__inner { gap: 0; min-height: 0; }
    .about__text p {
        max-width: none;
        margin-top: 16px;
        font-size: 14px;
    }
    .about__text > p:first-of-type { margin-top: 20px; }
    .about__shot {
        --w: min(78vw, 300px);
        position: static;
        width: var(--w);
        max-width: none;
        margin: 26px calc(var(--w) * -.22) 0 auto;
    }

    /* карточки */
    .features, .ai, .plans { margin-top: 26px; }
    .card { padding: 26px 20px; }
    .card--flat { padding: 20px; }
    .card h3 { font-size: 18px; }
    .card--center p { font-size: 13.5px; }
    .feat-icon { width: 56px; height: 56px; margin-bottom: 16px; }

    .notes { margin-top: 20px; }
    .notes li { font-size: 13px; }
    .plan__price { font-size: 38px; }
    .badge { top: 24px; right: 22px; }
    .feats { --feat-size: 18px; }
    .feats li { font-size: 13px; }

    /* контакты */
    .contacts__inner { gap: 0; }
    .contacts__shot {
        width: min(72vw, 280px);
        max-width: none;
        margin: 24px auto 0;
        order: -1;
    }
    .links { max-width: none; margin-top: 24px; }
    .links a { gap: 16px; padding: 14px 18px; font-size: 15px; }

    /* CTA и футер */
    .cta { padding: 40px 0 64px; }
    .cta__line { font-size: clamp(20px, 6.9vw, 28px); }

    .footer { padding: 34px 0 40px; }
    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        text-align: center;
    }
    .footer__inner > :nth-child(2),
    .footer__inner > :nth-child(3) { justify-self: center; }
    .footer__nav { display: none; }
    .footer .logo { font-size: 16px; }
    .footer__req:first-of-type { margin-top: 8px; }
    .footer__title { margin: 22px 0 10px; font-size: 13px; }
    .footer nav a { margin-top: 6px; font-size: 12.5px; }

    /* cookies */
    .cookies {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 24px);
        padding: 16px 18px;
        border-radius: 18px;
    }
    .cookies__inner { align-items: stretch; gap: 16px; }
    .cookies__note { font-size: 12.5px; }
    .cookies__btn { flex: 1; padding: 12px 14px; font-size: 13.5px; }
}
