/* Базовые сбросы и переменные */
:root {
    --color-primary: #2F3640;
    --color-accent-cold: #0077a3;
    --color-accent-energy: #FF6B35;
    --color-background: #F8F9FA;
    --color-text: #333333;
    --color-white: #FFFFFF;
    --color-gray: #495057;
    
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Общие значения для изображений */
    --img-border-radius: 12px;
    --img-shadow: 0 5px 20px rgba(47, 54, 64, 0.1);
    
    /* Общие значения для карточек */
    --card-padding: 30px;
    --card-border-radius: 20px;
    --card-shadow: 0 10px 50px rgba(47, 54, 64, 0.08);
    
    /* Принудительная светлая тема */
    color-scheme: light;
}

/* Скрытый текст для screen reader / ARIA labels */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 100px;
    color-scheme: light;
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent-energy);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 10000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

/* Общие стили для секций */
.section {
    padding: 80px 0;
}

/* ===== УТИЛИТАРНЫЕ КЛАССЫ (DRY) ===== */
/* Общие стили для изображений */
.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--img-border-radius);
    box-shadow: var(--img-shadow);
}

/* Общие стили для карточек */
.card,
.about-column,
.spec-card,
.principle-card {
    background: var(--color-white);
    border-radius: var(--img-border-radius);
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, var(--transition);
    will-change: opacity, transform;
}

/* Общие стили для кнопок с иконками */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Общие стили для фоновых секций */
.section-with-bg {
    background-image: url('../images/services/fon/font_site.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.section-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.section-with-bg > * {
    position: relative;
    z-index: 1;
}

/* Общие стили для заголовков */
.section-title,
.service-info .service-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.service-info .service-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Кнопки */
.btn-primary {
    background: var(--color-accent-energy);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #e55a2b;
    transform: translateY(-2px);
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent-cold);
    padding: 12px 26px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-accent-cold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
    outline: none;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 30px rgba(47, 54, 64, 0.1);
    z-index: 1000;
    padding: 12px 0;
    height: 100px;
    transition: var(--transition);
}

.header.scrolled {
    height: 80px;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(47, 54, 64, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    height: 76px;
    transition: var(--transition);
    width: 100%;
}

.header.scrolled .header-inner {
    height: 64px;
}

/* Логотип */
.header-logo-link {
    display: block;
    transition: var(--transition);
    height: 76px;
}

.header.scrolled .header-logo-link {
    height: 64px;
}

.header-logo-image {
    height: 100%;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: var(--transition);
}

/* Навигация */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    white-space: normal;
    text-align: center;
    display: block;
    line-height: 1.3;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent-cold);
    outline: none;
}

.nav-link.active {
    color: var(--color-accent-energy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cold), var(--color-accent-energy));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 100%;
}

/* Контакты в хедере */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    text-align: right;
}

.phone-link {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
}

.phone-link:hover,
.phone-link:focus {
    color: var(--color-accent-cold);
    outline: none;
}

