/*
Theme Name: Viuwin Template
Author: Alex Viu
Author URI: alex_viu@mail.ru
Description: Viuwin Template 1
Version: 1.0
*/

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    font-size: 14px;
    line-height: 22px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 23px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--block {
    width: 100%;
}

.btn--primary {
    background-color: var(--primary-color);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-dark);
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 16px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-link {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-link:hover {
    gap: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 88px;
    background-color: #fffc;
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
@media (max-width: 424px) {
.header__container {
    gap: 5%;
}
}
/* Стили для логотипа */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
	    margin: 0 0 10px 0;

}

 .logo__image {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
} 

.logo__text {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .logo__image {
        max-height: 40px;
    }
    
    .logo__text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo__image {
        max-height: 35px;
    }
}

/* Основная навигация (десктоп) */
.main-nav {
    margin-left: 40px;
    flex-grow: 1;
}

.main-menu {
    display: flex;
    gap: 32px;
}

.main-menu > .menu-item {
    position: relative;
}

.main-menu .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-menu .nav-link:hover {
    color: var(--primary-color);
}

.submenu-toggle {
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .submenu-toggle {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sub-menu .nav-link:last-child {
    border-bottom: none;
}

/* Блок справа (десктоп) */
.header__right-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__link-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.header__link-icon {
    width: 20px;
    height: 20px;
}

.social-list {
    display: flex;
    gap: 12px;
}

.social-list__item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-list__item-link:hover {
    background: var(--primary-color);
    color: white;
}

.social-list__item-link svg {
    width: 20px;
    height: 20px;
}

.header__btn-wrap .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Блок для мобильных (скрыт на десктопе) */
.header__mobile-block {
    display: none;
}

/* Бургер-кнопка */
.burger-btn {
    display: none;
    width: 24px;
    height: 17px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.burger-btn span:nth-child(2) {
    margin: 4px 0;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu {
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu__content {
    padding: 20px 0;
}

/* Сброс стилей для списка */
.mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Основные пункты меню - ЖИРНЫЕ */
.mobile-menu__list > .menu-item {
    border-bottom: 1px solid var(--border-color);
}

/* Основные ссылки */
.mobile-menu__list > .menu-item > a.nav-link {
    display: block;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--text-dark) !important;
}

/* ПОДМЕНЮ - ОБЯЗАТЕЛЬНО ВИДИМО */
.mobile-menu__list .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--bg-light) !important;
    max-height: none !important;
}

/* Подпункты первого уровня */
.mobile-menu__list .sub-menu .menu-item {
    border-bottom: none;
}

.mobile-menu__list .sub-menu .menu-item > a.nav-link {
    display: block;
    padding: 12px 48px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: var(--text-light) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Подпункты второго уровня */
.mobile-menu__list .sub-menu .sub-menu {
    background: rgba(0, 0, 0, 0.03) !important;
}

.mobile-menu__list .sub-menu .sub-menu .menu-item > a.nav-link {
    padding-left: 64px !important;
    font-size: 13px !important;
}

/* Нижняя часть мобильного меню (УПРОЩАЕМ) */
.mobile-menu__bottom {
    padding-top: 20px;
    margin-top: 20px;
}

.mobile-menu__phone {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
}

.mobile-menu__phone:hover {
    color: var(--primary-dark);
}

.mobile-menu__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-menu__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu__socials a:hover {
    background: var(--primary-color);
    color: white;
}

/* Кнопка в мобильном меню */
.mobile-menu__bottom .btn {
    display: block;
    width: 90%;
    padding: 14px;
    margin: 0 auto;
}

/* Адаптивность мобильного меню */
@media (max-width: 480px) {
    .mobile-menu__list > .menu-item > a.nav-link {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
    
    .mobile-menu__list .sub-menu .menu-item > a.nav-link {
        padding: 10px 40px !important;
    }
    
    .mobile-menu__list .sub-menu .sub-menu .menu-item > a.nav-link {
        padding-left: 56px !important;
    }
}

/* ========== ОСНОВНОЙ КОНТЕНТ (с отступом под фиксированный header) ========== */
main {
    margin-top: 0px;
}

/* ========== HERO БЛОК ========== */
.hero {
    height: 600px; /* Фиксированная высота */
    min-height: 600px;
    padding-top: 88px; /* Отступ под header */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    text-align: center; /* Центрируем новый контент */
}

/* ДИНАМИЧЕСКИЙ HERO-БЛОК (новые стили) */

/* Фоновая картинка для динамического hero (если загружена обложка) */
.hero__bg {
    position: absolute;
    /* top: -88px; */ /* Совпадает с вашим ::before */
    left: 0;
    right: 0;
    height: calc(100% + 88px);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Оверлей для динамического hero (если есть обложка) */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

/* Если есть динамический фон, изменяем цвета текста */
.hero--has-bg .hero__title,
.hero--has-bg .hero__subtitle {
    color: #ffffff !important; /* Белый текст на фоне */
}

/* ОРИГИНАЛЬНЫЕ СТИЛИ (ваши) остаются */

/* Фоновое изображение с блюром под шапкой (дефолтное если нет обложки) */
.hero::before {
    content: '';
    position: absolute;
	/* top: -88px; */
    left: 0;
    right: 0;
    height: calc(100% + 88px);
    background-image: url(/wp-content/themes/viuwin/assets/img/bg.webp);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Градиент поверх изображения */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120%;
    background: 
        linear-gradient(1turn, #eee8e8, #eee8e800 31.4%), 
        linear-gradient(112.87deg, #1d222d14 -13.61%, #1d222d00 80.57%);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
    margin-top: 60px;
    display: grid;
    align-items: center;
}

.hero__title {
    font-size: 44px;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 52px;
    text-transform: uppercase;
    text-align: center; /* Центрируем */
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
/*     margin: 0 auto 32px; */
    margin: 0 auto 90px;
    font-weight: 600;
    line-height: 26px;
    text-align: center; /* Центрируем */
}

.page-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 0;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.tag:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        height: 420px;
        min-height: 420px;
    }
    
    .hero__title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .hero__subtitle {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .hero__subtitle {
        font-size: 15px;
        line-height: 22px;
    }
}
/* ========== БЫСТРАЯ НАВИГАЦИЯ ========== */
.quick-nav {
	padding: 30px 0;
    margin-bottom: 30px;
}

.quick-nav__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.quick-nav__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.quick-nav__card:hover {
    border-color: var(--primary-color);
    background-color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quick-nav__card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-nav__card span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* ========== СТРАНЫ ========== */
/* ========== КАРТОЧКИ СТРАН ========== */
.countries .card {
    position: relative;
    height: 320px; /* Фиксированная высота для стран */
    overflow: hidden;
    border: none;
    border-radius: var(--radius);
}

.country-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.country-card:hover .country-card__flag {
    transform: scale(1.1);
}

.country-card__flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Наложение с заголовком */
.country-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 24px 20px;
    color: white;
    z-index: 2;
}

.country-card__title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стрелочка в углу */
.country-card__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    z-index: 3;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-card:hover .country-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Убираем старые элементы */
.country-card .card__content,
.country-card .card__excerpt,
.country-card .card__link {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .countries .card {
        height: 280px;
    }
    
    .country-card__title {
        font-size: 18px;
    }
    
    .country-card__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .countries .card {
        height: 240px;
    }
    
    .country-card__overlay {
        padding: 16px 12px;
    }
}

/* ========== ГОРИЗОНТАЛЬНЫЕ СКРОЛЛ-БЛОКИ ========== */
.projects__scroll-container,
.articles__scroll-container {
    overflow-x: auto;
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

.projects__list,
.articles__list {
    display: flex;
    gap: 32px;
    min-width: min-content;
    padding: 20px 0;
}

/* ========== КАРТОЧКА ЖК ========== */
.project-card {
    min-width: 202px;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card__image {
    height: 200px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__content {
    padding: 16px;
}

.project-card__title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 26px;
    text-transform: uppercase;
}

.project-card__info {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

/* ========== ФОРМА КОНТАКТОВ ========== */
.contact-form-section {
	padding: 30px 0;
    margin-bottom: 30px;
    background-color: var(--bg-light);
}

.contact-form-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 109, 245, 0.1);
}

.form-notice {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    text-align: center;
    line-height: 16px;
}

/* ========== КАРТОЧКА СТАТЬИ ========== */

.articles .card {
    display: flex;
    flex-direction: column;
    height: 505px;
    overflow: hidden;
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card__image {
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.article-card__title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-dark);
    
    /* Ограничиваем высоту заголовка */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px; /* примерно 2 строки */
}

.article-card__excerpt {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    
    /* Ограничиваем высоту описания */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* максимум 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 66px; /* примерно 3 строки */
}

.article-card__readmore {
    margin-top: auto; /* прижимаем к низу */
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.article-card__readmore i {
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__readmore i {
    transform: translateX(4px);
}

/* ========== ТЕКСТ + ИЗОБРАЖЕНИЕ  БЛОК "О НАС" ========== */
.text-image {
	padding: 30px 0;
    margin-bottom: 30px;
}

.text-image__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-image__content {
	font-size: 16px;
}

.text-image__content ul {
    margin-top: 1rem;
    padding-left: 0;
}

.text-image__content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 16px;
}

.text-image__content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Стили для медиа-блока */
.text-image__media {
    position: relative;
    border-radius: var(--radius); /* Добавляю скругления */
    overflow: hidden; /* Чтобы скругления работали */
}

.text-image__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius); /* Скругления для картинки */
    display: block;
}

/* Цветной фон если нет картинки */
.text-image__media > div[style*="background-color"] {
    border-radius: var(--radius);
}

/* Стили для кнопки в блоке "О нас" */
.text-image__button-wrap {
    margin-top: 30px;
}

.text-image__button-wrap .btn {
    display: inline-block;
    padding: 14px 23px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.text-image__button-wrap .btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .text-image__button-wrap {
        text-align: center;
        margin-top: 20px;
    }
}

/* Стили для подписи картинки */
.text-image__caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 8px; /* Меньше скругления для подписи */
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    max-width: 80%;
}

.text-image__caption p {
    margin: 0 0 8px 0;
}

.text-image__caption p:last-child {
    margin-bottom: 0;
}

/* Респонсив стили */
@media (max-width: 1024px) {
    .text-image__grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .text-image__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-image__caption {
        position: static;
        margin-top: 16px;
        max-width: 100%;
        background: var(--bg-light);
        border-radius: 8px;
    }
}

/* ========== ИНФОГРАФИКА ========== */
.infographic {
    background-color: var(--bg-light);
	padding: 30px 0;
    margin-bottom: 30px;
}

.infographic__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.infographic__item {
    padding: 24px 20px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.infographic__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.infographic__number span {
    font-size: 1.5rem;
}

.infographic__text {
    margin-top: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* ========== СОЦСЕТИ ========== */
.socials-section {
    text-align: center;
	padding: 30px 0;
    margin-bottom: 30px;
}

.socials-section__subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
}

.socials-list-main {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    background: rgba(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0;
    width: 24px;
    height: 24px;
}

.modal__title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.callback-form .form-group {
    margin-bottom: 20px;
}

.callback-form .base-input__control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
}

.callback-form select.base-input__control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231f2937' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.modal__alt-contacts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal__subtitle {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal__socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal__social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ========== ФУТЕР ========== */
.footer {
    background-color: var(--text-dark);
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: block;
}

.footer__title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer__menu li {
    margin-bottom: 10px;
}

.footer__contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer__contacts a {
    color: inherit;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.125rem;
    transition: var(--transition);
}

/* .footer__socials a:hover {
    background-color: var(--primary-color);
} */

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #9ca3af;
    font-size: 12px;
}

.footer__link {
    color: #9ca3af;
    font-size: 12px;
}

/* ========== СТИЛИ СКРОЛЛБАРА ========== */
.projects__scroll-container::-webkit-scrollbar,
.articles__scroll-container::-webkit-scrollbar,
.countries__scroll-container::-webkit-scrollbar {
    height: 4px;
}

.projects__scroll-container::-webkit-scrollbar-track,
.articles__scroll-container::-webkit-scrollbar-track,
.countries__scroll-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 2px;
}

.projects__scroll-container::-webkit-scrollbar-thumb,
.articles__scroll-container::-webkit-scrollbar-thumb,
.countries__scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========== АНИМАЦИИ ========== */
.project-card,
.article-card,
.quick-nav__card,
.infographic__item {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-nav__card:hover i,
.social-link:hover i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.tag:hover,
.btn:hover {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-4px);
    }
}


/* ========== FAQ АККОРДЕОН ========== */
.faq {
	padding: 30px 0;
    margin-bottom: 30px;
    background-color: var(--bg-white);
}

.faq__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    margin-bottom: 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--text-dark);
    text-align: center;
}

@media (max-width: 767px) {
    .faq__title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 30px;
    }
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__item:hover {
    background-color: rgba(42, 109, 245, 0.02);
}

.faq__input {
    display: none;
}

.faq__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    cursor: pointer;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.faq__label:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.faq__label:hover .faq__icon {
    background-color: var(--primary-color);
}

.faq__label:hover .faq__icon::before,
.faq__label:hover .faq__icon::after {
    background-color: white;
}

.faq__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
    transition: var(--transition);
}

.faq__item:hover .faq__label::before {
    background-color: var(--primary-color);
}

.faq__input:checked + .faq__label {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.faq__input:checked + .faq__label::before {
    background-color: var(--primary-color);
    width: 4px;
}

.faq__question {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 20px;
}

.faq__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--bg-light);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    flex-shrink: 0;
    position: relative;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.faq__icon::before {
    width: 14px;
    height: 2px;
}

.faq__icon::after {
    width: 2px;
    height: 14px;
}

.faq__input:checked + .faq__label .faq__icon {
    transform: rotate(180deg);
    background-color: var(--primary-color);
}

.faq__input:checked + .faq__label .faq__icon::before {
    background-color: white;
}

.faq__input:checked + .faq__label .faq__icon::after {
    opacity: 0;
    transform: rotate(90deg);
}

/* ПЛАВНАЯ АНИМАЦИЯ КОНТЕНТА */
.faq__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-white);
}

