/*
Theme Name: Fastmasters Theme



/* Переменные для удобства */
:root {
    --color-dark: #222222;
    --color-text-light: #ffffff;
    --color-yellow: #FFC107; /* Основной желтый */
    --color-blue: #1E64FF;   /* Основной синий для CTA */
    --card-bg: rgba(0, 0, 0, 0.4);
    --header-link-color: #FFFFFF; /* Цвет ссылок в шапке (белый) */
    --color-telegram: #0088CC;
    --color-viber: #7360F2;
    --header-height-mobile: 65px;
}

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-light);
    background-color: var(--color-dark);
}

body.no-scroll .scroll-to-top {
    display: none !important;
}

/* ==================================== */
/* HEADER / НАВИГАЦИЯ (ДЕСКТОП) */
/* ==================================== */

.header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0; 
    background-color: var(--color-dark); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* --- КОНТАКТЫ И ЛОКАЦИЯ --- */
.header-contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-grow: 1; 
    justify-content: center; 
}

.info-item {
    color: var(--header-link-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.info-item i {
    margin-right: 5px;
    color: var(--color-blue); 
}

/* --- ЛОГОТИП --- */
.logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    color: var(--color-yellow); 
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 25px; 
    flex-shrink: 0; 
}

.logo-icon {
    width: 35px; 
    height: 35px; 
    border-radius: 50%;
    background-color: var(--color-yellow); 
    color: var(--color-dark); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px; 
    font-size: 18px; 
}

/* --- ПРАВАЯ ЧАСТЬ (СОЦСЕТИ И БУРГЕР) --- */
.header-right-side {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end; 
    flex-grow: 1; 
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links-mobile {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-icon {
    font-size: 30px; 
    transition: transform 0.2s, opacity 0.3s;
    text-decoration: none;
    display: flex; 
}

/* Устанавливаем фирменные цвета */
.social-icon.telegram {
    color: var(--color-telegram);
}

.social-icon.viber {
    color: var(--color-viber);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #9370DB);
    color: transparent; 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.social-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* --- НАВИГАЦИЯ И БУРГЕР --- */
.main-menu, .menu-toggle {
    display: none; 
}

/* Блокировка скролла при открытом меню */
body.no-scroll {
    overflow: hidden;
}
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 102;
}

.header-contact-info-phone {
    display: flex;
    flex-direction: column;
    gap: 5px;
}



/* ==================================== */
/* HERO SECTION С КАРТИНКОЙ */
/* ==================================== */

.hero-section {
    position: relative;
    display: block; 
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
        /* url('./img/bg.jpg');  */
    background-size: cover; 
    background-position: center center;
    padding-top: 40px; 
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 90px 40px 40px 40px; 
    display: block;
}

/* Основной контент (текст и кнопки) */
.hero-content {
    max-width: 1000px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 5vw;
    font-weight: 900;
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    word-spacing: 0.1em;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.4),  /* Мягкое внутреннее размытие (для белого текста) */
        3px 3px 5px rgba(0, 0, 0, 0.5), /* Мягкий внешний слой 1 */
        5px 5px 8px rgba(0, 0, 0, 0.4); /* Более сильный внешний слой 2 */
}

.hero-title span {
    color: var(--color-yellow);
}



.hero-description {
    font-size: 1.5vw;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    margin-top: 30px;

}

/* Кнопки CTA */
.hero-cta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    white-space: nowrap;
    min-width: 250px; /* Устанавливаем минимальную ширину для обеих кнопок */
    box-sizing: border-box; /* Убеждаемся, что padding включен в ширину */
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.btn-secondary {
    background-color: var(--color-blue);
    color: var(--color-text-light);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* SERVICE CARDS */
.service-cards-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 0;
}

.service-card {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 5px;
    text-align: left;
    min-height: 150px;
    transition: background-color 0.3s;
}

.service-card:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.card-icon-wrapper.yellow {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.card-icon-wrapper.blue {
    background-color: var(--color-blue);
    color: var(--color-text-light);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}




/* ==================================== */
/* МОДАЛЬНОЕ ОКНО (POPUP) */
/* ==================================== */

.modal {
    display: none; 
    position: fixed; 
    z-index: 200; /* Выше шапки */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); 
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Центрирование */
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--color-dark); /* Черный текст на светлом фоне */
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-yellow);
    text-decoration: none;
    cursor: pointer;
}

/* Стилизация формы */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s; /* Добавляем переход для bg-color */
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-blue);
    outline: none;
}

