/* =========================================================
   LVN Connect — основной стиль сайта
   Палитра: белый / фиолетовый (#301F8F — цвет логотипа) / чёрный

   ---------------------------------------------------------
   КАК ЗДЕСЬ ВСЁ УСТРОЕНО (шпаргалка)
   ---------------------------------------------------------
   1. РАЗМЕРЫ В rem.
      В html указано font-size: 10px, поэтому 1rem = 10px.
      Значит 1.6rem = 16px, 4.6rem = 46px и так далее.
      Так проще: делите нужные пиксели на 10.

   2. ЦВЕТА НЕ ПИШУТСЯ В КАЖДОМ БЛОКЕ.
      Все цвета собраны в переменные в блоке :root ниже.
      Хотите сменить фирменный фиолетовый по всему сайту —
      поменяйте одно значение --brand.

   3. ТЕМЫ СЕКЦИЙ.
      Каждая секция в index.html имеет класс темы:
        theme-light           — белый фон, тёмный текст
        theme-light bg-soft   — светло-серый фон, карточки внутри белые
        theme-dark            — чёрный фон, белый текст
      Внутри секции все карточки, поля и подписи сами берут нужные цвета.
      Чтобы перекрасить секцию — достаточно поменять класс в index.html,
      трогать этот файл не нужно.

   4. ПОРЯДОК БЛОКОВ В ФАЙЛЕ:
      сброс → палитра → кнопки → шапка (с переключателем языка) →
      поля форм → лицензии → подвал и плавающие кнопки →
      всплывающие окна → адаптив → секции страницы
      (первый экран, услуги, цикл работ, отрасли, проекты,
      «нам доверяют», о компании, форма заявки) и их адаптив.

   5. АДАПТИВ — в самом низу файла, в блоках @media.
      Точки перелома: 1279px, 1199px (планшет), 960px (появляется бургер),
      767px (телефон). Стиль внутри @media перебивает основной.
   ========================================================= */

/* =========================================================
   СБРОС БРАУЗЕРНЫХ СТИЛЕЙ
   Убирает отступы у заголовков и списков, точки у <ul>,
   подчёркивание у ссылок. Обычно этот блок не трогают.
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    outline: none;
}

html {
    font-size: 10px;               /* базовый размер: 1rem = 10px */
    scroll-behavior: smooth;       /* плавная прокрутка к якорям меню */
    overflow-x: hidden;            /* страховка от горизонтальной прокрутки */
}

