/* ============================================
   ЛОКАЛЬНЫЕ ШРИФТЫ MONTSERRAT
   ============================================ */
@font-face {
    font-family: 'Montserrat';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('./fonts/montserrat-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('./fonts/montserrat-medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('./fonts/montserrat-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('./fonts/montserrat-bold.woff2') format('woff2');
}

/* ============================================
   CSS ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --construction-yellow: #FDB913;
    --construction-orange: #FF6B35;
    --dark-concrete: #0d0d0d;
    --light-concrete: #2a2a2a;
    --steel-gray: #4a4a4a;
    --warning-red: #E63946;
    --safety-green: #06FFA5;
    --white: #FAFAFA;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-concrete);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ФОНА
   ============================================ */
.gradient-dots-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-color: var(--dark-concrete);
    background-image:
        /* Hex dot layer 1 */
        radial-gradient(circle at 50% 50%, transparent 1.2px, var(--dark-concrete) 0 2px, transparent 2px),
        /* Hex dot layer 2 (offset for hexagonal grid) */
        radial-gradient(circle at 50% 50%, transparent 1.2px, var(--dark-concrete) 0 2px, transparent 2px),
        /* Pink blob */
        radial-gradient(circle at 50% 50%, #fb0094, transparent 60%),
        /* Orange blob */
        radial-gradient(circle at 50% 50%, #ff8800, transparent 60%),
        /* Cyan blob */
        radial-gradient(circle at 50% 50%, #00ffff, transparent 60%),
        /* Purple blob — ellipse with pixel-based Y size */
        radial-gradient(ellipse at 50% 50%, #8800ff, transparent 60%);
    background-size:
        4px 6.93px,
        4px 6.93px,
        200% 200%,
        200% 200%,
        200% 200%,
        200% 6.93px;
    background-position:
        0px 0px, 2px 3.46px,
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0px;
    animation: gradientDotsMove 30s linear infinite, hueCycle 6s linear infinite;
}

@keyframes gradientDotsMove {
    0% {
        background-position:
            0px 0px, 2px 3.46px,
            800% 400%, 1000% -400%, -1200% -600%, 400% 6.93px;
    }
    100% {
        background-position:
            0px 0px, 2px 3.46px,
            0% 0%, 0% 0%, 0% 0%, 0% 0px;
    }
}

@keyframes hueCycle {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: relative;
    padding: 2rem 5%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 4px solid var(--construction-yellow);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}


/* Группа плашек справа (город, язык, «Для мастеров», онлайн). Обёртка
   .header-controls есть на хабах; на страницах услуг плашки идут напрямую.
   Группы выравниваются по одной базовой линии и переносятся аккуратно. */
.header-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem 1.1rem;
}

/* Две смысловые группы внутри: навигация (город+язык) и статус (мастера+онлайн) */
.header-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Все плашки шапки — единая высота (одинаковая «толщина») на всех страницах:
   хабах, услугах, районах. Задаём глобально классам, а не только внутри обёртки. */
header .city-switcher,
header .language-switcher,
header .audience-link,
header .online-counter {
    height: 52px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin: 0;
    /* Все 4 плашки шапки появляются единой волной вместе с логотипом (без задержки) */
    animation: slideDown 0.8s ease-out backwards;
}

/* ── Десктоп: компактный блок в правом углу (Вариант 2). Логотип слева, справа
   две строки плашек друг под другом, выровненные по ЛЕВОМУ краю (левый край
   «Белград» совпадает с левым краем «Для мастеров»): сверху — статус
   (мастера + счётчик), снизу — навигация (город + язык). Сам блок держится
   у правого края через margin-left:auto. Дизайн плашек не меняется. Хабы. ── */
@media (min-width: 769px) {
    header:has(.header-controls) {
        justify-content: flex-start;
    }
    .header-controls {
        flex: 0 0 auto;            /* ширина по контенту — по самой широкой строке */
        margin-left: auto;         /* прижимает весь блок к правому краю шапки */
        flex-direction: column;    /* две строки плашек друг под другом */
        flex-wrap: nowrap;
        align-items: flex-start;   /* обе строки стартуют из одной левой вертикали */
        gap: 0.6rem;
    }
    /* Каждая строка — ряд плашек, растянутый на всю ширину блока и прижатый влево */
    .header-controls .header-group {
        justify-content: flex-start;
    }
    /* Верхняя строка — статус (мастера + счётчик). В разметке это вторая группа */
    .header-controls .header-group:last-child {
        order: 1;
    }
    /* Нижняя строка — навигация (город + язык). В разметке это первая группа.
       Растягиваем на всю ширину блока и разводим город/язык по краям, чтобы
       правый край языка (ENG) встал вровень с правым краем счётчика сверху. */
    .header-controls .header-group:first-child {
        order: 2;
        align-self: stretch;          /* строка занимает всю ширину блока */
        justify-content: space-between;/* город — слева, язык — справа */
    }

    /* ── Страницы БЕЗ переключателя города (анкета мастера и т.п.) ──────────
       В нижней строке остаётся один переключатель языка, и при space-between он
       прижимался к левому краю — вставал под «Для клиентов», а не под счётчиком.

       Раскладываем ОБЕ строки одной сеткой из двух колонок: ширину первой задаёт
       «Для клиентов», второй — счётчик. Переключатель языка кладём во вторую
       колонку — он автоматически встаёт ровно под счётчик и получает его ширину.
       Ничего не захардкожено: колонки считает сама сетка, поэтому раскладка не
       поедет от длины текста на другом языке. */
    .header-controls:not(:has(.city-switcher)) {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: end;         /* блок держится у правого края шапки */
    }
    /* Группы больше не контейнеры-строки: их содержимое раскладывает сама сетка */
    .header-controls:not(:has(.city-switcher)) .header-group {
        display: contents;
    }
    .header-controls:not(:has(.city-switcher)) .audience-link {
        grid-column: 1;
        grid-row: 1;
    }
    .header-controls:not(:has(.city-switcher)) .online-counter {
        grid-column: 2;
        grid-row: 1;
    }
    /* Переключатель языка — вторая колонка, под счётчиком, во всю её ширину */
    .header-controls:not(:has(.city-switcher)) .language-switcher {
        grid-column: 2;
        grid-row: 2;
    }
    /* Кнопки RUS/SRB/ENG делят ширину поровну — переключатель выглядит цельной
       плашкой, как счётчик сверху, а не тремя кнопками, прижатыми влево. */
    .header-controls:not(:has(.city-switcher)) .lang-btn {
        flex: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    animation: slideDown 0.8s ease-out;
}


.logo-text {
    text-align: left;
    position: relative;
    z-index: 2;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--construction-yellow);
    text-transform: uppercase;
    line-height: 1;
}

/* Заголовок-логотип — ссылка на главную страницу своего языка.
   Сам <a> обёрнут ВНУТРЬ .logo-title, поэтому размер и жирность наследуются от
   родителя — менять типографику здесь не нужно. Задача этих правил одна: убрать
   браузерные украшения ссылки, чтобы заголовок визуально не отличался от прежнего
   <div> (без подчёркивания и без синего/фиолетового цвета посещённой ссылки).
   :visited и :-webkit-any-link дублируют цвет намеренно — тот же приём, что у
   .header-phone-link: без них WebKit/Safari перекрашивает посещённую ссылку. */
.logo-title-link,
.logo-title-link:visited,
.logo-title-link:hover,
.logo-title-link:active,
.logo-title-link:focus,
.logo-title-link:-webkit-any-link {
    color: inherit;              /* жёлтый цвет берётся у .logo-title */
    text-decoration: none;       /* главное требование: никакой полосы подчёркивания */
    -webkit-text-decoration: none;  /* Safari: префиксное свойство перебивает дефолт */
    text-decoration-line: none;  /* страховка, если где-то выставлен shorthand */
    border-bottom: none;         /* на случай подчёркивания рамкой из других правил */
    cursor: pointer;
    display: inline-block;       /* корректная область клика по всей строке */
}

/* Наведение: лёгкое свечение вместо подчёркивания — как у остальных ссылок шапки. */
.logo-title-link:hover {
    text-shadow: 0 0 12px rgba(253, 185, 19, 0.55);
}

/* Доступность: видимая рамка только при переходе с клавиатуры (Tab), не по клику мышью. */
.logo-title-link:focus-visible {
    outline: 2px solid var(--construction-yellow);
    outline-offset: 4px;
    border-radius: 4px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--safety-green);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.header-phone {
    margin-top: 0.3rem;
}

.header-phone-link {
    color: var(--safety-green);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    padding: 0.2rem 0;
    display: inline-block;
}

.header-phone-link:visited,
.header-phone-link:-webkit-any-link {
    color: var(--safety-green);
}

.header-phone-link:hover {
    color: var(--construction-yellow);
    text-shadow: 0 0 10px rgba(253, 185, 19, 0.5);
}

.header-support {
    margin-top: 0.2rem;
}

.header-support-link {
    color: var(--construction-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-support-link:visited,
.header-support-link:-webkit-any-link {
    color: var(--construction-yellow);
}

.header-support-link:hover {
    color: var(--construction-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ============================================
   СЧЕТЧИК ОНЛАЙН МАСТЕРОВ
   ============================================ */
.online-counter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--safety-green);
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out 0.5s backwards;
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.3);
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: var(--safety-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--safety-green), 0 0 20px var(--safety-green);
    animation: pulse-online 1.5s ease-in-out infinite;
    transition: opacity 0.6s ease, box-shadow 0.6s ease;
    position: relative;
}

.online-indicator::before,
.online-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid var(--safety-green);
    opacity: 0;
    animation: ripple 3.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.online-indicator::after {
    animation-delay: 1.75s;
}

.online-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.online-count {
    color: var(--safety-green);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.online-count.updating {
    transform: scale(1.15);
}

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px var(--safety-green), 0 0 30px var(--safety-green), 0 0 45px var(--safety-green);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 8px var(--safety-green), 0 0 15px var(--safety-green);
    }
}

@keyframes ripple {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(3.5);
    }
}

.audience-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--safety-green);
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out 0.4s backwards;
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.3);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.audience-link svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
    animation: spin-slow 8s linear infinite;
}

