/* ============================================================
   codetimes.ru — чистая пересборка (без движка Tilda)
   Значения сняты с оригинала: reference/styles/computed.json
   Точки перелома унаследованы от Tilda: 640 / 960 / 1360 px
   ============================================================ */

/* --- шрифты (локально, без обращения к CDN Tilda и Google) -----
   Jost 500 — открытая лицензия OFL.
   PT Root UI — проприетарный шрифт ParaType, оригинал отдавал его со своего
   CDN. Если лицензии на него нет, замените --font-body на свободный аналог
   (например "PT Sans" или "Inter") — это одна строка в блоке токенов.        */
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/jost-500-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/jost-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/jost-500-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;
}
@font-face {
    font-family: "PT Root UI";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/PT-Root-UI_Regular.woff2") format("woff2"),
         url("../fonts/PT-Root-UI_Regular.woff") format("woff");
}

/* Страницы политик в оригинале свёрстаны другой парой шрифтов:
   заголовки Ubuntu 400, текст Open Sans 400. Оба — свободная лицензия. */
@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ubuntu-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ubuntu-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ubuntu-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ubuntu-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;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans-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 {
    /* цвета */
    --ink: #111111;
    --ink-soft: rgba(17, 17, 17, .56);
    --hairline: rgba(17, 17, 17, .24);
    --line: #d7d7d7;
    --surface: #ffffff;
    --surface-alt: #f6f7f8;

    /* шрифты */
    --font-title: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "PT Root UI", system-ui, -apple-system, "Segoe UI", sans-serif;
    --w-title: 500;

    /* шкала типографики: размер / высота строки */
    --h2: 28px;   --h2-lh: 36px;
    --h3: 24px;   --h3-lh: 32px;
    --h4: 20px;   --h4-lh: 28px;
    --h5: 16px;   --h5-lh: 24px;
    --p1: 20px;   --p1-lh: 28px;
    --p2: 16px;   --p2-lh: 24px;
    --p3: 14px;   --p3-lh: 20px;
    --d4: 36px;   --d4-lh: 44px;

    /* сетка */
    --container: 100%;
    --gutter: 8px;
    --pad-side: 16px;

    /* вертикальные ритмы: в оригинале задавались классами sb-m-N и меняются
       по брейкпоинтам. Имена унаследованы от них, чтобы сверка была линейной. */
    --m1: 56px;    /* нижний отступ блока иллюстрации */
    --m2: 48px;    /* верхний отступ блока иллюстрации */
    --m3: 40px;    /* подзаголовок раздела */
    --m6: 32px;    /* отступ текстового блока */
    --m7: 28px;    /* шаг колонок контактов */
    --m8: 24px;    /* подпись под текстом проекта */
    --m12: 16px;   /* заголовок перед списком колонок */
    --m14: 16px;   /* заголовок перед абзацем */
    --m18: 12px;   /* подпись колонки контактов */
    --m19: 12px;   /* привязка кнопки к тексту */

    /* прочие размеры */
    --header-logo-w: 242px;  --header-logo-h: 54px;
    --circle: 96px;
    --laptop-w: 100%;
    --btn-h: 40px;
    --para-gap: 24px;
}

@media (min-width: 640px) {
    :root {
        --h2: 40px; --h2-lh: 48px;
        --h3: 28px; --h3-lh: 36px;
        --h4: 24px; --h4-lh: 32px;
        --h5: 20px; --h5-lh: 28px;
        --p1: 20px; --p1-lh: 28px;
        --p2: 16px; --p2-lh: 24px;
        --p3: 14px; --p3-lh: 20px;
        --container: 608px;
        --gutter: 12px;
        --pad-side: 0px;
        --btn-h: 48px;   /* на планшете кнопка уже десктопной высоты */
        --para-gap: 24px;
        --m1: 64px; --m2: 56px; --m3: 48px; --m6: 36px; --m7: 32px; --m8: 28px;
        --m12: 20px; --m14: 16px; --m18: 16px; --m19: 14px;
    }
}