body {
    margin: 0;
    /* Отступ сверху равен высоте закреплённой шапки, иначе она
       закрыла бы начало страницы. Точное значение подставляет скрипт
       в переменную --header-h (см. раздел 3 в js/main.js). */
    padding-top: var(--header-h, 92px);
    /* Основной шрифт. Первый в списке — Onest (подключён в index.html),
       остальные подставятся, если Onest не загрузился. */
    font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 1.6rem;             /* 16px — базовый размер текста */
    font-weight: 300;              /* обычная толщина текста на сайте */
    line-height: 150%;             /* межстрочное расстояние */
    background-color: var(--l-bg);
    color: var(--l-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, ul, li, figure {
    margin: 0;
    padding: 0;
    list-style: none;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

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

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    transition: .3s;
}

button {
    cursor: pointer;
}

/* =========================================================
   ПАЛИТРА И ТЕМЫ СЕКЦИЙ
   ========================================================= */
/* ---------------------------------------------------------
   ПАЛИТРА САЙТА: белый / фиолетовый / чёрный

   Здесь собраны все цвета. Меняете значение один раз —
   и цвет обновляется на всём сайте.
   --------------------------------------------------------- */
:root {
    --brand: #301F8F;          /* основной фиолетовый (взят из логотипа):
                                  кнопки, галочки, цифры, рамки при наведении */
    --brand-2: #6C4DE6;        /* светлый акцент: начало градиента, наведение */
    --brand-3: #9B85FF;        /* акцент для тёмного фона (там #301F8F плохо виден) */

    /* Градиент кнопок и акцентных плиток. Хотите однотонные кнопки —
       напишите здесь просто: var(--brand); */
    --brand-grad: linear-gradient(-87.71deg, #6c4de6 0.125%, #301f8f 99.925%);
    --brand-grad-hover: linear-gradient(270deg, #7f61ff 18.467%, #241568 111.847%);

    --black: #0D0D14;          /* самый тёмный цвет: текст и тёмные секции */
    --white: #FFFFFF;

    /* «Чистая» подложка — плитки логотипов, шапка, стрелки слайдера,
       кнопка «наверх». В светлых палитрах это белый или почти белый. */
    --solid: #FFFFFF;
    --header-bg: rgba(255, 255, 255, .92);   /* шапка полупрозрачная */

    /* --- значения для светлых секций (класс theme-light) --- */
    --l-bg: #FFFFFF;
    --l-surface: #F4F4F9;
    --l-surface-2: #ECEBF5;
    --l-text: #0D0D14;
    --l-muted: rgba(13, 13, 20, .6);
    --l-soft: rgba(13, 13, 20, .78);
    --l-line: rgba(13, 13, 20, .1);

    /* --- значения для серых секций (theme-light bg-soft) --- */
    --s-bg: #F5F5FA;
    --s-surface: #FFFFFF;
    --s-surface-2: #EFEEF8;

    /* --- значения для тёмных секций (класс theme-dark) --- */
    --d-bg: #0D0D14;
    --d-surface: #17161F;
    --d-surface-2: #211F2E;
    --d-line: rgba(255, 255, 255, .14);
    --d-field: rgba(255, 255, 255, .06);

    /* Оттенок цветных теней и подсветок (RGB через запятую — так его
       можно подставлять в rgba() с любой прозрачностью). Должен совпадать
       с --brand, иначе тени будут «чужого» цвета. */
    --accent-rgb: 48, 31, 143;

    /* Цветное свечение на первом экране */
    --hero-glow-1: rgba(108, 77, 230, .18);
    --hero-glow-2: rgba(48, 31, 143, .1);
}

/* ---------------------------------------------------------
   ТЕМЫ СЕКЦИЙ
   Ниже описаны три набора цветов. Секция получает нужный набор
   через класс в index.html, а все элементы внутри неё
   ссылаются на переменные (var(--surface) и т.д.).
   Значение переменных:
     --bg        фон секции
     --fg        цвет обычного текста
     --muted     приглушённый текст (подписи, описания)
     --soft      текст чуть светлее основного (абзацы, списки)
     --surface   фон карточек внутри секции
     --surface-2 фон мелких элементов (кружки, таблетки)
     --line      цвет тонких рамок и разделителей
     --field     фон полей ввода
     --accent    цвет акцентов внутри этой секции
   --------------------------------------------------------- */

/* Светлая секция: карточки внутри чуть темнее фона */
.theme-light {
    --bg: var(--l-bg);
    --fg: var(--l-text);
    --muted: var(--l-muted);
    --soft: var(--l-soft);
    --surface: var(--l-surface);
    --surface-2: var(--l-surface-2);
    --line: var(--l-line);
    --field: var(--solid);
    --accent: var(--brand);
    background-color: var(--bg);
    color: var(--fg);
}

/* Серая секция: карточки внутри, наоборот, светлее фона.
   Ставится в index.html вторым классом: class="services theme-light bg-soft" */
.theme-light.bg-soft {
    --bg: var(--s-bg);
    --surface: var(--s-surface);
    --surface-2: var(--s-surface-2);
}

/* Тёмная секция. Сейчас на странице не используется, но остаётся
   готовой: добавьте класс theme-dark любой секции — она станет тёмной,
   а логотип внутри автоматически побелеет. */
.theme-dark {
    --bg: var(--d-bg);
    --fg: #FFFFFF;
    --muted: rgba(255, 255, 255, .62);
    --soft: rgba(255, 255, 255, .78);
    --surface: var(--d-surface);
    --surface-2: var(--d-surface-2);
    --line: var(--d-line);
    --field: var(--d-field);
    --accent: var(--brand-3);
    background-color: var(--bg);
    color: var(--fg);
}

/* Общая «рамка» контента: ограничивает ширину и центрирует по экрану.
   max-width — максимальная ширина содержимого на больших мониторах,
   padding — отступ от краёв экрана на маленьких. */
.container {
    position: relative;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Класс для выделения слов фиолетовым прямо в тексте:
   <span class="accent">любой сложности</span> */
.accent {
    color: var(--accent);
}

.fat {
    font-weight: 700;
}

/* Размеры заголовков. Меньшие значения для планшета и телефона —
   в блоках @media внизу файла. */
h1.title {
    font-size: 5.6rem;             /* 56px */
    font-weight: 800;
    line-height: 115%;
    letter-spacing: -.02em;
}

h2.title {
    font-size: 4.6rem;             /* 46px — заголовки секций */
    font-weight: 800;
    line-height: 115%;
    letter-spacing: -.02em;
}

h3.title {
    font-size: 3.2rem;             /* 32px — подзаголовки внутри секций */
    font-weight: 800;
    line-height: 120%;
}

/* =========================================================
   КНОПКИ
   .main-btn   — основная, залита фиолетовым градиентом
   .second-btn — второстепенная, только фиолетовая рамка
   Используются по всему сайту, менять размеры/скругление здесь.
   ========================================================= */
.main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 32px;
    border-radius: 50px;
    background: var(--brand-grad);
    color: #FFF;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 150%;
    text-align: center;
}

.main-btn:hover,
.main-btn:focus {
    background: var(--brand-grad-hover);
    box-shadow: 0 10px 26px rgba(var(--accent-rgb), .28);
}

.second-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 140%;
    border-radius: 30px;
    color: var(--brand);
    box-shadow: 0 0 0 1.5px var(--brand) inset;
    white-space: nowrap;
}

.second-btn:hover {
    background: var(--brand-grad);
    color: #FFF;
    box-shadow: none;
}

/* =========================================================
   ШАПКА
   position: fixed + top: 0 — шапка закреплена вверху экрана
   и остаётся на месте при любой прокрутке.
   Чтобы содержимое страницы не пряталось под ней, у body есть
   padding-top на высоту шапки (переменная --header-h).
   Класс .fixed навешивается скриптом после прокрутки на 140px,
   он добавляет тень и слегка уменьшает высоту шапки.
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
}

.header.fixed {
    box-shadow: 0 6px 26px rgba(13, 13, 20, .08);
}

.header__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: .3s;
}

.header.fixed .header__wrapper {
    border-bottom-color: transparent;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 25;
}

.logo-img {
    width: 150px;                  /* ширина логотипа в шапке и подвале */
    height: auto;
    margin-right: 16px;
}

/* Если логотип оказался внутри тёмной секции — перекрашиваем его в белый.
   brightness(0) делает картинку чёрной, invert(1) — переворачивает в белую. */
.theme-dark .logo-img {
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 143%;
    color: var(--muted);
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

/* Подпись у логотипа переносится только по <br>: в казахском строки
   длиннее и без этого добавлялась бы лишняя строка. В подвале подпись
   другая — там перенос по словам нужен, поэтому правило только для шапки. */
.header .logo-text {
    white-space: nowrap;
    padding-left: 12px;
}

.header .logo-img {
    margin-right: 12px;
}

.header .mobile-phone {
    display: none;
    margin-left: auto;
    margin-right: 15px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brand);
    white-space: nowrap;           /* номер не должен разрываться на две строки */
    z-index: 5;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* Отступы в шапке рассчитаны на самый длинный вариант меню —
   казахский. Там слова заметно длиннее русских, и при больших
   отступах пункты переносились на две строки. */
.header .menu-wrap {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-right: auto;
}

.header .menu {
    display: flex;
    align-items: center;
}

.header .menu:first-child {
    margin-bottom: 4px;
}

.header .menu-item {
    margin-right: 14px;
}

.header .menu-item:last-child {
    margin-right: 0;
}

/* nowrap — пункт меню никогда не разрывается на две строки */
.header .item-link {
    font-size: 1.5rem;
    font-weight: 400;
    white-space: nowrap;
}

.header .item-link:hover {
    color: var(--brand);
}

.header .item-btn {
    position: relative;
    margin-left: 24px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--brand);
    white-space: nowrap;
}

.header .item-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -16px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-grad);
    transition: .3s;
}