.audience-link-text {
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 38%,
        rgba(255,255,255,0.2) 42%,
        rgba(255,255,255,1) 45%,
        rgba(255,255,255,0.2) 48%,
        #fff 52%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 5s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
.audience-link:hover {
    box-shadow: 0 4px 25px rgba(6, 255, 165, 0.5);
    transform: translateY(-1px);
}
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 3rem 5% 8rem;
    text-align: center;
    z-index: 1;
    background-color: var(--dark-concrete);
    background-image:
        linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
        url('../image/hero-bg.webp');
    background-position: 0 0, center center;
    background-size: 100% 100%, 50%;
    background-repeat: no-repeat;
}

.hero h1,
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.1vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    font-weight: 800;
    color: #d0d0d0;
    min-height: 2.6em;
}

@media (min-width: 769px) {
    .hero-title {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Курсор для эффекта печатной машинки */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #d0d0d0;
    margin-left: 4px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
    transform: scaleY(0.7);
    transform-origin: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 4rem);
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #ccc;
    animation: fadeIn 1s ease-out 0.5s backwards;
    line-height: 1.8;
}

.hero-subtitle .highlight {
    color: var(--construction-yellow);
    font-weight: 700;
    display: block;
    margin-top: 1rem;
}

/* ============================================
   СТАТИСТИКА
   ============================================ */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.7s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    color: var(--safety-green);
    line-height: 1;
    font-weight: 700;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   НАШИ УСЛУГИ — SERVICES SECTION
   ============================================ */
.services-section {
    position: relative;
    z-index: 1;
    padding: 3rem 5% 4rem;
}

.services-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.services-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    text-align: center;
    color: #FDB913;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 185, 19, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--construction-yellow), var(--construction-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
.service-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    border-color: var(--construction-yellow);
    box-shadow: 0 20px 50px rgba(253, 185, 19, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}
}

.service-card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.15), rgba(253, 185, 19, 0.05));
    border: 3px solid var(--construction-yellow);
    box-shadow: 0 0 30px rgba(253, 185, 19, 0.3), inset 0 0 20px rgba(253, 185, 19, 0.1);
    transition: all 0.4s ease;
    flex-shrink: 0;
    animation: icon-pulse 3s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
.service-card:hover .service-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 50px rgba(253, 185, 19, 0.6), inset 0 0 30px rgba(253, 185, 19, 0.2);
    border-color: rgba(253, 185, 19, 1);
}
}

