/* ==========================================
   КОНТРАСТНАЯ ПАЛИТРА: ОРАНЖЕВЫЙ + СВЕТЛО-БЕЖЕВЫЙ (FDF8E1)
   ========================================== */
:root {
	/* Основной оранжевый акцент */
	--accent-orange: #FF6B00;       /* Яркий строительный оранжевый */
	--accent-orange-hover: #E05E00; /* Темно-оранжевый для наведения */
	
	/* Фоновые цвета */
	--bg-main: #FDF8E1;              /* Основной светлый кремовый/бежевый фон страницы */
	--bg-secondary: #F5EFCB;        /* Мягкий фон в тон для карточек и контрастных секций */
	--bg-dark: #111111;              /* Глубокий черный */
	--bg-dark-card: #1C1C1E;        /* Темно-серый для блоков на черном фоне */
	
	/* Цвета текста */
	--text-dark: #111111;           /* Черный текст */
	--text-muted: #666666;          /* Серый текст */
	--text-light: #FFFFFF;          /* Белый текст */
	
	--border-light: rgba(0, 0, 0, 0.08);
	--font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	background-color: var(--bg-main);
	color: var(--text-dark);
	font-family: var(--font-main);
	-webkit-font-smoothing: antialiased;
}

body {
	overflow-x: hidden;
	background-color: var(--bg-main);
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ==========================================
   ТИПОГРАФИКА И КНОПКИ
   ========================================== */
.section-tag {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--accent-orange);
	margin-bottom: 12px;
}

.section-tag.light {
	color: var(--accent-orange);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.15;
	margin-bottom: 24px;
	color: var(--text-dark);
}

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: 100px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
}

/* Главная оранжевая кнопка */
.btn-primary {
	background: var(--accent-orange);
	color: #FFFFFF;
	box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
	background: var(--accent-orange-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
}

/* Контурная кнопка */
.btn-outline {
	border: 2px solid var(--text-dark);
	color: var(--text-dark);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
}

.btn-outline:hover {
	background: var(--text-dark);
	color: #FFFFFF;
}

/* Белая кнопка */
.btn-white {
	background: #FFFFFF;
	color: var(--text-dark);
}

.btn-white:hover {
	background: var(--accent-orange);
	color: #FFFFFF;
	transform: translateY(-2px);
}

/* Белая контурная кнопка */
.btn-outline-white {
	border: 2px solid #FFFFFF;
	color: #FFFFFF;
}

.btn-outline-white:hover {
	background: #FFFFFF;
	color: var(--text-dark);
}

/* ==========================================
   ШАПКА (HEADER) - 3 КОЛОНКИ, ВСЕ ЭЛЕМЕНТЫ НЕ ИЗМЕНЯЮТСЯ
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 248, 225, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.35s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

/* Контейнер с 3 колонками */
.header-container,
.wt-header__body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px !important;
    box-sizing: border-box;
    align-items: center;
    height: auto;
    min-height: 72px;
}

/* ==========================================
   КОЛОНКА 1: ЛОГОТИП (НЕ ИЗМЕНЯЕТСЯ)
   ========================================== */
.logo,
.wt-header__logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 2px;
    justify-self: start;
    flex-shrink: 0;
}

.logo-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.logo-title span {
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 1.25rem;
}

/* ==========================================
   КОЛОНКА 2: НАВИГАЦИЯ (НЕ ИЗМЕНЯЕТСЯ)
   ========================================== */
.nav,
.wt-header__nav {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--accent-orange);
}

/* ==========================================
   КОЛОНКА 3: КНОПКА СРО (НЕ ИЗМЕНЯЕТСЯ)
   ========================================== */