.header .item-btn:hover {
    opacity: .7;
}

.header__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 12px;
}

.header__contact .contact-phone,
.header__contact .contact-email {
    font-size: 1.5rem;
    font-weight: 400;
    white-space: nowrap;
}

.header__contact .contact-phone {
    margin-bottom: 3px;
    font-weight: 600;
}

.header__contact .contact-phone:hover,
.header__contact .contact-email:hover {
    color: var(--brand);
}

.header__btn {
    height: 48px;
    padding: 16px 20px;            /* чуть уже обычной second-btn: экономим место в шапке */
}

/* ---------------------------------------------------------
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА в шапке: две кнопки RU / KZ.
   Активный язык залит фиолетовым градиентом.
   Разметка — <div class="lang-switch"> в index.html,
   переключение — раздел 12 в js/main.js.
   --------------------------------------------------------- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 3px;
    border-radius: 30px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
}

.lang-switch__btn {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
    background: none;
}

.lang-switch__btn:hover {
    color: var(--brand);
}

/* выбранный язык */
.lang-switch__btn.active {
    background: var(--brand-grad);
    color: #FFF;
}

/* Бургер-меню (три полоски). Появляется на экранах уже 960px.
   Средняя полоска — это <span class="line">, верхняя и нижняя рисуются
   через ::before и ::after. При открытии (класс .active) складываются в крестик. */
.menu-btn {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    z-index: 25;
}

.menu-btn .line,
.menu-btn::before,
.menu-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--black);
    transform: translateX(-50%);
    transition: .3s;
}

.menu-btn .line {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-btn::before { top: 4px; }
.menu-btn::after  { bottom: 4px; }

.menu-btn.active .line { opacity: 0; }
.menu-btn.active::before { top: 14px; transform: translateX(-50%) rotate(45deg); }
.menu-btn.active::after  { bottom: 14px; transform: translateX(-50%) rotate(-45deg); }

/* ---------------------------------------------------------
   ПОЛЯ ВВОДА — общие для всех форм на сайте
   .form-input   — однострочное поле
   .form-comment — многострочное (textarea)
   .error        — красная рамка, навешивается скриптом при пустом поле
   --------------------------------------------------------- */
.form-input,
.form-comment {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--fg);
    cursor: text;
}

.theme-light.bg-soft .form-input,
.theme-light.bg-soft .form-comment,
.modal .form-input,
.modal .form-comment {
    background-color: var(--l-surface);
}

.theme-dark .form-input,
.theme-dark .form-comment {
    background-color: var(--field);
}

.form-comment {
    min-height: 110px;
    resize: vertical;
}

.form-input::placeholder,
.form-comment::placeholder {
    color: var(--muted);
    opacity: .75;
}

.form-input:focus,
.form-comment:focus {
    box-shadow: 0 0 0 2px var(--brand-2) inset;
}

.form-input.error,
.form-comment.error {
    box-shadow: 0 0 0 2px #E23D3D inset;
}

.input-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--muted);
}