.header-callback {
    background: var(--color-accent-energy);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.header-callback:hover,
.header-callback:focus {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    outline: none;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle:hover span,
.mobile-menu-toggle:focus span {
    background: var(--color-accent-cold);
}

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

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

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

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

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 54, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition);
    padding: 5px;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    outline: none;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Мобильное выпадающее меню */
.mobile-menu {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(47, 54, 64, 0.1);
    padding: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(47, 54, 64, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
    color: var(--color-accent-cold);
    background: rgba(0, 153, 204, 0.05);
    outline: none;
}

.mobile-contacts {
    padding: 20px;
    border-top: 1px solid rgba(47, 54, 64, 0.1);
}

.mobile-phone {
    display: block;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.mobile-phone:hover,
.mobile-phone:focus {
    color: var(--color-accent-cold);
    outline: none;
}

.mobile-callback {
    width: 100%;
    background: var(--color-accent-energy);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-callback:hover,
.mobile-callback:focus {
    background: #e55a2b;
    outline: none;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1f27 100%);
    color: var(--color-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: none !important;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(1.5rem + 4.5em);
    display: flex;
    flex-direction: column;
    transform: none !important;
    transition: none !important;
    position: relative;
}

.hero-title-static {
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    flex-shrink: 0;
    background: linear-gradient(135deg, 
        var(--color-white) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-dynamic {
    position: relative;
    min-height: 3.5em;
    margin-top: 0.5rem;
    height: 3.5em;
    display: block;
}

.hero-slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
    display: block;
    background: linear-gradient(135deg, 
        var(--color-accent-cold) 0%, 
        var(--color-accent-energy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    will-change: opacity, visibility;
}

.hero-slide-text.active {
    opacity: 1 !important;
    visibility: visible;
    transform: none !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 3;
    transition: none !important;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
    transition: none !important;
}

.btn-hero {
    position: relative;
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
    white-space: nowrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, 
        var(--color-accent-energy) 0%, 
        #e55a2b 100%);
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent-cold);
    backdrop-filter: blur(10px);
}

.btn-hero-text {
    position: relative;
    z-index: 2;
}

.btn-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-hero-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: all 0.6s ease;
}

.btn-hero-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-accent-cold), 
        var(--color-accent-energy),
        var(--color-accent-cold));
    background-size: 400% 400%;
    border-radius: 16px;
    filter: blur(8px);
    opacity: 0;
    z-index: -1;
    animation: glowMove 3s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes glowMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hover эффекты для кнопок */
.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.btn-hero-primary:hover .btn-hero-pulse {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn-hero-primary:hover .btn-hero-icon {
    transform: translateX(5px);
}

.btn-hero-secondary:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-energy);
    box-shadow: 0 10px 30px rgba(0, 153, 204, 0.3);
}

.btn-hero-secondary:hover .btn-hero-glow {
    opacity: 0.5;
}

/* Правая часть - фото */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Водяной знак на hero изображениях */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 66px;
    background-image: url('../images/optimized/logo/logo_horiz-560.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 3;
    filter: brightness(1.2);
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
    z-index: 1;
    will-change: opacity, visibility;
}

.hero-slide-image.active {
    opacity: 1 !important;
    visibility: visible;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Навигация слайдера */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hero-nav:hover,
.hero-nav:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.hero-nav-prev {
    left: -60px;
}

.hero-nav-next {
    right: -60px;
}

.hero-nav svg {
    width: 24px;
    height: 24px;
}

/* Индикаторы слайдов для мобильной версии */
.hero-slide-indicators {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px auto 0;
    width: 100%;
    order: 2;
}

.hero-slide-indicators.mobile-only {
    display: flex;
}

.hero-indicator {
    background: none;
    border: none;
    padding: 0;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-indicator:hover {
    transform: scale(1.2);
}

.hero-indicator .indicator-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-indicator.active .indicator-dot {
    background: var(--color-accent-energy);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.hero-indicator:hover .indicator-dot {
    background: rgba(255, 255, 255, 0.7);
}

/* ===== SERVICES SECTION - УЛУЧШЕННАЯ ВЕРСИЯ ===== */
.services {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-background) 0%, #ffffff 100%);
}

/* Фоновое изображение для всех секций после services */
.services ~ .section {
    background-image: url('../images/services/fon/font_site.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Мобильные: лёгкий фон вместо 3 МБ JPEG + без fixed (тормозит отрисовку) */
@media (max-width: 768px) {
    .section-with-bg,
    .services ~ .section {
        background-image: url('../images/services/fon/font_site-mobile.jpg');
        background-attachment: scroll;
    }
}

.services ~ .section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.services ~ .section > * {
    position: relative;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent-cold) 50%, 
        transparent 100%);
}

.services .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.services .section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 119, 163, 0.12);
    color: #005f82;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.services .section-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Десктоп табы */
.services-tabs-desktop {
    max-width: 1200px;
    margin: 0 auto;
}

.services-tabs-desktop.desktop {
    display: block;
}

.tabs-wrapper {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 2px solid rgba(47, 54, 64, 0.08);
    padding-bottom: 0;
}

.tabs-list {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 0;
}

.service-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-accent-cold);
    color: var(--color-accent-cold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-nav-btn:hover {
    background: var(--color-accent-cold);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 153, 204, 0.3);
}

.service-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.service-nav-prev {
    left: -50px;
}

.service-nav-next {
    right: -50px;
}

@media (max-width: 1200px) {
    .service-nav-prev {
        left: -45px;
    }
    
    .service-nav-next {
        right: -45px;
    }
}

.tabs-indicator {
    position: absolute;
    bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-accent-cold), 
        var(--color-accent-energy));
    border-radius: 3px 3px 0 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 54, 64, 0.15);
    padding: 24px 32px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    border-radius: 12px 12px 0 0;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(47, 54, 64, 0.1);
}

.tab-btn:hover,
.tab-btn:focus {
    color: var(--color-accent-cold);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 153, 204, 0.4);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.tab-btn.active {
    color: var(--color-primary);
    background: var(--color-white);
    border-color: var(--color-accent-cold);
    box-shadow: 0 -2px 20px rgba(47, 54, 64, 0.1), 0 4px 12px rgba(0, 153, 204, 0.25);
    transform: translateY(-2px);
}

.tab-btn.active .tab-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(350deg) brightness(1.1);
    transform: scale(1.1);
}

.tab-btn.active .tab-text {
    color: var(--color-primary);
    font-weight: 700;
}

.tab-btn.active .tab-arrow {
    opacity: 1;
    transform: translateX(0);
}

.tab-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.tab-btn:hover .tab-icon,
.tab-btn:focus .tab-icon {
    opacity: 0.9;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

.tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
}

.tab-btn:hover .tab-icon img,
.tab-btn:focus .tab-icon img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.1);
}

.tab-text {
    flex-grow: 1;
    text-align: left;
    transition: all 0.3s ease;
    color: inherit;
}

.tab-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-accent-energy);
    font-weight: bold;
    font-size: 20px;
}

/* Контент табов */
.tabs-content {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(47, 54, 64, 0.08);
    padding: 50px;
    overflow: hidden;
}