/* Стилизация заблокированного поля */
.form-group select:disabled {
    cursor: not-allowed;
    background-color: #f3f3f3 !important; /* Убеждаемся, что фон серый */
    color: #555;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 0;
    font-size: 18px;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    gap: 10px;
}

#consent {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.consent-label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}

.consent-label a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.consent-label a:hover {
    color: #004499;
}









/* ==================================== */
/* БЛОК "НАШИ УСЛУГИ" */
/* ==================================== */

.services-section {
    background-color: #f8f8f8; /* Светлый фон секции */
    padding: 80px 0;
    color: var(--color-dark);
}

.services-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- ТАБЫ ПЕРЕКЛЮЧЕНИЯ --- */
.tabs-control {
    display: inline-flex;
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tab-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    min-width: 180px;
}

.tab-button.active {
    background-color: var(--color-blue);
    color: var(--color-text-light);
    box-shadow: 0 0 10px rgba(30, 100, 255, 0.5);
}

/* Стили для желтого активного таба */
.tabs-control .tab-button:nth-child(2).active {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* --- СЕТКА КАРТОЧЕК --- */
.services-content {
    display: none; /* Скрыто по умолчанию */
}

.services-content.active {
    display: block;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}




/* Если только 1 элемент - занимает всю ширину */
.service-cards-grid > *:first-child:last-child {
  grid-column: span 3;
}

/* Если 2 элемента - каждый занимает по 50% */
.service-cards-grid > *:first-child:nth-last-child(2),
.service-cards-grid > *:first-child:nth-last-child(2) ~ * {
  grid-column: span 1.5;
}

/* --- КАРТОЧКА ЦЕН --- */
.service-price-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* max-width: 500px; */
}

.service-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Стили для СИНЕЙ КАРТОЧКИ (B2B) */
.service-price-card.blue .card-header {
    background-color: var(--color-blue);
    color: var(--color-text-light);
}

.service-price-card.blue .card-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
}

/* Стили для ЖЕЛТОЙ КАРТОЧКИ (B2C) */
.service-price-card.yellow {
    border: 2px solid var(--color-yellow);
}