.service-card-icon svg {
    width: 60px;
    height: 60px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.service-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex: 1;
}

.service-card-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--construction-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--construction-yellow);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.service-card:hover .service-card-link {
    background: var(--construction-yellow);
    color: var(--dark-concrete);
}
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ============================================
   СЕКЦИИ (ДЛЯ МАСТЕРОВ / ДЛЯ КЛИЕНТОВ)
   ============================================ */
.sections-container {
    position: relative;
    z-index: 1;
    padding: 0 5% 4rem;
}

.split-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.section-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    animation: scaleIn 0.6s ease-out backwards;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    border: 1px solid transparent;
}

.section-card:nth-child(1) {
    animation-delay: 0.8s;
    border-color: var(--construction-yellow);
}

.section-card:nth-child(2) {
    animation-delay: 1s;
    border-color: var(--construction-yellow);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--construction-yellow), var(--construction-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.section-card:nth-child(1):hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(253, 185, 19, 0.2);
}

.section-card:nth-child(2):hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(253, 185, 19, 0.2);
}
}

.section-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-icon svg {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 2;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Круглая рамка для иконки клиентов (зеленая) */
.icon-clients {
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.15), rgba(253, 185, 19, 0.05));
    border: 3px solid var(--construction-yellow);
    box-shadow: 
        0 0 30px rgba(253, 185, 19, 0.3),
        inset 0 0 20px rgba(253, 185, 19, 0.1);
}

@media (hover: hover) and (pointer: fine) {
.icon-clients:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 0 50px rgba(253, 185, 19, 0.6),
        inset 0 0 30px rgba(253, 185, 19, 0.2);
    border-color: rgba(253, 185, 19, 1);
}
}

/* Круглая рамка для иконки мастеров (желтая) */
.icon-masters {
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.15), rgba(253, 185, 19, 0.05));
    border: 3px solid var(--construction-yellow);
    box-shadow: 
        0 0 30px rgba(253, 185, 19, 0.3),
        inset 0 0 20px rgba(253, 185, 19, 0.1);
}

@media (hover: hover) and (pointer: fine) {
.icon-masters:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 0 50px rgba(253, 185, 19, 0.6),
        inset 0 0 30px rgba(253, 185, 19, 0.2);
    border-color: rgba(253, 185, 19, 1);
}
}

/* Анимация пульсации */
@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

@keyframes text-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.section-icon {
    animation: icon-pulse 3s ease-in-out infinite;
}

.section-card:nth-child(2) .section-icon {
    animation-delay: 1.5s;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #d0d0d0;
    flex-shrink: 0;
}

.section-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--construction-yellow);
}

/* ============================================
   СПИСКИ ПРЕИМУЩЕСТВ
   ============================================ */
.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    font-family: 'Montserrat', sans-serif;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--steel-gray);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-left: 2rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--construction-orange);
    font-size: 1.5rem;
    line-height: 1;
}

.benefits-list li strong {
    font-weight: 600;
    color: var(--construction-yellow);
}

/* ============================================
   CTA КНОПКИ - GLASSMORPHISM СТИЛЬ
   ============================================ */

.cta-button {
    display: block;
    margin: 0 auto;
    width: fit-content;
    padding: 1.2rem 2.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    
    /* Glassmorphism эффект */
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    
    /* Тени и переходы */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
}
}

/* Вариант для клиентов - зеленый */
.cta-clients {
    border: 3px solid var(--safety-green);
    box-shadow: 
        0 8px 32px rgba(6, 255, 165, 0.3),
        0 0 40px rgba(6, 255, 165, 0.2),
        inset 0 1px 0 rgba(6, 255, 165, 0.2);
}

@media (hover: hover) and (pointer: fine) {
.cta-clients:hover {
    box-shadow:
        0 12px 40px rgba(6, 255, 165, 0.5),
        0 0 60px rgba(6, 255, 165, 0.4),
        inset 0 1px 0 rgba(6, 255, 165, 0.3);
    border-color: var(--safety-green);
    background: rgba(6, 255, 165, 0.15);
}
}

/* Вариант для мастеров - желтый */
.cta-masters {
    border: 3px solid var(--construction-yellow);
    box-shadow: 
        0 8px 32px rgba(253, 185, 19, 0.3),
        0 0 40px rgba(253, 185, 19, 0.2),
        inset 0 1px 0 rgba(253, 185, 19, 0.2);
}

@media (hover: hover) and (pointer: fine) {
.cta-masters:hover {
    box-shadow:
        0 12px 40px rgba(253, 185, 19, 0.5),
        0 0 60px rgba(253, 185, 19, 0.4),
        inset 0 1px 0 rgba(253, 185, 19, 0.3);
    border-color: var(--construction-yellow);
    background: rgba(253, 185, 19, 0.15);
}
}

/* Вариант для footer - оранжевый */
.cta-footer {
    border: 3px solid var(--construction-orange);
    box-shadow: 
        0 8px 32px rgba(255, 107, 53, 0.3),
        0 0 40px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 107, 53, 0.2);
}

@media (hover: hover) and (pointer: fine) {
.cta-footer:hover {
    box-shadow:
        0 12px 40px rgba(255, 107, 53, 0.5),
        0 0 60px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 107, 53, 0.3);
    border-color: var(--construction-orange);
    background: rgba(255, 107, 53, 0.15);
}
}

.cta-button span {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.cta-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.cta-sub {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

/* ============================================
   КАК ЭТО РАБОТАЕТ
   ============================================ */
.how-it-works {
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 1;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    text-align: center;
    color: var(--construction-yellow);
    margin-bottom: 4rem;
    letter-spacing: 0.5px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    animation: slideUp 0.6s ease-out backwards;
}

.step-card[data-step="1"] { animation-delay: 0.1s; border-color: var(--construction-yellow); }
.step-card[data-step="2"] { animation-delay: 0.2s; border-color: var(--construction-yellow); }
.step-card[data-step="3"] { animation-delay: 0.3s; border-color: var(--construction-yellow); }
.step-card[data-step="4"] { animation-delay: 0.4s; border-color: var(--construction-yellow); }

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--construction-yellow), var(--construction-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
.step-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(253, 185, 19, 0.3);
}

.step-card:hover::before {
    transform: scaleX(1);
}
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(253, 185, 19, 0.1);
    line-height: 1;
    margin-bottom: -1rem;
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.15), rgba(253, 185, 19, 0.05));
    border: 3px solid var(--construction-yellow);
    box-shadow: 0 0 30px rgba(253, 185, 19, 0.3), inset 0 0 20px rgba(253, 185, 19, 0.1);
    transition: all 0.4s ease;
    animation: icon-pulse 3s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