@media (min-width: 960px) {
    :root {
        --h2: 48px; --h2-lh: 56px;
        --h3: 32px; --h3-lh: 40px;
        --h4: 24px; --h4-lh: 32px;
        --h5: 20px; --h5-lh: 28px;
        --p1: 24px; --p1-lh: 32px;
        --p2: 20px; --p2-lh: 28px;
        --p3: 16px; --p3-lh: 24px;
        --d4: 56px; --d4-lh: 64px;
        --container: 824px;
        --gutter: 20px;
        --btn-h: 48px;
        --para-gap: 28px;
        --m1: 64px; --m2: 56px; --m3: 48px; --m6: 36px; --m7: 32px; --m8: 28px;
        --m12: 24px; --m14: 20px; --m18: 16px; --m19: 14px;
    }
}

@media (min-width: 1360px) {
    :root {
        --h2: 56px; --h2-lh: 64px;
        --h3: 40px; --h3-lh: 48px;
        --h4: 32px; --h4-lh: 40px;
        --h5: 24px; --h5-lh: 32px;
        --p1: 24px; --p1-lh: 32px;
        --p2: 20px; --p2-lh: 28px;
        --p3: 16px; --p3-lh: 24px;
        --container: 1104px;
        --gutter: 24px;
        --header-logo-w: 320px; --header-logo-h: 64px;
        --laptop-w: 884px;
        --m1: 72px; --m2: 64px; --m3: 56px; --m6: 40px; --m7: 36px; --m8: 32px;
        --m12: 28px; --m14: 24px; --m18: 20px; --m19: 16px;
    }
}

/* --- базовые стили -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-width: 300px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.333;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    word-break: break-word;
}

h1, h2, h3, h4, h5 { font-family: var(--font-title); font-weight: var(--w-title); margin: 0; }

/* страницы политик: та же сетка, но другие шрифты — как в оригинале */
.doc-page {
    --font-title: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --w-title: 400;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.h2 { font-size: var(--h2); line-height: var(--h2-lh); }
.h3 { font-size: var(--h3); line-height: var(--h3-lh); }
.h4 { font-size: var(--h4); line-height: var(--h4-lh); }
.h5 { font-size: var(--h5); line-height: var(--h5-lh); }
.p1 { font-size: var(--p1); line-height: var(--p1-lh); }
.p2 { font-size: var(--p2); line-height: var(--p2-lh); }
.p3 { font-size: var(--p3); line-height: var(--p3-lh); }
.soft { color: var(--ink-soft); }

/* --- сетка (12 колонок, как в оригинале) ---------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad-side);
    padding-right: var(--pad-side);
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
}

/* Именование колонок повторяет оригинал: xs <640, sm 640-959,
   md 960-1359, lg >=1360. У элемента ровно один класс нужного диапазона,
   поэтому ширины задаются общим правилом, а диапазон выбирает нужный класс. */
.col { padding-left: var(--gutter); padding-right: var(--gutter); }

@media (max-width: 639px) {
    .col-xs-12 { width: 100%; }
    .col-xs-10 { width: 83.3333%; }
    .col-xs-9  { width: 75%; }
    .col-xs-6  { width: 50%; }
}

@media (min-width: 640px) and (max-width: 959px) {
    .col-sm-12 { width: 100%; }
    .col-sm-10 { width: 83.3333%; }
    .col-sm-9  { width: 75%; }
    .col-sm-6  { width: 50%; }
}

@media (min-width: 960px) and (max-width: 1359px) {
    .col-md-12 { width: 100%; }
    .col-md-10 { width: 83.3333%; }
    .col-md-9  { width: 75%; }
    .col-md-8  { width: 66.6667%; }
    .col-md-7  { width: 58.3333%; }
    .col-md-6  { width: 50%; }
    .col-md-5  { width: 41.6667%; }
    .col-md-4  { width: 33.3333%; }
}

@media (min-width: 1360px) {
    .col-lg-12 { width: 100%; }
    .col-lg-10 { width: 83.3333%; }
    .col-lg-9  { width: 75%; }
    .col-lg-7  { width: 58.3333%; }
    .col-lg-6  { width: 50%; }
    .col-lg-5  { width: 41.6667%; }
    .col-lg-4  { width: 33.3333%; }
}

/* --- кнопка --------------------------------------------------- */
.btn {
    display: inline-block;
    min-width: 105px;
    max-width: 100%;
    height: var(--btn-h);
    padding: 0 24px;
    border: 0;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: var(--btn-h);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: .3s;
}

.btn:hover { opacity: .8; }
.btn:active { opacity: .88; }
.btn:focus-visible { box-shadow: inset 0 0 0 1px hsla(0, 0%, 84.3%, .56); }

@media (min-width: 640px) { .btn { font-size: 16px; } }

/* --- шапка ---------------------------------------------------- */
.site-header { position: relative; z-index: 5; background: var(--surface); }

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding-top: 16px;
    padding-bottom: 16px;
}

