/* ===== ПОДКЛЮЧАЕМ ШРИФТЫ GOOGLE ===== */
/* Шрифты Montserrat и Inter подключаются в <head> каждой страницы —
   это быстрее, чем @import (не блокирует отрисовку). */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --blue-dark: #1e3a8a;
    --blue-deep: #152c6b;
    --blue-bright: #3b5bdb;
    --blue-light: #6b8be0;
    --silver-light: #f0f3f9;
    --silver-mid: #c8d0e0;
    --silver-dark: #8a95ad;
    --blue-chrome: linear-gradient(180deg, #6b8be0 0%, #1e3a8a 50%, #3b5bdb 100%);
}

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

html {
    scroll-behavior: smooth;
    background-color: #e8ecf3;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(107, 139, 224, 0.12) 0%, transparent 50%);
    background-size: auto, auto;
    background-attachment: fixed;
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #3b5bdb #e8ecf3;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: transparent;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ===== ВОДЯНОЙ ЗНАК — ЛОГОТИП "СФЕРА" ===== */
body::before {
    content: '';
    position: fixed;
    inset: -100vmax;
    background:
        url('../logo-s.png') repeat,
        url('../logo-s.png') repeat;
    background-size: 900px auto, 900px auto;
    background-position: 0 0, 450px 450px;
    opacity: 0.04;
    transform: rotate(25deg);
    transform-origin: center center;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--blue-bright);
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #e8ecf3 0%, #d8e0ed 100%);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 100%);
    border-radius: 6px;
    border: 2px solid #e8ecf3;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b8be0 0%, #3b5bdb 100%);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ ПРОКРУТКЕ ===== */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===== ШАПКА ===== */
header {
    background: linear-gradient(180deg, #f8fafc 0%, #dfe5ef 50%, #cdd5e2 100%);
    padding: 15px 30px;
    box-shadow:
        0 4px 20px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(138, 149, 173, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--silver-dark) 0%, var(--blue-dark) 50%, var(--silver-dark) 100%) 1;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 75px;
    filter:
        drop-shadow(0 3px 6px rgba(30, 58, 138, 0.35))
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.header-logo img:hover {
    transform: scale(1.06);
    filter:
        drop-shadow(0 5px 12px rgba(30, 58, 138, 0.5))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.header-contacts {
    text-align: right;
    font-size: 14px;
    color: #555;
}

.header-contacts .phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-dark);
    display: block;
    letter-spacing: 0.5px;
}

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
    background: linear-gradient(180deg, #1a3272 0%, #0d1f4a 50%, #06122e 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-top: 1px solid rgba(200, 208, 224, 0.3);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, #c8d0e0 20%, #ffffff 50%, #c8d0e0 80%, transparent 100%) 1;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
    pointer-events: none;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #c8d0e0 15%, #ffffff 50%, #c8d0e0 85%, transparent 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    color: white;
    padding: 16px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--silver-mid), #ffffff, var(--silver-mid));
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
    left: 10%;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, rgba(13, 31, 74, 0.75) 0%, rgba(30, 58, 138, 0.45) 100%),
                url('../bck.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 30px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--silver-mid) 20%, #ffffff 50%, var(--silver-mid) 80%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-content {
    max-width: 950px;
    position: relative;
    z-index: 2;
    animation: heroAppear 1.2s ease-out;
}

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

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero p {
    color: #e0e7ff;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.hero .btn-hero {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 50%, #c8d0e0 100%);
    color: var(--blue-dark);
    padding: 20px 55px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 -3px 0 rgba(30, 58, 138, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hero .btn-hero:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 -3px 0 rgba(30, 58, 138, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    color: var(--blue-dark);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--blue-dark);
}

.section-title {
    display: block;
    width: 100%;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 15px;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--silver-dark), #ffffff, var(--silver-dark), transparent);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(138, 149, 173, 0.5);
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 50px;
    font-size: 17px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 15px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--blue-dark) 0%, var(--silver-dark) 50%, var(--blue-light) 100%) 1;
    padding-bottom: 10px;
    display: inline-block;
}

[id] {
    scroll-margin-top: var(--anchor-offset, 170px);
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contacts-grid {
    grid-template-columns: 1fr 1fr;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow:
        0 4px 15px rgba(30, 58, 138, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--silver-dark), var(--blue-dark), var(--silver-dark)) 1;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 208, 224, 0.3) 50%, transparent 100%);
    transition: left 0.7s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 45px rgba(30, 58, 138, 0.25),
        0 0 0 1px rgba(200, 208, 224, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-icon {
    font-size: 44px;
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.4s;
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(-8deg);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue-dark);
    letter-spacing: -0.3px;
}

