/* ============================= */
/* СБРОС */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    overflow: hidden; /* скролл теперь только внутри wrapper */
}

/* ============================= */
/* WRAPPER (СКРОЛЛ + SNAP) */
/* ============================= */

.wrapper {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Каждый экран */
section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

/* ============================= */
/* CONTAINER */
/* ============================= */

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background:#0F172A;
    border-bottom: 1px solid #0F172A;
    z-index: 1000;
}

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 18px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #0F172A;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* ============================= */
/* КНОПКИ */
/* ============================= */

.btn-primary {
    background: #2563EB;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1E40AF;
}

.btn-link {
    margin-left: 20px;
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.svg-law {
    scale: 1.4;
    margin-top: 15px;
    margin-left: 20px;
}

.hero p {
    margin-bottom: 30px;
    color: #64748B;
    font-size: 18px;
}

.hero img {
    width: 450px;
    border-radius: 40px;
}

/* ============================= */
/* ABOUT */
/* ============================= */

.about {
    background: white;
    padding-top: 80px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.about img {
    width: 420px;
    height: 520px;
    object-fit: cover;
    object-position: center top;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.about h2 {
    margin-bottom: 20px;
}

.about li {
    margin-bottom: 12px;
}

/* ============================= */
/* SERVICES */
/* ============================= */

.services {
    padding-top: 80px;
}

.services h2 {
    margin-bottom: 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

/* ============================= */
/* RISKS */
/* ============================= */

.risks {
    background: #0F172A;
    color: white;
    padding-top: 80px;
}

.risks h2 {
    margin-bottom: 40px;
}

.risk-cards {
    display: flex;
    gap: 20px;
}

.risk-card {
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 30px;
    flex: 1;
}

/* ============================= */
/* PROCESS */
/* ============================= */

.process {
    background: white;
    padding-top: 80px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.step {
    background: #F1F5F9;
    padding: 20px 30px;
    border-radius: 30px;
}

/* ============================= */
/* FAQ */
/* ============================= */

.faq {
    padding-top: 80px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 30px;
    margin-bottom: 15px;
}

/* ============================= */
/* CONTACT */
/* ============================= */

.contact {
    background: #2563EB;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.contact h2 {
    margin-bottom: 20px;
}

.btn-white {
    display: inline-block;
    margin-top: 20px;
    background: white;
    color: #2563EB;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

/* Шапка с тенью */

.header {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* более тёмная и большая тень */
    border-radius: 0 0 10px 10px;               /* скругление только снизу */
    overflow: hidden;                            /* чтобы ничего не вылезало за скругление */
}

/* Навигационные ссылки */
nav a {
    display: inline-block;
    font-size: 20px;           /* было 18px */
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 18px;             /* было 15px — чуть шире */
    text-decoration: none;
    color: #ffffff;
}

nav a:hover {
    transform: scale(1.1);      /* увеличение */
    color: #2563EB;             /* тёмно-синий */
}

/* Кнопка */
.btn-primary {
    display: inline-block;
    transition: all 0.3s ease;
    background: #2563EB;
    color: white;
    padding: 12px 28px;          /* было 12px 24px */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;             /* добавлено */
}

.btn-primary:hover {
    transform: scale(1.1);
    background: #1E40AF;
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* левая пустая колонка, центр под nav, правая под кнопку */
    align-items: center;
    height: 80px;
}

nav {
    grid-column: 2;                       /* помещаем в центральную колонку */
    justify-self: center;                  /* центрируем ссылки внутри колонки */
}

.btn-primary {
    grid-column: 3;                        /* помещаем в правую колонку */
    justify-self: end;                      /* прижимаем к правому краю */
}

section {
    height: 100vh;               /* вместо min-height */
    padding-top: 80px;           /* отступ под шапку */
    box-sizing: border-box;      /* padding включён в высоту */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-content {
    display: flex;
    align-items: stretch;        /* дочерние элементы растянутся по высоте */
    justify-content: space-between;
    width: 100%;
    height: 100%;                /* занимает всю высоту родителя (после padding) */
    
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;        /* центрирование по вертикали (базовое) */
    height: 100%;
    flex: 1;
    padding-left: 0px;              /* сдвиг вправо */
    position: relative;
    top: -70px; 
}

.hero-image {
    display: flex;
    align-items: center;             /* центрирование картинки по вертикали */
    justify-content: flex-end;       /* прижатие к правому краю */
    flex-shrink: 0;                  /* запрет сжатия */
}

.hero-image img {
    width: 560px;
    height: 640px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

.hero h1 {
    font-size: 50px;             /* было 64px */
    line-height: 1.1;            /* чуть плотнее */
    margin-bottom: 100px;

}

.hero p {
    margin-bottom: 30px;
    color: #64748B;
    font-size: 22px;              /* увеличено с 18px */
    line-height: 1.6;              /* больше воздуха */
    max-width: 650px;              /* увеличено с 500px, но оставлено для комфортного чтения */
}

.hero .btn-primary {
    margin-top: 130px;              /* опускаем ниже */
    margin-left: 55px;              /* сдвигаем правее */
    padding: 16px 40px;             /* увеличиваем внутренние отступы */
    font-size: 22px;                /* увеличиваем текст */
    background:#2563EB;            /* чёрный фон */
    color: #ffffff;                 /* белый текст */
    border: none;                   /* убираем возможные границы */
    transition: all 0.3s ease; 
    transform: scale(1.3)     /* плавность */
}

.hero .btn-primary:hover {
    background: #1E40AF;             /* тёмно-серый при наведении */
    transform: scale(1.35);           /* увеличение (как и у других кнопок) */
}

body {
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    background: #e4e4e4;         /* грязно-белый */
    overflow: hidden;
}

.btn-primary,
.btn-white {
    border-radius: 15px;  /* было 30px */
}

/* Анимированная стрелка вниз */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 30px;                     /* базовая позиция */
    transform: translateX(-50%);       /* центрирование */
    font-size: 72px;
    color: #0F172A;
    text-decoration: none;
    animation: bounce 2s infinite ease-in-out;  /* анимация покачивания */
    z-index: 100;
    transition: transform 0.3s, color 0.3s;    /* плавное изменение transform и цвета */
}

.scroll-down:hover {
    color: #1E40AF;
    transform: translateX(-50%) scale(1.2);    /* увеличение + центрирование */
    /* animation не отключается, чтобы не было скачка */
}

/* Анимация покачивания через bottom */
@keyframes bounce {
    0%, 100% {
        bottom: 30px;
    }
    50% {
        bottom: 50px;                /* поднимаем стрелку */
    }
}
/* Чтобы стрелка позиционировалась относительно секции hero */
.hero {
    position: relative;
}

nav a.active {
    color: #1E40AF;
    transform: scale(1.2);      /* такое же увеличение, как при hover */
    /* можно добавить transition, если его нет у общего класса */
}

nav a {
    transition: all 0.3s ease;  /* уже должно быть, но на всякий случай */
}

/* Секция about */
.about {
    background: white;            /* оставляем белый фон для контраста */
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: stretch;         /* чтобы колонки были одинаковой высоты */
    width: 100%;
}

.about-content > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;      /* центрирование содержимого по вертикали */
    height: 100%;                 /* занимает всю высоту родителя */
}

.about h2 {
    font-size: 48px;              /* увеличен */
    font-weight: 700;
    text-align: center;           /* по центру по горизонтали */
    margin-bottom: 70px;
}

/* Список */
.about ul {
    list-style: none;             /* убираем маркеры */
    padding-left: 0;
    margin: 0;
}

.about li {
    background: #f8fafc;          /* светлый фон, близкий к общему */
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Можно добавить иконки через псевдоэлементы, но пока оставим так */

.about {
    background: #e4e4e4;          /* новый фон */
}

.about-text {
    margin-right: -100px;
}

.about-content > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;           /* центрирование по горизонтали */
    height: 100%;
}

.about ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;              /* карточки не шире 400px */
}

.about li {
    background: #f8fafc;           /* светлый фон карточек */
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;                   /* растягиваются на ширину ul */
}

.about li:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.services {
    padding-top: 10px;                /* чуть меньше отступ сверху, чтобы заголовок был выше */
}

.services h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 30px;               /* уменьшен отступ после заголовка */
    text-align: left;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;                          /* уменьшено с 20px */
}

.card {
    background: white;
    padding: 35px 30px;                  /* больше внутренних отступов */
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    transition: 0.3s;
    min-height: 220px;                   /* чтобы карточки были выше */
    display: flex;
    flex-direction: column;
    justify-content: center;              /* центрируем содержимое по вертикали */
    box-shadow: 0 20px 30px rgba(0,0,0,0.1)
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.services {
    padding-top: 50px;                /* уменьшили, чтобы заголовок был выше */
}

.services h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 130px;
    text-align: left;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;                         /* увеличено с 10px */
}

.card {
    background: white;
    padding: 35px 30px;
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    transition: 0.3s;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;       /* теперь содержимое прижато к верху */
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
}

.container-serv {
    margin-top: -100px;
    margin-left: 120px;
}

.risks {
    background: #0F172A;
    color: white;
    padding-top: 50px;                /* уменьшен отступ сверху для подъёма заголовка */
}

.risks h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 100px;
    text-align: center;
    color: white;
}

.risk-cards {
    display: flex;
    gap: 25px;                         /* увеличено с 20px */
}

.risk-card {
    background: rgba(255,255,255,0.08);
    padding: 35px 30px;                 /* больше внутренних отступов */
    border-radius: 30px;
    flex: 1;
    transition: 0.3s;
    min-height: 220px;                  /* одинаковая высота */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;         /* содержимое прижато к верху */
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.risk-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.risk-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);        /* более мягкий белый */
    line-height: 1.5;
}

.risk-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

body {
    overflow-x: hidden;          /* запрет горизонтального скролла на уровне body */
}

.wrapper {
    overflow-x: hidden;          /* добавляем к существующему overflow-y: auto */
}

img {
    max-width: 100%;             /* изображения не будут шире родителя */
    height: auto;                /* сохраняем пропорции */
}

.process {
    background: #e4e4e4;
    padding-top: 50px;                /* меньше отступ сверху */
}

.process h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 100px;
    text-align: left;
}

.steps {
    display: flex;
    gap: 25px;                        /* равномерные промежутки */
    flex-wrap: wrap;                   /* на случай узкого экрана */
}

.step {
    background: #F1F5F9;
    padding: 35px 30px;
    border-radius: 30px;
    flex: 1;                           /* все шаги одинаковой ширины */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;       /* содержимое вверху */
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1.4;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    background: #e2e8f0;               /* чуть темнее при наведении */
}
.faq {
    padding-top: 50px;
}

.faq h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 100px;
    text-align: left;
}

