/* =====================================================
   СТОЛИЧНАЯ ТЕКСТИЛЬНАЯ МАНУФАКТУРА
   Базовые стили сайта
   ===================================================== */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    /* Основные цвета */
    --primary-color: #00a8e8;
    --primary-dark: #0077b6;
    --primary-gradient: linear-gradient(135deg, #00a8e8 0%, #0077b6 100%);
    
    /* Темные цвета */
    --dark-bg: #333;
    --dark-bg-light: #444;
    --dark-bg-darker: #2a2a2a;
    
    /* Светлые цвета */
    --light-bg: #f8f9fa;
    --light-bg-alt: #f5f5f5;
    --white: #fff;
    
    /* Текст */
    --text-primary: #222;
    --text-secondary: #444;
    --text-muted: #666;
    --text-light: #888;
    --text-white: #fff;
    --text-gray: #ccc;
    --text-gray-light: #ddd;
    
    /* Границы */
    --border-color: #e8e8e8;
    --border-light: #e0e0e0;
    --border-lighter: #eee;
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 35px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 15px rgba(0, 168, 232, 0.3);
    --shadow-primary-hover: 0 6px 20px rgba(0, 168, 232, 0.4);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 15px;
    --radius-full: 50%;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.35s ease;
    
    /* Размеры */
    --sidebar-width: 240px;
    --content-max-width: 1200px;
    
    /* Шрифты */
    --font-family: Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 22px;
    --font-size-4xl: 28px;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: var(--dark-bg);
    color: var(--text-white);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 100;
}

/* Скроллбар в сайдбаре */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--dark-bg-darker);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-bg-light);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.logo img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-white);
    padding: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
}

/* Меню навигации */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0;
}

.menu a,
.submenu-btn {
    display: block;
    color: var(--text-gray-light);
    text-decoration: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: var(--font-size-md);
    font-weight: bold;
    position: relative;
}

.menu a::before,
.submenu-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.menu a:hover,
.submenu-btn:hover {
    background: var(--dark-bg-light);
    color: var(--text-white);
}

.menu a:hover::before,
.submenu-btn:hover::before {
    transform: scaleY(1);
}

.menu a.active,
.submenu-btn.active {
    color: var(--primary-color);
}

.menu a.active::before,
.submenu-btn.active::before {
    transform: scaleY(1);
}

.menu a:focus,
.submenu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Подменю */
.submenu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--dark-bg-darker);
    margin: 0;
    padding: 0;
    list-style: none;
}

.submenu-list li {
    margin: 0;
    list-style: none;
}

.submenu-list li a {
    display: block;
    padding: 10px 20px 10px 30px;
    font-size: var(--font-size-base);
    color: var(--text-gray);
    font-weight: normal;
    transition: all var(--transition-normal);
}

.submenu-list li a::before {
    display: none;
}

.submenu-list li a:hover {
    background: #555;
    color: var(--text-white);
    padding-left: 35px;
}

.submenu-list li a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--light-bg-alt);
}

/* ===== КОНТЕНТ ===== */
.main-content {
    flex: 1;
    background: var(--white);
}

/* ===== ЗАГОЛОВКИ СТРАНИЦ ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.page-header .subtitle {
    font-size: var(--font-size-md);
    color: var(--text-muted);
    margin-top: 20px;
}

/* ===== ИНФОРМАЦИОННЫЕ КАРТОЧКИ ===== */
.info-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    max-width: 900px;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card h2 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.info-card p {
    font-size: var(--font-size-md);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-card ul li {
    font-size: var(--font-size-md);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== СЕКЦИЯ С ФОРМОЙ ===== */
.form-section {
    display: flex;
    padding: 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    min-height: 500px;
    position: relative;
}

.form-image {
    flex: 2;
    background-image: url('/img/addon/form-before.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 500px;
    background-color: transparent;
}

.form-container {
    flex: 0 0 520px;
    max-width: 520px;
    padding: 50px 45px;
    margin-right: 40px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    margin: 25px 40px 25px 0;
}

.form-title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: var(--font-size-base);
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    font-size: var(--font-size-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    background: #fafafa;
    box-sizing: border-box;
    transition: all var(--transition-normal);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #d0d0d0;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.1);
}

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

/* Placeholder стили */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Капча */
.captcha-group {
    margin-bottom: 20px;
}

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

.captcha-digit {
    width: 40px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: bold;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.captcha-input {
    width: 150px;
    padding: 10px 14px;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    transition: all var(--transition-normal);
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

/* ===== КНОПКИ ===== */
.submit-btn,
.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 16px 40px;
    font-size: var(--font-size-lg);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    margin-top: 10px;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-primary);
}

.submit-btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

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

.submit-btn:focus,
.btn-primary:focus {
    outline: none;
    box-shadow: var(--shadow-primary-hover), 0 0 0 3px rgba(0, 168, 232, 0.3);
}

.submit-btn:disabled,
.btn-primary:disabled {
    background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 16px 35px;
    font-size: var(--font-size-md);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-align: center;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: var(--text-white);
}

.action-btn:focus {
    outline: none;
    box-shadow: var(--shadow-primary-hover), 0 0 0 3px rgba(0, 168, 232, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #555 0%, var(--dark-bg) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn.secondary::after {
    content: "→";
    font-size: var(--font-size-lg);
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.action-btn.secondary:hover::after {
    transform: translateX(3px);
}

/* Ряд кнопок */
.actions-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.action-btn.primary {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ===== СООБЩЕНИЯ ФОРМЫ ===== */
#formMessage {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    line-height: 1.5;
    font-weight: 500;
}

#formMessage.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: none;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.15);
}

#formMessage.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: none;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.15);
}

/* ===== СЕКЦИЯ КОНСУЛЬТАЦИИ ===== */
.consultation-section {
    padding: 60px 50px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
}

.consultation-title {
    font-size: var(--font-size-3xl);
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.consultation-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.consultation-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 100%;
}

.consultation-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.consultation-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 100%);
    border-radius: var(--radius-full);
    padding: 15px;
    transition: transform var(--transition-normal);
}

.consultation-item:hover .consultation-icon {
    transform: scale(1.1);
}

.consultation-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.consultation-text {
    flex: 1;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== ПРОМО БЛОК ===== */
.promo-box,
.highlight-box {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.promo-box:hover,
.highlight-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-hover);
}

.promo-box p,
.highlight-box p {
    font-size: var(--font-size-xl);
    margin: 0 0 5px 0;
}

.promo-box .small,
.highlight-box .price-note {
    font-size: var(--font-size-base);
    opacity: 0.9;
}

.highlight-box .price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ===== ГАЛЕРЕЯ ОБРАЗЦОВ ===== */
.samples-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.sample-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sample-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.lightbox-gallery .sample-item img,
.product-card img.main-img,
.thumb-gallery img {
    cursor: pointer;
}

.sample-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-fast);
}