.card p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== КАРТОЧКИ ПРОЕКТОВ ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.25);
}

.project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #6b8be0 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(30, 58, 138, 0.85) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.9;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 240px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--silver-mid), #ffffff, var(--silver-mid), transparent);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.project-info {
    padding: 25px 25px 30px;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.project-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.project-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 100%);
    color: var(--blue-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ссылка "Показать на карте" */
.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--blue-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b5bdb, #1e3a8a);
    transition: width 0.3s;
}

.project-card:hover .project-link {
    color: #3b5bdb;
    transform: translateX(5px);
}

.project-card:hover .project-link::after {
    width: 100%;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    padding: 60px 20px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--silver-dark) 50%, transparent 100%) 1;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 139, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #6b8be0 0%, #1e3a8a 45%, #152c6b 55%, #6b8be0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.2));
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== СПИСКИ ===== */
.services-list {
    list-style-type: none;
    padding-left: 0;
}

.services-list li {
    margin-bottom: 12px;
    padding: 14px 18px 14px 50px;
    border-left: 4px solid var(--blue-dark);
    background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 15px;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, var(--silver-light), var(--silver-mid));
    color: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(30, 58, 138, 0.2);
}

.services-list li:hover {
    background: linear-gradient(90deg, #eef2ff 0%, #dbe4ff 100%);
    transform: translateX(5px);
    box-shadow: -3px 0 10px rgba(30, 58, 138, 0.1);
}

.services-list strong {
    color: var(--blue-dark);
    margin-right: 5px;
    font-weight: 700;
}

.services-list ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.services-list ul li {
    margin-bottom: 6px;
    padding: 2px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: static;
    font-size: 14px;
    color: #555;
}

.services-list ul li::before {
    content: none;
    display: none;
}

.services-list ul li:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* ===== КАРТА ===== */
.map-container {
    margin-top: 30px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
    border: 4px solid #ffffff;
    outline: 2px solid var(--silver-mid);
}

.map-container iframe {
    display: block;
}

/* ===== ФОРМА ===== */
.contact-form {
    margin-top: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--silver-dark), var(--blue-dark), var(--silver-dark)) 1;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1), 0 0 20px rgba(107, 139, 224, 0.15);
}

.btn-submit {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 50%, #152c6b 100%);
    color: white;
    padding: 16px 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow:
        0 6px 20px rgba(30, 58, 138, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 30px rgba(30, 58, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* ===== ИНФО-БЛОКИ ===== */
.info-block {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 40px 35px 35px 40px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.08);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--silver-dark) 0%, var(--blue-dark) 50%, var(--silver-dark) 100%);
    border-radius: 14px 0 0 14px;
}

.info-block .info-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #d8e0ed 100%);
    border: 2px solid var(--silver-mid);
    border-radius: 50%;
    box-shadow:
        0 6px 20px rgba(30, 58, 138, 0.15),
        inset 0 -2px 0 rgba(138, 149, 173, 0.3);
}