.faq__content-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 30px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease 0.1s, 
                transform 0.3s ease 0.1s,
                padding 0.3s ease;
}

.faq__input:checked ~ .faq__content {
    grid-template-rows: 1fr;
}

.faq__input:checked ~ .faq__content .faq__content-inner {
    padding: 24px 30px;
    opacity: 1;
    transform: translateY(0);
}

.faq__content-inner p {
    margin-bottom: 15px;
}

.faq__content-inner p:last-child {
    margin-bottom: 0;
}

.faq__content-inner strong {
    color: var(--primary-color);
    font-weight: 600;
}

.faq__content-inner ul {
    margin: 15px 0 15px 20px;
}

.faq__content-inner li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.faq__content-inner li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Анимация для появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq__item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.faq__item:nth-child(1) { animation-delay: 0.1s; }
.faq__item:nth-child(2) { animation-delay: 0.2s; }
.faq__item:nth-child(3) { animation-delay: 0.3s; }
.faq__item:nth-child(4) { animation-delay: 0.4s; }
.faq__item:nth-child(5) { animation-delay: 0.5s; }
.faq__item:nth-child(6) { animation-delay: 0.6s; }
.faq__item:nth-child(7) { animation-delay: 0.7s; }
.faq__item:nth-child(8) { animation-delay: 0.8s; }