.service-price-card.yellow .card-header {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.service-price-card.yellow .card-icon-wrapper {
    background-color: var(--color-dark);
    color: var(--color-yellow);
}

/* --- ЗАГОЛОВОК КАРТОЧКИ --- */
.card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header .card-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.card-header .card-title {
    font-size: 20px;
    font-weight: 700;
}

/* --- СПИСОК ЦЕН --- */
.price-list {
    list-style: none;
    padding: 20px;
    flex-grow: 1; /* Заполняем пространство для одинаковой высоты */
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li span:last-child {
    font-weight: 600;
    color: var(--color-blue); /* Синий цвет цены по умолчанию */
    text-align: end;
}

/* Переопределение цвета цены для желтых карточек */
.service-price-card.yellow .price-list li span:last-child {
    color: var(--color-dark);
}

/* --- КНОПКИ В КАРТОЧКЕ УСЛУГ --- */

/* Контейнер для двух кнопок */
.card-buttons {
    display: flex;
    width: 100%;
    margin-top: auto; /* Прижимаем к низу карточки */
}

.btn-service-call,
.btn-service-modal {
    flex: 1; /* Обе кнопки занимают равное место */
    padding: 15px 0;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

/* СИНЯЯ ВЕРСИЯ (B2B) */
.btn-blue {
    background-color: var(--color-blue);
    color: var(--color-text-light);
}

.btn-blue:hover {
    background-color: #1a56cc;
}

/* ЖЕЛТАЯ ВЕРСИЯ (B2C) */
.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.btn-yellow:hover {
    background-color: #e5b300;
}

/* КОРРЕКТИРОВКА BORDER-RADIUS для крайних кнопок */
.service-price-card .card-buttons {
    /* Общие стили для контейнера кнопок */
    border-radius: 0 0 8px 8px; 
    overflow: hidden; /* Обрезает углы, чтобы они были внутри карточки */
}






/* ==================================== */
/* АДАПТАЦИЯ (УСЛУГИ) */
/* ==================================== */

@media (max-width: 992px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 20px;
    }
    
    .tab-button {
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .service-cards-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
    }
    
    .services-section {
        padding: 50px 0;
    }
    
    .tabs-control {
        flex-direction: column;
        width: 100%;
        box-shadow: none;
    }
    
    .tab-button {
        width: 100%;
        min-width: unset;
        border-radius: 0;
        margin-bottom: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }
    
    .tab-button:last-child {
        margin-bottom: 0;
    }
}










/* ==================================== */
/* БЛОК FOOTER */
/* ==================================== */

.footer {
    background-color: #171b26; /* Темно-синий фон */
    color: var(--color-text-light);
}

.footer-top-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



/* --- КОЛОНКА 1 (О компании) --- */
.footer-about .logo {
    color: var(--color-yellow);
    margin-bottom: 15px;
    display: inline-flex;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials .social-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px; /* Увеличиваем размер */
    margin-right: 15px; /* Промежуток между иконками */
    transition: transform 0.2s, opacity 0.3s;
}

/* Стили для Telegram и Viber */
.footer-socials .social-icon.telegram {
    color: var(--color-telegram); /* #0088CC */
}

.footer-socials .social-icon.viber {
    color: var(--color-viber); /* #7360F2 */
}

/* Стили для Instagram (ГРАДИЕНТНЫЙ ТЕКСТ) */
.footer-socials .social-icon.instagram {
    background-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #495dff);
    color: transparent; 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.footer-socials .social-icon:hover {
    transform: none; /* Убираем transform: scale(1.1), чтобы было как в шапке */
    opacity: 0.8;
}

/* Сбрасываем стили для внутренней иконки, чтобы она приняла цвет родителя */
.footer-socials .social-icon i {
    color: inherit;
    text-shadow: none;
    filter: none;
}
/* --- КОЛОНКА 2, 3, 4 (Контакты, Услуги, Часы) --- */
.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Контакты */
.footer-contacts .contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-contacts .contact-item i {
    margin-right: 10px;
    color: var(--color-yellow);
    font-size: 16px;
    min-width: 18px;
    text-align: center;
}

/* Ссылки (Наши услуги) */
.footer-links {
    list-style: none;
}

.footer-links li a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: var(--color-yellow);
}

/* Часы работы */
.hours-list p {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 10px;
}

.hours-list span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.hours-list span:last-child {
    color: var(--color-yellow);
    font-weight: 600;
}



/* --- НИЖНЯЯ ПАНЕЛЬ (КОПИРАЙТ) --- */
.footer-bottom-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 20px 30px 20px;
    display: grid;
    /* 3 колонки с равномерным распределением */
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 15px; 
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.copyright {
    /* Копирайт прижат влево */
    text-align: left;
}

.footer-policies {
    /* Политика в центре */
    text-align: center;
}

.footer-disclaimer {
    /* Информация прижата вправо */
    text-align: right;
}

.footer-policies a {
    color: inherit;
    text-decoration: none;
    /* margin-left: 20px; */
    transition: color 0.3s;
}

.footer-policies a:hover {
    color: var(--color-yellow);
}

/* .website-builder {
    margin-left: 20px;
} */

/* ==================================== */
/* КНОПКА НАВЕРХ */
/* ==================================== */

.scroll-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-yellow);
    color: var(--color-dark);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    font-size: 18px;
    z-index: 150;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    background-color: #e5b300;
}


/* ==================================== */
/* АДАПТАЦИЯ FOOTER */
/* ==================================== */

@media (max-width: 992px) {
    .footer-top-container {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    /* Перестраиваем в одну колонку */
    .footer-bottom-container {
        grid-template-columns: 1fr; 
        gap: 10px;
        padding-top: 15px;
    }
    
    .copyright,
    .footer-policies,
    .footer-disclaimer {
        text-align: center; /* Центрируем текст на мобильных */
    }

    .footer-policies a {
        /* Убеждаемся, что ссылки не слипаются */
        display: block; 
        margin: 5px 0;
    }
}

@media (max-width: 600px) {
    .footer-top-container {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        padding: 40px 20px;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
}




/* ==================================== */
/* БЛОК "ИЗБРАННЫЕ ПРОЕКТЫ" (СЛАЙДЕР) */
/* ==================================== */

.projects-section {
    background-color: #ffffff; /* Белый фон */
    padding: 80px 0;
    color: var(--color-dark);
    text-align: center;
}

.projects-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-section .section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
    max-width: 700px; /* Ограничиваем ширину слайдера */
    height: 450px; /* Фиксированная высота слайдера */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #ccc; /* Цвет фона, если изображение не загрузится */
}

/* Стили для отдельного слайда */
.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- СТРЕЛКИ НАВИГАЦИИ --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--color-dark);
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background-color 0.3s;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* --- ТОЧКИ (ИНДИКАТОРЫ) --- */
.slider-dots {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-yellow);
}

