/* ========================================
   GC Glass Строй - Main Styles
   Основан на брендбуке компании
   ======================================== */

/* === CSS Variables (Brand Colors & Fonts) === */
:root {
    /* Brand Colors from Brandbook */
    --primary-blue: #0000f3;
    --secondary-blue: #4d4df7;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --dark-gray: #333333;
    --text-gray: #666666;
    
    /* Brand Fonts from Brandbook */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --mobile-padding: 40px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

h3 {
    font-size: 28px;
    font-weight: 600;
}

h4 {
    font-size: 22px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Container === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 243, 0.3);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* === Header === */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

/* Левая часть: логотип + слоган */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 50px;
}

.header-slogan {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-gray);
    max-width: 200px;
}

/* Правая часть header: контакты + бургер */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Бургер-меню скрыто по умолчанию */
.header-nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.header-nav.active {
    max-height: 500px;
    padding: 20px 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    align-items: center;
}

.nav-menu li {
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
    text-align: center;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    padding: 15px 10px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-blue);
    background-color: var(--light-gray);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    white-space: nowrap;
}

.header-email {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
    transition: var(--transition);
}

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

.header-messengers {
    display: flex;
    gap: 8px;
}

.messenger-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transition: var(--transition);
}

.messenger-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.messenger-link svg {
    width: 20px;
    height: 20px;
}

/* Бургер всегда видим справа */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* === Hero Section === */
.hero {
    background: #f5f5f5;
    color: var(--dark-gray);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Фоновые изображения смарт-стекла */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-1 {
    background-image: url('../../../assets/a/images/smart01.jpg');
    opacity: 1;
    animation: fadeInOut1 10s ease-in-out infinite;
}

.hero-bg-2 {
    background-image: url('../../../assets/a/images/smart02.jpg');
    opacity: 0;
    animation: fadeInOut2 10s ease-in-out infinite;
}

@keyframes fadeInOut1 {
    0% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    90% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInOut2 {
    0% { opacity: 0; }
    40% { opacity: 0; }
    50% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 60px;
    border-radius: 12px;
}

.logo-block {
    margin-bottom: 40px;
}

.hero-logo {
    height: 80px;
    margin-bottom: 10px;
}

.company-slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--white);
}

.hero-benefits {
    margin: 30px 0;
}

.hero-benefits li {
    font-size: 16px;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--white);
}

.hero-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.hero-note {
    font-size: 14px;
    color: var(--white);
}


/* === Section Titles === */
.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === Calculator Section === */
.calculator {
    padding: var(--section-padding) 0;
    background-color: var(--light-gray);
}

.calculator-widget {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.calculator-control {
    margin-bottom: 50px;
}

.calculator-control label {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.range-wrapper {
    position: relative;
}

#area-range {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    outline: none;
    -webkit-appearance: none;
}

#area-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#area-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

#area-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.result-item {
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 0, 243, 0.1) 0%, rgba(77, 77, 247, 0.1) 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.result-item:hover .result-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    transform: scale(1.1);
}

.result-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 10px 0;
}

.result-description {
    font-size: 13px;
    color: var(--text-gray);
}