.info-block::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(107, 139, 224, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info p {
    margin: 10px 0;
    font-size: 15px;
}

.contact-info a {
    position: relative;
    transition: color 0.3s;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.contact-info a:hover::after {
    width: 100%;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: linear-gradient(180deg, #b8c1d1 0%, #8a95ad 35%, #6b7994 65%, #4d5a75 100%);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%) 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-logos {
    margin-bottom: 25px;
}

.footer-logos img {
    margin: 0 10px;
    vertical-align: middle;
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-logos img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.footer p {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.65) 100%),
                url('../bck.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, #c8d0e0 50%, transparent 100%) 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--silver-mid) 20%, #ffffff 50%, var(--silver-mid) 80%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.page-header-about {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.65) 100%),
                url('../header-about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-services {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.65) 100%),
                url('../header-services.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-experience {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.65) 100%),
                url('../header-experience.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-contacts {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.65) 100%),
                url('../header-contacts.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    line-height: 1.2;
}

.page-header p {
    color: #e0e7ff;
    opacity: 0.95;
    font-size: 18px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 750px;
    margin: 0 auto;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.breadcrumbs a { color: #c8d0e0; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.breadcrumbs a:hover { color: #ffffff; }
.breadcrumbs span { color: rgba(200, 208, 224, 0.6); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.breadcrumbs .current { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* ===== СЕТКА ПРЕИМУЩЕСТВ ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.advantage-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 35px 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow:
        0 6px 25px rgba(30, 58, 138, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--silver-dark), var(--blue-dark), var(--silver-dark)) 1;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 45px rgba(30, 58, 138, 0.2),
        0 0 0 1px rgba(200, 208, 224, 0.4);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    background: linear-gradient(180deg, #f0f4fa 0%, #d8e0ed 100%);
    border-radius: 50%;
    box-shadow:
        0 8px 20px rgba(30, 58, 138, 0.15),
        inset 0 -3px 0 rgba(138, 149, 173, 0.3),
        inset 0 2px 0 #ffffff;
    transition: transform 0.4s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(-5deg);
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--blue-dark);
    letter-spacing: -0.3px;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== СЕТКА ЛИЦЕНЗИЙ ===== */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.license-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 40px 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow:
        0 6px 25px rgba(30, 58, 138, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.license-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--silver-mid), var(--blue-dark), var(--silver-mid));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.license-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(30, 58, 138, 0.2);
}

.license-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 100%);
    border-radius: 50%;
    box-shadow:
        0 10px 25px rgba(30, 58, 138, 0.18),
        inset 0 -4px 0 rgba(138, 149, 173, 0.3),
        inset 0 3px 0 #ffffff;
}

.license-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--blue-dark);
    letter-spacing: -0.3px;
}

.license-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== СЕКЦИЯ "НАМ ДОВЕРЯЮТ" ===== */
.partners-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--silver-dark) 50%, transparent 100%) 1;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.partner-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
    border: 2px solid transparent;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

.partner-card img {
    max-width: 100%;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.5s ease;
    filter: saturate(0.85);
}

.partner-card:nth-child(2) img { max-height: 105px; }
.partner-card:nth-child(4) img { max-height: 100px; }
.partner-card:nth-child(6) img { max-height: 110px; }

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--silver-mid);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.15);
}

.partner-card:hover img {
    transform: scale(1.15) translateY(-3px);
    filter: saturate(1.1) drop-shadow(0 6px 12px rgba(30, 58, 138, 0.25));
}

/* ===== СЕКЦИЯ "КАК МЫ РАБОТАЕМ" ===== */
.process-section {
    padding: 60px 20px;
    background: transparent;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.process-step {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.08);
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--silver-dark), var(--blue-dark), var(--silver-dark)) 1;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(30, 58, 138, 0.2);
}