/* Responsive */
@media (max-width: 768px) {
    .faq {
        padding: 30px 0;
    }
    
    .faq__list {
        border-radius: calc(var(--radius) - 2px);
    }
    
    .faq__label {
        padding: 20px 20px;
        font-size: 15px;
    }
    
    .faq__question {
        padding-right: 15px;
    }
    
    .faq__icon {
        width: 28px;
        height: 28px;
    }
    
    .faq__icon::before {
        width: 12px;
        height: 2px;
    }
    
    .faq__icon::after {
        width: 2px;
        height: 12px;
    }
    
    .faq__content-inner {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .faq__input:checked ~ .faq__content .faq__content-inner {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq__label {
        padding: 16px 16px;
        font-size: 14px;
    }
    
    .faq__icon {
        width: 26px;
        height: 26px;
    }
    
    .faq__content-inner {
        padding: 0 16px;
    }
    
    .faq__input:checked ~ .faq__content .faq__content-inner {
        padding: 16px;
    }
}

/* Для очень старых браузеров - fallback */
@supports not (display: grid) {
    .faq__content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: var(--bg-white);
    }
    
    .faq__input:checked ~ .faq__content {
        max-height: 1000px;
    }
    
    .faq__content-inner {
        padding: 0 30px 24px;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшет (до 1279px) */
@media (max-width: 1279px) {
    .container {
        padding: 0 24px;
    }
    
    .hero__title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .text-image__grid {
        gap: 40px;
    }
}

/* Планшет (до 1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .contact-form-section__container,
    .text-image__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-nav__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .infographic__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Мобильный хедер */
    .header__right-block {
        display: none;
    }
    
    .header__mobile-block {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
    }
    
    .header__mobile-social,
    .header__mobile-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: var(--text-dark);
        transition: var(--transition);
    }
    
    .header__mobile-social:hover,
    .header__mobile-phone:hover {
        color: var(--primary-color);
    }
    
    .burger-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .logo {
        margin: 0 auto;
        transform: translateX(-12px);
    }
}

/* Мобильный (до 768px) */
@media (max-width: 768px) {
    .modal__content {
        padding: 30px 20px;
    }
    
    .modal__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero__title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .hero__subtitle {
        font-size: 16px;
        line-height: 24px;
		margin: 0 auto 70px;
    }
    
    .quick-nav__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countries__list {
        gap: 16px;
    }
    
    .project-card,
    .article-card {
        min-width: 200px;
    }
    
    .project-card__content,
    .article-card__content {
        padding: 12px;
    }
    
    .infographic__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        gap: 24px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .countries,
    .text-image,
    .infographic {
        margin-bottom: 30px;
    }
    
    .socials-section {
        margin-bottom: 30px;
    }
}

/* Мобильный маленький (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .quick-nav__grid {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .page-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .project-card__image {
        height: 150px;
    }
    
    .article-card__image {
        height: 140px;
    }
}


/* ========== УНИВИЦИРОВАННЫЕ КАРТОЧКИ ДЛЯ ВСЕХ БЛОКОВ ========== */
.cards-carousel {
	padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
}

/* Контейнер для скролла */
.cards-scroll-container {
    overflow: hidden;
    position: relative;
/*     padding: 20px 60px 50px; */
    padding: 20px 0px 50px;
}

.cards-list {
    display: flex;
    gap: 32px;
    transition: transform 0.5s ease;
    padding: 10px 5px;
    margin: 0 -5px;
    cursor: grab;
    user-select: none;
}

.cards-list:active {
    cursor: grabbing;
}

/* Универсальная карточка */
.card {
    flex: 0 0 calc(33.333% - 22px);
    min-width: calc(33.333% - 22px);
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
}

/* Для видимых соседних карточек */
.card--visible {
    opacity: 0.3;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Изображение карточки */
.card__image {
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

/* Контент карточки */
.card__content {
    padding: 24px;
}

.card__title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 26px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.card__info {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 16px;
}

.card__excerpt {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 20px;
}

.card__link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.card:hover .card__link {
    gap: 12px;
}

/* Для стран - особый стиль */
.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.country-card__flag {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.country-card__name {
    font-weight: 600;
    font-size: 16px;
    margin-top: auto;
    padding: 20px;
    color: var(--text-dark);
}

/* Стрелки навигации (по бокам) */
.cards-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
	    visibility: hidden;
}

.cards-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    pointer-events: all;
}

.cards-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.cards-arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.cards-arrow[disabled]:hover {
    background: white;
    color: inherit;
    border-color: var(--border-color);
    transform: none;
}

/* Точки навигации (снизу) */
.cards-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.cards-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
	border-style: hidden;
}

.cards-dot.active {
    background: var(--primary-color);
    width: 24px;
    height: 8px;
}

/* Адаптивность */
@media (max-width: 1279px) {
    .card {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
    }
    
    .cards-scroll-container {
        padding: 20px 50px 50px;
    }
    
    .cards-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .cards-carousel {
        padding: 40px 0;
    }
    
    .card {
        flex: 0 0 calc(85% - 16px);
        min-width: calc(85% - 16px);
    }
    
    .card__image {
        height: 180px;
    }
    
    .cards-scroll-container {
        padding: 20px 40px 50px;
    }
    
    .cards-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 calc(90% - 16px);
        min-width: calc(90% - 16px);
    }
    
    .card__image {
        height: 160px;
    }
    
    .cards-scroll-container {
        padding: 20px 30px 50px;
    }
    
    .cards-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .articles .card {
        height: 500px;
    }
    
    .article-card__image {
        height: 180px;
    }
    
    .article-card__title {
        height: 66px;
        font-size: 12px;
    }
    
    .article-card__excerpt {
        font-size: 13px;
        height: 77px;
    }
}