.step-card:hover .step-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 50px rgba(253, 185, 19, 0.6), inset 0 0 30px rgba(253, 185, 19, 0.2);
    border-color: rgba(253, 185, 19, 1);
}
}

.step-icon svg {
    width: 60px;
    height: 60px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--construction-yellow);
    margin-bottom: 0.8rem;
    text-align: center;
}

.step-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   STEPS BUTTON
   ============================================ */
.steps-button {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.steps-button .cta-button {
    flex: 0 1 350px;
}

/* ============================================
   TESTIMONIALS BUTTON
   ============================================ */
.testimonials-button {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.testimonials-button .cta-button {
    flex: 0 1 350px;
}

/* ============================================
   ОТЗЫВЫ МАСТЕРОВ
   ============================================ */
.testimonials {
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 1;
    background: transparent;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 12px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: scaleIn 0.6s ease-out backwards;
    display: flex;
    flex-direction: column;
}

/* Отзывы клиентов — зеленая обводка */
.testimonials-clients .testimonial-card {
    border: 1px solid var(--construction-yellow);
}

/* Отзывы мастеров — желтая обводка */
.testimonials-masters .testimonial-card {
    border: 1px solid var(--construction-yellow);
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(253, 185, 19, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
.testimonial-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 255, 165, 0.2);
}

/* Hover для секции мастеров — желтая тень */
.testimonials-masters .testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(253, 185, 19, 0.2);
}
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--construction-yellow), var(--construction-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-concrete);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.testimonial-profession {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--safety-green);
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    margin-top: 0.5rem;
}

.star {
    color: var(--construction-yellow);
    font-size: 1.2rem;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    flex: 1;
    min-width: 140px;
    padding: 1rem;
    background: rgba(253, 185, 19, 0.1);
    border: 1px solid rgba(253, 185, 19, 0.3);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80px;
}

@media (hover: hover) and (pointer: fine) {
.stat-badge:hover {
    background: rgba(253, 185, 19, 0.15);
    border-color: var(--construction-yellow);
}
}

.stat-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--construction-yellow);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(253, 185, 19, 0.3);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }

@media (hover: hover) and (pointer: fine) {
.faq-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--construction-yellow);
}
}

.faq-item.active {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--safety-green);
    box-shadow: 0 8px 30px rgba(6, 255, 165, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.faq-question:hover {
    background: rgba(253, 185, 19, 0.05);
}
}

.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--construction-yellow), var(--construction-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-concrete);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.faq-text {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.faq-arrow {
    font-size: 2rem;
    color: var(--construction-yellow);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
    color: var(--safety-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 5rem;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

.faq-answer strong {
    color: var(--safety-green);
    font-weight: 700;
}

/* ============================================
   FAQ BUTTONS
   ============================================ */
.faq-buttons {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.faq-buttons .cta-button {
    flex: 0 1 350px;
}

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
    text-align: center;
    padding: 16rem 5%;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
        url('../image/footer-cta-bg.webp') center center / 50% no-repeat;
    background-color: #1a1a1a;
}

.footer-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size:4rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: var(--white);
    line-height: 1.3;
    /* animation: pulse 2s ease-in-out infinite; */
}

.footer-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
    letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 5%;
    text-align: center;
    border-top: 4px solid var(--construction-yellow);
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--safety-green);
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-link {
    color: var(--construction-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--construction-orange);
}

.footer-privacy {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE — ПЛАНШЕТЫ (769px – 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    header {
        padding: 1.5rem 4%;
    }

    .hero {
        padding: 4rem 4% 5rem;
    }

    .hero h1,
    .hero-title {
        font-size: 3.5rem;
    }

    .sections-container {
        padding: 0 4% 3rem;
    }

    .split-sections {
        gap: 1.5rem;
    }

    .section-card {
        padding: 2.5rem;
    }
    
    .section-icon {
        width: 80px;
        height: 80px;
    }
    
    .section-icon svg {
        width: 50px;
        height: 50px;
    }

    .footer-cta {
        padding: 4rem 4%;
    }
}

/* ============================================
   RESPONSIVE — ПЛАНШЕТЫ ВЕРТИКАЛЬНЫЕ (до 968px)
   ============================================ */
@media (max-width: 968px) {
    .split-sections {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .hero-title {
        font-size: 3rem;
    }

    
    .logo-title {
        font-size: 2rem;
    }

    .stats {
        gap: 2rem;
    }

    .section-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem 4%;
        justify-content: flex-start;
    }

    .logo {
        gap: 0.8rem;
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    
    .online-counter {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .online-text {
        font-size: 0.85rem;
    }
    
    .online-count {
        font-size: 1rem;
    }
    
    .online-indicator {
        width: 8px;
        height: 8px;
    }

    .audience-link {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .online-indicator::before,
    .online-indicator::after {
        border-width: 1px;
    }
    
    /* Постоянная подсветка карточек на мобильных — убрана, так как обводка теперь постоянная */

    .logo-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero {
        padding: 2.5rem 4% 3rem;
        background:
            linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.75)),
            url('../image/hero-bg.webp') center/cover no-repeat;
    }

    .hero h1,
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stats {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .split-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .section-card {
        padding: 2rem;
    }
    
    .section-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }
    
    .section-icon svg {
        width: 45px;
        height: 45px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-tagline {
        font-size: 0.9rem;
    }

    .benefits-list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
    }

    .cta-main {
        font-size: 1rem;
    }

    .cta-sub {
        font-size: 0.75rem;
    }

    .footer-cta {
        padding: 8rem 4%;
        background:
            linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.8)),
            url('../image/footer-cta-bg.webp') center/cover no-repeat;
        background-color: #1a1a1a;
    }

    .footer-cta-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .footer-cta-text {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    footer {
        padding: 1.5rem 4%;
    }
}

/* ============================================
   RESPONSIVE — МОБИЛЬНЫЕ УСТРОЙСТВА (< 640px)
   ============================================ */
@media (max-width: 640px) {
    .hero h1,
    .hero-title {
        font-size: clamp(1.5rem, 1.2rem + 3vw, 4rem);
        font-weight: 900;
    }

    .subtitle {
        font-size: clamp(1rem, 1.4vw, 1.8rem);
        font-weight: 500;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 2.2vw, 3rem);
        font-weight: 500;
        color: whitesmoke;
    }

    .hero-subtitle .highlight {
        font-size: clamp(1rem, 2.2vw, 3rem);
        font-weight: 500;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .cta-main {
        font-size: 1rem;
    }

    .footer-cta-title {
        font-size: 1.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-cta-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .footer-text {
        font-size: 0.9rem;
    }
    
    /* Адаптив для новых секций */
    .section-heading {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .faq-text {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem 4rem;
    }
}

/* ============================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ
   ============================================ */
.language-switcher {
    position: relative;
    display: flex;
    gap: 0.5rem;
    background: var(--dark-concrete);
    padding: 0.4rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.language-switcher::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 27px;
    background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000, #ff8800, #00ffff, #ff00ff, #88ff00, #8800ff, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000);
    background-size: 400%;
    z-index: -1;
    animation: rainbow 20s linear infinite;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes rainbow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(253, 185, 19, 0.3);
    color: rgba(255, 255, 255, 0.6);
    /* Отступы чуть меньше «круглых» 0.5rem: радужная рамка ::before занимает
       внутри плашки 2px, и при 0.5rem кнопка вырастала до 39px — переключатель
       языка выглядел толще переключателя города. С 0.42rem кнопка снова 36px,
       а плашка целиком остаётся 52px, вровень со счётчиком и «Для мастеров».
       Значение совпадает с эталоном (Сербия). */
    padding: 0.42rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    text-decoration: none;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--construction-yellow), var(--construction-orange));
    color: var(--dark-concrete);
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
}

.lang-btn:focus {
    outline: none;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
/* Пока открыта модалка — фон не прокручивается (позиция фиксируется из JS) */
body.modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 40, 0.95));
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border: 2px solid rgba(253, 185, 19, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--construction-yellow);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--construction-yellow);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--safety-green);
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: none;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--construction-yellow);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(253, 185, 19, 0.3);
}