.header-top-right {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-header,
.wt-header__btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    background: transparent;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-header:hover,
.wt-header__btn:hover {
    background: var(--accent-orange);
    color: #FFFFFF;
}

/* ==========================================
   НИЖНИЙ БЛОК: РЕКВИЗИТЫ
   ========================================== */
.header-bottom-full {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-top: 0 !important;
    overflow: visible !important;
}

.header-requisites {
    font-size: 0.6rem !important;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1 !important;
    letter-spacing: 0;
    white-space: nowrap !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    text-align: left !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: baseline !important;
    transition: font-size 0.3s ease !important;
}

/* ==========================================
   ПЛАВНОЕ УМЕНЬШЕНИЕ РЕКВИЗИТОВ С 530px
   ========================================== */

@media (max-width: 530px) {
    .header-requisites {
        font-size: 0.5rem !important;
        line-height: 1 !important;
    }
}

@media (max-width: 480px) {
    .header-requisites {
        font-size: 0.45rem !important;
    }
}

@media (max-width: 430px) {
    .header-requisites {
        font-size: 0.4rem !important;
    }
}

@media (max-width: 380px) {
    .header-requisites {
        font-size: 0.35rem !important;
    }
}

@media (max-width: 330px) {
    .header-requisites {
        font-size: 0.3rem !important;
    }
}

/* ==========================================
   АДАПТАЦИЯ НАВИГАЦИИ
   ========================================== */

/* Уменьшаем отступы между ссылками навигации */
@media (max-width: 1200px) {
    .nav,
    .wt-header__nav {
        gap: 28px;
    }
}

@media (max-width: 1100px) {
    .nav,
    .wt-header__nav {
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .nav,
    .wt-header__nav {
        gap: 14px;
    }
}

@media (max-width: 920px) {
    .nav,
    .wt-header__nav {
        gap: 10px;
    }
}

@media (max-width: 850px) {
    .nav,
    .wt-header__nav {
        gap: 6px;
    }
}

/* При достижении минимального расстояния - скрываем навигацию */
@media (max-width: 780px) {
    .nav,
    .wt-header__nav {
        display: none !important;
    }
    
    .header-container,
    .wt-header__body {
        padding: 0 24px !important;
        min-height: 72px;
    }
    
    .header-bottom-full {
        padding-top: 0 !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }
    
    /* НЕ ПЕРЕОПРЕДЕЛЯЕМ РАЗМЕР */
    .header-requisites {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        text-align: left !important;
        line-height: 1 !important;
        height: auto !important;
        display: inline-block !important;
        vertical-align: baseline !important;
    }
}

/* ==========================================
   АДАПТАЦИЯ КОНТЕЙНЕРА С 530px
   ========================================== */

@media (max-width: 530px) {
    .header-container,
    .wt-header__body {
        min-height: 60px;
        padding: 12px 16px 8px 16px !important; /* ОТСТУП СВЕРХУ 12px, СНИЗУ 8px */
    }
}

@media (max-width: 430px) {
    .header-container,
    .wt-header__body {
        min-height: 52px;
        padding: 10px 12px 6px 12px !important; /* ОТСТУП СВЕРХУ 10px, СНИЗУ 6px */
    }
}

@media (max-width: 380px) {
    .header-container,
    .wt-header__body {
        min-height: 46px;
        padding: 8px 10px 4px 10px !important; /* ОТСТУП СВЕРХУ 8px, СНИЗУ 4px */
    }
}

@media (max-width: 330px) {
    .header-container,
    .wt-header__body {
        min-height: 40px;
        padding: 6px 8px 4px 8px !important; /* ОТСТУП СВЕРХУ 6px, СНИЗУ 4px */
    }
}



/* ==========================================
   HERO СЕКЦИЯ (ВЕРХНЕЕ ВИДЕО ВСЕГДА ЗАТЕМНЕНО)
   ========================================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 100px;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.65);
	transition: filter 0.4s ease, transform 0.4s ease;
}

.hero:hover .hero-video {
	transform: scale(1.02);
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: none !important;
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 3;
	max-width: 850px;
	padding-top: 40px;
	padding-left: 24px; /* ДОБАВЛЕНО */
	padding-right: 24px; /* ДОБАВЛЕНО */
	width: 100%; /* ДОБАВЛЕНО */
	box-sizing: border-box; /* ДОБАВЛЕНО */
}

.hero-subtitle {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 16px;
	color: var(--accent-orange);
}

/* ЯРКО-БЕЛЫЙ ЗАГОЛОВОК НАД ВИДЕО */
.hero-title {
	font-size: clamp(2.8rem, 5.5vw, 4.8rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -2px;
	margin-bottom: 24px;
	color: #FFFFFF;
	text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
	word-wrap: break-word; /* ДОБАВЛЕНО */
	overflow-wrap: break-word; /* ДОБАВЛЕНО */
	max-width: 100%; /* ДОБАВЛЕНО */
}

/* ЯРКО-БЕЛЫЙ ТЕКСТ ОПИСАНИЯ НАД ВИДЕО */
.hero-description {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	color: #FFFFFF;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 40px;
	max-width: 680px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
	word-wrap: break-word; /* ДОБАВЛЕНО */
	overflow-wrap: break-word; /* ДОБАВЛЕНО */
}

.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================
   АДАПТИВНОСТЬ HERO (ТОЛЬКО ШИРИНА)
   ========================================== */

@media (max-width: 768px) {
	.hero-content {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 480px) {
	.hero-content {
		padding-left: 12px;
		padding-right: 12px;
	}
}

@media (max-width: 375px) {
	.hero-content {
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* ==========================================
   СТАТИСТИКА
   ========================================== */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    transition: padding 0.3s ease;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
    color: #1a1a1a;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

.stat-number .unit {
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: font-size 0.3s ease;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .stats-section {
        padding: 45px 0;
    }
    
    .stats-grid {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 0.82rem;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .stats-section {
        padding: 35px 0;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-number {
        font-size: 2.2rem;
        letter-spacing: -1px;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 0.72rem;
    }
}

/* Крупные телефоны (до 480px) */
@media (max-width: 480px) {
    .stats-section {
        padding: 25px 0;
    }
    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 0.62rem;
    }
}

/* iPhone SE и маленькие телефоны (375px) */
@media (max-width: 380px) {
    .stats-section {
        padding: 18px 0;
        min-height: 80px;
    }
    
    .stats-grid {
        gap: 4px;
    }
    
    .stat-number {
        font-size: 1.4rem;
        letter-spacing: 0;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.55rem;
        font-weight: 600;
        line-height: 1.2;
    }
}

/* Очень маленькие экраны (320px) */
@media (max-width: 340px) {
    .stats-section {
        padding: 12px 0;
        min-height: 60px;
    }
    
    .stats-grid {
        gap: 2px;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 1px;
    }
    
    .stat-label {
        font-size: 0.45rem;
    }
}

/* ==========================================
   О КОМПАНИИ
   ========================================== */
.about-section {
	padding: 120px 0;
	background: var(--bg-main);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.text-block {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.about-img {
	width: 100%;
	border-radius: 24px;
	object-fit: cover;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   УСЛУГИ (СЕТКА КАРТОЧЕК)
   ========================================== */
/* Стили для секции направлений / ресурсов */
.services-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: transparent !important;
}

/* Контейнер для видеофона */
.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Само видео */
.services-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Затемняющий слой поверх видео */
.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* Контейнер с контентом поверх видео */
.services-section .container {
    position: relative;
    z-index: 3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.09);
}

.service-card .tab-title {
    color: var(--accent-orange, #ff4500);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 0;
}

.service-card .tab-desc-main {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Стили списков внутри карточек */
.base-list,
.digital-list,
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 18px;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    list-style-type: disc;
}

.base-list li::marker,
.digital-list li::marker,
.staff-list li::marker {
    color: var(--accent-orange, #ff4500);
}

/* Заголовки секции поверх видео тоже делаем светлыми */
.services-section .section-title {
    color: #ffffff;
}

/* ==========================================
   ПОРТФОЛИО КАРУСЕЛЬ
   ========================================== */

/* ==========================================
   ПОРТФОЛИО КАРУСЕЛЬ
   ========================================== */

/* Контейнер карусели: выстраиваем слайды в ряд */
.wt-slider__wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 30px 0;
}

/* Базовый вид слайда */
.wt-slider__slide {
    flex-shrink: 0;
    width: 380px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    padding: 15px 0;
}

/* Основные стили секции */
.portfolio-section {
    padding: 60px 0;
    overflow: hidden;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ИЗМЕНЕНО: выравнивание по центру */
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Стили карточек */
.portfolio-carousel-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    overflow: visible; /* Нужно для стрелок */
}

/* Swiper контейнер - обрезаем слайды здесь */
.portfolio-swiper {
    overflow: hidden !important;
    padding: 30px 0;
}

/* Оформление карточки */
.portfolio-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.portfolio-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    padding: 24px;
}

.portfolio-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.portfolio-overlay p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===== ЭФФЕКТЫ СЛАЙДОВ ===== */

/* Все слайды по умолчанию */
.portfolio-swiper .swiper-slide {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.85);
}

/* Неактивные слайды */
.wt-slider__slide:not(.swiper-slide-active) .portfolio-item,
.swiper-slide:not(.swiper-slide-active) .portfolio-item {
    transform: scale(0.88);
    opacity: 0.65;
    transition: all 0.4s ease-in-out;
}

/* Активный слайд */
.wt-slider__slide.swiper-slide-active .portfolio-item,
.swiper-slide.swiper-slide-active .portfolio-item {
    transform: scale(1.05);
    opacity: 1;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3),
                0 0 60px rgba(201, 168, 76, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Центральный активный слайд в Swiper */
.portfolio-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* ===== СТРЕЛКИ НАВИГАЦИИ ===== */

.portfolio-prev,
.portfolio-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border: 2px solid var(--accent-orange, #c9a84c);
    color: var(--accent-orange, #c9a84c);
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.5;
}

.portfolio-prev {
    left: 10px;
}

.portfolio-next {
    right: 10px;
}

.portfolio-prev:hover,
.portfolio-next:hover {
    background: var(--accent-orange, #c9a84c);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

/* ==========================================
   КНОПКА СКАЧИВАНИЯ ПОРТФОЛИО (в стиле СРО ССК УрСиб)
   ========================================== */

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px; /* УВЕЛИЧЕНО: больше отступы */
    font-size: 0.85rem;
    border: 2px solid var(--accent-orange, #c9a84c);
    color: var(--accent-orange, #c9a84c);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 50px; /* ИЗМЕНЕНО: полукруглые края */
    white-space: nowrap;
    flex-shrink: 0; /* ДОБАВЛЕНО: чтобы кнопка не сжималась */
}

.btn-download-pdf:hover {
    background: var(--accent-orange, #c9a84c);
    color: #FFFFFF;
    transform: scale(1.02);
}

.btn-download-pdf:active {
    transform: scale(0.98);
}

/* Иконка скачивания */
.btn-download-pdf svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-download-pdf:hover svg {
    transform: translateY(2px);
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1200px) {
    .portfolio-carousel-wrapper {
        padding: 0 60px;
    }
    
    .portfolio-prev,
    .portfolio-next {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .portfolio-prev {
        left: 8px;
    }
    
    .portfolio-next {
        right: 8px;
    }
    
    .wt-slider__wrapper {
        padding: 25px 0;
    }
    
    .portfolio-swiper {
        padding: 25px 0;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 40px 0;
    }
    
    .flex-header {
        flex-direction: column;
        align-items: flex-start; /* ВОЗВРАЩАЕМ: на мобильных в столбец */
        gap: 16px;
    }
    
    .portfolio-carousel-wrapper {
        padding: 0 50px;
    }
    
    .wt-slider__wrapper {
        padding: 20px 0;
    }
    
    .wt-slider__slide {
        width: 280px;
        padding: 10px 0;
    }
    
    .portfolio-swiper {
        padding: 20px 0;
    }
    
    .portfolio-item img {
        height: 240px;
    }
    
    .portfolio-overlay {
        padding: 16px 18px 18px;
    }
    
    .portfolio-overlay h4 {
        font-size: 16px;
    }
    
    .portfolio-overlay p {
        font-size: 13px;
    }
    
    .portfolio-prev,
    .portfolio-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 1.5px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .portfolio-prev {
        left: 6px;
    }
    
    .portfolio-next {
        right: 6px;
    }
    
    .btn-download-pdf {
        font-size: 0.75rem;
        padding: 8px 18px;
        white-space: normal;
        border-radius: 50px;
    }
}

@media (max-width: 480px) {
    .portfolio-carousel-wrapper {
        padding: 0 40px;
    }
    
    .wt-slider__wrapper {
        padding: 15px 0;
    }
    
    .wt-slider__slide {
        width: 240px;
        padding: 8px 0;
    }
    
    .portfolio-swiper {
        padding: 15px 0;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .portfolio-overlay h4 {
        font-size: 14px;
    }
    
    .portfolio-overlay p {
        font-size: 12px;
    }
    
    .portfolio-prev,
    .portfolio-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-width: 1.5px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .portfolio-prev {
        left: 4px;
    }
    
    .portfolio-next {
        right: 4px;
    }
    
    .btn-download-pdf {
        font-size: 0.7rem;
        padding: 6px 14px;
        border-radius: 50px;
    }
}

/* ==========================================
   CTA СЕКЦИЯ (НИЖНЕЕ ВИДЕО ВСЕГДА ЗАТЕМНЕНО)
   ========================================== */
.cta-section {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 0;
	overflow: hidden;
	text-align: center;
}

.cta-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.cta-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.65); /* ВИДЕО ПОСТОЯННО ЗАТЕМНЕНО */
	transition: filter 0.4s ease, transform 0.4s ease;
}

.cta-section:hover .cta-video {
	transform: scale(1.02);
}

.cta-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: none !important;
	z-index: 2;
}

.cta-container {
	position: relative;
	z-index: 3;
	max-width: 800px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ЯРКО-БЕЛЫЕ ТЕКСТЫ ДЛЯ CTA СЕКЦИИ */
.cta-title {
	font-size: clamp(2.2rem, 4vw, 3.5rem);
	font-weight: 800;
	margin-bottom: 20px;
	color: #FFFFFF;
}

.cta-text {
	font-size: 1.15rem;
	color: #FFFFFF;
	margin-bottom: 40px;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================
   КОНТАКТЫ И СОЦСЕТИ В CTA СЕКЦИИ
   ========================================== */

.cta-container .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0;
}

.cta-container .contact-header {
    text-align: center;
    margin-bottom: 6px;
}

.cta-container .contact-header-details {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 1px;
    line-height: 1.25;
}

/* Телефон, email, адрес - увеличенный размер */
.cta-container .method-item {
    text-align: center;
    font-size: 1.2rem; /* ИЗМЕНЕНО: было 0.82rem, теперь 1rem */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 50px; /* ИЗМЕНЕНО: было 45px, теперь 50px */
    padding: 0 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-container .method-item:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-container .method-item:active {
    transform: translateY(1px);
    opacity: 0.9;
}

.cta-container .method-item.phone-pulse {
    border-color: var(--accent-orange);
    animation: phonePulseGlow 2.5s infinite ease-in-out;
}

.cta-container .btn-secondary {
    width: 100%;
    height: 45px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cta-container .btn-secondary:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-container .btn-secondary:active {
    transform: translateY(1px);
    opacity: 0.9;
}

.cta-container .expand-box {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
    text-align: left;
}

.cta-container .expand-box.active {
    display: block;
}

.cta-container .map-iframe-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-container .map-iframe-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* СОЦСЕТИ */
.cta-container .socials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0 0;
    width: 100%;
}

.cta-container .socials-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cta-container .socials-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 7px;
    width: 100%;
}

.cta-container .social-circle-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.cta-container .social-circle-btn svg {
    width: 28px;
    height: 28px;
}

/* Цвета для соцсетей в CTA */
.cta-container .social-circle-btn.tg {
    color: #229ED9;
    border-color: rgba(34, 158, 217, 0.4);
    background: rgba(34, 158, 217, 0.15);
}

.cta-container .social-circle-btn.vk {
    color: #0077FF;
    border-color: rgba(0, 119, 255, 0.4);
    background: rgba(0, 119, 255, 0.15);
}

.cta-container .social-circle-btn.max {
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.15);
}

/* Анимации при наведении */
.cta-container .social-circle-btn.tg:hover {
    transform: translateY(-4px) scale(1.08) rotate(360deg);
    border-color: #229ED9;
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.4);
}

.cta-container .social-circle-btn.vk:hover {
    transform: translateY(-4px) scale(1.08) rotate(360deg);
    border-color: #0077FF;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
}

.cta-container .social-circle-btn.max:hover {
    transform: translateY(-4px) scale(1.08) rotate(360deg);
    border-color: #6366F1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.cta-container .social-circle-btn:active {
    transform: translateY(-1px) scale(0.96);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Анимация пульсации телефона */
@keyframes phonePulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4);
        border-color: rgba(255, 69, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 69, 0, 0.6);
        border-color: var(--accent-orange);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4);
        border-color: rgba(255, 69, 0, 0.4);
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 768px) {
    .cta-container .social-circle-btn {
        width: 50px;
        height: 50px;
    }
    
    .cta-container .social-circle-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .cta-container .socials-row {
        gap: 12px;
    }
    
    .cta-container .method-item,
    .cta-container .btn-secondary {
        font-size: 0.9rem;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .cta-container .social-circle-btn {
        width: 44px;
        height: 44px;
    }
    
    .cta-container .social-circle-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .cta-container .socials-row {
        gap: 10px;
    }
    
    .cta-container .method-item,
    .cta-container .btn-secondary {
        font-size: 0.85rem;
        height: 36px;
        padding: 0 12px;
    }
    
    .cta-container .contact-header-details {
        font-size: 0.6rem;
    }
}

/* ==========================================
   ПОДВАЛ (FOOTER) В СТИЛЕ BECHTEL
   ========================================== */
.bechtel-footer {
    width: 100%;
    background-color: #0d161b;
    color: #d1d5db;
    padding: 60px 0 40px 0;
    font-family: var(--font-global, var(--font-main));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Сетка колонок навигации */
.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.2fr;
    gap: 32px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* Колонка с жирными ссылками справа */
.footer-col-bold {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-bold-link {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bold-link:hover {
    color: var(--accent-orange);
}

/* Разделительная линия */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 40px;
}

/* ==========================================
   НИЖНЯЯ ПАНЕЛЬ
   ========================================== */

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
}

/* ---- КОЛОНКА С ЛОГОТИПОМ ---- */
.footer-bottom-grid .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.footer-logo img {
    height: 120px;
    width: auto;
    border-radius: 8px;
    display: block;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ---- КОЛОНКИ С ЮРИДИЧЕСКИМИ ССЫЛКАМИ ---- */
.footer-legal-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center; /* Центрируем колонку */
}

.footer-legal-col a {
    color: #9ca3af;
    font-size: 0.78rem;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s ease;
    text-align: left; /* Текст по левому краю */
    width: 100%;
    max-width: 280px; /* Ограничиваем ширину для выравнивания */
    padding: 0 4px;
}

.footer-legal-col a:hover {
    color: #ffffff;
}

/* ---- КОЛОНКА С КОНТАКТАМИ И СОЦСЕТЯМИ ---- */
.footer-brand-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center; /* Центрируем содержимое */
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.footer-contact-item {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--accent-orange);
}

.footer-social-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d161b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-btn svg {
    width: 18px;
    height: 18px;
}

.footer-social-btn:hover {
    background: var(--accent-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-bottom-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom-grid .footer-logo {
        justify-content: center;
    }
    
    .footer-legal-col {
        align-items: center;
        text-align: center;
    }
    
    .footer-legal-col a {
        text-align: center; /* На мобильных текст по центру */
        max-width: 100%;
    }
    
    .footer-brand-contacts {
        align-items: center;
    }
    
    .footer-contacts-list {
        align-items: center;
    }
    
    .footer-social-copy {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-grid {
        gap: 20px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-legal-col a {
        font-size: 0.7rem;
    }
    
    .footer-contact-item {
        font-size: 0.8rem;
    }
}

/* ==========================================
   КОПИРАЙТ В ФУТЕРЕ (горизонтальное выравнивание по центру)
   ========================================== */

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: center; /* ВСЕГДА ПО ЦЕНТРУ */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-copyright p {
    margin: 0;
    padding: 0;
    text-align: center; /* ВСЕГДА ПО ЦЕНТРУ */
}

.footer-copyright .disclaimer-text {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.75;
    max-width: 90%;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
    text-align: center; /* ВСЕГДА ПО ЦЕНТРУ */
}

/* Удаляем left выравнивание на всех экранах */
@media (max-width: 992px) {
    .footer-copyright {
        text-align: center !important; /* Принудительно по центру */
    }
}

@media (max-width: 768px) {
    .footer-copyright {
        text-align: center !important; /* Принудительно по центру */
        font-size: 0.6rem;
        padding-top: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-copyright {
        text-align: center !important; /* Принудительно по центру */
        font-size: 0.55rem;
        padding-top: 12px;
        margin-top: 16px;
    }
}

/* ==========================================
   АДАПТИВНЫЙ LIGHTBOX
   ========================================== */
.lightbox {
	display: none;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 999999 !important;
	background-color: rgba(17, 17, 17, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	justify-content: center;
	align-items: center;
	padding: 10px;
	touch-action: pan-x pan-y pinch-zoom !important;
}

.lightbox-content {
	position: relative;
	background: #FFFFFF;
	border-radius: 18px;
	width: 760px;
	max-width: 90vw;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	transform-origin: center center;
	transition: transform 0.1s ease-out;
}

.lightbox-content img {
	width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
	background: #111111;
	touch-action: pan-x pan-y pinch-zoom !important;
}

.lightbox-caption {
	padding: 20px 24px;
	background: #FFFFFF;
}

.lightbox-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 6px;
}

.lightbox-text {
	font-size: 0.95rem;
	color: var(--text-muted);
}

.lightbox-close {
	position: absolute;
	top: 10px;
	right: 16px;
	color: #FFFFFF;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10;
}

@media (max-width: 600px) {
	.lightbox-content {
		width: 92vw !important;
	}
	.about-grid {
		grid-template-columns: 1fr;
	}
	.nav {
		display: none;
	}
}

@media (max-width: 768px) {
	/* Сокращаем боковые отступы самого хэдера, чтобы освободить место */
	.header-container,
	.wt-header__body {
		padding-left: 12px;
		padding-right: 12px;
	}

	.header-requisites {
		font-size: 0.46rem;          /* Максимально компактный шрифт */
		letter-spacing: -0.3px;      /* Плотное сжатие между буквами */
		max-width: 220px;            /* Ограничиваем ширину */
		overflow: hidden;            /* Защита от вылезания за экран */
		text-overflow: ellipsis;     /* Добавляет троеточие в конце, если не влезает на сверхузких экранах */
		white-space: nowrap;
	}
}

/* Для всех узких телефонов (включая iPhone SE - 375px) */
@media (max-width: 450px) {
	/* Зажимаем и сжимаем контент шапки пропорционально */
	.header-container,
	.wt-header__body {
		padding-left: 8px;
		padding-right: 8px;
	}

	/* Уменьшаем отступ реквизитов снизу/сверху и размер текста */
	.header-requisites {
		font-size: 0.44rem;          /* Чуть уменьшаем шрифт */
		letter-spacing: -0.2px;      /* Плотный интервал */
		margin-top: 2px;             /* Небольшой отступ сверху */
		white-space: nowrap;
	}

	/* СРО-кнопка чуть компактнее, чтобы дать место реквизитам */
	.badge-sro, 
	.header-sro-link {
		padding: 4px 8px;
		font-size: 0.7rem;
	}
}