@media (min-width: 640px) and (max-width: 959px) {
    .header-row { min-height: 96px; padding-top: 24px; padding-bottom: 24px; }
}

@media (min-width: 960px) and (max-width: 1359px) {
    .header-row { padding-top: 20px; padding-bottom: 20px; }
}

@media (min-width: 1360px) {
    .header-row { padding-top: 24px; padding-bottom: 24px; }
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; width: var(--header-logo-w); height: var(--header-logo-h); }
/* фиксированная высота + авто-ширина: иначе атрибуты width/height растягивают логотип */
.logo img { height: 100%; width: auto; max-width: 100%; }

.nav { flex-grow: 1; }

@media (min-width: 960px) {
    .nav { display: flex; align-items: center; justify-content: flex-end; }
    .nav-list { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
    .nav-list > li + li { margin-left: 16px; }
    .nav { margin-left: 36px; }
}

@media (min-width: 1360px) { .nav { margin-left: 84px; } }

.nav-link { color: var(--ink); transition: opacity .5s; }
.nav-link:hover { opacity: .64; }

/* подменю «Наши проекты» — выпадает на десктопе */
.has-sub > a::after { content: ""; }

@media (min-width: 960px) {
    .has-sub { position: relative; }
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        min-width: 100%;
        padding: 12px 16px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
        white-space: nowrap;
    }
    .has-sub:hover .submenu,
    .has-sub:focus-within .submenu { display: block; }
    .submenu a { display: block; padding: 4px 0; }
}

@media (max-width: 959px) {
    .submenu { margin-top: 16px; padding-left: 24px; }
}

/* бургер и мобильное меню */
.burger { display: none; }

@media (max-width: 959px) {
    .burger {
        position: relative;
        display: block;
        flex-shrink: 0;
        width: 36px;
        height: 30px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--ink);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .burger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 3px;
        margin-top: -1px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .22s cubic-bezier(.55, .055, .675, .19);
    }

    .burger span::before,
    .burger span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
    }

    .burger span::before { top: -10px; transition: top .1s ease-in .25s, opacity .1s ease-in; }
    .burger span::after { top: 10px; transition: top .1s ease-in .25s, transform .22s cubic-bezier(.55, .055, .675, .19) .12s; }

    .burger[aria-expanded="true"] span { transform: rotate(45deg); }
    .burger[aria-expanded="true"] span::before { top: 0; opacity: 0; transition: top .1s ease-out, opacity .1s ease-out .12s; }
    .burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-90deg); transition: top .1s ease-out, transform .22s cubic-bezier(.55, .055, .675, .19); }

    /* панель на весь экран поверх страницы, но под шапкой:
       логотип и крестик должны оставаться видимыми (в оригинале z-index:-1) */
    .nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        padding-top: 72px;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .6s cubic-bezier(.19, 1, .22, 1);
    }

    @media (min-width: 640px) { .nav { padding-top: 96px; } }

    .nav.is-open { transform: translateX(0); }
    .nav-list { display: flex; flex-direction: column; padding: 48px 40px; }
    .nav-list > li + li { margin-top: 24px; }
    body.nav-open { overflow: hidden; }
}