@media (max-width: 600px) {
    .slider-wrapper {
        height: 300px;
    }
    .slide-overlay {
        padding: 20px;
    }
    .slide-title {
        font-size: 20px;
    }
}



/* ==================================== */
/* БЛОК "СВЯЖИТЕСЬ С НАМИ" */
/* ==================================== */

.contact-section {
    background-color: #f0f3f6; /* Очень светлый фон */
    padding: 80px 0;
    color: var(--color-dark);
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-section .section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.contact-section .section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Соотношение 1:2 */
    gap: 30px;
    text-align: left;
}

/* --- КОНТАКТНАЯ ИНФОРМАЦИЯ (ЛЕВАЯ КОЛОНКА) --- */

.contact-info-card, .contact-socials-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.info-item-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.icon-circle.blue { background-color: var(--color-blue); }
.icon-circle.yellow { background-color: var(--color-yellow); color: var(--color-dark); }

.info-details strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-details a, .info-details p {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 15px;
    margin: 0;
}

.info-details small {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

/* Соцсети в контактах (Сброс старых стилей и применение новых) */
.contact-socials-card .social-links {
    gap: 10px;
}

/* Стили для FB, TW, WA, IG в контактах (КРУГИ) */
.contact-socials-card .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--color-text-light);
    transition: transform 0.2s, box-shadow 0.3s;
}

/* ФИРМЕННЫЕ ЦВЕТА */
.contact-socials-card .social-icon.telegram {
    background-color: var(--color-telegram); /* #0088CC */
}

.contact-socials-card .social-icon.viber {
    background-color: var(--color-viber); /* #7360F2 */
}

/* Для Instagram используем градиентный фон для контейнера */
.contact-socials-card .social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #495dff 90%);
}

.contact-socials-card .social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-socials {
    display: flex;
    gap: 40px;
    /* justify-content: center; */
}

/* --- ФОРМА ОБРАТНОЙ СВЯЗИ (ПРАВАЯ КОЛОНКА) --- */

.contact-form-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-row .form-group {
    flex-grow: 1;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    color: var(--color-dark);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-blue);
    outline: none;
}

.contact-form .modal-submit-btn {
    width: 100%;
    margin-top: 15px;
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.contact-form .modal-submit-btn:hover {
    background-color: #e5b300;
}


/* Исправление чекбокса именно в блоке "Свяжитесь с нами" */
.contact-form-column .wpcf7-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin: 15px 0 !important;
}

/* Убираем растягивание обертки, которое толкает текст */
.contact-form-column .wpcf7-form-control-wrap[data-name="acceptance-consent"] {
    display: inline-block !important;
    width: auto !important;
}

/* Сам квадратик */
.contact-form-column input[type="checkbox"] {
    min-width: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 3px 12px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* Текст согласия */
.contact-form-column .wpcf7-list-item-label {
    display: inline-block !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: #333 !important; /* Укажите ваш цвет текста */
    cursor: pointer !important;
}


.consent-group a {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Подсветка ошибок без изменения размеров (чтобы ничего не прыгало) */
#callback-form input.invalid, 
#callback-form select.invalid,
#callback-form .consent-group.invalid {
    border: 2px solid #ff4d4d !important;
    background-color: #fff5f5 !important;
    outline: none;
}

/* Скрываем стандартные сообщения об ошибках CF7, если они мешают */
.wpcf7-not-valid-tip, 
.wpcf7-response-output {
    display: none !important;
}

/* Фиксированная высота для контейнера группы согласия */
.consent-group {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border: 2px solid transparent; /* Заранее резервируем место под рамку */
    transition: border 0.3s ease;
}

#callback-form .invalid {
    border: 2px solid red !important;
}

/* Красная рамка для пустых полей */
#callback-form input.invalid, 
#callback-form select.invalid {
    border: 2px solid #ff4d4d !important;
    background-color: #fff5f5 !important;
}

/* Красная рамка для блока с галочкой */
#callback-form .consent-group.invalid {
    border: 1px solid #ff4d4d !important;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff5f5 !important;
}



/* ==================================== */
/* АДАПТАЦИЯ КОНТАКТОВ */
/* ==================================== */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* 1 колонка на планшетах и мобильных */
    }
    
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}


@media (min-width: 1590px) {
    .hero-content {
    max-width: 1300px;
    }
}




/* ==================================== */
/* MOBILE ADAPTATION (<= 768px) */
/* ==================================== */
@media (max-width: 1200px) {
    .hero-content {
    max-width: 750px;
    }
}

