/* ============================================================
   КОМПЛЕКССТРОЙ — ОБЩИЕ СТИЛИ
   Версия: 1.0
   Используется на всех страницах сайта
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f7fc;
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background: #f5f7fc;
    border-radius: 32px;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    background: #f5f7fc;
    z-index: 100;
    border-radius: 0 0 20px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0b1e33;
    letter-spacing: -0.02em;
}

.logo span {
    color: #d92525;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-weight: 600;
}

.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 40px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #0b1e33;
    color: #fff;
}

.nav-phone {
    font-weight: 800;
    color: #0b1e33;
    text-decoration: none;
    font-size: 1.1rem;
}

.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== ТИПОГРАФИЯ ===== */
.title-xl {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.title-lg {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0b1e33;
}

.title-md {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #0b1e33;
}

.text-muted {
    color: #475569;
}

.text-accent {
    color: #d92525;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background: #d92525;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, transform 0.15s;
    box-shadow: 0 8px 24px rgba(217, 37, 37, 0.30);
    text-align: center;
}

.btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #0b1e33;
    border: 2px solid #0b1e33;
    box-shadow: none;
}

.btn-outline:hover {
    background: #0b1e33;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #0b1e33;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
    background: #f0f4f9;
}

/* ===== ГЕРОЙ (общий для главной) ===== */
.hero {
    background: linear-gradient(145deg, #0b1e33, #132b44);
    border-radius: 32px;
    padding: 48px 44px 52px;
    color: #fff;
    box-shadow: 0 20px 40px -8px rgba(11, 30, 51, 0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 37, 37, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: #d92525;
    padding: 6px 24px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 6px 16px rgba(217, 37, 37, 0.30);
    position: relative;
    z-index: 2;
}

.hero h1 {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero h1 span {
    color: #ffd966;
}

.hero-sub {
    font-size: 1.25rem;
    opacity: 0.92;
    margin: 16px 0 32px;
    border-left: 5px solid #d92525;
    padding-left: 28px;
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 52px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
    z-index: 2;
}

.hero-stats strong {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd966;
}

.hero-stats span {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== ГЕРОЙ ДЛЯ СТРАНИЦ УСЛУГ ===== */
.service-hero {
    background: linear-gradient(145deg, #0b1e33, #132b44);
    border-radius: 32px;
    padding: 40px 40px 48px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 37, 37, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-hero .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.service-hero .breadcrumb a {
    color: #ffd966;
    text-decoration: none;
}

.service-hero h1 {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.service-hero h1 .badge {
    background: #d92525;
    font-size: 1rem;
    padding: 4px 18px;
    border-radius: 40px;
    vertical-align: middle;
    margin-left: 12px;
    display: inline-block;
}

.service-hero .subhead {
    font-size: 1.2rem;
    opacity: 0.92;
    margin: 16px 0 28px;
    border-left: 4px solid #d92525;
    padding-left: 20px;
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.service-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.service-hero .hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.service-hero .hero-meta strong {
    color: #ffd966;
}

/* ===== СЕТКА ДЛЯ СТРАНИЦ УСЛУГ ===== */
.service-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 32px 0;
}

.service-grid .main {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #eef2f6;
}

.service-grid .sidebar {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #eef2f6;
    align-self: start;
}

.service-grid .sidebar .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #d92525;
    margin: 16px 0;
}

.service-grid .sidebar ul {
    list-style: none;
    margin: 16px 0;
}

.service-grid .sidebar ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}

.service-grid .sidebar ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d92525;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== СЕТКА ПРЕИМУЩЕСТВ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.features-grid .item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.features-grid .item .icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.features-grid .item strong {
    display: block;
    font-size: 0.95rem;
}

.features-grid .item span {
    font-size: 0.8rem;
    color: #475569;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.gallery-grid .item {
    aspect-ratio: 4/3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(145deg, #2e4e6c, #1a3349);
    transition: transform 0.2s, box-shadow 0.25s;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gallery-grid .item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.gallery-grid .item .label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px;
    border-radius: 20px;
}

/* ===== ОТЗЫВЫ ===== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.testimonial {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eef2f6;
    font-style: italic;
}

.testimonial .author {
    font-weight: 700;
    font-style: normal;
    margin-top: 12px;
    color: #0b1e33;
}

.testimonial .author span {
    font-weight: 400;
    color: #475569;
    font-size: 0.85rem;
}

/* ===== FAQ (аккордеон) ===== */
.faq {
    margin: 28px 0;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #eef2f6;
    margin-bottom: 12px;
}

.faq-item .q {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .q:hover {
    color: #d92525;
}

.faq-item .a {
    display: none;
    margin-top: 12px;
    color: #475569;
}

.faq-item.active .a {
    display: block;
}

.faq-item .q .arrow {
    transition: transform 0.2s;
}

.faq-item.active .q .arrow {
    transform: rotate(180deg);
}

/* ===== ЛИЦЕНЗИОННЫЙ БАННЕР ===== */
.license-banner {
    background: linear-gradient(135deg, #0b1e33, #1a3349);
    border-radius: 28px;
    padding: 28px 36px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 40px 0 48px;
}

.license-banner .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.license-banner .badges span {
    background: rgba(255, 255, 255, 0.10);
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.license-banner .badges span.accent {
    background: #d92525;
    border-color: #d92525;
}

/* ===== СТАТИСТИКА (на главной) ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    background: #fff;
    border-radius: 28px;
    padding: 28px 20px;
    border: 1px solid #eef2f6;
    margin: 32px 0;
}

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

.stats .stat .number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #d92525;
    line-height: 1.2;
}

.stats .stat .label {
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== СПИСОК УСЛУГ (СЕТКА НА ГЛАВНОЙ) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 26px 22px 22px;
    border: 1px solid #eef2f6;
    transition: transform 0.2s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.10);
}

.service-card .icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.service-card p {
    font-size: 0.9rem;
    color: #475569;
}

.service-card .tag {
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 10px;
}

.service-card .tag.priority {
    background: #d92525;
    color: #fff;
}

/* ===== ПРЕИМУЩЕСТВА (ряд на главной) ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    background: #fff;
    border-radius: 28px;
    padding: 32px 30px;
    border: 1px solid #eef2f6;
    margin-bottom: 48px;
}

.features .item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.features .item .icon {
    font-size: 2rem;
    min-width: 44px;
}

.features .item strong {
    display: block;
    font-size: 1.1rem;
}

.features .item span {
    color: #475569;
    font-size: 0.95rem;
}

/* ===== ПОДВАЛ ===== */
.footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 32px 40px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #0b1e33;
}

.footer-grid a {
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.footer-grid a:hover {
    color: #d92525;
}

.footer-phone {
    font-size: 2rem;
    font-weight: 800;
    color: #0b1e33;
    text-decoration: none;
    display: inline-block;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: #0b1e33;
}

/* ===== УТИЛИТЫ ===== */
.mt-8 {
    margin-top: 8px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-24 {
    margin-top: 24px;
}
.mt-32 {
    margin-top: 32px;
}
.mb-16 {
    margin-bottom: 16px;
}
.text-center {
    text-align: center;
}
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}
.gap-8 {
    gap: 8px;
}
.gap-16 {
    gap: 16px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 10px;
    }
    .nav-links.open {
        display: flex;
    }
    .burger {
        display: block;
    }
    .navbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 740px) {
    .container {
        padding: 0 12px 28px;
    }
    .hero {
        padding: 32px 22px 36px;
    }
    .hero-stats {
        gap: 20px 32px;
    }
    .hero-stats strong {
        font-size: 1.6rem;
    }
    .license-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
    }
    .features {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-hero {
        padding: 28px 20px 32px;
    }
    .service-hero h1 .badge {
        font-size: 0.8rem;
        padding: 2px 12px;
        margin-left: 0;
        display: inline-block;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .footer-phone {
        font-size: 1.6rem;
    }
    .testimonials {
        grid-template-columns: 1fr;
    }
}