.upload-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 11.5l-8.5 8.5a5.5 5.5 0 01-7.8-7.8l8.7-8.7a3.7 3.7 0 015.2 5.2l-8.7 8.7a1.8 1.8 0 01-2.6-2.6l7.9-7.9' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 11.5l-8.5 8.5a5.5 5.5 0 01-7.8-7.8l8.7-8.7a3.7 3.7 0 015.2 5.2l-8.7 8.7a1.8 1.8 0 01-2.6-2.6l7.9-7.9' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    background-color: var(--accent);
}

.input-upload:hover {
    color: var(--brand);
}

.upload-desc.has-file {
    color: var(--brand);
    font-weight: 500;
}

.theme-dark .upload-desc.has-file,
.theme-dark .input-upload:hover {
    color: var(--brand-3);
}

.form-policy {
    font-size: 1.2rem;
    line-height: 140%;
    color: var(--muted);
    opacity: .85;
}

.form-error {
    font-size: 1.4rem;
    line-height: 140%;
    color: #E23D3D;
}

/* Выпадающий список направлений. Стрелка нарисована картинкой,
   потому что штатную стрелку браузера оформить нельзя. */
.form-select {
    width: 100%;
    padding: 16px 44px 16px 20px;
    border-radius: 14px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--fg);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
}

.form-select:focus {
    box-shadow: 0 0 0 2px var(--brand-2) inset;
}

/* В тёмной секции поле выглядит так же, как соседние «Имя» и «Телефон». */
.theme-dark .form-select {
    background-color: var(--field);
}

/* Раскрытый список рисует сам браузер, и цвета секции в нём не работают:
   пункты наследовали белый текст и в тёмной секции пропадали на светлом
   фоне списка. Поэтому задаём им явные цвета — список всегда светлый
   с тёмным текстом, независимо от темы секции и темы системы. */
.form-select option {
    color: #0D0D14;
    background-color: #FFF;
}

/* Две колонки для «Имя» и «Телефон» */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 1.3rem;
    color: var(--muted);
}

.cert-item {
    cursor: pointer;
}

.cert-item img {
    width: 100%;
    height: 260px;                 /* высота превью документа */
    object-fit: cover;
    object-position: top center;
    border-radius: 14px;
    background-color: #FFF;
    box-shadow: 0 0 0 1px var(--line);
    transition: .3s;
}

.cert-item:hover img {
    box-shadow: 0 0 0 2px var(--brand), 0 16px 34px rgba(var(--accent-rgb), .18);
    transform: translateY(-4px);
}

.cert-name {
    display: block;
    margin-top: 14px;
    font-size: 1.4rem;
    line-height: 140%;
    color: var(--muted);
}


/* =========================================================
   ПОДВАЛ и плавающие кнопки
   ========================================================= */
.footer {
    padding: 50px 0 40px;
}

.footer__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer .logo-text {
    max-width: 220px;
}

.footer__menu {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 1.6rem;
    color: var(--muted);
}

.footer__link:hover {
    color: var(--brand);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer__contact .contact-phone {
    font-weight: 600;
}

.footer__contact a:hover {
    color: var(--brand);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.copy {
    font-size: 1.3rem;
    color: var(--muted);
}

/* Кнопка «наверх». position: fixed — она не привязана к подвалу,
   а едет вместе со страницей и всегда висит в правом нижнем углу
   над столбиком быстрых кнопок.
   Пока страница не прокручена, кнопка спрятана; класс visible
   ей добавляет скрипт (раздел 3 в js/main.js). */
.top-scroll {
    position: fixed;
    right: 20px;
    bottom: 264px;                 /* над столбиком быстрых кнопок */
    z-index: 40;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--solid);
    box-shadow: 0 6px 18px rgba(13, 13, 20, .14), 0 0 0 1px var(--l-line) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}

/* появляется, когда страница прокручена вниз */
.top-scroll.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.top-scroll::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/18px 18px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/18px 18px;
    transition: .3s;
}

.top-scroll:hover {
    background-color: var(--brand);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), .3);
}

.top-scroll:hover::before {
    background-color: #FFF;
}

/* Плавающие круглые кнопки справа снизу (заявка, звонок, почта, WhatsApp).
   Иконки — картинки SVG в background-image каждого класса ниже.
   Чтобы поменять цвет иконки, найдите в строке stroke=%23fff или fill=%23fff
   (%23 — это символ #) и подставьте нужный цвет. */
.quick-menu {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
}

.quick-menu__link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), .3);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.quick-menu__link:hover {
    background-color: var(--brand-2);
}

.quick-menu__link.doc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8l-5-5z' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.quick-menu__link.phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 16.9v2.6a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6A19.8 19.8 0 011.1 3.7 2 2 0 013.1 1.5h2.6a2 2 0 012 1.7c.1 1 .4 1.9.7 2.8a2 2 0 01-.5 2.1L7 9.1a16 16 0 006 6l1-1a2 2 0 012.1-.4c.9.3 1.8.6 2.8.7a2 2 0 011.7 2z' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quick-menu__link.email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2' stroke='%23fff' stroke-width='1.8'/%3E%3Cpath d='M3 6l9 7 9-7' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quick-menu__link.whats {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20.5 11.6A8.4 8.4 0 016.9 18.7L3 20l1.4-3.8a8.4 8.4 0 1116.1-4.6z' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 8.5c0 3 2.5 5.5 5.5 5.5.6 0 1-.5 1-.5l-1.3-1.2-1.2.6a4.6 4.6 0 01-2-2l.6-1.2L10.4 8s-.4 0-.6.1c-.3.1-.8.4-.8 1.4' fill='%23fff'/%3E%3C/svg%3E");
}