@media (max-width: 480px) {
    .articles .card {
        height: 500px;
    }
    
    .article-card__image {
        height: 160px;
    }
    
    .article-card__title {
        height: 77px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .project-card__content, .article-card__content {
        padding: 12px;
    }
}
/* Десктоп (по умолчанию) */
.page-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

/* Мобильные (горизонтальный скролл) */
@media (max-width: 768px) {
    .page-tags {
        flex-wrap: nowrap; /* запрещаем перенос */
        justify-content: flex-start; /* выравнивание по левому краю */
        overflow-x: auto; /* горизонтальный скролл */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
        padding: 15px 10px 20px;
        margin: 1rem -10px 0; /* компенсируем padding контейнера */
        scrollbar-width: thin; /* тонкий скроллбар для Firefox */
        scrollbar-color: var(--primary-color) transparent;
    }
    
    .page-tags::-webkit-scrollbar {
        height: 4px;
    }
    
    .page-tags::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 2px;
    }
    
    .page-tags::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .tag {
        flex: 0 0 auto; /* запрещаем сжатие/растяжение */
        white-space: nowrap;
    }
    
    /* Увеличиваем отступ снизу для hero на мобильных */
    .hero {
        padding-bottom: 60px !important; /* важное правило */
    }
    
    .hero__subtitle {
        margin-bottom: 40px !important;
    }
}