/* Зелёная рамка «поле заполнено верно» — только для полей ВВОДА.
   У <select> плейсхолдера нет, поэтому :placeholder-shown к нему неприменим,
   и парное правило :invalid:not(:placeholder-shown) ниже срабатывало бы всегда.
   Состояние селекта показываем отдельным правилом — после выбора значения. */
.contact-form input:valid,
.contact-form textarea:valid {
    border-color: rgba(6, 255, 165, 0.5);
}

/* Селект считается заполненным, когда выбран непустой вариант.
   :has() поддерживают все актуальные браузеры; там, где его нет, рамка просто
   останется нейтральной — поведение формы от этого не зависит. */
.contact-form select:has(option[value=""]:checked) {
    /* placeholder ещё выбран — нейтральная рамка, без «ошибки» и без «успеха» */
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-form select:not(:has(option[value=""]:checked)):valid {
    border-color: rgba(6, 255, 165, 0.5);
}

.contact-or-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--construction-yellow);
    text-align: center;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   THANK YOU MODAL
   ============================================ */
.thank-you-content {
    text-align: center;
    padding: 3rem 2.5rem;
    max-width: 500px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.2), rgba(253, 185, 19, 0.05));
    border: 4px solid var(--construction-yellow);
    box-shadow: 0 0 50px rgba(253, 185, 19, 0.4), inset 0 0 30px rgba(253, 185, 19, 0.1);
    animation: thankYouPulse 2s ease-in-out infinite;
}

.thank-you-icon-master {
    background: radial-gradient(circle at 30% 30%, rgba(253, 185, 19, 0.2), rgba(253, 185, 19, 0.05));
    border-color: var(--construction-yellow);
    box-shadow: 0 0 50px rgba(253, 185, 19, 0.4), inset 0 0 30px rgba(253, 185, 19, 0.1);
}

.thank-you-icon-master svg {
    color: var(--construction-yellow);
}

@keyframes thankYouPulseMaster {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(253, 185, 19, 0.4), inset 0 0 30px rgba(253, 185, 19, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 70px rgba(253, 185, 19, 0.6), inset 0 0 40px rgba(253, 185, 19, 0.15);
    }
}

.thank-you-icon-master {
    animation: thankYouPulseMaster 2s ease-in-out infinite;
}

.thank-you-icon svg { 
    width: 45px;
    height: 45px;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    stroke-width: 3;
}

/* Единая анимация пульсации (жёлтая тема) */
@keyframes thankYouPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 50px rgba(253, 185, 19, 0.4), inset 0 0 30px rgba(253, 185, 19, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 70px rgba(253, 185, 19, 0.6), inset 0 0 40px rgba(253, 185, 19, 0.15);
  }
}

.thank-you-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--construction-yellow);
    margin-bottom: 1.5rem;
}

.thank-you-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.thank-you-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(253, 185, 19, 0.1);
    border: 2px solid rgba(253, 185, 19, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.thank-you-badge:hover {
    background: rgba(253, 185, 19, 0.15);
    border-color: var(--construction-yellow);
    transform: translateY(-2px);
}

.badge-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.badge-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--construction-yellow);
}

/* Блок доверия в модалке благодарности мастеру: две строки «данные защищены /
   не передаются третьим лицам». Нейтральный (не жёлтый) — это гарантия, а не акцент. */
.thank-you-privacy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.thank-you-privacy-item {
    display: block;   /* каждая гарантия — своей строкой, даже без flex */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.thank-you-btn {
    background: linear-gradient(135deg, var(--safety-green), #00D488);
    color: var(--dark-concrete);
    border: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;          /* Заставляет элемент занимать всю строку */
    width: 100%;             /* Растягивает на всю ширину контейнера (удобно для мобильных) */
    margin-top: 1.5rem;
}

.thank-you-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 255, 165, 0.5);
}

.thank-you-btn:active {
    transform: translateY(0);
}

.thank-you-master-btn {
    background: linear-gradient(135deg, var(--construction-yellow), var(--construction-orange));
    display: block;          /* Заставляет элемент занимать всю строку */
    width: 100%;             /* Растягивает на всю ширину контейнера (удобно для мобильных) */
    margin-top: 1.5rem;      /* Отступ сверху от блока "Время обработки" */
}

.thank-you-master-btn:hover {
    box-shadow: 0 15px 40px rgba(253, 185, 19, 0.5);
}