/* =========================================================
   ВСПЛЫВАЮЩИЕ ОКНА
   Окно и затемнение всегда есть в вёрстке, но скрыты
   (opacity: 0 + visibility: hidden). Скрипт добавляет класс .active,
   и они плавно появляются.
   ========================================================= */
.modal-bg {
    position: fixed;
    inset: 0;
    background-color: rgba(13, 13, 20, .5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 90;
}

.modal-bg.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: calc(100% - 40px);
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(13, 13, 20, .3);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 100;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal .title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 120%;
    padding-right: 30px;
}

.modal-desc {
    margin-top: 14px;
    font-size: 1.6rem;
    line-height: 150%;
    color: var(--muted);
}

.modal .form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}

.modal__thanks .main-btn {
    margin-top: 26px;
}

.close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%230D0D14' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.close-btn:hover {
    background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Просмотр лицензии в полном размере */
.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(13, 13, 20, .9);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 120;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox .close-btn {
    top: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, .14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* =========================================================
   ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ
   Класс .reveal скрипт вешает сам (список блоков — в конце js/main.js),
   а .visible добавляется, когда блок доходит до экрана.
   Чтобы отключить анимацию совсем — удалите блок .reveal ниже.
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   АДАПТИВ (под разные экраны)
   Читается сверху вниз: правила ниже перебивают те, что выше.
     1279px — стрелки слайдера убираются внутрь экрана
     1199px — планшет: меньше заголовки, 3 карточки услуг в ряд
      960px — появляется бургер-меню, всё в одну колонку
      767px — телефон: минимальные отступы и размеры
   Чтобы поправить вид только на телефоне — правьте последний блок.
   ========================================================= */
@media screen and (max-width: 1279px) {
    /* Промежуточный шаг: экран уже, а меню то же самое.
       Немного уменьшаем шрифт и отступы в шапке, чтобы пункты
       (особенно казахские — они длиннее) не жались к телефонам. */
    .header .item-link,
    .header .item-btn,
    .header__contact .contact-phone,
    .header__contact .contact-email { font-size: 1.35rem; }
    .header .menu-item { margin-right: 12px; }
    .header .logo-text { font-size: 1.2rem; }
}

@media screen and (max-width: 1199px) {
    h1.title { font-size: 4.4rem; }
    h2.title { font-size: 3.8rem; }
    h3.title { font-size: 2.8rem; }

    .logo-img { width: 118px; margin-right: 12px; }
    .logo-text { font-size: 1.1rem; padding-left: 12px; }

    /* Подпись у логотипа — украшение. На узком экране места на неё
       уже нет: меню и телефоны важнее, поэтому прячем. */
    .header .logo-text { display: none; }

    .header .menu-wrap { margin-left: 17px; }
    .header .menu-item { margin-right: 10px; }
    .header .item-link,
    .header .item-btn,
    .header__contact .contact-phone,
    .header__contact .contact-email { font-size: 1.2rem; }
    .header .item-btn { margin-left: 22px; }
    .header .item-btn::before { width: 6px; height: 6px; left: -12px; }

    .lang-switch { margin-left: 10px; }
    .lang-switch__btn { padding: 5px 9px; font-size: 1.2rem; }
}

@media screen and (max-width: 960px) {
    .header__wrapper { padding: 10px 0; }

    .header .mobile-phone { display: block; }
    .header .logo-text { display: none; }

    .header__nav {
        position: absolute;
        top: 0;
        right: -10px;
        width: calc(100% + 20px);
        flex-direction: column;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        background-color: var(--solid);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 40px rgba(13, 13, 20, .12);
        transition: .3s;
        z-index: 20;
    }

    .header__nav.active {
        max-height: 1000px;
        padding: 80px 30px 36px;
        opacity: 1;
    }

    .header .menu-wrap { margin: 0 auto; }
    .header .menu { flex-direction: column; }
    .header .menu-item { width: 100%; margin: 9px 0; text-align: center; }
    .header .menu-item:last-child { margin: 14px 0; }
    .header .item-link,
    .header .item-btn { font-size: 2rem; }
    .header .item-btn { margin-left: 0; }
    .header .item-btn::before { display: none; }

    .header__contact {
        align-items: center;
        margin: 0 0 24px;
    }
    .header__contact .contact-phone,
    .header__contact .contact-email { font-size: 1.8rem; }

    .menu-btn { display: block; }

    /* переключатель языка остаётся в шапке рядом с бургером */
    .lang-switch { margin-left: 0; margin-right: 12px; }

    .footer__wrapper { gap: 24px; }
    .footer__contact { align-items: flex-start; }
}

@media screen and (max-width: 767px) {
    h1.title { font-size: 3.2rem; }
    h2.title { font-size: 2.8rem; }
    h3.title { font-size: 2.2rem; }

    .container { padding: 0 16px; }

    .input-row { grid-template-columns: 1fr; }
    .cert-item img { height: 200px; }

    /* на узком телефоне в шапке всё встык: логотип, номер,
       переключатель языка и бургер — поджимаем их размеры */
    .header .logo-img { width: 104px; margin-right: 0; }
    .header .mobile-phone { margin-right: 8px; font-size: 1.2rem; }
    .lang-switch { margin-right: 8px; padding: 2px; }
    .lang-switch__btn { padding: 5px 8px; font-size: 1.1rem; }

    /* на телефоне в правом нижнем углу и так четыре быстрые кнопки,
       поэтому стрелку «наверх» не показываем */
    .top-scroll { display: none; }

    .footer__bottom { flex-direction: column; gap: 8px; }

    .modal { padding: 30px 22px; }
    .modal .title { font-size: 2.2rem; }

    .quick-menu { right: 12px; bottom: 12px; gap: 8px; }
    .quick-menu__link { width: 44px; height: 44px; background-size: 20px 20px; }
}

/* ---------------------------------------------------------
   ОБЩЕЕ ДЛЯ СЕКЦИЙ
   Заголовок секции и кнопка по центру под блоком.
   --------------------------------------------------------- */
.head2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 44px;
}