.faq-list {
    max-width: 800px;               /* ограничиваем ширину всего списка */
}

.faq-item {
    background: white;
    border-radius: 24px;
    margin-bottom: 15px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 700px;                /* уменьшаем ширину каждого блока */
}

.faq-question {
    padding: 25px 30px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s;
    color: #2563EB;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    font-size: 18px;
    color: #64748B;
    line-height: 1.6;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;               /* достаточно для ответа */
    padding: 0 30px 25px 30px;       /* добавляем нижний отступ при открытии */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);        /* превращаем + в × (или можно менять текст через JS) */
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    color: #2563EB;  /* акцентный синий */
    flex-shrink: 0;   /* иконка не сжимается */
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 20px; /* небольшой отступ сверху */
}

.about-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    color: #2563EB;  /* синий цвет иконок */
    flex-shrink: 0;
}   

/* Иконки для карточек услуг */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #2563EB; /* такой же синий, как в блоке "Обо мне" */
    transition: transform 0.3s ease;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5; /* можно настроить толщину линий */
}

/* Небольшой эффект при наведении на карточку */
.card:hover .card-icon {
    transform: scale(1.05);
}

/* Для сохранения единообразия с уже существующими стилями карточек */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Общий контейнер карточек (сетка) */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточка */
.card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    display: flex;
    gap: 16px;               /* расстояние между иконкой и текстом */
    align-items: flex-start; /* иконка прижата к верху, заголовок начинается с той же линии */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Иконка */
