/* Основные стили */
:root {
    --primary-color: #00356B; /* Более темный синий */
    --secondary-color: #FF5A5F; /* Красно-розовый */
    --accent-color: #005F73; /* Бирюзовый оттенок */
    --text-color: #333;
    --light-gray: #f7f7f7;
    --dark-gray: #222;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
    width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Общие стили для всех секций */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
    box-sizing: border-box;
}

img {
    max-width: 100%; /* Предотвращаем выход изображений за границы экрана */
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px; /* Круглые кнопки */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 107, 0.4);
}

/* Промо-полоса */
.promo-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Шапка сайта */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 30px 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* Добавляем класс для компактного режима хедера при прокрутке */
.header.compact {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Логотип */
.logo {
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Навигация */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item > a:hover {
    color: var(--secondary-color);
}

.menu-item > a:hover::after {
    width: 70%;
}

.menu-item.has-submenu > a i {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu:hover > a i {
    transform: rotate(180deg);
}

/* Выпадающие меню */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 12px 0;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.menu-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.submenu > li > a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    padding-left: 25px;
}

.large-submenu {
    width: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.submenu-child {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    padding: 12px 0;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.submenu li.has-submenu:hover .submenu-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

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

/* Стили для активного состояния мобильного меню */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

/* Дополнительные стили для блокировки прокрутки страницы */
body.no-scroll {
    overflow: hidden;
}

/* Кнопка звонка */
.call-button {
    margin-left: 15px;
    flex-shrink: 0;
}

.call-button a {
    display: flex;
    align-items: center;
}

.call-button a i {
    margin-right: 8px;
    font-size: 14px;
    color: var(--white);
}

/* Главный баннер */
.hero-section {
    background: url('https://calmasterroofing.com/photo/hero2.jpg') no-repeat center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 53, 107, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    word-break: keep-all;         /* Запрещает разрывать слово */
    overflow-wrap: normal;        /* Не переносит слова */
    white-space: normal; 
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Раздел статистики */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-item p {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Раздел партнеров и команды */
.partners-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.partners-section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 40px;
    color: var(--white);
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.partners-team-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

/* Блок информации о команде */
.team-info-block {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-image .team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-info-block:hover .team-photo {
    transform: scale(1.05);
}

.team-description {
    padding: 30px;
}

.team-description h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.team-description h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.team-description p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.team-description .btn-primary {
    margin-top: 15px;
}

/* Блок карусели партнеров */
.partners-carousel-block {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.partners-carousel-block h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.partners-carousel-block h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.partners-carousel-block p {
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--text-color);
}

.partners-carousel {
    position: relative;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    height: 220px;
    background-color: #fbfbfb;
    border: 1px solid #f0f0f0;
}

.carousel-slide img {
    max-width: 80%;
    max-height: 160px;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain;
}

.carousel-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Раздел гарантий */
.guarantee-section {
    padding: 30px 0;
    background-color: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.guarantee-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.guarantee-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 200px;  /* Задаёт фиксированную высоту */
    width: 1000px;   /* Увеличивает ширину */
    display: flex;  /* Позволяет вертикально центрировать контент */
    flex-direction: column;
    justify-content: center;
}

.guarantee-card:hover {
    transform: translateY(-10px);
}

.guarantee-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.guarantee-card p {
    color: var(--text-color);
}

/* Раздел преимуществ */
.benefits-section {
    padding: 70px 0;
    background: url('https://calmasterroofing.com/photo/3logo.jpg') no-repeat center/cover;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefits-section .section-title h2 {
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
}

.benefit-card h4 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.benefit-card h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Раздел отзывов */
.testimonials-section {
    padding: 90px 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section .section-title h2 {
    color: #00356B;
}

.colored-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.rating {
    margin-bottom: 30px;
}

.rating .stars {
    margin-bottom: 15px;
}

.rating .stars i {
    color: #FFD700;
    font-size: 24px;
    margin: 0 3px;
}

.rating h4 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    will-change: transform;
    transition: all 0.3s ease;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes slideTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-500%); /* Переопределяется в JavaScript */
    }
}

.testimonial-slide {
    flex: 0 0 550px;
    min-width: 550px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: default;
}

.testimonial-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.testimonial-slide:before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(231, 76, 60, 0.15);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

.testimonial-author h5 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-author p {
    color: #666;
    font-size: 16px;
}

/* Раздел "О нас" */
.about-section {
    padding: 90px 0;
    background: url('https://calmasterroofing.com/photo/team.jpg') no-repeat center/cover;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(55, 55, 55, 0.7);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    display: inline-block;
    padding: 5px 15px;
    color: var(--white);
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-content .btn-primary {
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Раздел миссии */
.mission-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h3 {
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.mission-content blockquote {
    font-size: 28px;
    font-style: italic;
    margin: 40px 0;
    padding: 0 30px;
    border-left: 4px solid var(--secondary-color);
}

/* Раздел Contact Us */
.contact-section {
    padding: 90px 0;
    background-image: url('https://calmasterroofing.com/photo/form.png');
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: var(--white);
    padding-right: 30px;
}

.contact-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.contact-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-testimonial {
    font-size: 18px;
    line-height: 1.6;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
    font-style: italic;
}

.contact-form-container {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-description {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Горизонтальное расположение полей формы */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.form-col {
    flex: 1;
}

.form-field {
    margin-bottom: 10px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 53, 107, 0.1);
}

.form-field textarea {
    height: 100px;
    resize: vertical;
}

.name-fields,
.email-fields {
    display: flex;
    gap: 10px;
}

.name-fields input,
.email-fields input {
    flex: 1;
}

.required {
    color: var(--secondary-color);
}

.char-count {
    font-size: 12px;
    color: #777;
    text-align: right;
    margin-top: 3px;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-field input {
    width: auto;
    margin-top: 3px;
}

.consent-label {
    font-size: 11px;
    line-height: 1.4;
    color: #666;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 53, 107, 0.4);
}

.certification-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.badge {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: contrast(0.9);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Раздел услуг */
.services-section {
    padding: 90px 0;
    background-color: var(--light-gray);
}

.services-title {
    font-size: 42px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-category {
    margin-bottom: 80px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.service-category h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.service-category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-category > p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
}

.service-lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.service-list {
    transition: transform 0.3s ease;
}

.service-list:hover {
    transform: translateY(-10px);
}

.service-list h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.service-list ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.service-list ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.service-category .btn-primary {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Футер */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 10px;
}

.footer-links h4, 
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-column ul li {
    margin-bottom: 8px;
}

.footer-links-column ul li a {
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links-column ul li a:hover {
    color: var(--secondary-color);
}

.contact-location h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.contact-location p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

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

.footer-bottom-links a {
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Анимации для карточек при прокрутке */
.animate {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .partners-team-container {
        flex-direction: column;
    }
    
    .team-info-block,
    .partners-carousel-block {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header.compact {
        padding: 8px 0;
    }
    
    .header .container {
        padding: 0 10px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    /* Логотип слева */
    .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    
    /* Логотип меньше на мобильных */
    .logo img {
        height: 40px;
        padding: 3px;
    }
    
    /* Кнопка звонка по центру */
    .call-button {
        grid-column: 2;
        grid-row: 1;
        margin: 0 auto;
        position: static;
    }
    
    /* Специальные стили для кнопки в мобильном хедере */
    .call-button .btn-primary {
        padding: 10px 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Бургер-меню справа */
    .mobile-menu-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        z-index: 1002;
    }
    
    /* Скрываем основную навигацию */
    .main-nav {
        display: none;
    }
    
    /* Показываем при активном состоянии */
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .menu-item > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .submenu,
    .submenu-child {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item.active > .submenu,
    .submenu li.has-submenu.active > .submenu-child {
        display: block;
        max-height: 1000px;
    }
    
    /* Перекрытие при открытом меню */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(3px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Восстановленные стили для остальной части сайта */
    .hero-content h1 {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .guarantee-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .guarantee-card {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-lists {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-locations {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-bottom-links a {
        margin-left: 0;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr;
        height: auto;
        padding: 30px 20px;
    }
    
    .testimonial-slide {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
        padding: 25px;
        box-sizing: border-box;
    }
    
    .contact-section .container {
        padding: 0 15px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .contact-title {
        font-size: 30px;
    }
    
    .team-image {
        height: 200px;
    }
    
    .team-description,
    .partners-carousel-block {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    /* Оптимизация изображений */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Улучшение читаемости контента */
    p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .partners-section-title,
    .section-title h2 {
        font-size: 28px;
    }
    
    /* Оптимизация кнопок */
    .btn-primary {
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Уменьшаем отступы, чтобы сохранить больше места */
    .container {
        padding: 0 10px;
    }
    
    /* Кнопка звонка сохраняет свой оригинальный стиль */
    .call-button {
        position: static;
        margin: 0 auto;
    }
    
    /* Удаляем специфичные для мобильной версии стили кнопки */
    .call-button a {
        padding: 12px 25px;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(255, 90, 95, 0.3);
        animation: none; /* Убираем анимацию, если она была добавлена */
    }
    
    .call-button a i {
        margin-right: 8px;
        font-size: 14px;
    }
    
    .call-button .btn-text {
        display: inline; /* Показываем текст в кнопке */
    }
    
    /* Спецификация для мобильных устройств */
    .hero-content h1,
    .section-title h2,
    .form-title,
    .about-content h2 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Гарантируем, что форма не вызывает прокрутку */
    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-bar {
        font-size: 12px;
        padding: 8px 15px;
        line-height: 1.4;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .partners-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .team-description h3,
    .partners-carousel-block h3,
    .mission-content h3 {
        font-size: 20px;
    }
    
    .partners-section,
    .benefits-section,
    .testimonials-section,
    .about-section,
    .mission-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-description,
    .contact-testimonial {
        font-size: 15px;
    }
    
    .mobile-menu-toggle {
        width: 22px;
        height: 16px;
    }
    
    .testimonial-slide {
        padding: 20px;
    }
    
    .testimonial-slide:before {
        font-size: 60px;
    }

    /* Улучшение читаемости на маленьких экранах */
    p {
        font-size: 14px;
    }
    
    /* Адаптация для карточек команды */
    .team-info-block {
        margin-bottom: 20px;
    }
    
    /* Адаптация блока партнеров */
    .partners-carousel-block {
        padding: 20px 15px;
    }
    
    /* Адаптация для карусели */
    .carousel-slide {
        height: auto;
        min-height: 150px;
    }

    /* Уменьшаем отступы, чтобы сохранить больше места */
    .container {
        padding: 0 10px;
    }
    
    /* Спецификация для мобильных устройств */
    .hero-content h1,
    .section-title h2,
    .form-title,
    .about-content h2 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Гарантируем, что форма не вызывает прокрутку */
    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Специальные стили для кнопки вызова */
    .call-button .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Добавляем новый медиа-запрос для очень маленьких экранов */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .testimonial-slide {
        padding: 15px;
    }
    
    .about-content {
        padding: 15px;
    }
    
    .contact-form-container {
        padding: 15px 10px;
    }
    
    .form-field label,
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 13px;
    }
    
    .guarantee-card h3 {
        font-size: 18px;
    }
}

/* Стили для сообщений формы */
.form-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

/* Анимация для кнопки отправки */
.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Стили для полей формы с ошибками */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.05);
} 