.head2--center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
}

.head2__desc {
    font-size: 1.8rem;
    line-height: 150%;
    color: var(--muted);
    max-width: 620px;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.center-btn .main-btn,
.hero2__btns .main-btn {
    display: inline-flex;
}

/* Кнопка-контур на тёмном фоне */
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 32px;
    border-radius: 50px;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5) inset;
    color: #FFF;
    font-size: 1.6rem;
    font-weight: 500;
}

.ghost-btn:hover {
    background-color: #FFF;
    color: var(--black);
    box-shadow: none;
}

/* ---------------------------------------------------------
   ПЕРВЫЙ ЭКРАН
   Фотография под цветной заливкой, поверх — текст и цифры.
   --------------------------------------------------------- */
/* isolation: isolate делает секцию отдельным слоем. Без этого
   фотография и заливка с отрицательным z-index уходили ЗА фон
   секции и появлялись только при наведении, когда браузер
   создавал слой сам. Здесь слои считаем от нуля вверх:
   0 — фото, 1 — заливка, 2 — содержимое. */
.hero2 {
    position: relative;
    isolation: isolate;
    padding: 80px 0 40px;
    overflow: hidden;
}

.hero2 > .container {
    position: relative;
    z-index: 2;
}

.hero2__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero2__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заливка поверх фотографии: сверху почти прозрачная,
   снизу плотная, чтобы читались текст и цифры. */
.hero2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(13, 13, 20, .82) 0%, rgba(13, 13, 20, .92) 100%),
        linear-gradient(120deg, rgba(var(--accent-rgb), .75) 0%, rgba(var(--accent-rgb), .15) 70%);
}

.hero2__body {
    max-width: 840px;
    padding: 60px 0 70px;
}

.hero2 h1.title {
    font-size: 5.4rem;
}

.hero2__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 26px;
    font-size: 1.7rem;
    color: rgba(255, 255, 255, .85);
}

/* точка-разделитель между направлениями */
.hero2__line li + li::before {
    content: "•";
    margin-right: 18px;
    color: var(--brand-3);
}

.hero2__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.hero2__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 22px 26px;
    border-radius: 22px;
    background-color: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset;
    backdrop-filter: blur(8px);
}

.hstat {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
}

.hstat__icon {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--brand-grad);
    color: #FFF;
}

.hstat__icon svg { width: 100%; height: 100%; }

.hstat__num {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 110%;
}

.hstat__text {
    font-size: 1.3rem;
    line-height: 135%;
    color: rgba(255, 255, 255, .7);
}

/* ---------------------------------------------------------
   НАШИ УСЛУГИ
   Десять карточек: пять в ряд, ниже — кнопка по центру.
   --------------------------------------------------------- */
.services2 { padding: 90px 0; }

/* Четыре колонки: 11 карточек ложатся как 4 + 4 + 3.
   Flex вместо grid — карточки последнего ряда сохраняют ту же
   ширину, что и в первых двух, и выравниваются по левому краю. */
.services2__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.scard {
    flex: 0 1 calc((100% - 3 * 20px) / 4);
    min-width: 0;                 /* иначе длинные слова не дают колонкам быть равными */
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 22px;
    border-radius: 22px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
    transition: .3s;
}

.scard:hover {
    background-color: var(--solid);
    box-shadow: 0 0 0 1.5px var(--brand) inset, 0 16px 34px rgba(var(--accent-rgb), .12);
    transform: translateY(-4px);
}

.scard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 14px;
    background: var(--brand-grad);
    color: #FFF;
}

.scard__icon svg { width: 100%; height: 100%; }

.scard__name {
    flex-grow: 1;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 135%;
    overflow-wrap: break-word;    /* длинные названия переносятся, а не растягивают карточку */
}

/* Стрелка внизу карточки — рисуется маской, поэтому красится палитрой */
.scard__arrow {
    width: 22px;
    height: 14px;
    background-color: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none'%3E%3Cpath d='M1 7h21M16 1l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none'%3E%3Cpath d='M1 7h21M16 1l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left center/contain;
    transition: .3s;
}

.scard:hover .scard__arrow { transform: translateX(6px); }

