/* Основные переменные UI */
:root {
    --bg-dark: #0f1012;
    --bg-card: #181a1e;
    --accent-red: #e50914;
    --accent-hover: #b80710;
    --text-light: #ffffff;
    --text-muted: #a0a5b0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Обнуление базовых стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: var(--accent-red);
}

/* Кнопки интерфейса */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* Шапка (Header) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 16, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-red);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
}

.btn-phone-header {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-phone-header:hover {
    background: var(--accent-red);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 99;
    transition: var(--transition);
    padding-top: 80px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-link {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
}

/* Блок Hero */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/gallery-1.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,16,18,0.95) 30%, rgba(15,16,18,0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid #f1c40f;
    color: #f1c40f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Блок Услуг */
.services-section {
    background: linear-gradient(180deg, rgba(15, 16, 18, 0.96) 0%, rgba(24, 26, 30, 0.93) 100%), 
                url('images/services-bg.jpg') center/cover no-repeat fixed;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Преимущества */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.adv-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(229, 9, 20, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.adv-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.adv-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Баннер Гарантии */
.warranty-banner {
    background: linear-gradient(90deg, #181a1e 0%, #1e1213 100%);
    border-top: 1px solid rgba(229, 9, 20, 0.2);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    padding: 60px 0;
    margin: 40px 0;
}

.warranty-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.warranty-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: var(--text-light);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.3);
}

.warranty-badge-large i {
    font-size: 2rem;
    margin-bottom: 2px;
}

.warranty-text h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.warranty-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 850px;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: contrast(1.05) brightness(0.9);
}

.gallery-item:hover img {
    filter: contrast(1) brightness(1);
    transform: scale(1.03);
}

/* Фоновое фото с наградой 2ГИС для блока Услуг */
.services-section {
    background: linear-gradient(180deg, rgba(15, 16, 18, 0.96) 0%, rgba(24, 26, 30, 0.93) 100%), 
                url('images/services-bg.jpg') center/cover no-repeat fixed;
}

/* Фоновое фото ремзоны для блока Контактов */
.contacts-section {
    background: linear-gradient(135deg, rgba(15, 16, 18, 0.98) 55%, rgba(15, 16, 18, 0.9) 100%), 
                url('images/contacts-bg.jpg') center/cover no-repeat;
    padding: 100px 0;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-block i {
    font-size: 1.6rem;
    color: var(--accent-red);
    margin-top: 5px;
}

.info-block h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.info-block p, .phone-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.phone-link:hover {
    color: var(--accent-red);
}

.contacts-map {
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* CTA Блок */
.cta-section {
    background: linear-gradient(rgba(15,16,18,0.85), rgba(15,16,18,0.85)), url('images/gallery-1.jpg') center/cover;
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.cta-container h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-container p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Футер */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кнопка быстрого звонка (Плавающая) */
.fixed-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    color: var(--text-light);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2.5s infinite;
}

/* Анимации при скролле */
.data-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* Пульсация кнопок вызова */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(229, 9, 20, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

.pulse-anim {
    animation: pulse 2.5s infinite;
}

/* Адаптивные медиа-запросы */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .nav, .btn-phone-header {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .section {
        padding: 60px 0;
    }
    /* Починили размер заголовка на смартфонах */
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
        word-wrap: break-word;
    }
    /* Центрируем иконку трубки внутри плавающего круга */
    .fixed-call-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .fixed-call-btn svg {
        display: block;
    }

    }
    .fixed-call-btn i {
        display: inline-block;
        color: #ffffff !important;
        font-size: 1.5rem !important;
        line-height: 1;
    }
    .warranty-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Стили для статичной карты-ссылки */
.map-link-block {
    position: relative;
    display: block;
    width: 100%;
    /* Фиксированная высота для идеального выравнивания по сетке */
    height: 400px; 
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.static-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.map-overlay-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 16, 18, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-overlay-btn i {
    font-size: 2.5rem;
    color: var(--accent-red);
    transition: var(--transition);
}

/* Эффекты при наведении */
.map-link-block:hover .static-map-img {
    transform: scale(1.03);
}

.map-link-block:hover .map-overlay-btn {
    background: rgba(15, 16, 18, 0.3);
}

.map-link-block:hover .map-overlay-btn i {
    transform: translateY(-5px);
}