.card-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;          /* не сжимается */
    color: #2563EB;
    transition: transform 0.3s ease;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* Текстовый блок */
.card-text {
    flex: 1;                 /* занимает оставшееся пространство */
}

.card-text h3 {
    margin: 0 0 8px 0;       /* убираем верхний отступ, добавляем нижний */
    font-size: 20px;
}

.card-text p {
    margin: 0;
    color: #64748B;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: 1400px;              /* было 1200px */
    max-width: 100%;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;                  /* было 20px */
}

/* Секция Риски */
.risk-cards {
    display: flex;
    gap: 30px;                  /* увеличенный промежуток между карточками */
    margin-top: 40px;
}

.risk-card {
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 30px;
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;    /* иконка прижата к верху, заголовок начинается с той же линии */
    transition: transform 0.3s, background 0.3s;
    border: 1px solid transparent;
}

.risk-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
}

.risk-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    color: #ffffff;             /* белые иконки на тёмном фоне */
    transition: transform 0.3s ease, color 0.3s;
}

.risk-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.risk-card:hover .risk-icon {
    transform: scale(1.05);
    color: #2563EB;             /* синий при наведении */
}

.risk-text {
    flex: 1;
}

.risk-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: white;
}

.risk-text p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    line-height: 1.5;
}

/* Секция "Как работаю" */
.process {
    background: #e4e4e4;
    padding: 80px 0;            /* вертикальные отступы */
}

.process h2 {
    margin-bottom: 40px;
    text-align: center;         /* если хотите заголовок по центру */
    margin-top: -50px;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 100px;
}

.process-card {
    background: #F1F5F9;         /* светлый фон, как было у шагов, можно заменить на белый */
    padding: 40px 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.process-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: #2563EB;              /* синий цвет иконок */
    transition: transform 0.3s, color 0.3s;
}

.process-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.process-card:hover .process-icon {
    transform: scale(1.1);
    color: #1E40AF;              /* тёмно-синий при наведении */
}

.process-card h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #0F172A;
}

.process-card p {
    margin: 0;
    color: #64748B;
    font-size: 16px;
    line-height: 1.5;
    max-width: 250px;
}

.process-steps {
    display: flex;
    align-items: center;        /* выравнивание по центру для стрелок */
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;            /* на узких экранах перенос */
    margin-top: 130px;
}

.process-step {
    background: #F1F5F9;
    padding: 40px 30px;
    border-radius: 30px;
    width: 260px;               /* фиксированная ширина для единообразия */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Разная высота: зигзаг */
.process-step.step-lower {
    transform: translateY(30px); /* второй и четвёртый шаг опущены */
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.process-step.step-lower:hover {
    transform: translateY(24px); /* с учётом исходного смещения */
}

.step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: #2563EB;
    transition: transform 0.3s, color 0.3s;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    color: #1E40AF;
}

.process-step h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #0F172A;
}

.process-step p {
    margin: 0;
    color: #64748B;
    font-size: 16px;
    line-height: 1.5;
    max-width: 200px;
}

/* Стрелки */
.step-arrow {
    width: 60px;
    color: #2563EB;
    transition: transform 0.3s;
}

.step-arrow svg {
    width: 100%;
    height: auto;
    stroke-width: 2;
}

.step-arrow:hover {
    transform: scale(1.1);
    color: #1E40AF;
}

/* Адаптация для мобильных */
@media (max-width: 1200px) {
    .process-steps {
        gap: 10px;
    }
    .process-step {
        width: 220px;
        padding: 30px 20px;
    }
}

@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .process-step.step-lower {
        transform: none; /* на мобильных отключаем зигзаг */
    }
    .process-step.step-lower:hover {
        transform: translateY(-6px);
    }
}

.process h2 {
    margin-bottom: 40px;
    text-align: center;         /* если хотите заголовок по центру */
    margin-top: -70px;
}

/* Базовый стиль стрелок */
.step-arrow {
    width: 60px;
    color: #2563EB;
    transition: transform 0.3s;
}

.step-arrow svg {
    width: 100%;
    height: auto;
    stroke-width: 2;
}

/* Наклоны */
.arrow-down {
    transform: rotate(5deg);      /* наклон вниз */
}

.arrow-up {
    transform: rotate(-5deg);     /* наклон вверх */
}

/* При наведении сохраняем наклон и добавляем увеличение */
.arrow-down:hover {
    transform: rotate(5deg) scale(1.1);
}

.arrow-up:hover {
    transform: rotate(-5deg) scale(1.1);
}

/* Адаптация для мобильных: убираем наклоны, стрелки поворачиваются вертикально */
@media (max-width: 900px) {
    .step-arrow {
        transform: rotate(90deg);
    }
    .arrow-down, .arrow-up {
        transform: rotate(90deg);   /* переопределяем на вертикаль */
    }
    .arrow-down:hover, .arrow-up:hover {
        transform: rotate(90deg) scale(1.1);
    }
}

.contact {
    background: #e4e4e4;
    color: #0F172A;
    text-align: center;
    padding: 140px 0;
    align-items: flex-start;      /* прижимаем форму к верху */
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.contact-form h2 {
    margin-bottom: 10px;
    color: #0F172A;
}

.contact-form p {
    margin-bottom: 20px;
    color: #334155;
    font-size: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: white;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:hover,
.contact-form textarea:hover {
    transform: scale(1.01);
    border-color: #2563EB;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.contact-form textarea {
    resize: none;                 /* запрет растягивания */
    min-height:auto;
}

.btn-submit {
    background: #2563EB;
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #1E40AF;  
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.2);
}
/* Контейнер для кнопок мессенджеров */
.messenger-buttons {
    display: flex;
    flex-direction: column;    /* одна под другой */
    align-items: center;
    gap: 15px;
    margin-top: 30px;          /* отступ от формы */
}

/* Базовый стиль кнопки */
.messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 260px;              /* фиксированная ширина для единообразия */
    padding: 14px 24px;
    border-radius: 40px;       /* сильно скруглённые, как «таблетка» */
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: white;
    transition: transform 0.3s, filter 0.3s;
}