.sample-item img:hover {
    transform: scale(1.02);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-hint {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
}

/* ===== ХАРАКТЕРИСТИКИ / FEATURES ===== */
.features-section {
    max-width: 900px;
    margin: 0 auto 40px;
}

.features-section h2 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin: 0 0 25px 0;
    text-align: center;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.feature-card .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.feature-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card .text {
    flex: 1;
}

.feature-card .text p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== ТАБЛИЦЫ ЦЕН ===== */
.pricing-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.price-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 18px 20px;
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.price-table thead th {
    background: var(--light-bg-alt);
    padding: 14px 18px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-primary);
}

.price-table tbody tr {
    transition: background var(--transition-fast);
}

.price-table tbody tr:hover {
    background: var(--light-bg);
}

.price-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    color: var(--text-secondary);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.table-note {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    padding: 14px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
}

/* Сетка цен (Pack.html style) */
.price-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.price-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.price-item .name {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.price-item .value {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--primary-color);
}

.price-item .value span {
    font-size: var(--font-size-sm);
    font-weight: normal;
    color: var(--text-light);
}

/* ===== СЕРВИСЫ / УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
    margin: 35px 0;
}

.service-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.service-item:hover {
    background: var(--light-bg);
}

.service-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-text {
    flex: 1;
}

.service-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-primary);
}

/* ===== TERMS ROW (Print.html style) ===== */
.terms-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.term-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.term-card .label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: 5px;
}

.term-card .value {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--text-primary);
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.divider {
    width: 100%;
    border: none;
    border-top: 2px solid var(--border-lighter);
    margin: 35px 0;
}

/* ===== ФУТЕР ===== */
.footer {
    display: flex;
    justify-content: center;
    background: var(--dark-bg);
    color: var(--text-gray);
    padding: 40px 30px;
    box-sizing: border-box;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: var(--content-max-width);
}

.footer h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: var(--font-size-lg);
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-normal), padding-left var(--transition-normal);
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-gray);
}

.footer p a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

/* ===== УТИЛИТЫ ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.text-muted {
    color: var(--text-muted);
}

.small-muted {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.bold {
    font-weight: 600;
}

.center {
    text-align: center;
}

/* Кнопка центрирования */
.button-center {
    text-align: center;
    margin-top: 10px;
}

.button-center button {
    padding: 14px 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
}

.button-center button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

/* ===== МОБИЛЬНЫЙ ХЕДЕР ===== */
/* По умолчанию скрыт на десктопе */
.mobile-header {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--dark-bg);
    z-index: 200;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-logo {
    height: 40px;
}

.mobile-logo img {
    height: 100%;
    width: auto;
}

/* Бургер кнопка */
.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

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

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


/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .consultation-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .samples-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .form-section {
        flex-direction: column;
    }
    
    .form-image {
        min-height: 300px;
        flex: none;
    }
    
    .form-container {
        flex: none;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    /* Показываем мобильный хедер */
    .mobile-header {
        display: flex !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    .mobile-overlay.active {
        display: block !important;
        opacity: 1;
    }
    
    /* Скрываем desktop sidebar по умолчанию */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        padding-top: 70px; /* Отступ под мобильный хедер */
    }
    
    /* Показываем sidebar при активации */
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        padding-top: 60px; /* Отступ под мобильный хедер */
    }
    
    .consultation-items {
        grid-template-columns: 1fr;
    }
    
    .samples-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consultation-section {
        padding: 40px 20px;
    }
    
    .page-header h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 15px;
    }
    
    .submit-btn,
    .btn-primary {
        padding: 14px 30px;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-item img {
        height: 250px;
    }
    
    .consultation-title {
        font-size: var(--font-size-xl);
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    .sidebar,
    .footer {
        display: none;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .action-btn,
    .submit-btn {
        display: none;
    }
}