/* Красная рамка «заполнено неверно» — только для полей ВВОДА.
   :not(:placeholder-shown) означает «человек уже что-то напечатал»: пустое поле
   не должно выглядеть ошибочным до первого ввода.
   <select> из правила ИСКЛЮЧЁН намеренно: плейсхолдера у него нет, псевдокласс
   :placeholder-shown неприменим, поэтому условие было истинным всегда — и все
   обязательные селекты («Район работы», «Ваша специальность») краснели сразу
   при открытии формы, до того как человек к ним притронулся. */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 100, 100, 0.5);
}

.contact-form input[type="number"]::-webkit-inner-spin-button,
.contact-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.contact-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Своя стрелка вместо системной.
   Системную стрелку браузер рисует вплотную к правой границе поля, и padding
   на неё не действует — она выглядела прижатой к краю и по-разному в Chrome,
   Firefox и Safari. Рисуем свою фоном: позицию и отступ задаём сами.
   SVG инлайном (data:) — отдельный файл ради одной иконки не нужен. */
.contact-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    /* Справа оставляем место под стрелку, чтобы длинный текст её не задевал */
    padding-right: 2.75rem;
}

.contact-form select option {
    background: var(--dark-concrete);
    color: #fff;
}

.consent-wrapper {
    margin: 1.5rem 0 1rem;
}

.consent-label {
    /* inline-flex + fit-content: кликабельна только зона «чекбокс + текст»,
       а не вся ширина формы (иначе клик по пустому месту переключал галочку). */
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.consent-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--construction-yellow);
}

/* Чекбоксы согласия и «Срочно»: гасим наследие .contact-form input (рамка/фон/
   свечение/переходы и эффекты :focus/:valid), иначе при клике они «прыгают»
   и подсвечиваются. */
.consent-label input[type="checkbox"],
.consent-label input[type="checkbox"]:focus,
.consent-label input[type="checkbox"]:valid {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    transition: none;
    outline: none;
}

.consent-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.submit-btn {
    background: linear-gradient(135deg, var(--construction-yellow), var(--construction-orange));
    color: var(--dark-concrete);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(253, 185, 19, 0.5);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Скроллбар для модального окна */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--construction-yellow);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--construction-orange);
}

/* ============================================
   КНОПКА "ВВЕРХ"
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Убираем дефолтное выделение на мобильных */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}   

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top.whatsapp-fab {
    width: 65px;
    height: 65px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000, #ff8800, #00ffff, #ff00ff, #88ff00, #8800ff, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000);
    background-size: 400%;
    z-index: -1;
    animation: rainbow 20s linear infinite;
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.scroll-to-top.whatsapp-fab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.8); /* Увеличение размера кнопки*/
    transition: transform 0.2s;
}

.scroll-to-top.whatsapp-fab:hover {
    transform: scale(1.1) !important;
    animation-play-state: paused; /* Останавливаем вращение при наведении */
}

.scroll-to-top.whatsapp-fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* ============================================
   КОНТАКТНЫЙ FAB: нейтральная «чат»-иконка + меню WhatsApp/Telegram
   ============================================ */
/* Нейтральная заливка FAB, когда он стал переключателем меню (внутри — chat SVG).
   Радужное кольцо (::before) и размеры наследуются от .whatsapp-fab. */
.scroll-to-top.contact-fab {
    cursor: pointer;
}

/* Радужное вращающееся кольцо (от .whatsapp-fab) убрано — FAB теперь
   морфит иконку (чат → Telegram → WhatsApp) и по нему пробегает блик. */
.scroll-to-top.contact-fab::before {
    content: none;
}

/* Контейнер слоёв: круг с обрезкой — логотипы и блик не вылезают за края. */
.scroll-to-top.contact-fab .cf-morph {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

/* Слои-кадры лежат друг на друге, оба непрозрачны. Видимость решает z-index:
   передний (is-front) перекрывает задний. Смена — плавный «wipe»: новый слой
   проявляется по диагональной линии слева направо, вслед за бликом. */
.scroll-to-top.contact-fab .cf-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    clip-path: circle(75% at 50% 50%);   /* полностью раскрыт */
    pointer-events: none;
}

.scroll-to-top.contact-fab .cf-layer.is-front {
    z-index: 2;
}

/* «Wipe»: новый передний слой прокрашивается по диагональной линии слева
   направо. Линия наклонена так же, как блик (skewX), и блик идёт чуть впереди —
   получается «свет прошёл → за ним проявился новый логотип». forwards держит
   полностью раскрытое состояние, пока слой остаётся передним. */
.scroll-to-top.contact-fab .cf-layer.cf-wipe {
    animation: cf-wipe-in 1.3s linear forwards;
}

@keyframes cf-wipe-in {
    0%   { clip-path: polygon(-40% 0%, -15% 0%, -40% 100%, -40% 100%); }
    100% { clip-path: polygon(-40% 0%, 140% 0%, 115% 100%, -40% 100%); }
}

.scroll-to-top.contact-fab .cf-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Вписываем логотипы в круг тем же масштабом, что и в меню (вокруг них прозрачные
   поля). Фон под слоем — чтобы в углах не просвечивало: tg голубой, wa зелёный. */