/* Индивидуальные цвета */
.messenger-btn.telegram {
    background: #0088CC;        /* фирменный синий Telegram */
}

.messenger-btn.whatsapp {
    background: #37b345;      /* фирменный зелёный WhatsApp */
}

/* Иконка внутри кнопки */
.messenger-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Эффект при наведении */
.messenger-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
    .messenger-btn {
        width: 100%;
    }
}
.contact-separator {
    text-align: center;
    color: #64748B;          /* серый, как у подзаголовка */
    font-size: 16px;
    margin: 20px 0 10px;     /* отступы сверху и снизу */
    text-transform: lowercase; /* если нужно, можно убрать */
}

/* Футер */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    color: #0F172A;
    text-decoration: none;
    animation: bounce 2s infinite ease-in-out;
    z-index: 100;
    transition: transform 0.3s, color 0.3s;
}

.scroll-down svg {
    width: 60px;      /* размер иконки, можно настроить */
    height: 60px;
    display: block;
}

.scroll-down:hover {
    color: #2563EB;
    transform: translateX(-50%) scale(1.1);
    animation: none;  /* при наведении покачивание останавливается */
}

@keyframes bounce {
    0%, 100% {
        bottom: 40px;
    }
    50% {
        bottom: 60px;
    }
}

section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для заголовков секций */
section h2 {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible h2 {
    opacity: 1;
    transform: translateX(0);
}

/* Задержки для карточек (выезд снизу) */
section.visible .card,
section.visible .risk-card,
section.visible .process-card,
section.visible .faq-item {
    animation: slideUp 0.6s ease forwards;
    opacity: 0; /* начальное состояние */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Индивидуальные задержки для карточек */
section.visible .card:nth-child(1) { animation-delay: 0.1s; }
section.visible .card:nth-child(2) { animation-delay: 0.2s; }
section.visible .card:nth-child(3) { animation-delay: 0.3s; }
section.visible .card:nth-child(4) { animation-delay: 0.4s; }

section.visible .risk-card:nth-child(1) { animation-delay: 0.1s; }
section.visible .risk-card:nth-child(2) { animation-delay: 0.2s; }
section.visible .risk-card:nth-child(3) { animation-delay: 0.3s; }

section.visible .process-card:nth-child(1) { animation-delay: 0.1s; }
section.visible .process-card:nth-child(2) { animation-delay: 0.2s; }
section.visible .process-card:nth-child(3) { animation-delay: 0.3s; }
section.visible .process-card:nth-child(4) { animation-delay: 0.4s; }

section.visible .faq-item:nth-child(1) { animation-delay: 0.1s; }
section.visible .faq-item:nth-child(2) { animation-delay: 0.2s; }
section.visible .faq-item:nth-child(3) { animation-delay: 0.3s; }
section.visible .faq-item:nth-child(4) { animation-delay: 0.4s; }

/* Покачивание иконок при наведении на карточку */
.card:hover .card-icon,
.risk-card:hover .risk-icon,
.process-card:hover .process-icon,
.faq-item:hover .faq-icon {
    animation: wobble 0.6s ease;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* Пульсация стрелки вниз */
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.scroll-down {
    animation: bounce 2s infinite ease-in-out, pulse 3s infinite;
}

.scroll-down:hover {
    animation: none; /* при наведении отключаем пульсацию и покачивание */
}

/* ============================= */
/* БАЗОВЫЕ СОСТОЯНИЯ ДЛЯ АНИМАЦИЙ */
/* ============================= */

/* По умолчанию элементы скрыты и подготовлены к анимации */
.hero .hero-text,
.hero .hero-image,
.about img,
.about .about-list,
.services .card,
.risks .risk-card,
.process .process-card,
.process .step-arrow,
.faq .faq-item,
.contact .contact-form,
.contact .messenger-btn,
.contact .footer {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Индивидуальные трансформации */
.hero .hero-text {
    transform: translateX(-50px);
}
.hero .hero-image {
    transform: translateX(50px);
}
.about img {
    transform: translateX(-50px);
}
.about .about-list {
    transform: translateX(50px);
}
.services .card {
    transform: scale(0.8);
}
.risks .risk-card {
    transform: rotate(-5deg) scale(0.9);
    opacity: 0;
}
.process .process-card {
    transform: translateY(30px);
}
.process .step-arrow {
    transform: scale(0);
}
.faq .faq-item {
    transform: translateX(-30px);
}
.contact .contact-form {
    transform: translateY(50px);
}
.contact .messenger-btn {
    transform: translateX(-30px);
}
.contact .messenger-btn:last-child {
    transform: translateX(30px);
}
.contact .footer {
    transform: translateY(20px);
}

/* Активация при появлении секции */
.hero.visible .hero-text,
.hero.visible .hero-image,
.about.visible img,
.about.visible .about-list,
.services.visible .card,
.risks.visible .risk-card,
.process.visible .process-card,
.process.visible .step-arrow,
.faq.visible .faq-item,
.contact.visible .contact-form,
.contact.visible .messenger-btn,
.contact.visible .footer {
    opacity: 1;
    transform: none;
}

/* Индивидуальные задержки для карточек */
.services.visible .card:nth-child(1) { transition-delay: 0.1s; }
.services.visible .card:nth-child(2) { transition-delay: 0.2s; }
.services.visible .card:nth-child(3) { transition-delay: 0.3s; }
.services.visible .card:nth-child(4) { transition-delay: 0.4s; }

.risks.visible .risk-card:nth-child(1) { transition-delay: 0.1s; }
.risks.visible .risk-card:nth-child(2) { transition-delay: 0.2s; }
.risks.visible .risk-card:nth-child(3) { transition-delay: 0.3s; }

.process.visible .process-card:nth-child(1) { transition-delay: 0.1s; }
.process.visible .process-card:nth-child(2) { transition-delay: 0.2s; }
.process.visible .process-card:nth-child(3) { transition-delay: 0.3s; }
.process.visible .process-card:nth-child(4) { transition-delay: 0.4s; }
.process.visible .step-arrow:nth-child(2) { transition-delay: 0.15s; }
.process.visible .step-arrow:nth-child(4) { transition-delay: 0.25s; }
.process.visible .step-arrow:nth-child(6) { transition-delay: 0.35s; }

.faq.visible .faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq.visible .faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq.visible .faq-item:nth-child(3) { transition-delay: 0.3s; }
.faq.visible .faq-item:nth-child(4) { transition-delay: 0.4s; }

.contact.visible .messenger-btn:nth-child(1) { transition-delay: 0.2s; }
.contact.visible .messenger-btn:nth-child(2) { transition-delay: 0.3s; }
.contact.visible .footer { transition-delay: 0.4s; }

/* Дополнительные эффекты при наведении */
.services .card:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.risks .risk-card:hover {
    transform: scale(1.02) rotate(0deg);
    background: rgba(255,255,255,0.15);
}

.process .process-card:hover {
    transform: translateY(-6px);
}

.faq .faq-item:hover {
    transform: translateX(5px);
}

/* Адаптация для мобильных – убираем сложные трансформации */
@media (max-width: 768px) {
    .hero .hero-text,
    .hero .hero-image,
    .about img,
    .about .about-list,
    .services .card,
    .risks .risk-card,
    .process .process-card,
    .process .step-arrow,
    .faq .faq-item,
    .contact .contact-form,
    .contact .messenger-btn,
    .contact .footer {
        transform: none !important;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .hero.visible .hero-text,
    .hero.visible .hero-image,
    .about.visible img,
    .about.visible .about-list,
    .services.visible .card,
    .risks.visible .risk-card,
    .process.visible .process-card,
    .process.visible .step-arrow,
    .faq.visible .faq-item,
    .contact.visible .contact-form,
    .contact.visible .messenger-btn,
    .contact.visible .footer {
        opacity: 1;
    }
}

/* Исходное состояние элементов секции "Как работаю" */
.process-step,
.step-arrow {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Индивидуальные начальные трансформации (по желанию) */
.process-step {
    transform: translateY(20px);
}
.step-arrow {
    transform: scale(0.5);
}

/* При появлении секции возвращаем к нормальному состоянию */
.process.visible .process-step,
.process.visible .step-arrow {
    opacity: 1;
    transform: none;
}

/* Задержки для последовательного появления (каждые 0.3s) */
.process.visible .process-step:nth-child(1) { transition-delay: 0s; }
.process.visible .step-arrow:nth-child(2)   { transition-delay: 0.3s; }
.process.visible .process-step:nth-child(3) { transition-delay: 0.6s; }
.process.visible .step-arrow:nth-child(4)   { transition-delay: 0.9s; }
.process.visible .process-step:nth-child(5) { transition-delay: 1.2s; }
.process.visible .step-arrow:nth-child(6)   { transition-delay: 1.5s; }
.process.visible .process-step:nth-child(7) { transition-delay: 1.8s; }

/* На мобильных устройствах отключаем задержки для лучшей производительности */
@media (max-width: 768px) {
    .process.visible .process-step,
    .process.visible .step-arrow {
        transition-delay: 0s !important;
    }
}

/* ============================= */
/* LIQUID GLASS HEADER           */
/* ============================= */

header,
header.header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    height: 72px;
    background: rgba(12, 17, 49, 0.922);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: hidden;
    z-index: 1000;
    transition: top 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

/* Header gets tighter to the top once the page is scrolled */
header.scrolled,
header.header.scrolled {
    top: 10px;
    background: rgba(12, 17, 49, 0.922);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* The .nav grid lives inside the floating bar — give it inner padding */
.header .nav {
    height: 72px;
    padding: 0 28px;
}

/* Keep the links on a single line inside the narrower floating bar */
.header nav {
    white-space: nowrap;
}

.header nav a {
    margin: 0 14px;
}

/* ============================= */
/* MODERN CONTACT SECTION        */
/* ============================= */

.contact {
    background: linear-gradient(140deg, #eef2ff 0%, #e2e8f5 100%);
    color: #0F172A;
    text-align: left;
    padding: 80px 0;
    align-items: center;
    justify-content: center;
}

.contact .contact-container {
    margin-top: 50px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.contact-left {
    width: 100%;
    max-width: 520px;
}

.contact-right {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 44px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-width: none;
    text-align: left;
}

.contact-form h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0F172A;
    text-align: left;
}

.contact-form > p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
    text-align: left;
}

/* Floating label fields */
.form-field {
    position: relative;
    margin-bottom: 14px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 22px 16px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    transform: none;
}

.form-field textarea {
    resize: none;
    min-height: 112px;
}

.form-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.form-field textarea ~ label {
    top: 22px;
    transform: none;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label {
    top: 9px;
    transform: none;
    font-size: 10px;
    font-weight: 700;
    color: #2563EB;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
    top: 9px;
    font-size: 10px;
    font-weight: 700;
    color: #2563EB;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-field input:hover:not(:focus),
.form-field textarea:hover:not(:focus) {
    border-color: #94a3b8;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 10px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.38);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.38);
}

/* Contact right side */
.contact-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.contact-alt-title {
    font-size: 17px;
    color: #64748b;
    font-weight: 500;
}

.messenger-buttons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 0;
    justify-content: center;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 220px;
    padding: 16px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.messenger-btn.telegram {
    background: linear-gradient(135deg, #0098dd 0%, #0074aa 100%);
}

.messenger-btn.whatsapp {
    background: linear-gradient(135deg, #2dce57 0%, #1faa42 100%);
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    filter: brightness(1.06);
}

/* Benefits list */
.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.benefit-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-check svg {
    width: 12px;
    height: 12px;
    color: #2563EB;
}

/* ============================= */
/* RESPONSIVE — TABLET (≤1024px) */
/* ============================= */

@media (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 38px;
    }

    /* Let the hero image shrink with the viewport so it never
       pushes past the container in the 769–1024 tablet range. */
    .hero-image {
        flex-shrink: 1;
        min-width: 0;
    }

    .hero-image img {
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    /* Same treatment for the About photo in the tablet range. */
    .about img {
        width: 100%;
        max-width: 360px;
        height: 460px;
        min-width: 0;
        object-fit: cover;
        object-position: center top;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        margin-right: 0;
    }

    .about h2 {
        margin-left: 0;
        text-align: left;
    }

    .faq {
        margin-left: 0;
    }

    .faq-list,
    .faq-item {
        max-width: 100%;
    }

    .services h2,
    .risks h2,
    .process h2,
    .faq h2 {
        font-size: 40px;
    }
}

/* ============================= */
/* RESPONSIVE — NAV (≤958px)     */
/* ============================= */

@media (max-width: 958px) {
    nav {
        display: none;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 10px 18px;
    }

    .hamburger {
        display: flex;
    }

}

/* ============================= */
/* RESPONSIVE — MOBILE (≤768px)  */
/* ============================= */

@media (max-width: 768px) {
    /* Disable scroll-snap and let the document body scroll naturally.
       A nested 100dvh scroll container never lets mobile browser chrome
       (address/toolbar) auto-collapse, so the last chunk of content stayed
       under the toolbar and was unreachable. Body scrolling fixes that. */
    body {
        overflow-x: hidden;
        overflow-y: visible;
    }
    .wrapper {
        scroll-snap-type: none;
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
    }

    section {
        height: auto;
        min-height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: unset;
        padding: 80px 20px 60px;
    }

    #home {
        min-height: 100svh;
    }

    /* ── Hero ── */
    .hero-content {
        flex-direction: column;
        gap: 28px;
        height: auto;
    }

    .hero-text {
        top: 0;
        padding-left: 0;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 30px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 0;
    }

    .hero .btn-primary {
        margin-top: 24px;
        margin-left: 0;
        transform: none;
        font-size: 16px;
        padding: 14px 28px;
        align-self: flex-start;
    }

    .hero-image {
        display: none;
    }

    /* ── About ── */
    .about-content {
        flex-direction: column;
        gap: 24px;
    }

    .about img {
        display: none;
    }

    .about h2 {
        font-size: 28px;
        margin-left: 0;
        text-align: left;
        margin-bottom: 20px;
    }

    .about ul {
        max-width: 100%;
    }

    .about-content > div:last-child {
        align-items: flex-start;
        width: 100%;
    }

    /* ── Services ── */
    .cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    /* ── Risks ── */
    .risk-cards {
        flex-direction: column;
        gap: 14px;
    }

    .risks h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* ── Process ── */
    .process-steps {
        margin-top: 24px;
        gap: 12px;
    }

    .process-step {
        width: 100%;
    }

    /* Steps stack vertically — arrows must point down, not sideways.
       Override the animation reset (transform: none !important). */
    .process .step-arrow,
    .process.visible .step-arrow,
    .arrow-down,
    .arrow-up {
        transform: rotate(90deg) !important;
        margin: 4px 0;
    }

    .process h2 {
        font-size: 28px;
        margin-bottom: 24px;
        margin-top: 0;
    }

    /* ── FAQ ── */
    .faq {
        margin-left: 0;
    }

    .faq h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .faq-list,
    .faq-item {
        max-width: 100%;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }

    .faq-answer {
        font-size: 15px;
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    /* ── Contact ── */
    .contact {
        padding: 80px 0 40px;
    }

    .contact .contact-container {
        margin-top: 0;
        gap: 24px;
    }

    .contact-left,
    .contact-right {
        max-width: 100%;
        width: 100%;
    }

    .contact-form {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .messenger-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .messenger-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================= */
/* RESPONSIVE — SMALL (≤480px)   */
/* ============================= */

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .contact-form h2 {
        font-size: 22px;
    }

    .btn-submit {
        font-size: 15px;
        padding: 14px 20px;
    }

    .process-step {
        padding: 28px 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .arrow-down,
    .arrow-up {
        transform: rotate(90deg);
    }
}

/* ============================= */
/* HAMBURGER BUTTON              */
/* ============================= */

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

@media (min-width: 959px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================= */
/* MOBILE NAV DRAWER             */
/* ============================= */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 88%;
    max-width: 340px;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 96px 28px 40px;
    overflow-y: auto;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 22px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease;
    display: block;
    opacity: 0;
    transform: translateX(-16px);
}

.mobile-nav.open a {
    animation: navLinkIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-nav.open a:nth-child(2) { animation-delay: 0.12s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.18s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.24s; }
.mobile-nav.open a:nth-child(5) { animation-delay: 0.30s; }
.mobile-nav.open a:nth-child(6) { animation-delay: 0.36s; }
.mobile-nav.open a:nth-child(7) { animation-delay: 0.42s; }

@keyframes navLinkIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav {
        transition: none;
    }
    .mobile-nav.open a {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: #2563EB;
}

/* ============================= */
/* NAV OVERLAY                   */
/* ============================= */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================= */
/* UNIFIED LIGHT THEME            */
/* ============================= */

/* One consistent background colour across the whole site. Sections are
   transparent and inherit a single soft tone from the body. */
body {
    background: #f4f7fc;
}

.hero,
.about,
.services,
.process,
.faq,
.risks,
.contact {
    background: transparent;
}

/* ============================= */
/* RISKS — LIGHT RESTYLE          */
/* ============================= */

.risks {
    color: #0F172A;
}

.risks h2 {
    color: #0F172A;
}

.risk-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
}

.risk-card h3,
.risk-card p {
    text-align: left;
}

.risk-card:hover {
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.risks .risk-card:hover {
    background: #ffffff;
}

.risk-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.risk-card:hover .risk-icon {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.16);
    transform: scale(1.05);
}

.risk-text h3,
.risk-card h3 {
    color: #0F172A;
}

.risk-text p,
.risk-card p {
    color: #64748B;
}

/* ============================= */
/* HERO REFINEMENT               */
/* ============================= */

.hero-text {
    top: 0;                 /* drop the old -70px hack */
    justify-content: center;
    gap: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 22px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #2563EB;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #0F172A;
}

.hero p {
    font-size: 20px;
    line-height: 1.55;
    color: #475569;
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
}

/* Reset the old oversized/offset hero button into a clean modern CTA */
.hero .btn-primary {
    margin: 0;
    transform: none;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.42);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 15px 28px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.6);
    color: #0F172A;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #ffffff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-size: 30px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 14px;
    color: #64748B;
    line-height: 1.3;
    max-width: 130px;
}

/* Soften the hero image: round it and add depth */
.hero-image img {
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    clip-path: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .hero-eyebrow {
        font-size: 12px;
        margin-bottom: 18px;
    }
    .hero-buttons {
        gap: 12px;
        margin-bottom: 32px;
    }
    .hero .btn-primary,
    .btn-ghost {
        font-size: 15px;
        padding: 13px 22px;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat-num {
        font-size: 24px;
    }
}

/* ============================= */
/* CONTACT — MODERN REFRESH       */
/* ============================= */

.contact-form {
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    border: 1px solid #eef0f5;
}

.contact-form h2 {
    font-size: 28px;
    letter-spacing: -0.01em;
}

/* Right-side panel: title + modern messenger cards */
.contact-alt {
    gap: 16px;
}

.contact-alt-title {
    font-size: 16px;
    color: #64748B;
    font-weight: 500;
}

.messenger-buttons {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
}

/* Clean card-style buttons instead of the old solid colour pills */
.messenger-btn,
.messenger-btn.telegram,
.messenger-btn.whatsapp {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    color: #0F172A;
    border: 1px solid #e8ecf3;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.messenger-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Small secondary line under the messenger name */
.messenger-btn span::after {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

.messenger-btn.telegram span::after {
    content: "Написать в Telegram";
}

.messenger-btn.whatsapp span::after {
    content: "Написать в WhatsApp";
}

/* Brand-coloured icon badge */
.messenger-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 10px;
    border-radius: 12px;
    box-sizing: border-box;
}

.messenger-btn.telegram .messenger-icon {
    color: #229ED9;
    background: rgba(34, 158, 217, 0.12);
}

.messenger-btn.whatsapp .messenger-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
}

.messenger-btn:hover {
    transform: translateY(-3px);
    filter: none;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.messenger-btn.telegram:hover {
    border-color: #229ED9;
}

.messenger-btn.whatsapp:hover {
    border-color: #25D366;
}

@media (max-width: 768px) {
    .messenger-buttons {
        max-width: 100%;
    }
}

/* ============================= */
/* HEADER NAV + CTA — CALMER      */
/* ============================= */

/* Links: no zoom, lighter blue on hover/active instead of dark blue */
.header nav a:hover,
.header nav a.active {
    transform: none;
    color: #2563EB;
}

/* Consultation button: gentle lift instead of a big zoom */
.header .btn-primary {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header .btn-primary:hover {
    transform: translateY(-2px);
    background: #1E40AF;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Clean single-colour light background — no gradient, no edge framing. */
body {
    background: #f4f7fc;
}

/* ============================= */
/* HEADER INTERACTION REFINEMENT  */
/* ============================= */

/* Header links: no zoom, lighter blue on hover/active */
.header nav a {
    transition: color 0.25s ease;
}

.header nav a:hover,
.header nav a.active {
    transform: none;
    color: #2c68e9;
}

/* Consultation button: subtle lift instead of a big zoom */
.header .btn-primary {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header .btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}



/* ============================= */
/* ADAPTIVE TWEAKS (appended)    */
/* ============================= */

/* About: cards always centered under the heading */
.about h2 {
    text-align: center;
}

.about-content > div:last-child {
    align-items: center;
}

.about .about-list,
.about ul {
    margin-left: auto;
    margin-right: auto;
}

/* Down arrow: smaller everywhere */
.scroll-down svg {
    width: 40px;
    height: 40px;
}

/* <=936px: drop hero photo, center hero text & buttons */
@media (max-width: 936px) {
    .hero-image {
        display: none !important;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
    }

    .hero-text {
        top: 0;
        height: auto;
        padding-left: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero .btn-primary {
        margin-top: 24px;
        margin-left: 0;
        transform: none;
    }

    .hero-stats {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: min(100%, 520px);
        gap: clamp(8px, 3vw, 24px);
    }

    .hero-stat {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .hero-stat-label {
        max-width: 130px;
    }
}

/* <=768px (mobile): full-width centered text, hide arrow */
@media (max-width: 768px) {
    .scroll-down {
        display: none !important;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero .btn-primary {
        align-self: center;
        margin-left: 0;
    }

    .hero-stats {
        justify-content: center;
    }

    .about h2 {
        text-align: center;
    }

    .about-content > div:last-child {
        align-items: center;
    }

    .services h2,
    .risks h2,
    .process h2,
    .faq h2 {
        text-align: center;
    }

    .contact-form h2,
    .contact-form > p {
        text-align: center;
    }
}

/* <=362px: hide the hero eyebrow line */
@media (max-width: 362px) {
    .hero-eyebrow {
        display: none;
    }
}

/* ============================= */
/* ADAPTIVE TWEAKS v2            */
/* ============================= */

/* 1. Center the hero eyebrow chip on the screen ≤936px */
@media (max-width: 936px) {
    .hero-eyebrow {
        align-self: center;
    }

    /* 2. Process block: stack cleanly, arrows point to the next card */
    .process-steps {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        gap: 0;
    }

    .process-step,
    .process-step.step-lower {
        width: 100%;
        max-width: 360px;
        transform: none;
    }

    .process-step:hover,
    .process-step.step-lower:hover {
        transform: translateY(-6px);
    }

    .process .step-arrow,
    .process.visible .step-arrow,
    .step-arrow.arrow-down,
    .step-arrow.arrow-up {
        transform: rotate(90deg) !important;
        margin: 10px 0;
        width: 44px;
    }
}

/* 3. Center content of "Чем могу быть полезен" (services) and
      "Риски без юриста" (risks) cards — icon + text centered. */
.card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-text,
.card-text h3,
.card-text p {
    text-align: center;
}

.risk-card {
    align-items: center;
    text-align: center;
}

.risk-card h3,
.risk-card p,
.risk-text h3,
.risk-text p {
    text-align: center;
}

/* ============================= */
/* PROCESS — NO ORPHAN WRAP      */
/* ============================= */

/* In the 769–1200px range, scroll-snap is still active so `section` is
   locked to height:100vh, but the steps have already stacked into a tall
   vertical column. Centered inside that fixed 100vh, the content overflowed
   top and bottom and overlapped the FAQ/Risks sections. Let the process
   section grow to fit its stacked content here. */
@media (min-width: 769px) and (max-width: 1200px) {
    .process {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }
}

/* The 4 step cards + arrows only fit cleanly in one row on wide desktop.
   Below that, wrapping leaves one card orphaned on a second level and an
   arrow pointing at nothing. So below 1200px we stack vertically with the
   arrows rotated to point down at the next card. */
@media (max-width: 1200px) {
    .process-steps {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        margin-top: 40px;
    }

    .process-step,
    .process-step.step-lower {
        width: 100%;
        max-width: 360px;
        transform: none;
    }

    .process-step:hover,
    .process-step.step-lower:hover {
        transform: translateY(-6px);
    }

    .process .step-arrow,
    .process.visible .step-arrow,
    .step-arrow.arrow-down,
    .step-arrow.arrow-up {
        transform: rotate(90deg) !important;
        margin: 10px 0;
        width: 44px;
    }
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.site-footer {
    background: #0F172A;
    color: #cbd5e1;
    padding: 24px 40px;
    scroll-snap-align: end;
}

/* Keep the footer in the final snapped viewport together with Contacts. */
@media (min-width: 769px) {
    .contact {
        height: auto;
        min-height: calc(100vh - 72px);
    }

    .site-footer {
        min-height: 72px;
        display: flex;
        align-items: center;
    }
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    text-align: left;
}
.footer-col {
    flex: 1 1 200px;
    min-width: 180px;
}
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}
.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 340px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #2563EB;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 14px;
    color: #64748B;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 22px 20px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ============================= */
/* CONTACT CARD (phone + msgr)   */
/* ============================= */

.contact .contact-container {
    margin-top: 40px;
}

.contact-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    padding: 56px 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2563EB 0%, #1d4ed8 100%);
}

.contact-card-head h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    text-align: center;
}

.contact-card-head p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.55;
    max-width: 500px;
    margin: 0 auto;
}

/* Big phone display */
.phone-display {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 22px 36px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.45);
}

.phone-icon-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}

.phone-icon-wrap svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.phone-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 6px;
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    white-space: nowrap;
}

/* Benefits row */
.contact-benefits-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 26px;
    width: 100%;
    margin-top: 4px;
}

.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    color: #2563EB;
    flex-shrink: 0;
}

/* Divider */
.contact-divider {
    display: flex;
    align-items: center;
    width: 100%;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    gap: 16px;
    margin-top: 6px;
}

.contact-divider::before,
.contact-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Override prior messenger button layout — bigger inside the card */
.contact-card .messenger-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.contact-card .messenger-btn,
.contact-card .messenger-btn.telegram,
.contact-card .messenger-btn.whatsapp {
    flex: 1 1 240px;
    max-width: 300px;
    width: auto;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 18px;
    font-size: 18px;
    background: #ffffff;
    color: #0F172A;
    border: 1.5px solid #e8ecf3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.contact-card .messenger-btn.telegram {
    flex-basis: 360px;
    max-width: 360px;
}

.contact-card .messenger-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 12px;
    border-radius: 14px;
}

.contact-card .messenger-btn span {
    font-size: 18px;
    font-weight: 700;
}

.contact-card .messenger-btn span::after {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.contact-card .messenger-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 36px 22px 32px;
        border-radius: 22px;
        gap: 22px;
    }

    .contact-card-head h2 {
        font-size: 24px;
    }

    .contact-card-head p {
        font-size: 14px;
    }

    .phone-display {
        padding: 18px 22px;
        gap: 14px;
        width: 100%;
        justify-content: center;
    }

    .phone-icon-wrap {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .phone-icon-wrap svg {
        width: 24px;
        height: 24px;
    }

    .phone-number {
        font-size: 22px;
    }

    .phone-label {
        font-size: 11px;
    }

    .contact-benefits-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-card .messenger-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-card .messenger-btn,
    .contact-card .messenger-btn.telegram,
    .contact-card .messenger-btn.whatsapp {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .phone-number {
        font-size: 19px;
    }
}

/* ============================= */
/* COOKIE / PRIVACY BANNER       */
/* ============================= */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(12, 17, 49, 0.922);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.45);
    color: #E2E8F0;
    padding: 18px 24px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-banner-text {
    flex: 1 1 320px;
    min-width: 0;
}
.cookie-banner-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #CBD5E1;
}
.cookie-banner-text a {
    color: #93C5FD;
    text-decoration: underline;
}
.cookie-banner-text a:hover {
    color: #fff;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.cookie-btn-accept {
    background: #fff;
    color: #0F172A;
}
.cookie-btn-accept:hover { background: #E2E8F0; }
.cookie-btn-decline {
    background: transparent;
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.cookie-btn-decline:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-btn:active { transform: translateY(1px); }

@media (max-width: 640px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
    .cookie-banner-inner {
        gap: 14px;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
    }
}