/* без JS мобильное меню развёрнуто в потоке */
@media (max-width: 959px) {
    html:not(.js) .nav { position: static; transform: none; padding-top: 0; box-shadow: none; }
    html:not(.js) .burger { display: none; }
    html:not(.js) .nav-list { padding: 0 0 24px; }
}

/* --- герой ---------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0 80px;
    background: #e2e7ec url("../img/hero-bg.jpeg") center / cover no-repeat;
    overflow: hidden;
}

.hero-card {
    position: relative;
    padding: 32px 20px;
    background: #fff;
}

@media (min-width: 640px) and (max-width: 959px) { .hero-card { padding: 48px 28px; } }
@media (min-width: 960px) and (max-width: 1359px) { .hero-card { padding: 48px 40px; } }
@media (min-width: 1360px) { .hero-card { padding: 48px; } }

.hero-card h1 { font-size: var(--h3); line-height: var(--h3-lh); margin-bottom: var(--m14); }

/* В оригинале после «ИТ-консалтинг» стояла пустая строка из редактора Tilda
   (<div><br></div>) — она удерживает нижний край карточки. Воспроизведён отступом. */
.hero-card .lead { padding-bottom: var(--p2-lh); }
/* в оригинале это пара sb-m-19-top-minus / sb-m-19-top, они взаимно гасятся,
   поэтому оставлен один отступ — ровно тот, что задаёт текстовый блок */
.hero-actions, .project-actions { display: flex; }
.hero-actions { margin-top: var(--m6); }

/* у кнопки проекта ниже 960 px нижнего отступа нет (в оригинале :last-child), выше — есть */
.project-actions { margin-bottom: 0; }
@media (min-width: 960px) { .project-actions { margin-bottom: var(--m19); } }

@media (max-width: 639px) { .hero-actions .btn { width: 100%; } }

/* стрелка «прокрутить дальше» */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50px;
    background: none;
    transform: translateX(-50%);
    opacity: .3;
    cursor: pointer;
    animation: cue-bob 3s ease-in-out 1s infinite;
}

.scroll-cue::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 14px auto 0;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-cue, .step-scroll-arrow { animation: none; }
}

/* --- преимущества --------------------------------------------- */
.section { padding-top: 72px; padding-bottom: 72px; }

.advantages-title { margin-bottom: var(--m3); }

.advantages-image { margin-bottom: var(--m3); }

@media (min-width: 960px) {
    .advantages-image { order: 2; margin-bottom: 0; }
    .advantages-list { order: 1; }
}

.ratio-1x1 { position: relative; padding-bottom: 100%; overflow: hidden; }
.ratio-1x1 img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.adv-item { display: flex; align-items: center; }
.adv-item + .adv-item { margin-top: var(--m6); }

.adv-num {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: var(--circle);
    height: var(--circle);
    margin-right: 20px;
    border: 2px solid var(--hairline);
    border-radius: 100%;
    font-size: var(--d4);
    line-height: var(--d4-lh);
}

@media (min-width: 640px) { .adv-num { margin-right: 24px; } }

.adv-text { flex: 1; }

/* --- проект «Тривиум» ----------------------------------------- */
.project {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    min-height: 100vh;
    background: var(--surface-alt);
    overflow: hidden;
}

@media (max-width: 959px) {
    .project { flex-wrap: wrap; align-items: flex-start; min-height: 0; }
}

/* блок иллюстрации: в оригинале отделён от текста sb-m-2-top, а от подвала — sb-m-1-bottom */
.project-visual { order: 1; width: 100%; padding: 0 20px; margin-top: var(--m2); margin-bottom: var(--m1); }