.scroll-to-top.contact-fab .cf-layer--tg { background: #29a8e0; }
.scroll-to-top.contact-fab .cf-layer--tg img { transform: scale(1.32); }
.scroll-to-top.contact-fab .cf-layer--wa { background: #25d366; }
.scroll-to-top.contact-fab .cf-layer--wa img { transform: scale(1.7); }

/* Блик: мягкая световая полоса. Центр блика совпадает с линией прокраски
   пиксель-в-пиксель — не опережает её. Для этого:
   • оба — linear (равномерно): тогда clip-path и left идут синхронно. При
     cubic-bezier они расходятся (clip-path и left по-разному реагируют на
     покадровый easing), а на linear совпадают пиксель-в-пиксель;
   • центр блика = середина границы wipe (от -27.5% до 127.5%) минус половина
     ширины (24%) → диапазон left -51.5% … 103.5%. Проценты left и проценты
     clip-path считаются от одного блока (cf-morph), поэтому совпадают напрямую;
   • наклон skewX(-14deg) совпадает с наклоном линии wipe (≈14°: слант 25%
     ширины на 100% высоты). skewX крутит вокруг центра — центр не уезжает;
   • keyframes — два кадра (0%/100%), как у wipe. Затухание не нужно: вне круга
     блик обрезается круглым overflow:hidden. */
.scroll-to-top.contact-fab .cf-shine {
    position: absolute;
    top: -15%;
    left: -51.5%;
    width: 48%;
    height: 130%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.793) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-14deg);
    filter: blur(1px);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.contact-fab .cf-shine.go {
    opacity: 1;
    animation: cf-shine-sweep 1.3s linear;
}

@keyframes cf-shine-sweep {
    0%   { left: -51.5%; }
    100% { left: 103.5%; }
}

/* Контейнер с двумя опциями — над FAB, отдельно от него (у FAB overflow:hidden). */
.contact-fab-menu {
    position: fixed;
    right: 45px;          /* центрируем 56px-опции под центром 80px-FAB (right:30 + (80-56)/2 - 3) */
    bottom: 120px;        /* над FAB: 30 (bottom) + 80 (высота) + 10 (зазор) */
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10001;   /* над FAB (10000) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.contact-fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-opt {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Фон под цвет бренда — страховка, чтобы из-под иконки не выглядывал белый круг,
   если у исходной картинки есть поля вокруг логотипа. */
.contact-opt--wa { background: #25d366; }   /* WhatsApp зелёный */
.contact-opt--tg { background: #29a8e0; }   /* Telegram голубой */

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

/* У исходников логотип занимает не весь кадр (вокруг поля): масштабируем так,
   чтобы цветной круг заполнял контейнер до краёв, лишнее обрезает overflow:hidden. */
.contact-opt--wa img { transform: scale(1.7); }    /* зелёный круг ~60% кадра */
.contact-opt--tg img { transform: scale(1.32); }   /* голубой круг ~76% кадра */

.contact-opt:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.contact-opt:active {
    transform: scale(0.95);
}

/* Лёгкое каскадное появление: Telegram чуть раньше, WhatsApp следом. */
.contact-fab-menu.open .contact-opt--tg { transition-delay: 0.04s; }
.contact-fab-menu.open .contact-opt--wa { transition-delay: 0.10s; }

@media (max-width: 768px) {
    .contact-fab-menu { right: 35px; bottom: 110px; }  /* FAB на мобильных: bottom 20 + 80 + 10 */
}

@media (max-width: 480px) {
    .contact-fab-menu { right: 30px; bottom: 105px; }  /* FAB: bottom 15 + 80 + 10 */
    .contact-opt { width: 52px; height: 52px; }
}

/* Анимация подёргивания вверх-вниз */
@keyframes bounce-vertical {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ============================================
   АДАПТИВ ДЛЯ НОВЫХ ЭЛЕМЕНТОВ
   ============================================ */
@media (max-width: 768px) {
    .language-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    /* Селекту оставляем место под свою стрелку: сокращённая запись padding
       выше обнуляет правый отступ, и длинный текст наезжал бы на стрелку. */
    .contact-form select {
        padding-right: 2.75rem;
    }

    .consent-label {
        font-size: 0.8rem;
    }
    
    /* Адаптация кнопки "Вверх" для мобильных */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   УНИФИКАЦИЯ ИКОНОК НА МОБИЛЬНЫХ
   ============================================ */
@media (max-width: 1200px) {
    .section-icon,
    .service-card-icon,
    .step-icon {
        width: 80px !important;
        height: 80px !important;
    }
    .section-icon svg,
    .service-card-icon svg,
    .step-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================
   Фото проблемы в клиентской форме (до 3, по желанию)
   ============================================ */
.lead-photo-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lead-photo-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* Нативный input скрыт — его текст задаётся локалью браузера и не переводится */
.lead-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lead-photo-btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--construction-yellow);
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.lead-photo-btn:hover {
    filter: brightness(0.95);
}

.lead-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lead-photo-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.lead-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-photo-remove:hover {
    background: #e53935;
}

/* Кнопка-диплинк «Завершить регистрацию в Telegram» в модалке благодарности мастеру */
.master-tg-finish-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    background: #229ED9;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.master-tg-finish-btn:hover {
    background: #1b86ba;
    transform: translateY(-2px);
}
}

/* ============================================
   ТАЧ-УСТРОЙСТВА (мобильные / планшеты):
   убираем серую/синюю подсветку при тапе по
   карточкам, кнопкам и ссылкам — переход
   срабатывает сразу, без выделения.
   На десктопе (мышь) ничего не меняется.
   ============================================ */
@media (hover: none), (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ============================================
   МОДАЛКА ЗАЯВКИ НА ДЕСКТОПЕ — 2 КОЛОНКИ
   Чтобы форма помещалась без прокрутки. На планшете/мобильном
   остаётся одна колонка. Порог 992px: ниже двум колонкам тесно.
   ============================================ */
@media (min-width: 992px) {

    /* Окно шире дефолтных 500px — иначе двум колонкам мало места */
    #clientLeadFormModal .modal-content,
    #masterLeadFormModal .modal-content {
        max-width: 860px;
        max-height: 92vh;
        padding: 2rem 2.5rem;
    }

    /* Форма — сетка из двух равных колонок */
    #clientLeadFormModal .contact-form,
    #masterLeadFormModal .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem 1.25rem;
        align-items: start;
    }

    /* Элементы во всю ширину (обе колонки) */
    #clientLeadFormModal .contact-form textarea,
    #clientLeadFormModal .lead-photo-wrap,
    #clientLeadFormModal .consent-label,
    #clientLeadFormModal .contact-form .submit-btn,
    #masterLeadFormModal .contact-form textarea,
    #masterLeadFormModal .lead-photo-wrap,
    #masterLeadFormModal .consent-label,
    #masterLeadFormModal .contact-form .submit-btn {
        grid-column: 1 / -1;
    }

    /* Кнопка отправки — по ширине надписи, по центру строки */
    #clientLeadFormModal .contact-form .submit-btn,
    #masterLeadFormModal .contact-form .submit-btn {
        justify-self: center;
        width: auto;
    }

    /* Пара «Telegram ИЛИ WhatsApp» — левая колонка, «или» между ними.
       Только для КЛИЕНТСКОЙ формы: там это два взаимозаменяемых способа связи,
       и они стоят друг под другом с разделителем. В анкете мастера Telegram
       обязателен, а WhatsApp — дополнительный контакт, поэтому они идут парой
       в одной строке (см. раскладку анкеты ниже). */
    #clientLeadFormModal .contact-form input[name="telegram"],
    #masterLeadFormModal .contact-form input[name="telegram"] {
        grid-column: 1;
    }

    #clientLeadFormModal .contact-or-text,
    #masterLeadFormModal .contact-or-text {
        grid-column: 1;
        margin: 0;
        margin-top: -0.35rem;
        margin-bottom: -0.35rem;
    }

    #clientLeadFormModal .contact-form input[name="whatsapp"] {
        grid-column: 1;
    }

    /* Район и категория — правая колонка напротив блока контактов.
       Касается только клиентской формы: в анкете мастера своя раскладка
       парами (ниже), и район там стоит в паре со специальностью. */
    #clientLeadFormModal .contact-form select[name="district"] {
        grid-column: 2;
        grid-row: 2;
    }

    #clientLeadFormModal .contact-form select[name="service"],
    #masterLeadFormModal .contact-form select[name="service"] {
        grid-column: 2;
        grid-row: 4;
    }

    /* Клиентская форма: уточнение района («Другой») — под селектом района,
       правая колонка, row 3. Ниже, в row 4, стоит категория работ — поэтому
       поле уточнения встаёт ровно между ними и ничего не сдвигает.
       Появляется только при выборе «Другой» (скрытое поле сетку не занимает). */
    #clientLeadFormModal .contact-form input[name="district_other"] {
        grid-column: 2;
        grid-row: 3;
    }

    /* ── Анкета мастера: раскладка по парам ────────────────────────
       В анкете мастера разделителя «или» нет (Telegram обязателен,
       WhatsApp — по желанию), поэтому пары идут ровными строками:
         row 1 — имя / телефон,
         row 2 — Telegram / WhatsApp,
         row 3 — город / район,
         row 4 — специальность / опыт,
         row 5 — уточнение «Другое» (появляется по выбору).

       Город и район стоят рядом намеренно: район зависит от города
       (см. initMasterCityDistrict в script.js), и связь двух полей
       должна быть видна глазом.

       Позиции задаём явно: иначе поле specialty_other, появляющееся
       по выбору «Другое», встаёт в ближайшую свободную ячейку и
       двигает соседние поля прямо на глазах у мастера. */
    #masterLeadFormModal .contact-form input[name="whatsapp"] {
        grid-column: 2;
        grid-row: 2;
    }
    #masterLeadFormModal .contact-form select[name="city"] {
        grid-column: 1;
        grid-row: 3;
    }
    #masterLeadFormModal .contact-form select[name="district"] {
        grid-column: 2;
        grid-row: 3;
    }
    #masterLeadFormModal .contact-form select[name="specialty"] {
        grid-column: 1;
        grid-row: 4;
    }
    #masterLeadFormModal .contact-form input[name="experience"] {
        grid-column: 2;
        grid-row: 4;
    }
    /* Уточнение специальности — отдельной строкой, в левой колонке:
       поле появляется по выбору «Другое» и относится к селекту специальности
       над ним. Растянутое на обе колонки оно читалось бы как самостоятельный
       блок формы, а не как уточнение к полю выше. */
    #masterLeadFormModal .contact-form input[name="specialty_other"] {
        grid-column: 1;
        grid-row: 5;
    }

    /* Описание задачи повыше — место есть */
    #clientLeadFormModal .contact-form textarea,
    #masterLeadFormModal .contact-form textarea {
        min-height: 90px;
    }

    /* Скрытые служебные поля не занимают ячейку сетки */
    #clientLeadFormModal .contact-form input[type="hidden"],
    #masterLeadFormModal .contact-form input[type="hidden"],
    #clientLeadFormModal .contact-form input[style*="display:none"],
    #masterLeadFormModal .contact-form input[style*="display:none"] {
        display: none;
    }

    /* Компактнее шапка окна */
    #clientLeadFormModal .modal-title,
    #masterLeadFormModal .modal-title {
        margin-bottom: 0.75rem;
    }

    #clientLeadFormModal .modal-subtitle,
    #masterLeadFormModal .modal-subtitle {
        margin-top: -0.4rem;
        margin-bottom: 1.25rem;
    }

    /* Поля чуть ниже стандартных */
    #clientLeadFormModal .contact-form input,
    #clientLeadFormModal .contact-form select,
    #masterLeadFormModal .contact-form input,
    #masterLeadFormModal .contact-form select {
        padding: 0.8rem 1rem;
    }

    /* Место под свою стрелку (правило выше обнуляет правый отступ).
       Селектор с ID — иначе его перебьёт эта же сокращённая запись. */
    #clientLeadFormModal .contact-form select,
    #masterLeadFormModal .contact-form select {
        padding-right: 2.75rem;
    }
}