.tab-panel {
    display: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

/* Карточка услуги */
.service-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-info {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-media {
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #005f82;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.service-info .service-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;
}

/* Логотипы партнеров в услуге */
.service-partners-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 20px 0 25px 0;
    padding: 20px;
    background: rgba(0, 153, 204, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 153, 204, 0.1);
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-item:hover img {
    opacity: 0.9;
}

.partner-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-logo-item a:hover {
    transform: scale(1.05);
}

.partner-logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-cold);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0 10px;
    flex-shrink: 0;
}

.service-info .service-subtitle {
    font-size: 1.25rem;
    color: #005f82;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
}

.service-info .service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 0;
}

.service-info .service-description p {
    margin: 0;
}

/* Фичи услуги */
.service-features {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    flex-grow: 0;
}

.service-features-right {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Вычисляем высоту контента до списка в левой колонке */
.service-info::after {
    content: '';
    display: block;
    height: 40px;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(47, 54, 64, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent-cold);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 153, 204, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    line-height: 1;
}

.feature-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.feature-item p {
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list-left {
    margin-top: 40px;
    padding-top: 0;
}

.services-list-right {
    margin-top: 0;
    padding-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0; /* Будет установлено через JavaScript */
}

.services-list li {
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    line-height: 1.7;
}

.services-list li::before {
    content: "→";
    position: absolute;
    left: 0.5rem;
    color: var(--color-accent-energy);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.services-list li:hover {
    background: #f5f5f5;
    padding-left: 2.75rem;
}

.services-list li:hover::before {
    transform: translateX(5px);
}

.services-list li strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Медиа контент */
.service-media {
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-gallery-mini {
    margin-bottom: 40px;
    flex-grow: 0;
}

.service-actions {
    flex-grow: 0;
    margin-bottom: 40px;
}

.gallery-main {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(47, 54, 64, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(47, 54, 64, 0.15);
}

.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-main:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-zoom-icon svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
}

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    justify-content: center;
}

.thumb-btn {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 90px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

/* Водяной знак на миниатюрах */
.thumb-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 24px;
    background-image: url('../images/optimized/logo/logo_horiz-560.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 2;
    filter: brightness(1.2);
}

.thumb-btn:hover,
.thumb-btn.active {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(47, 54, 64, 0.15);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.thumb-btn img.loaded,
.thumb-btn.active img {
    opacity: 1;
}

.thumb-btn:not(.active) img:not(.loaded) {
    background: #f0f0f0;
}

/* Кнопки действий */
.service-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-action {
    flex: 1;
    min-width: 200px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.service-action:hover svg {
    transform: translateX(5px);
}

/* Стили для вторичной кнопки в секции услуг */
.services .btn-secondary {
    background: var(--color-accent-cold);
    color: var(--color-white);
    border: 2px solid var(--color-accent-cold);
}

.services .btn-secondary:hover,
.services .btn-secondary:focus {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 54, 64, 0.3);
}

/* Мобильный слайдер */
.services-slider-mobile {
    display: none;
}

/* Показываем/скрываем версии в зависимости от размера экрана */
@media (min-width: 769px) {
    .services-tabs-desktop.desktop {
        display: block !important;
    }
    
    .services-slider-mobile.mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .services-tabs-desktop.desktop {
        display: none !important;
    }
    
    .services-slider-mobile.mobile {
        display: block !important;
    }
    
    .services-slider-mobile {
        display: block !important;
        margin-top: 40px;
    }
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.service-slide {
    display: none;
    animation: fadeSlideIn 0.5s ease-out;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.service-slide.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card-mobile {
    background: var(--color-white);
    border-radius: var(--card-border-radius);
    padding: 25px 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 100%;
}

.service-card-mobile .service-badge {
    margin-bottom: 20px;
}

.service-card-mobile .service-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card-mobile .service-subtitle {
    font-size: 1.1rem;
    color: #005f82;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-card-mobile .service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 20px 0;
    display: block;
    text-align: left;
}

.service-card-mobile .service-description p {
    margin: 0;
    display: block;
}

.service-image-mobile {
    width: 100%;
    height: 280px;
    margin: 25px 0;
    border-radius: var(--img-border-radius);
    overflow: hidden;
    box-shadow: var(--img-shadow);
    position: relative;
}

.service-image-mobile,
.service-image-mobile picture {
    width: 100%;
    height: 100%;
    display: block;
}

.service-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Водяной знак на изображениях услуг */
.gallery-main {
    position: relative;
}

.gallery-main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 60px;
    background-image: url('../images/optimized/logo/logo_horiz-560.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 2;
    filter: brightness(1.2);
}

.service-image-mobile {
    position: relative;
}

.service-image-mobile::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 54px;
    background-image: url('../images/optimized/logo/logo_horiz-560.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 2;
    filter: brightness(1.2);
}

.gallery-main img,
.service-image-mobile img {
    position: relative;
    z-index: 1;
    /* Защита от скачивания */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Защита от выделения и копирования */
.gallery-main,
.service-image-mobile,
.gallery-thumbs,
.service-slide {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* Дополнительная защита для всех изображений на сайте */
img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Исключения для логотипов и иконок (они должны быть доступны) */
.header-logo-image,
.footer-logo,
.partner-logo-item img,
.tab-icon img,
.feature-icon,
.message-avatar img {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    -webkit-user-drag: auto;
    user-drag: auto;
}

.service-card-mobile .service-action {
    width: 100%;
    min-width: auto;
    margin-top: 20px;
    padding: 16px 24px;
    font-size: 1rem;
}

.service-card-mobile .service-features {
    text-align: left;
    margin: 20px 0;
}

.service-card-mobile .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.service-card-mobile .feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-mobile .feature-item strong {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.service-card-mobile .services-list {
    text-align: left;
    padding-left: 1.2em;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 15px 0;
}

.service-card-mobile .services-list li {
    margin-bottom: 10px;
}

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

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-cold);
    background: var(--color-white);
    color: var(--color-accent-cold);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--color-accent-cold);
    color: var(--color-white);
    transform: scale(1.1);
}

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

.slider-dot {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(47, 54, 64, 0.3);
    transition: all 0.3s ease;
}

.slider-dot.active::after {
    background: var(--color-accent-energy);
    transform: scale(1.2);
}

/* ===== СТИЛИ БЛОКА ПАРТНЁРА ===== */
.partner-integration {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(47, 54, 64, 0.08);
    width: 100%;
    max-width: 100%;
    clear: both;
}

.partner-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-title::before {
    content: "🤝";
    font-size: 1.2rem;
}

.partner-subtitle {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.partner-card {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.03) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(0, 153, 204, 0.15);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: rgba(0, 153, 204, 0.3);
    box-shadow: 0 10px 30px rgba(0, 153, 204, 0.08);
}

.partner-logo {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.partner-logo img {
    max-width: 180px;
    height: auto;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0.2);
}

.partner-info h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.partner-info > p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.partner-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.partner-features li {
    padding: 12px 0 12px 40px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--color-text);
    border-bottom: 1px solid rgba(47, 54, 64, 0.05);
}

.partner-features li:last-child {
    border-bottom: none;
}

.partner-features li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1rem;
    color: var(--color-accent-energy);
    filter: brightness(1.1);
}

.partner-features li strong {
    color: var(--color-primary);
    font-weight: 600;
}

.partner-cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.partner-cta p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

.partner-cta strong {
    color: var(--color-primary);
    font-weight: 600;
}

.partner-cta .btn-primary {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--color-accent-cold);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent-cold);
    text-align: center;
}

.btn-partner-link:hover {
    background: transparent;
    color: var(--color-accent-cold);
    transform: translateY(-2px);
}

.btn-request-docs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: 2px solid var(--color-accent-energy);
    color: var(--color-accent-energy);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request-docs:hover {
    background: var(--color-accent-energy);
    color: white;
    transform: translateY(-2px);
}

/* Адаптивность для блока партнёра */
@media (min-width: 992px) {
    .partner-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .partner-logo {
        flex-shrink: 0;
        width: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .partner-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-partner-link,
    .btn-request-docs {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .partner-integration {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .partner-integration.partner-full-width {
        grid-column: 1 / -1;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .partner-title {
        font-size: 1.3rem;
    }
    
    .partner-logo img {
        max-width: 150px;
    }
    
    .partner-card {
        flex-direction: column;
    }
    
    .partner-actions {
        flex-direction: column;
    }
    
    .btn-partner-link,
    .btn-request-docs {
        width: 100%;
    }
}

/* Анимации для секции услуг */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.service-badge {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background-color: #F8F9FA;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #2F3640;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Три колонки */
.about-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.about-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.column-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.about-column h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    color: #2F3640;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-column p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.about-column ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.about-column li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.about-column li:before {
    content: "✓";
    color: #FF6B35;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

/* Специализация */
.specialization {
    margin-bottom: 80px;
}

.specialization-title {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2F3640;
    font-weight: 700;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.spec-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.spec-icon {
    font-size: 40px;
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.spec-content h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2F3640;
    font-weight: 700;
}

.spec-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Принципы */
.principles {
    margin-bottom: 0;
}

.principles-title {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2F3640;
    font-weight: 700;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.principle-card {
    text-align: center;
    padding: 25px;
}

.principle-number {
    font-size: 48px;
    font-weight: 900;
    color: #0077a3;
    opacity: 0.25;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1;
}

.principle-card:hover .principle-number {
    opacity: 0.4;
    color: #FF6B35;
}

.principle-card h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2F3640;
    font-weight: 700;
}

.principle-card p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Анимации для появления элементов */
.about-column,
.spec-card,
.principle-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.about-column.visible,
.spec-card.visible,
.principle-card.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav-list {
        gap: 25px;
    }
    
    .header-contacts {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: 90px;
        padding: 10px 0;
    }
    
    .header.scrolled {
        height: 70px;
        padding: 6px 0;
    }
    
    .header-logo-link {
        height: 70px;
    }
    
    .header.scrolled .header-logo-link {
        height: 58px;
    }
    
    .header-logo-image {
        max-width: 320px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-inner {
        gap: 15px;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 0;
    }
    
    .header.scrolled .header-inner {
        height: 58px;
    }
    
    .header-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        margin: 0;
    }
    
    .header-logo-link {
        height: 70px;
        display: flex;
        align-items: center;
    }
    
    .header.scrolled .header-logo-link {
        height: 58px;
    }
    
    .mobile-menu-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 8px;
    }
    
    .header.scrolled .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    /* Скрываем индикаторы на планшетах и десктопе */
    .hero-slide-indicators.mobile-only {
        display: none;
    }
    
    /* Services section responsive */
    .service-card-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-info {
        padding-right: 0;
        height: auto;
    }
    
    .service-media {
        height: auto;
    }
    
    .services-list-left {
        margin-top: 40px;
        padding-top: 0;
    }
    
    .services-list-right {
        margin-top: 30px;
        padding-top: 0;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .service-nav-btn {
        display: none;
    }
    
    .tabs-wrapper {
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
    }
    
    .tab-btn {
        border-radius: 12px;
        justify-content: flex-start;
        border: 2px solid rgba(47, 54, 64, 0.2);
        padding: 20px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }
    
    .tab-btn.active {
        border-color: var(--color-accent-cold);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 153, 204, 0.2);
    }
    
    .tab-btn:hover,
    .tab-btn:focus {
        border-color: rgba(0, 153, 204, 0.4);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .tabs-indicator {
        display: none;
    }
    
    .tabs-content {
        padding: 30px;
    }
    
    .service-info .service-title {
        font-size: 2rem;
    }
    
    /* About section responsive */
    .about-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .specialization-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }
    
    .header {
        height: 85px;
        padding: 8px 0;
    }
    
    .header.scrolled {
        height: 65px;
        padding: 5px 0;
    }
    
    .header-logo-link {
        height: 65px;
    }
    
    .header.scrolled .header-logo-link {
        height: 55px;
    }
    
    .header-logo-image {
        max-width: 280px;
    }
    
    .mobile-menu {
        top: 85px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        min-height: auto;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title-static {
        white-space: normal;
        display: block;
    }
    
    .hero-title-dynamic {
        min-height: 4em;
        height: 4em;
        margin-top: 0.5rem;
        display: block;
        position: relative;
    }
    
    .hero-slide-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        white-space: normal;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    
    .hero-slide-text.active {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-top: 6rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        gap: 15px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
    
    /* Индикаторы между кнопками и изображением */
    .hero-slide-indicators.mobile-only {
        display: flex;
        order: 2;
        justify-content: center;
        gap: 12px;
        margin: 20px 0;
        width: 100%;
    }
    
    .hero-image-wrapper {
        order: 3;
        min-height: 350px;
        margin-bottom: 0;
        width: 100%;
    }
    
    /* Скрываем стрелки навигации на мобильных */
    .hero-nav {
        display: none !important;
    }
    
    /* Services section mobile */
    .services-tabs-desktop.desktop {
        display: none !important;
    }
    
    .services-slider-mobile.mobile {
        display: block !important;
    }
    
    .service-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-info .service-title {
        font-size: 1.75rem;
    }
    
    .service-info .service-subtitle {
        font-size: 1.1rem;
    }
    
    .service-info .service-description {
        font-size: 1rem;
    }
    
    .service-features {
        gap: 15px;
    }
    
    .service-features-right {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .service-partners-logos {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 15px 0 20px 0;
    }
    
    .partner-logo-divider {
        font-size: 1.2rem;
        padding: 5px 0;
    }
    
    .partner-logo-item img {
        max-width: 150px;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-action {
        width: 100%;
    }
    
    .tabs-content {
        padding: 25px;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    /* About section mobile */
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header .section-title {
        font-size: 28px;
    }
    
    .about {
        padding: 50px 0;
    }
    
    .about-columns {
        margin-bottom: 60px;
    }
    
    .specialization {
        margin-bottom: 60px;
    }
    
    .specialization-title,
    .principles-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    .header {
        height: 80px;
        padding: 5px 0;
    }
    
    .header.scrolled {
        height: 60px;
        padding: 4px 0;
    }
    
    .header-inner {
        height: 70px;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .header.scrolled .header-inner {
        height: 52px;
    }
    
    .header-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        margin: 0;
    }
    
    .header-logo-link {
        height: 60px;
        display: flex;
        align-items: center;
    }
    
    .header.scrolled .header-logo-link {
        height: 48px;
    }
    
    .header-logo-image {
        max-width: 200px;
        height: auto;
    }
    
    .mobile-menu-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 6px;
        margin: 0;
    }
    
    .header.scrolled .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .header-logo-link {
        height: 60px;
    }
    
    .header.scrolled .header-logo-link {
        height: 50px;
    }
    
    .header-logo-image {
        max-width: 240px;
    }
    
    .mobile-menu {
        top: 80px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Hero section mobile small */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-wrapper {
        gap: 25px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 6rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 12px;
    }
    
    .hero-slide-indicators.mobile-only {
        margin: 15px 0;
    }
    
    .hero-image-wrapper {
        min-height: 300px;
    }
}
/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-cold);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.25rem;
    display: block;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Анимации для появления элементов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Принудительная светлая тема - переопределение темной темы браузера */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }
    
    body {
        background-color: var(--color-background) !important;
        color: var(--color-text) !important;
    }
    
    /* Переопределение системных цветов для светлой темы */
    :root {
        color-scheme: light;
    }
    
    /* Убеждаемся, что все элементы используют светлую тему */
    * {
        color-scheme: light;
    }
    
    /* Переопределение цветов скроллбара */
    ::-webkit-scrollbar {
        background-color: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background-color: #888;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
    
    /* Переопределение цветов для полей ввода */
    input, textarea, select {
        background-color: var(--color-white) !important;
        color: var(--color-text) !important;
        border-color: #e9ecef !important;
    }
    
    /* В тёмной схеме ОС оставляем тёмный текст ссылок — сайт всегда светлый */
    a {
        color: var(--color-primary) !important;
    }
    
    a:hover {
        color: var(--color-accent-cold) !important;
    }
}

/* Контрастные проверки для доступности */
@media (prefers-contrast: high) {
    .nav-link {
        font-weight: 700;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Улучшение читаемости для уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Улучшение доступности для фокуса */
*:focus {
    outline: 2px solid var(--color-accent-cold);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--color-accent-cold);
    outline-offset: 2px;
}

/* Улучшение производительности */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading для изображений */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 120px 20px; /* Добавляем отступ снизу для подписи */
    z-index: 1;
    box-sizing: border-box;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Водяной знак в полноэкранном режиме */
.lightbox-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 75px;
    background-image: url('../images/optimized/logo/logo_horiz-560.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 2;
    filter: brightness(1.2);
}

.lightbox-picture {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active .lightbox-image {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.lightbox-loader.active {
    display: block;
}

.lightbox-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent-energy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    color: #ffffff;
}

.lightbox-caption {
    font-size: 16px;
    margin: 0;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
}

.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-main:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-zoom-icon svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    /* Оптимизация миниатюр для мобильных */
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .thumb-btn {
        min-height: 70px;
        aspect-ratio: 4 / 3;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-image-wrapper {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* ===== CONTACTS SECTION ===== */
.contacts {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
    position: relative;
}

.contacts .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contacts .section-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 119, 163, 0.12);
    color: #005f82;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contacts .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contacts .section-description {
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Основная сетка контактов */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

/* Левый блок: Контактная информация */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-self: start;
}

.contact-block {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(47, 54, 64, 0.08);
}

.contact-block-fullwidth {
    width: 100%;
    margin-bottom: 40px;
    padding: 40px 30px;
    text-align: center;
}

.contact-block-fullwidth .contact-block-title {
    text-align: center;
}

.contact-block-fullwidth .contact-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex-direction: row;
}

.contact-block-fullwidth .contact-item {
    flex: 0 0 auto;
    min-width: 200px;
}

.contact-block-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 153, 204, 0.1);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-items-two-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-items-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-accent-cold), var(--color-accent-energy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.1), rgba(255, 107, 53, 0.1));
    color: var(--color-accent-cold);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
    color: var(--color-gray);
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.contact-details a:hover {
    color: var(--color-accent-cold);
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-phones a {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-phones a:hover {
    color: var(--color-accent-energy);
}

.contact-email {
    font-size: 16px;
    font-weight: 600;
    color: #005f82 !important;
}

.contact-email:hover {
    color: #004d6b !important;
    text-decoration: underline !important;
}

/* Реквизиты */
.requisites-block {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(47, 54, 64, 0.08);
}

.requisites-header {
    padding: 20px 25px;
    border-bottom: 2px solid rgba(0, 153, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.requisites-header:hover {
    background: rgba(0, 153, 204, 0.02);
}

.requisites-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 0;
}

.requisites-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-accent-cold);
    transition: all 0.3s ease;
}

.requisites-toggle:hover {
    background: rgba(0, 153, 204, 0.1);
    transform: rotate(180deg);
}

.requisites-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.requisites-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
}

.requisites-content[aria-hidden="false"] {
    max-height: 800px;
    padding: 0 25px 25px;
}

.requisites-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.requisites-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(47, 54, 64, 0.05);
}

.requisites-row:last-child {
    border-bottom: none;
}

.requisites-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 13px;
}

.requisites-value {
    color: var(--color-gray);
    line-height: 1.5;
    font-size: 13px;
}

.requisites-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.requisites-copy,
.requisites-callback {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 13px;
}

.requisites-copy {
    background: transparent;
    border: 2px solid var(--color-accent-cold);
    color: var(--color-accent-cold);
}

.requisites-copy:hover {
    background: var(--color-accent-cold);
    color: white;
}

.requisites-callback {
    text-decoration: none;
}

/* Правый блок: Реквизиты */
.contacts-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: start;
}

.contact-map {
    width: 100%;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(47, 54, 64, 0.15);
    height: 400px;
}

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

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-overlay p {
    margin: 0;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.map-link {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Форма обратной связи */
.contact-form-block {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(47, 54, 64, 0.08);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 13px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid rgba(47, 54, 64, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--color-white);
    color: var(--color-text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-cold);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F3640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.file-preview {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.file-preview-name {
    font-size: 0.9rem;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.file-preview-remove {
    background: none;
    border: none;
    color: #f44336;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
}

.file-preview-remove:hover {
    color: #d32f2f;
    background: #ffebee;
}

.file-input {
    width: 100%;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    box-sizing: border-box;
    color: var(--color-text);
    outline: none;
}

.file-input::-webkit-file-upload-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: var(--color-accent-cold);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.file-input::-webkit-file-upload-button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.3);
}

.file-input::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: var(--color-accent-cold);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.file-input::file-selector-button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.3);
}

.file-input:hover {
    border-color: #d0d0d0;
    background: white;
}

.file-input:focus {
    border-color: var(--color-accent-cold);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    min-height: 48px;
    padding: 8px 0;
}

.form-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: var(--color-accent-cold);
}

.form-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--color-accent-cold);
    outline-offset: 2px;
}

.form-checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-checkbox-label a:hover {
    color: var(--color-accent-cold);
    text-decoration: none;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-bottom: 6px;
}

.form-submit {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.form-notice {
    color: var(--color-gray);
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* График работы */
.work-schedule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(47, 54, 64, 0.08);
}

.work-schedule-vertical {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.schedule-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.schedule-content h4 {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-weight: 600;
    text-align: left;
}

.schedule-content p {
    color: var(--color-gray);
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.schedule-content a {
    transition: color 0.3s ease;
}

.schedule-content a:hover {
    color: var(--color-accent-energy);
    text-decoration: underline;
}

/* ===== RESPONSIVE CONTACTS ===== */
@media (max-width: 1200px) {
    .contacts-wrapper {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .contacts {
        padding: 80px 0;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .work-schedule {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .requisites-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .contact-block-fullwidth {
        padding: 30px 20px;
    }
    
    .contact-items-two-columns {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .work-schedule-vertical {
        margin-top: 0;
    }
    
    .contact-block-fullwidth .contact-items {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-block-fullwidth .contact-item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .contacts {
        padding: 60px 0;
    }
    
    .contacts .section-title {
        font-size: 2rem;
    }
    
    .contact-block,
    .requisites-block,
    .contact-form-block {
        padding: 30px;
    }
    
    .file-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .file-input::-webkit-file-upload-button,
    .file-input::file-selector-button {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .map-link {
        width: 100%;
        text-align: center;
    }
    
    .requisites-actions {
        flex-direction: column;
    }
    
    .requisites-copy,
    .requisites-callback {
        width: 100%;
    }
    
    .work-schedule {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .schedule-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .service-card-mobile {
        padding: 20px 15px;
    }
    
    .service-card-mobile .service-title {
        font-size: 1.5rem;
    }
    
    .service-card-mobile .service-subtitle {
        font-size: 1rem;
    }
    
    .service-image-mobile {
        height: 240px;
        margin: 20px 0;
    }
    
    .service-card-mobile .service-features {
        margin: 15px 0;
    }
    
    .service-card-mobile .feature-item {
        margin-bottom: 12px;
    }
    
    .contact-block,
    .requisites-block,
    .contact-form-block {
        padding: 20px 15px;
    }
    
    .requisites-header {
        padding: 20px 15px;
    }
    
    .requisites-content[aria-hidden="false"] {
        padding: 0 15px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .schedule-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-icon {
        font-size: 28px;
    }
    
    .schedule-content h4 {
        font-size: 15px;
    }
    
    .schedule-content p {
        font-size: 13px;
    }
}

/* ===== ПЛАВАЮЩАЯ КНОПКА TELEGRAM ===== */
.telegram-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: var(--color-accent-energy); /* Оранжевый наружный круг */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    color: white;
    padding: 4px;
    cursor: pointer;
}

.telegram-float-btn::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0088cc, #229ED9); /* Синий внутренний круг */
    border-radius: 50%;
    z-index: 0;
}

.telegram-float-btn svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.telegram-float-btn svg path {
    fill: white;
}

.telegram-float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
    background: var(--color-accent-energy);
}

.telegram-float-btn:hover svg {
    transform: scale(1.1);
}

.telegram-float-btn:active {
    transform: translateY(-3px) scale(1.05);
}

.telegram-btn-text {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--color-primary);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.telegram-float-btn:hover .telegram-btn-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .telegram-float-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        padding: 3px;
    }
    
    .telegram-float-btn::before {
        width: 54px;
        height: 54px;
    }
    
    .telegram-float-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .telegram-btn-text {
        display: none;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО TELEGRAM ЧАТА ===== */
.telegram-chat-modal {
    z-index: 10001;
}

.telegram-chat-modal.active .telegram-chat-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.telegram-chat-content {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    height: 600px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: var(--transition);
    position: relative;
}

.telegram-chat-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    z-index: 1;
}

.telegram-chat-content:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 2px 5px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.telegram-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
}

.telegram-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.telegram-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.telegram-chat-header .modal-title {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.telegram-chat-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.telegram-external-link {
    color: white;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-external-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.telegram-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: none;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.chat-message-user .message-avatar {
    background: var(--color-accent-energy);
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-form-content {
    max-width: 100%;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-message-user .message-content {
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
}

.message-text {
    margin: 0 0 4px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.message-form-content {
    max-width: 100%;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: messageSlideIn 0.3s ease;
}

.telegram-chat-form {
    padding: 0;
    background: transparent;
    border: none;
}

.telegram-chat-form .form-group {
    margin-bottom: 1.25rem;
}

.telegram-chat-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.telegram-chat-form .form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.telegram-chat-form .form-input,
.telegram-chat-form .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-body);
    outline: none;
    background: #fafafa;
    box-sizing: border-box;
    color: var(--color-text);
}

.telegram-chat-form .form-input:hover,
.telegram-chat-form .form-textarea:hover {
    border-color: #d0d0d0;
    background: white;
}

.telegram-chat-form .form-input:focus,
.telegram-chat-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-cold);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.telegram-chat-form .form-input.error,
.telegram-chat-form .form-textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.telegram-chat-form .form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.telegram-chat-form .file-input {
    width: 100%;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    box-sizing: border-box;
    color: var(--color-text);
    outline: none;
}

.telegram-chat-form .file-input::-webkit-file-upload-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: var(--color-accent-cold);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.telegram-chat-form .file-input::-webkit-file-upload-button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.3);
}

.telegram-chat-form .file-input::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: var(--color-accent-cold);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.telegram-chat-form .file-input::file-selector-button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.3);
}

.telegram-chat-form .file-input:hover {
    border-color: #d0d0d0;
    background: white;
}

.telegram-chat-form .file-input:focus {
    outline: none;
    border-color: var(--color-accent-cold);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.telegram-chat-form .file-preview {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7fa 100%);
    border-radius: var(--border-radius);
    border: 2px solid #e0e0e0;
}

.telegram-chat-form .file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.telegram-chat-form .file-preview-name {
    font-size: 0.9rem;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.telegram-chat-form .file-preview-remove {
    background: none;
    border: none;
    color: #f44336;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
}

.telegram-chat-form .file-preview-remove:hover {
    color: #d32f2f;
    background: #ffebee;
}

.telegram-chat-form .error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.chat-submit-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--color-accent-energy);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(229, 90, 43, 0.2);
}

.chat-submit-btn:hover,
.chat-submit-btn:focus {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 90, 43, 0.3);
    outline: none;
}

.chat-submit-btn:active {
    transform: translateY(0);
}

.telegram-chat-form .form-privacy-notice {
    margin-top: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.telegram-chat-form .form-privacy-notice a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.telegram-chat-form .form-privacy-notice a:hover {
    color: var(--color-accent-cold);
    text-decoration: none;
}

@media (max-width: 768px) {
    .telegram-chat-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .telegram-chat-content:hover {
        transform: translateY(0);
        box-shadow: none;
    }
    
    .telegram-chat-header {
        padding: 16px;
    }
    
    .telegram-chat-header-info {
        gap: 10px;
    }
    
    .telegram-chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .telegram-chat-header .modal-title {
        font-size: 1.1rem;
    }
    
    .telegram-chat-subtitle {
        font-size: 0.8rem;
    }
    
    .telegram-chat-messages {
        padding: 16px;
        gap: 12px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .message-form-content {
        max-width: 100%;
        padding: 16px;
    }
    
    .telegram-chat-form .form-group {
        margin-bottom: 1rem;
    }
    
    .telegram-chat-form .form-group:last-of-type {
        margin-bottom: 1.25rem;
    }
    
    .telegram-chat-form .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.625rem;
    }
    
    .telegram-chat-form .form-input,
    .telegram-chat-form .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
        border-width: 2px;
    }
    
    .telegram-chat-form .form-textarea {
        min-height: 90px;
    }
    
    .telegram-chat-form .file-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .telegram-chat-form .file-input::-webkit-file-upload-button,
    .telegram-chat-form .file-input::file-selector-button {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .chat-submit-btn {
        padding: 14px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .telegram-chat-form .form-privacy-notice {
        font-size: 0.75rem;
        margin-top: 10px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .message-avatar img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .telegram-chat-header {
        padding: 12px;
    }
    
    .telegram-chat-header-info {
        gap: 8px;
    }
    
    .telegram-chat-avatar {
        width: 36px;
        height: 36px;
    }
    
    .telegram-chat-header .modal-title {
        font-size: 1rem;
    }
    
    .telegram-chat-subtitle {
        font-size: 0.75rem;
    }
    
    .telegram-chat-messages {
        padding: 12px;
        gap: 10px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .message-form-content {
        padding: 12px;
    }
    
    .telegram-chat-form .form-group {
        margin-bottom: 0.875rem;
    }
    
    .telegram-chat-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .telegram-chat-form .form-input,
    .telegram-chat-form .form-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .telegram-chat-form .form-textarea {
        min-height: 80px;
    }
    
    .chat-submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .telegram-chat-form .form-privacy-notice {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .message-avatar img {
        width: 24px;
        height: 24px;
    }
    
    .message-time {
        font-size: 0.7rem;
    }
}
