/* ===== Глобальные стили ===== */
:root {
    /* Цветовая палитра */
    --primary: #0f79a2;
    --primary-dark: #0c6184;
    --primary-light: #01b6e6;
    --secondary: #3498db;
    --secondary-dark: #2980b9;
    --accent: #e67e22;
    --accent-dark: #d35400;
    
    /* Нейтральные цвета */
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --dark: #2c3e50;
    --darker: #1a252f;
    
    /* Функциональные цвета */
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    /* Скругления */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Шрифты */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Максимальные ширины */
    --max-width-xs: 480px;
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1200px;
    --max-width-2xl: 1400px;
}

/* ===== Reset и базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--darker);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--light-gray);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--max-width-2xl);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 200px;
}

.logo img {
    height: auto;
    max-height: 60px;
    width: auto;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon i {
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--dark-gray);
    margin-top: -2px;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 0;
    text-decoration: none;
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 200px;
    justify-content: flex-end;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
}

.header-phone i {
    color: var(--primary);
    font-size: 1.1rem;
}

.header-phone:hover {
    color: var(--primary);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-close-btn:hover {
    color: var(--dark);
}

.mobile-nav-list {
    list-style: none;
    padding: 1.5rem;
    flex: 1;
}

.mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.mobile-nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: var(--light);
    color: var(--primary);
}

.mobile-contacts {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: var(--light);
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Затемнение фона при открытом меню */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Основная кнопка */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Вторичная кнопка */
.btn-secondary {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Прозрачная кнопка */
.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--light-gray);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Размеры кнопок */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Кнопка-ссылка */
.btn-link {
    padding: 0;
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Hero секция главной ===== */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    /*margin-top: 80px;*/
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 121, 162, 0.05) 0%, rgba(1, 182, 230, 0.02) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 0 1 42%;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--darker);
    overflow-wrap: break-word;
    text-wrap: balance;
}

/* Название марки в заголовке: отдельной строкой, фирменным цветом */
.hero-title strong {
    display: block;
    margin-top: 0.15em;
    font-size: 1.25em;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--primary);
    -webkit-text-fill-color: transparent;
}