/* ---------------------------------------------------------
   ПОЛНЫЙ ЦИКЛ РАБОТ
   Восемь кругов с иконками. Пунктирная линия между ними
   рисуется псевдоэлементом у списка, поэтому при добавлении
   этапа её дорисовывать не нужно.
   --------------------------------------------------------- */
.cycle2 { padding: 90px 0; }

.cycle2__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

/* линия идёт по центру кругов — 42px это половина их высоты */
.cycle2__list::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 42px;
    border-top: 2px dashed var(--line);
    z-index: 0;
}

.step2 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.step2__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding: 22px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #FFF;
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), .28);
}

.step2__icon svg { width: 100%; height: 100%; }

.step2__num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 100%;
    color: var(--accent);
}

.step2__name {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 135%;
}

/* ---------------------------------------------------------
   ОТРАСЛИ
   Шесть высоких карточек с фотографией и подписью снизу.
   --------------------------------------------------------- */
.branches2 { padding: 90px 0; }

.branches2__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.branch2 {
    position: relative;
    isolation: isolate;          /* см. пояснение у .hero2 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    min-height: 340px;
    padding: 24px 20px;
    border-radius: 22px;
    overflow: hidden;
    color: #FFF;
    transition: .3s;
}

.branch2:hover { transform: translateY(-4px); }

.branch2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: .5s;
}

.branch2:hover img { transform: scale(1.06); }

/* затемнение, чтобы подпись читалась на любой фотографии */
.branch2::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(13, 13, 20, .9) 10%, rgba(13, 13, 20, .3) 60%, rgba(13, 13, 20, .1) 100%);
}

.branch2__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
    background: var(--brand-grad);
    color: #FFF;
}

.branch2__icon svg { width: 100%; height: 100%; }

.branch2__name {
    position: relative;
    z-index: 2;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 125%;
}

/* ---------------------------------------------------------
   ПРОЕКТЫ
   Плитки с фотографией, фильтр по отраслям и раскрывающаяся
   подробная карточка (её показывает скрипт).
   --------------------------------------------------------- */
.projects2 { padding: 90px 0; }

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pill {
    padding: 11px 22px;
    border-radius: 30px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: .3s;
}

.pill:hover { box-shadow: 0 0 0 1.5px var(--brand) inset; }

.pill.active {
    background: var(--brand-grad);
    color: #FFF;
    box-shadow: none;
}

.projects2__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pcard {
    position: relative;
    isolation: isolate;          /* см. пояснение у .hero2 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 300px;
    padding: 24px 22px;
    border-radius: 22px;
    overflow: hidden;
    color: #FFF;
    cursor: pointer;
    transition: .3s;
}

.pcard.hidden { display: none; }

.pcard:hover { transform: translateY(-4px); }

.pcard img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: .5s;
}

.pcard:hover img { transform: scale(1.06); }

.pcard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(13, 13, 20, .92) 12%, rgba(13, 13, 20, .35) 62%, rgba(13, 13, 20, .1) 100%);
}

.pcard__name {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 125%;
}

.pcard__place {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .75);
}

.pcard__more {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--brand-3);
}

.pcard__more::after { content: " \2192"; }

.projects2__empty {
    display: none;
    margin-top: 30px;
    font-size: 1.6rem;
    color: var(--muted);
}

.projects2__empty.visible { display: block; }

/* Подробная карточка проекта */
.detail {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
    border-radius: 28px;
    overflow: hidden;
    background-color: var(--d-bg);
    color: #FFF;
}

.detail[hidden] { display: none; }

.detail__body { padding: 40px 38px; }

.detail__title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 120%;
}

.detail__place {
    margin-top: 8px;
    font-size: 1.6rem;
    color: var(--brand-3);
}

.detail__works {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.detail__works-title {
    display: block;
    margin-bottom: 14px;
    font-size: 1.5rem;
    font-weight: 600;
}

.detail__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail__list li {
    position: relative;
    padding-left: 28px;
    font-size: 1.5rem;
    line-height: 145%;
    color: rgba(255, 255, 255, .8);
}

/* галочка перед пунктом */
.detail__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 13px;
    background-color: var(--brand-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' fill='none'%3E%3Cpath d='M1.5 7l6 5.5L18.5 1.5' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' fill='none'%3E%3Cpath d='M1.5 7l6 5.5L18.5 1.5' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

.detail__btn {
    display: inline-flex;
    margin-top: 28px;
}

.detail__media { position: relative; }

.detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 13, 20, .6) no-repeat center/16px 16px
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.detail__close:hover { background-color: var(--brand); }

/* ---------------------------------------------------------
   НАМ ДОВЕРЯЮТ
   --------------------------------------------------------- */
.trust { padding: 90px 0; }

.trust__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 18px;
    border-radius: 18px;
    background-color: var(--solid);
    box-shadow: 0 0 0 1px var(--line) inset;
    transition: .3s;
}

.trust__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1.5px var(--brand) inset, 0 14px 30px rgba(var(--accent-rgb), .12);
}

.trust__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------------
   О КОМПАНИИ
   --------------------------------------------------------- */
.about2 { padding: 90px 0; }

.about2__top {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}

.about2__desc {
    margin-top: 22px;
    font-size: 1.7rem;
    line-height: 155%;
    color: var(--soft);
}