/* === Gallery Section === */
.gallery {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.gallery-carousel {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
    background-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:hover .material-icons {
    color: var(--white);
}

.gallery-nav .material-icons {
    font-size: 32px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px 0;
}

.gallery-thumb {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary-blue);
    opacity: 1;
}

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

/* Scrollbar styling for thumbnails */
.gallery-thumbnails::-webkit-scrollbar {
    width: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

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

/* === Office Visit Section === */
.office-visit {
    padding: var(--section-padding) 0;
    text-align: center;
}

.office-map {
    width: 100%;
    border-radius: 16px;
    margin: 40px 0;
    overflow: hidden;
}

.office-map iframe {
    display: block;
    border-radius: 16px;
}

/* === Clients Section === */
.clients {
    padding: var(--section-padding) 0;
    background-color: var(--light-gray);
}

.clients-gallery {
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Основное изображение работы */
.clients-main {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.clients-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.clients-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.clients-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.clients-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clients-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.clients-nav:hover {
    background-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.clients-nav:hover .material-icons {
    color: var(--white);
}

.clients-nav .material-icons {
    font-size: 32px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.clients-prev {
    left: 20px;
}

.clients-next {
    right: 20px;
}

.clients-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

/* Карусель логотипов */
.clients-carousel {
    position: relative;
}

.clients-thumbnails-wrapper {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    padding: 0 60px;
}

.clients-thumbnails {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

.clients-thumb-item {
    flex: 0 0 calc((100% - 60px) / 5);
    min-width: 150px;
    cursor: pointer;
    transition: var(--transition);
}

.clients-thumb {
    background-color: var(--white);
    border-radius: 12px;
    padding: 0;
    border: 3px solid transparent;
    transition: var(--transition);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clients-thumb img {
    max-width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.clients-thumb-item:hover .clients-thumb {
    
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.clients-thumb-item:hover .clients-thumb img {
    filter: grayscale(0%);
    opacity: 1;
}

.clients-thumb-item.active .clients-thumb {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0, 0, 243, 0.2);
}

.clients-thumb-item.active .clients-thumb img {
    filter: grayscale(0%);
    opacity: 1;
}

.clients-name {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 10px;
    line-height: 1.3;
    min-height: 36px;
}

.clients-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.clients-thumb-prev {
    left: 10px;
}

.clients-thumb-next {
    right: 10px;
}

.clients-thumb-nav:hover {
    background-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.clients-thumb-nav:hover .material-icons {
    color: var(--white);
}

.clients-thumb-nav .material-icons {
    font-size: 28px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.clients-thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.clients-thumb-nav:disabled:hover {
    background-color: var(--white);
}

.clients-thumb-nav:disabled:hover .material-icons {
    color: var(--primary-blue);
}

/* === Projects Map Section === */
.projects-map {
    padding: var(--section-padding) 0;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 500px;
    background-color: var(--light-gray);
    border-radius: 16px;
    margin: 40px 0;
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

/* === Process Section === */
.process {
    padding: var(--section-padding) 0;
    background-color: var(--light-gray);
    text-align: center;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px var(--light-gray);
    z-index: 2;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.4;
}

.timeline-duration {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* === Guarantee Section === */
.guarantee {
    padding: var(--section-padding) 0;
}

.guarantee-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.guarantee-text ul {
    list-style: none;
}

.guarantee-text li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
}

.guarantee-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
}

.guarantee-certificates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.certificate-item {
    background-color: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 3/4;
}

.certificate-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Promo Section === */
.promo {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.promo .section-title,
.promo .section-subtitle {
    color: var(--white);
}

.promo-timer {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0;
}

#timer {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.promo-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.promo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.promo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.promo-item h3 {
    padding: 20px;
    font-size: 18px;
    color: var(--dark-gray);
    margin: 0;
}

.promo-item p {
    padding: 0 20px 20px;
    color: var(--text-gray);
    margin: 0;
}

.promo-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* === Footer === */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-contacts,
.footer-nav {
    list-style: none;
}

.footer-contacts li,
.footer-nav li {
    margin-bottom: 12px;
}

.footer-contacts a,
.footer-nav a {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-contacts a:hover,
.footer-nav a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    text-align: center;
    transition: var(--transition);
}

.footer-messenger svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-messenger:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-footer {
    width: 100%;
    background-color: var(--white);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.btn-footer:hover {
    background-color: var(--light-gray);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 50px;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.callback-timer {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.timer-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.timer-display {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
}

.modal-form {
    margin: 30px 0;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 243, 0.1);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.modal-contacts {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.modal-contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.modal-location .modal-body {
    padding: 40px;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.location-details h3,
.location-details h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-success .success-icon {
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

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

/* === Image Modal === */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    color: var(--dark-gray);
    line-height: 1;
}

.image-modal-close:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg);
}

.certificate-item {
    cursor: pointer;
    transition: var(--transition);
}

.certificate-item:hover {
    transform: scale(1.05);
}

/* === Privacy Policy Modal === */
.privacy-modal .modal-content {
    max-width: 900px;
}

.privacy-modal .modal-close {
    position: sticky;
    top: 20px;
    float: right;
    margin: 20px 20px 0 0;
}

.privacy-body {
    text-align: left;
    clear: both;
}

.privacy-body h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.privacy-body h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.privacy-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-body ul,
.privacy-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.privacy-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.privacy-body ul {
    list-style: disc;
}

.privacy-body ol {
    list-style: decimal;
}

.privacy-body strong {
    font-weight: 600;
    color: var(--dark-gray);
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}
/* === Медиазапросы для Header === */
@media screen and (max-width: 768px) {
    .header-slogan,
    .header-email {
        display: none;
    }
    
    .header-left {
        gap: 0;
    }
}

@media screen and (max-width: 480px) {
    .header-logo img {
        height: 40px;
    }
    
    .header-phone {
        font-size: 14px;
    }
    
    .header-contacts {
        gap: 8px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .messenger-link {
        width: 32px;
        height: 32px;
    }
    
    .messenger-link svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 375px) {
    .header-logo img {
        height: 35px;
    }
    
    .header-phone {
        font-size: 13px;
    }
    
    .header-contacts {
        gap: 6px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .messenger-link {
        width: 28px;
        height: 28px;
    }
    
    .messenger-link svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-toggle {
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
}