/* Шрифт и размер, заданные вручную в редакторе, не должны ломать заголовок */
.hero-title span[style] {
    font-family: inherit !important;
    font-size: inherit !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.hero-features .feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

.hero-features .feature span {
    font-weight: 500;
    color: var(--dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-image {
    flex: 1 1 58%;
    min-width: 0;
    max-width: 1200px;
}

/* Картинка показывается целиком, в своих пропорциях — ничего не обрезается */
.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-image .image-placeholder i {
    font-size: 8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-image .image-placeholder p {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.9;
}

/* ===== Секции ===== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== Преимущества ===== */
.advantages {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    color: white;
    font-size: 2rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.advantage-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== Особенности ===== */
.features-section {
    padding: 80px 0;
    background: var(--light);
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .feature-icon i {
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
    color: var(--dark-gray);
    line-height: 1.5;
    border-bottom: 1px solid var(--light-gray);
}

.feature-card ul li:last-child {
    border-bottom: none;
}

.feature-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== Серии бойлеров ===== */
.series-section {
    padding: 80px 0;
    background: white;
}

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

.series-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series-card.featured {
    border-color: var(--primary);
    transform: translateY(-10px);
    position: relative;
}

.series-card.featured::before {
    content: 'Рекомендуем';
    position: absolute;
    top: 20px;
    right: -40px;
    background: var(--accent);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.series-header {
    background: var(--dark);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.series-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.series-badge {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.series-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.series-models {
    margin: 20px 0;
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
}

.model {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.model:last-child {
    border-bottom: none;
}

.model-name {
    font-weight: 600;
    color: var(--dark);
}

.model-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.series-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===== Предупреждение ===== */
.warning-section {
    padding: 40px 0;
    background: white;
}

.warning-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.warning-icon {
    color: #f39c12;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.warning-content h3 {
    margin-top: 0;
    color: #d35400;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.warning-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.warning-content strong {
    color: #d35400;
    font-weight: 700;
}

/* ===== Технология производства ===== */
.production-section {
    padding: 80px 0;
    background: var(--light);
}

.production-steps {
    max-width: 800px;
    margin: 40px auto 0;
}

.step {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--darker);
    font-size: 1.3rem;
}

.step-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===== Контактная форма (главная) ===== */
.contact-section {
    background: white;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 4rem;
    margin-top: 2rem;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-info h2::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin-top: 2.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-detail a,
.contact-detail span {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--primary);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
}

/* ===== Формы ===== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 121, 162, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Чекбоксы и радио кнопки */
.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
}

.checkbox input,
.radio input {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    accent-color: var(--primary);
}

.radio input[type="radio"] {
    accent-color: var(--primary);
}

.checkbox span,
.radio span {
    color: var(--dark);
    font-size: 0.95rem;
}

/* ===== Каталог ===== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Сайдбар фильтров */
.catalog-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 40px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--darker);
}

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

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

/* Информация в сайдбаре */
.sidebar-info {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.sidebar-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--darker);
}

.sidebar-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-info li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-info li:last-child {
    border-bottom: none;
}

.sidebar-info i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Контент каталога */
.catalog-content {
    flex: 1;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count {
    font-size: 1rem;
    color: var(--dark-gray);
}

.products-count strong {
    color: var(--dark);
    font-size: 1.1rem;
}

.filter-info {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    background: var(--light);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sorting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sorting label {
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    font-size: 0.95rem;
}

.sorting select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237f8c8d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 200px;
    transition: var(--transition);
}

.sorting select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Пустой каталог */
.empty-catalog {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.empty-catalog h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.empty-catalog p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Пагинация */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: none;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--gray);
}

/* ===== Товары в каталоге ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-image-link {
    display: block;
    height: 200px;
    background: var(--light);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 1.5rem;*/
}

.product-image img {
    max-width: 100%;
    /* max-height: 100%; */
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-series {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.series-badge {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.series-badge.standart {
    background: #3498db;
}

.series-badge.luxe {
    background: #9b59b6;
}

.volume-badge {
    background: var(--light);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--light-gray);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    /*min-height: 60px;*/
}

.product-title a {
    color: var(--darker);
    text-decoration: none;
    display: block;
}

.product-title a:hover {
    color: var(--primary);
}

.product-specs {
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-specs .spec {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.875rem;
}

.product-specs .spec:last-child {
    border-bottom: none;
}

.product-specs .spec-label {
    color: var(--dark-gray);
}

.product-specs .spec-value {
    font-weight: 500;
    color: var(--dark);
    text-align: right;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-top: 0.25rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-main {
    color: white;
    font-size: 1.25rem;
}

.footer-logo .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-menu,
.footer-categories {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.footer-menu a,
.footer-categories a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover,
.footer-categories a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Модальные окна ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    padding: 2.5rem 2rem 0;
}

.modal-subtitle {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.modal .contact-form {
    padding: 0 2rem 2rem;
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--dark-gray);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--dark);
    font-weight: 500;
}

.breadcrumbs .separator {
    color: var(--gray);
}

/* ===== Страница товара ===== */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    height: 400px;
    background: var(--light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*padding: 2rem;*/
}

.product-main-image img {
    max-width: 100%;
    height: 400px;
    /*max-height: 100%;*/
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    position: relative;
}

.product-series-info {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    align-items: center;
    flex-wrap: wrap;
}

.color-info {
    background: var(--light);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--dark);
    border: 1px solid var(--light-gray);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars .fa-star {
    color: var(--light-gray);
}

.stars .fa-star.active {
    color: var(--accent);
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
}

.reviews-count {
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.product-price-block {
    margin: 2rem 0;
}

.product-price {
    /*font-size: 2.5rem;*/
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.product-availability.in-stock {
    color: var(--success);
}

.product-availability.out-of-stock {
    color: var(--error);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.product-warning {
    background: #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-left: 4px solid #f39c12;
}

.product-warning .warning-icon {
    color: #f39c12;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.product-warning .warning-content {
    flex: 1;
}

.product-warning p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.product-warning strong {
    color: #d35400;
}

.product-short-specs {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-short-specs h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--dark-gray);
}

.spec-value {
    font-weight: 500;
    color: var(--dark);
    text-align: right;
}

.product-delivery {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-delivery h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-option i {
    color: var(--primary);
    font-size: 1.25rem;
}

.delivery-option span {
    color: var(--dark);
    font-size: 0.95rem;
}

/* Табы товара */
.product-tabs {
    margin: 4rem 0;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--dark);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для контента табов */
.tab-pane h3 {
    margin-bottom: 1.5rem;
    color: var(--darker);
}

.tab-pane h4 {
    margin: 1.5rem 0 1rem;
    color: var(--dark);
}

.features-list,
.advantages-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features-list li,
.advantages-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.features-list li i,
.advantages-list li i {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.specs-table {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-row {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.spec-row:nth-child(even) {
    background: rgba(255,255,255,0.5);
}

.spec-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
    padding-right: 1rem;
}

.spec-value {
    flex: 1;
    color: var(--dark-gray);
    text-align: right;
}

.spec-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-style: italic;
}

.installation-warnings {
    margin: 20px 0;
}

.warning-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.warning-item .warning-icon {
    color: #f39c12;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.warning-item .warning-content h4 {
    margin: 0 0 5px 0;
    color: #d35400;
    font-size: 1.1rem;
}

.installation-steps {
    padding-left: 1.5rem;
    margin: 20px 0;
}

.installation-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.warranty-period {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.period-icon {
    color: var(--primary);
    font-size: 2rem;
}

.warranty-terms {
    padding-left: 1.5rem;
    margin: 20px 0;
}

.warranty-terms li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Похожие товары */
.related-products {
    margin: 4rem 0;
}

.consultation-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem 0;
}

.consultation-banner h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.consultation-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ===== Страница О компании ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 100px 0 40px;
    text-align: center;
}

.page-header .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumbs a:hover {
    color: white;
}

.page-header .breadcrumbs span {
    color: white;
}

.page-header .page-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* О компании страница */
.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.achievement-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.achievement-text {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.production-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.production-feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.production-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 1.8rem;
}

.production-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.certificate-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-image {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certificate-image i {
    font-size: 2rem;
    color: var(--primary);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.certificate-content p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 0.9rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.team-member {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-photo {
    height: 250px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-photo i {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.7;
}

.member-info {
    padding: 1.5rem;
}

.member-position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== Стили для страницы Контакты ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-details {
    margin: 2rem 0;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.contact-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--darker);
}

.contact-content p {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-content small {
    color: var(--gray);
    font-size: 0.9rem;
}

.social-contacts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.social-contacts h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: var(--radius-md);
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Реквизиты */
.requisites-section {
    background: var(--light);
    padding: 4rem 0;
}

.requisites-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.requisite-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.requisite-item:last-child {
    border-bottom: none;
}

.requisite-label {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.9rem;
}

.requisite-value {
    color: var(--dark);
    font-weight: 500;
}

/* Карта */
.map-section {
    padding: 4rem 0;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.map-placeholder {
    height: 400px;
    background: var(--light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.placeholder-content p {
    color: var(--dark-gray);
}

.transport-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.transport-info h3 {
    margin-bottom: 1.5rem;
    color: var(--darker);
}

.transport-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.transport-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.transport-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transport-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.transport-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.transport-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Стили для страницы Партнерам ===== */
.partners-intro {
    padding: 4rem 0;
    background: var(--light);
}

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

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.partners-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.partner-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    color: var(--light);
    font-size: 1.8rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--darker);
}

.benefit-card p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.partnership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partnership-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.partnership-card.featured {
    border-color: var(--primary);
    transform: translateY(-10px);
    position: relative;
}

.partnership-card.featured::before {
    content: 'Рекомендуем';
    position: absolute;
    top: 20px;
    right: -40px;
    background: var(--accent);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.partnership-header {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.partnership-header h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.partnership-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.partnership-features {
    padding: 2rem;
    flex: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /*margin-bottom: 1rem;*/
}

.feature:last-child {
    margin-bottom: 0;
}

.feature i {
    color: var(--success);
    font-size: 1.1rem;
}

.feature span {
    color: var(--dark);
    font-size: 0.95rem;
}

.partnership-card .btn {
    margin: 0 2rem 2rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.document-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.document-content {
    flex: 1;
}

.document-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--darker);
}

.document-content p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.document-size {
    color: var(--gray);
    font-size: 0.85rem;
    white-space: nowrap;
}

.partner-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.partner-form-info .section-title {
    text-align: left;
}

.partner-form-info .section-title::after {
    left: 0;
    transform: none;
}

.form-description {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 1rem 0 2rem;
}

.partner-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.partner-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--darker);
    font-size: 1.4rem;
}

/* ===== Стили для страницы О компании ===== */
.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0;
}

.about-image .about-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-image .about-placeholder i {
    font-size: 6rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-image .about-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-features {
    background: var(--light);
    padding: 4rem 0;
}

.about-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-features .feature-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-features .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-features .feature-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.about-features .feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--darker);
}

.about-features .feature-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features .feature-item ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--dark-gray);
    line-height: 1.5;
    border-bottom: 1px solid var(--light-gray);
}

.about-features .feature-item ul li:last-child {
    border-bottom: none;
}

.about-features .feature-item ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-series {
    padding: 4rem 0;
}

.about-series .series-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-series .series-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.about-series .series-card.featured {
    border-color: var(--primary);
}

.about-series .series-header {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-series .series-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
}

.about-series .series-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-series .series-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-series .series-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ===== Анимации для элементов ===== */
/* Элементы прячутся только когда скрипты работают (класс .js ставится в <head>).
   Без скриптов и при настройке «уменьшить движение» всё видно сразу. */
.js .animate-fade-up,
.js .animate-fade-left,
.js .animate-fade-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .animate-fade-up { transform: translateY(20px); }
.js .animate-fade-left { transform: translateX(-20px); }
.js .animate-fade-right { transform: translateX(20px); }

.js .animate-fade-up.animated,
.js .animate-fade-left.animated,
.js .animate-fade-right.animated,
.js.js-fallback .animate-fade-up,
.js.js-fallback .animate-fade-left,
.js.js-fallback .animate-fade-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .animate-fade-up,
    .js .animate-fade-left,
    .js .animate-fade-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== Кастомный скроллбар ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* ===== Вспомогательные классы ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-light { background: var(--light); }
.bg-white { background: white; }
.bg-primary { background: var(--primary); }
.bg-dark { background: var(--dark); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-dark { color: var(--dark); }
.text-gray { color: var(--gray); }
.text-light { color: var(--light); }
.text-white { color: white; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 3000;
    animation: notificationSlideIn 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.notification-error {
    background: var(--error);
}

.notification-warning {
    background: var(--warning);
}

.notification-info {
    background: var(--info);
}

@keyframes notificationSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notificationSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ ===== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    /* Общие стили */
    .container {
        padding: 0 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.625rem; }
    
    /* Хиро секция */
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero .container {
        gap: 3rem;
    }
    
    
    .hero-image .image-placeholder {
        height: 350px;
    }
    
    /* Карточки и сетки */
    .advantages-grid,
    .features-grid,
    .products-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-intro-content,
    .contacts-grid,
    .partner-form-container,
    .map-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 3rem;
    }
    
    .achievement-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Каталог */
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .catalog-sidebar {
        position: static;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Страница товара */
    .product-main {
        gap: 3rem;
    }
    
    /* Футер */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Большие телефоны (576px - 768px) */
@media (max-width: 768px) {
    /* Общие стили */
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Хедер и навигация */
    .header-inner {
        height: 70px;
        gap: 1rem;
    }
    
    .nav,
    .header-contacts {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo {
        min-width: auto;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    /* Хиро секция */
    .hero {
        padding: 120px 0 50px;
        margin-top: 70px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features .feature {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image .image-placeholder {
        height: 300px;
    }
    
    .hero::before {
        width: 100%;
        height: 60%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }
    
    /* Карточки и сетки */
    .advantages-grid,
    .features-grid,
    .products-grid,
    .benefits-grid,
    .about-features .features-grid,
    .about-series .series-cards,
    .partnership-cards,
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partners-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .production-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .series-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .series-card.featured::before {
        right: -35px;
        padding: 6px 35px;
        font-size: 0.7rem;
    }
    
    /* Формы */
    .contact-form-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    
    .contact-info h2 {
        text-align: center;
    }
    
    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-card,
    .contact-form-card,
    .requisites-card,
    .transport-info,
    .benefit-card,
    .partner-form-wrapper,
    .about-features .feature-item {
        padding: 1.5rem;
    }
    
    .requisites-grid {
        grid-template-columns: 1fr;
    }
    
    .requisite-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Каталог */
    .sorting {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .sorting select {
        width: 100%;
    }
    
    /* Страница товара */
    .product-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .product-thumbnails {
        justify-content: center;
    }
    
    .tabs-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Футер */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Телефоны (до 576px) */
@media (max-width: 576px) {
    /* Общие стили */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    /* Хиро секция */
    .hero {
        padding: 100px 0 40px;
    }
    
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image .image-placeholder {
        height: 250px;
    }
    
    .hero-image .image-placeholder i {
        font-size: 6rem;
    }
    
    .hero-image .image-placeholder p {
        font-size: 1.5rem;
    }
    
    /* Кнопки */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    /* Карточки и сетки */
    .advantage-card,
    .feature-card,
    .series-card,
    .partnership-card,
    .benefit-card {
        padding: 1.5rem;
    }
    
    .achievement-cards {
        grid-template-columns: 1fr;
    }
    
    .partners-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Формы */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .transport-option {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .document-size {
        margin-top: 0.5rem;
    }
    
    /* Страница товара */
    .product-gallery {
        gap: 0.75rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    /* Баннер консультации */
    .consultation-banner {
        padding: 2rem 1rem;
    }
    
    .consultation-banner h3 {
        font-size: 1.5rem;
    }
    
    /* Мобильное меню */
    .mobile-nav {
        max-width: 100%;
    }
    
    .mobile-nav-list a {
        padding: 1rem;
    }
    
    /* Модальные окна */
    .modal {
        max-width: 95%;
        margin: 0 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding: 2rem 1.5rem 0;
    }
    
    .modal .contact-form {
        padding: 0 1.5rem 1.5rem;
    }
    
    /* Уведомления */
    .notification {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Очень маленькие телефоны (до 400px) */
@media (max-width: 400px) {
    /* Хиро секция */
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-features .feature {
        padding: 10px 15px;
    }
    
    /* Карточки */
    .product-card {
        margin: 0 auto;
        max-width: 320px;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .product-footer .btn {
        width: 100%;
    }
    
    /* Формы */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
    }
    
    /* Кнопки */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Тексты */
    p {
        font-size: 0.95rem;
    }
    
    .page-header .page-title {
        font-size: 1.75rem;
    }
    
    .page-header .page-subtitle {
        font-size: 1.1rem;
    }
}

/* Портретный режим планшета (высота меньше ширины) */
@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 50px;
        min-height: auto;
    }
    
    .hero-image .image-placeholder {
        height: 300px;
    }
    
    .mobile-nav {
        height: 100vh;
        overflow-y: auto;
    }
    
    .modal {
        max-height: 85vh;
    }
}

/* Поддержка высокого DPI экранов */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Поддержка темной темы (если нужно будет добавить позже) */
@media (prefers-color-scheme: dark) {
    /* Можно добавить темную тему при необходимости */
}

/* Анимации для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .advantage-card:hover,
    .feature-card:hover,
    .series-card:hover,
    .product-card:hover,
    .benefit-card:hover,
    .document-card:hover,
    .partnership-card:hover {
        transform: none;
    }
    
    .advantage-card:active,
    .feature-card:active,
    .series-card:active,
    .product-card:active,
    .benefit-card:active,
    .document-card:active,
    .partnership-card:active {
        transform: translateY(-5px);
    }
}

/* ===== Дополнения ===== */

/* Кружок цвета в каталоге и на странице товара */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-right: 6px;
    vertical-align: -1px;
}

.product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray);
    font-size: 3rem;
}

button.thumbnail {
    padding: 0;
    background: white;
}

/* Поле с ошибкой */
.form-group input.field-error,
.form-group textarea.field-error,
.form-group select.field-error {
    border-color: var(--error);
}

.checkbox input.field-error + span {
    color: var(--error);
}

#filterForm.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Видимый фокус при работе с клавиатуры */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(15, 121, 162, 0.5);
    outline-offset: 2px;
}

/* Плашка состояния соединения */
.net-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 150%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius-full);
    background: var(--darker);
    color: white;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 4000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.net-banner.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.net-banner-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    animation: netPulse 1.2s ease-in-out infinite;
}

.net-banner-online .net-banner-dot {
    background: var(--success);
    animation: none;
}

@keyframes netPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* На телефоне уведомление не должно вылезать за экран */
@media (max-width: 576px) {
    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* Тень выдвижного меню не должна выглядывать из-за края экрана, пока меню закрыто */
.mobile-nav:not(.active) {
    box-shadow: none;
    visibility: hidden;
    transition: right 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-nav.active {
    visibility: visible;
    transition: right 0.3s ease;
}

/* Фильтры каталога на телефоне и планшете сворачиваются, чтобы товары были видны сразу */
.filters-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.875rem 1rem;
        font-weight: 600;
        color: var(--dark);
        background: white;
        border: 2px solid var(--light-gray);
        border-radius: var(--radius-md);
    }

    .filters-toggle .filters-toggle-count {
        margin-left: 0.5rem;
        padding: 2px 8px;
        border-radius: var(--radius-full);
        background: var(--primary);
        color: white;
        font-size: 0.8rem;
    }

    .filters-toggle i {
        transition: transform 0.2s ease;
    }

    .catalog-sidebar.open .filters-toggle i {
        transform: rotate(180deg);
    }

    .js .catalog-sidebar:not(.open) #filterForm,
    .js .catalog-sidebar:not(.open) .sidebar-info {
        display: none;
    }

    .catalog-sidebar.open #filterForm {
        margin-top: 1rem;
    }
}

/* ===== Первый экран: баннер на всю ширину блока, текст и кнопки слева поверх него ===== */
.hero {
    padding: 120px 0 60px;
}

.hero::before {
    display: none;
}

.hero .container {
    display: block;
}

/* Картинка и текст лежат в одной ячейке сетки. Высоту задаёт картинка (она видна целиком);
   если текста окажется больше, блок вырастет по тексту, а картинка заполнит его от правого края. */
.hero-banner {
    display: grid;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #2f3034;
    box-shadow: var(--shadow-lg);
}

.hero-banner > * {
    grid-area: 1 / 1;
    min-width: 0;
}

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

.hero-banner .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: none;
    width: 55%;
    max-width: 720px;
    padding: clamp(1.5rem, 4vw, 4rem);
    padding-right: 1.5rem;
    /* Затемнение под текстом — чтобы он читался на любой загруженной картинке */
    background: linear-gradient(90deg, rgba(24, 25, 29, 0.72) 0%, rgba(24, 25, 29, 0.45) 65%, rgba(24, 25, 29, 0) 100%);
}

.hero-banner .hero-title {
    color: #fff;
    font-size: clamp(1.5rem, 0.6rem + 2.4vw, 3rem);
    margin-bottom: 1.25rem;
}

.hero-banner .hero-title strong {
    background: linear-gradient(135deg, #4fc3f7 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--primary-light);
}

.hero-banner .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 0.7rem + 0.7vw, 1.25rem);
    margin-bottom: 1.5rem;
}

.hero-banner .hero-buttons {
    margin-top: 0.5rem;
    justify-content: flex-start;
}

/* Вторая кнопка на тёмном фоне — светлый контур */
.hero-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.hero-banner .btn-secondary:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

/* В режиме редактирования подсветка блоков не должна прятать белый текст */
.hero-banner .editable-content[contenteditable="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

@media (max-width: 1024px) {
    .hero {
        padding: 110px 0 40px;
    }

    .hero-banner .hero-content {
        width: 58%;
    }

    .hero-banner .btn-large {
        padding: 0.7rem 1.1rem;
        font-size: 0.95rem;
    }
}

/* На телефоне картинка слишком низкая, чтобы уместить на ней текст: текст сверху на таком же
   тёмном фоне, картинка под ним целиком — блок остаётся единым */
@media (max-width: 768px) {
    .hero {
        padding: 90px 0 30px;
        margin-top: 0;
    }

    /* Фон повторяет оттенки верхнего края стандартного баннера, чтобы стык с картинкой не был виден */
    .hero-banner {
        display: flex;
        flex-direction: column;
        background: linear-gradient(90deg, #2d2f33 0%, #4b4d51 50%, #2b2d2e 100%);
    }

    .hero-banner .hero-content {
        order: -1;
        width: 100%;
        max-width: none;
        padding: 1.75rem 1.25rem 1.25rem;
        padding-right: 1.25rem;
        text-align: center;
        background: none;
    }

    .hero-banner .hero-title {
        font-size: clamp(1.6rem, 1rem + 3vw, 2.2rem);
    }

    .hero-banner .hero-buttons {
        justify-content: center;
    }

    .hero-banner-image {
        height: auto;
        object-fit: contain;
    }
}