/* на планшете 608 px — это ширина содержимого, паддинг ложится снаружи */
@media (min-width: 640px) and (max-width: 959px) {
    .project-visual { width: 648px; padding: 0 20px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 960px) {
    .project-visual {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        padding: 0;
        margin: 0;
        min-height: 406px;
    }
}
@media (min-width: 1360px) { .project-visual { min-height: 554px; } }

.laptop { position: relative; width: 100%; padding: 0; }

@media (min-width: 960px) {
    .laptop {
        position: absolute;
        top: 50%;
        left: 24px;
        width: 648px;
        transform: translateY(-50%);
        padding: 0;
    }
}

@media (min-width: 1360px) { .laptop { width: 884px; } }

/* мягкая тень под ноутбуком, как в оригинале */
@media (min-width: 1360px) {
    .laptop::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(ellipse 50% 50%, rgba(0, 0, 0, .3), transparent);
        transform: translate(8%, -84%);
    }
}

.laptop-frame { position: relative; z-index: 1; display: block; width: 100%; }
.laptop-screen {
    position: absolute;
    top: 3.5%;
    left: 7.5%;
    z-index: 1;
    width: 85%;
    padding-bottom: 55%;
}
.laptop-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: .25rem;
}

/* отступы как в оригинале: 20px сверху, снизу 20px только на десктопе */
.project-text { padding-top: 20px; padding-bottom: 0; }
@media (min-width: 960px) { .project-text { padding-bottom: 20px; } }

.project-text h2 { margin-bottom: var(--m14); }
.project-text .list { margin-bottom: var(--m8); }
@media (max-width: 639px) { .project-text .btn { width: 100%; } }

/* --- контакты -------------------------------------------------- */
.contacts-title { margin-bottom: var(--m12); }
.contacts-row { margin-top: calc(-1 * var(--m7)); }
.contacts-item { margin-top: var(--m7); }
.contacts-item h3 { margin-bottom: var(--m18); }

/* --- подвал ---------------------------------------------------- */
/* в оригинале этот блок — заголовок h5, то есть набран заголовковой гарнитурой */
.footer-legal { margin-bottom: 24px; font-family: var(--font-title); font-weight: var(--w-title); }
@media (min-width: 640px) and (max-width: 959px) { .footer-legal { margin-bottom: 32px; } }
@media (min-width: 960px) and (max-width: 1359px) { .footer-legal { margin-bottom: 32px; } }
@media (min-width: 1360px) { .footer-legal { margin-bottom: 36px; } }

/* пустые строки между блоками — как в оригинале (переносы из редактора Tilda) */
.footer-legal .gap { margin-bottom: var(--h5-lh); }

.footer-legal a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
    opacity: .64;
    transition: opacity .5s;
}

.footer-legal a:hover { opacity: 1; }

.divider { position: relative; height: 41px; margin-bottom: 16px; }
@media (min-width: 1360px) { .divider { margin-bottom: 20px; } }
.divider::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

/* --- страница политики ----------------------------------------- */
.doc-title { margin-bottom: var(--m14); }
/* --pb — сколько пустых строк было в оригинале между этими абзацами */
.doc-body p + p { margin-top: calc(var(--para-gap) * var(--pb, 1)); }
/* множитель пустых строк из оригинала задаётся классом, а не style="":
   инлайн-стили блокировал бы строгий CSP (style-src 'self') */
.doc-body p.pb-0 { --pb: 0; }
.doc-body p.pb-2 { --pb: 2; }
.doc-body p.pb-3 { --pb: 3; }
.doc-body strong { font-weight: 700; }

/* --- 404 -------------------------------------------------------- */
.info-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
    text-align: center;
}

.info-page__content { max-width: 620px; }
.info-page img { margin: 0 auto 40px; width: 100%; max-width: 420px; }
.info-page h1 { font-size: var(--h3); line-height: var(--h3-lh); margin-bottom: 16px; }
.info-page__links { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.info-page__links a { text-decoration: underline; text-underline-offset: .2em; }
.info-page__code { margin-top: 48px; color: var(--ink-soft); }

/* --- кнопка «наверх» ------------------------------------------- */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid hsla(0, 0%, 100%, .12);
    border-radius: 16px;
    background: rgba(17, 17, 17, .56);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.to-top:hover { border-color: hsla(0, 0%, 100%, .56); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top img { width: 32px; height: 32px; }