@media (max-width: 865px) {
    .hero-content {
    max-width: 600px;
    }
}

@media (max-width: 768px) {
    
    .header {
        position: fixed; 
        background-color: var(--color-dark); 
        padding: 15px 0;
    }

    .header-container {
        justify-content: space-between; 
        padding: 0 15px;
    }

    /* Скрываем десктопные элементы */
    .header-contact-info,
    .social-links {
        display: none; 
    }
    
    .header-contact-info {
        flex-grow: 0;
    }

    .header-right-side {
        flex-grow: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        
        width: 38px; 
        height: 38px;
        border: 2px solid var(--color-yellow); 
        border-radius: 4px; 
        background-color: transparent; 
        padding: 5px; 
        position: relative;
        z-index: 102;
    }
    
    .menu-toggle .bar {
        display: block; 
        background: var(--color-yellow); 
        height: 3px; 
        width: 100%; 
        margin: 3px 0; 
        transition: all 0.3s ease-in-out;
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
        transform: translateY(7.7px) rotate(45deg); 
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
        transform: translateY(-7.7px) rotate(-45deg);
    }

    /* --- МОБИЛЬНОЕ МЕНЮ --- */
    .main-menu {
        display: none; 
        position: fixed;
        top: var(--header-height-mobile); 
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background-color: var(--color-dark); 
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
        overflow-y: auto;
        padding: 0; 
    }

    .main-menu.open {
        display: flex; 
        transform: translateX(0);
    }
    
    .main-menu ul {
        list-style: none;
        padding: 40px 0;
        text-align: center;
        width: 100%;
    }
    
    .main-menu li {
        margin: 10px 0;
    }
    
    .main-menu a {
        color: var(--color-yellow);
        font-size: 30px;
        text-decoration: none;
        display: block;
        padding: 15px 20px;
    }
    
    .menu-phone a {
        color: var(--color-yellow);
        font-weight: 700;
    }
    
    .hero-section {
        padding-top: var(--header-height-mobile); 
        background-size: cover; 
        background-position: 70% top;
        min-height: 100vh;
    }
    
    .content-wrapper {
        padding: 20px 20px 20px 20px; 
        
        display: flex;
        flex-direction: column;
        justify-content: space-around; 
        align-items: center; /* Центрируем весь контент-блок */
        min-height: calc(100vh - var(--header-height-mobile));
    }
    
    /* СКРЫВАЕМ СТАРЫЙ H1 и P.hero-tagline ИЗ FLEX-ПОТОКА */
    .hero-tagline {
        display: none !important;
    }

    /* --- Заголовки (Центрированы) --- */
    .hero-content {
        max-width: 100%; 
        width: 100%;
        margin-bottom: 0; 
        margin-top: 0; 
        display: flex; 
        flex-direction: column;
        align-items: center; /* Центрирует блочные элементы (CTA, P) */
    }

    .hero-title {
        font-size: 7vw; 
        line-height: 1.2;
        letter-spacing: 0.05em;
        text-align: center; /* ЦЕНТРИРУЕМ ЗАГОЛОВОК */
        width: 100%;
        margin-top: 2vh; 
        margin-bottom: 10vh;
    }

    /* --- 1. КНОПКИ (ПРИЖАТЫ СЛЕВА) --- */
    .hero-cta {
        flex-direction: column; 
        gap: 30px; 
        max-width: 50%; 
        width: 100%;
        margin-bottom: 15px; /* Отступ до текста */
        align-self: flex-start; /* ПРИЖИМАЕТ БЛОК КНОПОК К ЛЕВОМУ КРАЮ */
    }

    /* --- 2. ТЕКСТ (ЦЕНТРИРОВАН) --- */
    .hero-description {
        font-size: 4vw;
        line-height: 1.4;
        margin-bottom: 20px; 
        margin-top: 100px;
        color: rgba(255, 255, 255, 0.9);
        max-width: 100%; 
        width: 100%;
        text-align: center; /* ЦЕНТРИРУЕМ ТЕКСТ */
    }

    .service-cards-wrapper {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 20px;
        text-align: center; 
    }
}

/* ==================================== */
/* АНИМАЦИЯ КНОПОК НА ГЛАВНОМ ЭКРАНЕ */
/* ==================================== */



/* 2. Создаем анимацию для СИНЕЙ кнопки */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 100, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(30, 100, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 100, 255, 0);
    }
}

/* 3. Применяем анимацию ТОЛЬКО к кнопкам в блоке Hero */