.process-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 100%);
    border-radius: 50%;
    box-shadow:
        0 8px 20px rgba(30, 58, 138, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.process-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.process-step p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 25px rgba(30, 58, 138, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s, box-shadow 0.3s;
    z-index: 998;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(30, 58, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ МЕССЕНДЖЕРОВ ===== */
.social-float {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 997;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    position: relative;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.social-btn.whatsapp {
    background: linear-gradient(180deg, #4cd964 0%, #25D366 50%, #1da851 100%);
}
.social-btn.whatsapp:hover {
    background: linear-gradient(180deg, #5ee077 0%, #25D366 50%, #1da851 100%);
}

.social-btn.telegram {
    background: linear-gradient(180deg, #3aa5e0 0%, #229ED9 50%, #1a7fb0 100%);
}
.social-btn.telegram:hover {
    background: linear-gradient(180deg, #4cb3ec 0%, #229ED9 50%, #1a7fb0 100%);
}

.social-btn.max {
    background: linear-gradient(180deg, #a78bfa 0%, #6d28d9 50%, #5b21b6 100%);
}
.social-btn.max:hover {
    background: linear-gradient(180deg, #c4b5fd 0%, #6d28d9 50%, #5b21b6 100%);
}

.social-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ===== КНОПКА "СКАЧАТЬ КАРТОЧКУ ПРЕДПРИЯТИЯ" ===== */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 28px;
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    box-shadow:
        0 6px 20px rgba(30, 58, 138, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(30, 58, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* ===== СЕКЦИЯ "ГЕОГРАФИЯ РАБОТ" (на главной) ===== */
.geo-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--silver-dark) 50%, transparent 100%) 1;
}

.geo-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    margin-top: 30px;
}

.geo-city {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
    border: 1px solid #e0e7ff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.geo-city:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.geo-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(180deg, #3b5bdb, #1e3a8a);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.2);
    animation: geoPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes geoPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(59, 91, 219, 0.05); }
}

.geo-section .map-container {
    margin-top: 0;
}

.geo-section .map-container iframe {
    height: 500px;
}

/* ===== КАРТА НА СТРАНИЦЕ ОПЫТ ===== */
.russia-map-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-radius: 14px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--silver-dark) 50%, transparent 100%) 1;
    scroll-margin-top: var(--anchor-offset, 170px);
}

.show-all-btn {
    display: block;
    margin: 30px auto 0;
    padding: 14px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #d8e0ed 100%);
    color: var(--blue-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--blue-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.15);
}

.show-all-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #3b5bdb 0%, #1e3a8a 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.35);
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .header-contacts {
        text-align: center;
        margin-top: 10px;
    }
    .header-logo img {
        height: 60px;
    }
    header {
        position: static;
    }
    .main-nav {
        position: sticky;
        top: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .main-nav a {
        padding: 13px 14px;
        border-bottom: none;
        font-size: 12px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    .hero {
        padding: 80px 20px;
        min-height: 500px;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero .btn-hero {
        padding: 16px 35px;
        font-size: 14px;
    }
    .section-title {
        font-size: 26px;
    }
    .stat-number {
        font-size: 38px;
    }
    .page-header {
        background-attachment: scroll;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .map-container iframe {
        height: 250px;
    }
    .container {
        padding: 30px 15px;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
    .project-image {
        height: 200px;
    }
    .project-card::before {
        top: 200px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    body::before {
        background-size: 550px auto, 550px auto;
        background-position: 0 0, 275px 275px;
        opacity: 0.05;
    }
    .info-block {
        padding: 30px 25px 30px 30px;
    }
    .info-block .info-icon {
        position: static;
        margin-bottom: 18px;
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    .license-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    .breadcrumbs {
        font-size: 12px;
        padding: 6px 15px;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .partner-card {
        min-height: 100px;
        padding: 18px 12px;
    }
    .partner-card img {
        max-height: 55px;
    }
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .social-float {
        right: 20px;
        bottom: 80px;
    }
    .social-btn {
        width: 48px;
        height: 48px;
    }
    .social-btn svg {
        width: 24px;
        height: 24px;
    }
    .social-btn::before {
        display: none;
    }
    .btn-download {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
        font-size: 12px;
    }
    .geo-section .map-container iframe {
        height: 350px;
    }
    .geo-city {
        font-size: 12px;
        padding: 8px 14px;
    }
}
/* Одиночная карточка услуги — по центру под основной сеткой */
.cards-grid--single {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
    margin-top: 25px;
}

.cards-grid--single .card {
    width: 100%;
}

@media (max-width: 768px) {
    .cards-grid--single {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }
}

/* ===== ИСПРАВЛЕНИЯ И ДОПОЛНЕНИЯ (добавлено при подготовке к публикации) ===== */

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #3b5bdb;
    outline-offset: 2px;
}

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

.header-logo img {
    width: auto;
}

.header-contacts .email {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #555;
}

.header-contacts .email:hover {
    color: var(--blue-bright);
}

.footer-links {
    margin-top: 10px;
    font-size: 13px;
}

/* На десктопе меню «прилипает» ровно под шапкой: отступ = высота шапки */
@media (min-width: 769px) {
    .main-nav {
        top: var(--header-h, 105px);
    }
}

/* Абзац-«лид» вместо инлайн-стилей */
.section-lead {
    font-size: 17px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 30px;
    color: #555;
}

.center-cta {
    text-align: center;
    margin-top: 40px;
}

.center-cta .btn-submit {
    display: inline-block;
    text-decoration: none;
}

/* ===== ФОРМА: согласие на обработку данных и служебные элементы ===== */
.contact-form {
    position: relative;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 5px 0 25px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--blue-dark);
    cursor: pointer;
}

.consent a {
    text-decoration: underline;
}

.form-status {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
}

.form-status.ok {
    color: #1a7f37;
}

.form-status.err {
    color: #c0392b;
}

.btn-submit[disabled] {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

input.invalid,
textarea.invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* ===== ТЕКСТОВЫЕ СТРАНИЦЫ (политика, 404) ===== */
.text-page h2 {
    margin-top: 40px;
    font-size: 22px;
}

.text-page p {
    margin: 12px 0;
    color: #444;
}

.text-page ul,
.text-page ol {
    margin: 12px 0 18px;
    padding-left: 24px;
    color: #444;
}

.text-page li {
    margin-bottom: 8px;
}

.text-page .updated {
    color: #777;
    font-size: 14px;
}

.error-page {
    max-width: 620px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    text-align: center;
}

.error-page .error-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #6b8be0 0%, #1e3a8a 55%, #152c6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page p {
    color: #555;
    font-size: 17px;
    margin: 20px 0 30px;
}

/* Если JavaScript отключён, анимация появления не должна скрывать контент */
html:not(.js) .reveal {
    opacity: 1;
    transform: none;
}

.text-page {
    max-width: 900px;
    margin: 0 auto;
}

.error-page .btn-submit {
    margin: 6px;
}