.about2__btns { margin-top: 30px; }

/* Строка со ссылками на документы под лицензиями */
.about2__files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.about2__files-label {
    margin-right: 6px;
    font-size: 1.6rem;
    color: var(--muted);
}

.about2__btns .main-btn { display: inline-flex; }

/* Кнопка-ссылка на документ (презентация, референс-лист).
   Форма как у «Заказать звонок», слева — стрелка загрузки.
   Иконка нарисована маской, поэтому меняет цвет вместе с кнопкой. */
.doc-btn {
    gap: 10px;
    padding: 17px 26px;            /* по высоте вровень с кнопкой «Обсудить проект» */
    font-size: 1.5rem;
}

.doc-btn::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3v12M7 11l5 5 5-5M4 20h16' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3v12M7 11l5 5 5-5M4 20h16' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

.about2__media {
    border-radius: 28px;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 30px 60px rgba(var(--accent-rgb), .18);
}

.about2__media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.about2__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 50px;
}

.a2stat {
    padding: 26px;
    border-radius: 20px;
    background-color: var(--solid);
    box-shadow: 0 0 0 1px var(--line) inset;
}

.a2stat:nth-child(1),
.a2stat:nth-child(4) {
    background: var(--brand-grad);
    box-shadow: none;
    color: #FFF;
}

.a2stat:nth-child(1) .a2stat__text,
.a2stat:nth-child(4) .a2stat__text { color: rgba(255, 255, 255, .75); }

.a2stat__num {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 110%;
}

.a2stat__text {
    display: block;
    margin-top: 8px;
    font-size: 1.5rem;
    line-height: 140%;
    color: var(--muted);
}

.about2__docs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* ---------------------------------------------------------
   ЕСТЬ ТЕХНИЧЕСКАЯ ЗАДАЧА
   Тёмная секция: слева форма, справа контакты и карта.
   --------------------------------------------------------- */
.request { padding: 90px 0; }

.request__body {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
}

.request__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 34px;
    border-radius: 26px;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line) inset;
}

.request__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.request__label {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.rcontact {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    line-height: 140%;
}

.rcontact__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .08);
    color: var(--brand-3);
}

.rcontact__icon svg { width: 100%; height: 100%; }

a.rcontact:hover .rcontact__text { color: var(--brand-3); }

.request__map {
    margin-top: 10px;
    min-height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--surface);
}

.request__map iframe {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: none;
}

/* ---------------------------------------------------------
   АДАПТИВ
   --------------------------------------------------------- */
@media screen and (max-width: 1199px) {
    .hero2 h1.title { font-size: 4.2rem; }
    .scard { flex-basis: calc((100% - 2 * 20px) / 3); }
    .branches2__list { grid-template-columns: repeat(3, 1fr); }
    .projects2__list { grid-template-columns: repeat(2, 1fr); }
    .trust__list { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 960px) {
    .hero2 { padding: 40px 0 30px; }
    .hero2__body { padding: 40px 0 50px; }
    .hero2__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .services2,
    .cycle2,
    .branches2,
    .projects2,
    .trust,
    .about2,
    .request { padding: 60px 0; }

    .head2 { grid-template-columns: 1fr; gap: 18px; }

    /* пунктирная линия рвётся при переносе строк — убираем */
    .cycle2__list { grid-template-columns: repeat(2, 1fr); }
    .cycle2__list::before { display: none; }

    .about2__top { grid-template-columns: 1fr; gap: 26px; }
    .about2__media,
    .about2__media img { min-height: 280px; }
    .about2__stats { grid-template-columns: repeat(2, 1fr); }

    .request__body { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; }
    .detail__media { min-height: 260px; order: -1; }
}

@media screen and (max-width: 767px) {
    .hero2 h1.title { font-size: 3rem; }
    .hero2__line { font-size: 1.5rem; }
    .hero2__btns { flex-direction: column; align-items: stretch; }
    .hero2__btns .main-btn,
    .hero2__btns .ghost-btn { justify-content: center; }
    .hero2__stats { grid-template-columns: 1fr; padding: 18px 20px; }

    .head2__desc { font-size: 1.6rem; }

    .services2__list { gap: 12px; }
    .scard { flex-basis: calc((100% - 12px) / 2); }
    .scard { padding: 20px 18px; gap: 12px; }
    .scard__icon { width: 42px; height: 42px; padding: 10px; }
    .scard__name { font-size: 1.4rem; }

    .cycle2__list { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
    .step2__icon { width: 66px; height: 66px; padding: 18px; }
    .step2__name { font-size: 1.4rem; }

    .branches2__list { grid-template-columns: 1fr; }
    .branch2 { min-height: 240px; }

    .projects2__list { grid-template-columns: 1fr; }
    .pcard { min-height: 260px; }

    .trust__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust__item { height: 90px; }

    .about2__stats { grid-template-columns: 1fr 1fr; }
    .a2stat { padding: 20px; }
    .a2stat__num { font-size: 3rem; }
    .about2__docs { grid-template-columns: 1fr 1fr; }

    .request__form { padding: 26px 22px; }
    .detail__body { padding: 28px 22px; }
    .detail__title { font-size: 2.1rem; }
}