.hero-cta .btn-secondary {
    animation: pulse-blue 1.5s infinite;
    animation-delay: all 0.3s; /* Задержка 1 сек, чтобы они пульсировали по очереди, а не одновременно */
}

/* 4. При наведении курсора останавливаем пульсацию (чтобы не мешать клику) */
.hero-cta .btn:hover {
    animation: none;
}


.tab-button {
    /* ... (существующие стили) ... */
    position: relative; /* Важно: для псевдоэлемента */
    overflow: hidden;
}

.tab-button:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-blue);
    transform: translateX(-100%); /* Скрываем его слева */
    transition: transform 0.3s ease-out;
}

.tab-button:not(.active):hover::after {
    transform: translateX(0); /* Показываем при наведении */
}

/* Коррекция цвета для второй кнопки */
.tabs-control .tab-button:nth-child(2)::after {
    background-color: var(--color-yellow);
}





/* --- АНИМАЦИЯ CTA: ДЫХАНИЕ ТЕНИ (КАРТОЧКИ УСЛУГ) --- */
@keyframes shadow-breathe-blue {
    0% { box-shadow: 0 0 0 0 rgba(30, 100, 255, 0.4); } /* Начинаем с прозрачного */
    50% { box-shadow: 0 0 20px 5px rgba(30, 100, 255, 0.9); } /* Увеличиваем радиус и непрозрачность */
    100% { box-shadow: 0 0 0 0 rgba(30, 100, 255, 0.4); }
}

@keyframes shadow-breathe-yellow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); } /* Начинаем с прозрачного */
    50% { box-shadow: 0 0 20px 5px rgba(255, 193, 7, 0.9); } /* Увеличиваем радиус и непрозрачность */
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
}



/* ... (СТИЛИ ВАШЕГО CSS) ... */

/* --- КНОПКА (ВОЗВРАТ К ОДНОЙ) --- */
.btn-service-modal {
    /* ... (существующие стили) ... */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; 
    /* Убеждаемся, что у кнопки есть тень по умолчанию, чтобы "дыхание" было видно */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}


/* АКТИВАЦИЯ АНИМАЦИИ ДЛЯ СИНЕЙ КНОПКИ (B2B) */
.service-price-card .btn-service-modal.btn-blue {
    animation: shadow-breathe-blue 3s infinite ease-in-out;
}

/* АКТИВАЦИЯ АНИМАЦИИ ДЛЯ ЖЕЛТОЙ КНОПКИ (B2C) */
.service-price-card .btn-service-modal.btn-yellow {
    animation: shadow-breathe-yellow 3s infinite ease-in-out;
}

/* Убираем анимацию при наведении на кнопки услуг */
.service-price-card .btn-service-modal:hover {
    animation: none;
    transform: translateY(-2px);
    /* Добавляем сильную тень при наведении */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); 
}



/* ... (СТИЛИ ДЛЯ CTA) ... */

.btn-primary {
    /* ... (существующие стили) ... */
    
    /* УВЕЛИЧИВАЕМ СКОРОСТЬ ПУЛЬСАЦИИ */
    animation: pulse-yellow 1.5s infinite; 
}

/* ... (СТИЛИ ДЛЯ МОДАЛКИ) ... */

.modal-submit-btn {
    /* ... (существующие стили) ... */
    
    /* УВЕЛИЧИВАЕМ СКОРОСТЬ ПУЛЬСАЦИИ */
    animation: pulse-yellow 1.5s infinite; 
    transition: all 0.3s;
}


/* --- АНИМАЦИЯ CTA: ПУЛЬСАЦИЯ ЖЕЛТОЙ КНОПКИ (ГЛАВНЫЙ ЭКРАН И МОДАЛКА) --- */
@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); /* Начинаем с более яркого цвета */
    }
    70% {
        /* Увеличиваем радиус свечения и его непрозрачность */
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); 
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}


@media (min-width: 769px) and (max-width: 1200px) {
    .hero-section {
        background-size: cover !important; /* Ключевое изменение */
        background-position: center !important;
        min-height: 5vh !important; /* Гарантируем полную высоту */
        padding-bottom: 1vh !important; /* Дополнительный отступ снизу */
        position: relative;
    }
    
    /* Создаем градиентный переход внизу для плавного фон */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
        z-index: 1;
    }
    
    /* Помещаем контент поверх градиента */
    .hero-section > * {
        position: relative;
        z-index: 2;
    }
    
    /* Если хедер fixed - компенсируем его высоту */
    body {
        padding-top: 0 !important;
    }
}