/* ── Низкие десктопные экраны (ноутбуки 1366×768 и подобные) ──────
   При высоте окна до 820px ужимаем вертикальные отступы, чтобы
   форма помещалась без скролла. */
@media (min-width: 992px) and (max-height: 820px) {

    #clientLeadFormModal .modal-content,
    #masterLeadFormModal .modal-content {
        padding: 1.5rem 2.5rem 1.75rem;
        max-height: 96vh;
    }

    #clientLeadFormModal .contact-form,
    #masterLeadFormModal .contact-form {
        gap: 0.65rem 1.25rem;
    }

    #clientLeadFormModal .modal-title,
    #masterLeadFormModal .modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    #clientLeadFormModal .modal-subtitle,
    #masterLeadFormModal .modal-subtitle {
        margin-bottom: 0.9rem;
    }

    #clientLeadFormModal .contact-form input,
    #clientLeadFormModal .contact-form select,
    #masterLeadFormModal .contact-form input,
    #masterLeadFormModal .contact-form select {
        padding: 0.65rem 1rem;
    }

    /* Место под свою стрелку (см. комментарий в медиазапросе выше) */
    #clientLeadFormModal .contact-form select,
    #masterLeadFormModal .contact-form select {
        padding-right: 2.75rem;
    }

    #clientLeadFormModal .contact-form textarea,
    #masterLeadFormModal .contact-form textarea {
        min-height: 70px;
        padding: 0.65rem 1rem;
    }

    #clientLeadFormModal .contact-form .submit-btn,
    #masterLeadFormModal .contact-form .submit-btn {
        padding: 0.85rem 2.5rem;
    }
}