@media (max-width: 767px) {
    .section-header {
        display: grid;
        margin-bottom: 24px;
        justify-items: start;
    }
}}

/* Логотип в футере */
.footer-logo__image {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-logo__image {
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .footer-logo__image {
        max-height: 35px;
    }
}

/* ========== ФУТЕР С КНОПКОЙ ========== */

/* Обертка для кнопки в футере */
.footer__btn-wrap {
    margin-top: 25px;
}

/* Стили для кнопки в футере */
.footer .btn--primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    text-align: center;
}

.footer .btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Адаптивность для кнопки в футере */
@media (max-width: 768px) {
    .footer__btn-wrap {
        margin-top: 20px;
        text-align: center;
    }
    
    .footer .btn--primary {
        padding: 10px 20px;
        font-size: 13px;
		width: 100%;		
    }
}

@media (max-width: 480px) {
    .footer__btn-wrap {
        margin-top: 15px;
    }
}

/* СООБЩЕНИЕ ОБ ОТСУТСТВИИ СОЦСЕТЕЙ */
.socials-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 20px;
}


/* ========== КНОПКА ОТПРАВКИ CF7 ========== */
.contact-form .wpcf7-submit {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

/* Hover состояние */
.contact-form .wpcf7-submit:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Сообщения CF7 */
.contact-form .wpcf7-mail-sent-ok {
    background-color: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-aborted,
.contact-form .wpcf7-spam-blocked {
    background-color: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

.contact-form .wpcf7-validation-errors {
    background-color: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

/* ========== АНИМАЦИЯ СЧЕТЧИКА ========== */
.infographic__number.countup {
    transition: all 0.5s ease;
}

/* Делаем числа плавными при анимации */
.infographic__number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Дополнительная анимация для появления */
.infographic__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.infographic__item.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Стили для сквозного блока с проектами */
.card__info--price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .card__info--price {
        font-size: 16px !important;
    }
}

/* Обновляем адаптивность характеристик с 4 элементами */
@media (max-width: 1024px) {
    .zhk-characteristics__list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .zhk-characteristics__item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .zhk-characteristics__item {
        flex: 0 0 100%;
    }
}


@media (max-width: 768px) {
    .cards-arrows {
        display: none !important; /* Полностью скрываем стрелки */
    }
    
    .cards-scroll-container {
        padding: 20px 0 30px !important; /* Убираем боковые отступы */
        overflow-x: auto !important; /* Включаем обычный скролл */
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin;
    }
    
    .cards-list {
        cursor: default !important; /* Убираем курсор grab */
        transition: none !important; /* Отключаем анимацию перехода */
        transform: none !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        width: max-content !important;
    }
    
    .card {
        flex: 0 0 auto !important;
        width: 280px !important; /* Фиксированная ширина на мобильных */
        min-width: 280px !important;
        margin: 0 !important;
    }
    
    .cards-dots {
        display: none !important; /* Точки тоже скрываем */
    }
}

/* Улучшаем скролл на мобильных */
.cards-scroll-container {
    scrollbar-width: none; /* Firefox */
}

.cards-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Для iOS - плавный скролл */
.cards-scroll-container {
    -webkit-overflow-scrolling: touch;
}

/* Убираем подсветку при касании на iOS */
.card {
    -webkit-tap-highlight-color: transparent;
}

/* Оптимизация производительности */
.cards-list {
    will-change: transform;
    backface-visibility: hidden;
}