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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 25%, #2a3a4b 50%, #2c3e50 75%, #1a252f 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.25) 20%, 
        rgba(0,0,0,0.08) 40%, 
        rgba(0,0,0,0.0) 50%, 
        rgba(0,0,0,0.08) 60%, 
        rgba(0,0,0,0.25) 80%, 
        rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Новый layout для header - логотип по центру */
header .header-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

header .header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

header .header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

/* Левая навигация */
.header-left nav ul {
    justify-content: flex-start;
}

/* Правая навигация */
.header-right nav ul {
    justify-content: flex-end;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 700;
}

nav a:hover,
nav a.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Кнопка в навигации - такая же как плавающая, но всегда видна */
nav ul li .nav-contact-btn,
.menu-style-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    text-decoration: none !important;
    width: auto;
    min-width: fit-content;
}

nav ul li .nav-contact-btn:hover,
.menu-style-btn:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: url('img/sand-bck.png') center/cover no-repeat;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/sand-bck.png') center/cover no-repeat;
    filter: blur(3px) brightness(0.7) saturate(1.4) contrast(1.2);
    transform: scale(1.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-text h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    font-weight: 700;
}

.hero-highlight {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight-badge {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: justify;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    filter: brightness(1.0) saturate(1.2) contrast(1.1);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #f7f8ff;
}

.about h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.about-text-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding-top: 1.5rem;
}

/* Стили для основного ряда секции "О нас" */
.about-main-row .documents-section {
    margin-top: 0;
    height: fit-content;
}

.about-main-row .documents-section p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.6;
    color: #34495e;
}

/* Стили для документов в правой колонке */
.about-text-section .documents-section {
    margin-top: auto; /* Прижимаем к низу */
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-text-section .documents-section p {
    margin-bottom: 1rem; /* Уменьшенный отступ под заголовком */
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
}

.about-text-section .documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-text-section .documents-list li {
    margin-bottom: 0.5rem; /* Уменьшенное расстояние между элементами */
    padding-left: 1.5rem;
    position: relative;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
}

/* Стили для документов в правой колонке - используется универсальный стиль ссылок */

.about-text-section .documents-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* === СТИЛИ ДЛЯ ПРОДУКЦИИ === */

.products {
    background: linear-gradient(135deg, #1a252f, #2c3e50, #34495e, #2e4053);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="120" height="120" patternUnits="userSpaceOnUse"><circle cx="15" cy="23" r="2.5" fill="rgba(255,255,255,0.25)"/><circle cx="67" cy="8" r="1.8" fill="rgba(255,255,255,0.2)"/><circle cx="31" cy="54" r="3.2" fill="rgba(255,255,255,0.18)"/><circle cx="89" cy="42" r="1.4" fill="rgba(255,255,255,0.15)"/><circle cx="48" cy="17" r="2.7" fill="rgba(255,255,255,0.22)"/><circle cx="7" cy="71" r="1.6" fill="rgba(255,255,255,0.16)"/><circle cx="76" cy="93" r="2.1" fill="rgba(255,255,255,0.19)"/><circle cx="102" cy="35" r="1.3" fill="rgba(255,255,255,0.14)"/><circle cx="24" cy="86" r="2.9" fill="rgba(255,255,255,0.21)"/><circle cx="58" cy="68" r="1.7" fill="rgba(255,255,255,0.17)"/><circle cx="93" cy="76" r="2.3" fill="rgba(255,255,255,0.23)"/><circle cx="11" cy="49" r="1.5" fill="rgba(255,255,255,0.13)"/><circle cx="41" cy="103" r="2.0" fill="rgba(255,255,255,0.18)"/><circle cx="79" cy="29" r="1.9" fill="rgba(255,255,255,0.16)"/><circle cx="52" cy="81" r="2.4" fill="rgba(255,255,255,0.24)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.products > * {
    position: relative;
    z-index: 2;
}

.products h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.products-cta {
    text-align: center;
    margin-top: auto;
    padding-top: 1.4rem;
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    min-height: 100px;
}

.product-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    background-color: #fff;
}

.product-item span {
    position: relative;
    z-index: 3;
    margin-left: 35%;
    padding: 1rem;
    width: 65%;
    font-weight: 600;
    font-size: 1.3rem;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-item:hover span {
    color: #c0392b;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: white;
}

.map-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.map-widget {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Price Page */
.price-page {
    padding: 2rem 0 4rem;
    background: #f7f8ff;
}

.price-header {
    background: url('img/sand-bck.png') center/cover no-repeat;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

.price-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/sand-bck.png') center/cover no-repeat;
    filter: blur(3px) brightness(0.6) saturate(1.4) contrast(1.2);
    transform: scale(1.1);
    z-index: 0;
}

.price-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.price-header h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}

.price-date {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 2;
}

.price-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.price-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.price-section h4 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 2rem 0 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    position: relative;
    border: 1px solid #e9ecef;
    font-weight: 600;
}

.price-section h4 a {
    color: #e74c3c;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9rem;
    font-weight: normal;
}

.price-section h4 a:hover {
    text-decoration: underline;
}

/* Стили для сносок к разделам прайс-листа */
.section-footnote {
    padding: 0.5rem 0;
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.section-footnote::before {
    content: "*";
    margin-right: 0.3rem;
    font-weight: bold;
}

/* === ЕДИНЫЕ СТИЛИ ДЛЯ ПРАЙС-ЛИСТА === */

/* Основные таблицы */
.price-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 0.3rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.price-table .vehicle-header th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    text-align: left;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.price-table .vehicle-header th:last-child {
    border-right: none;
}

.price-table .vehicle-header th a {
    color: #ff6600;
    text-decoration: none;
    margin-left: 0;
    font-size: 0.9rem;
    font-weight: normal;
}

.price-table .vehicle-header th a:hover {
    text-decoration: underline;
}

.price-table .service-header th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.price-table .service-header th:last-child {
    border-right: none;
}

.price-table .service-header th:first-child {
    width: 60%;
    text-align: left;
}

.price-table .service-header th:last-child {
    width: 40%;
    text-align: left;
}

/* Ячейки таблицы */
.price-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    font-size: 1rem;
    vertical-align: middle;
}

.price-table td:last-child {
    border-right: none;
}

.price-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.price-table tr:hover td {
    background-color: #e8f4f8;
}

/* Названия услуг - темно-синий жирный */
.price-table td:first-child {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Цены - ярко-оранжевый толстый */
.price-table .price-cell {
    text-align: left;
    color: #ff6600 !important;
    font-weight: 900 !important;
    font-size: 1.2rem;
}

.price-table .price-cell strong {
    color: #ff6600 !important;
    font-weight: 900 !important;
}

/* Калькулятор */
.calc-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: #ff6600;
    font-size: 1.2rem;
    white-space: nowrap;
}

.calc-inline strong {
    font-weight: 900 !important;
    color: #ff6600 !important;
}

.calc-inline input {
    width: 60px;
    padding: 4px 8px;
    border: 2px solid #ff6600;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    background: white;
    font-weight: 700;
    color: #2c3e50;
    /* Убираем стрелочки */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Убираем стрелочки в Webkit браузерах */
.calc-inline input::-webkit-outer-spin-button,
.calc-inline input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-inline input:focus {
    outline: none;
    border-color: #e55a00;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.calc-result,
#result-bcm,
#result-howo {
    font-size: 1.2rem;
    color: #ff6600 !important;
    font-weight: 900 !important;
    margin-left: 8px;
}

/* Стандартная цена для мобильных устройств */
.mobile-price {
    display: none;
    font-size: 1.2rem;
    color: #ff6600 !important;
    font-weight: 900 !important;
}

.price-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.price-note p {
    margin: 0;
    font-style: italic;
}

.back-button {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-content h4 {
    color: #ecf0f1;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.company-details p {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 0.3rem;
}

.phones p {
    margin-bottom: 0.4rem;
}

.email-copy {
    color: #74b9ff;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.email-copy:hover {
    color: #0984e3;
}

/* Modal для полноэкранного просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Стили для секции документов */
.documents-section {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 1.5rem 1.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.documents-section p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

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

.documents-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
}

/* Стили для ссылок в документах убраны - используется универсальный стиль ссылок */

.documents-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Основные контейнеры */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* На мобильных возвращаемся к обычному layout */
    header .header-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    header .header-left,
    header .header-center,
    header .header-right {
        justify-content: center;
    }
    
    nav ul {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* На мобильных все элементы навигации по центру */
    .header-left nav ul,
    .header-right nav ul {
        justify-content: center;
    }

    .contact-modal-content {
        padding: 0;
    }
    
    nav a {
        padding: 0.42rem 0.68rem;
    }
    
    .menu-style-btn {
        border-radius: 25px;
    }
    
    /* Hero секция */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .highlight-badge {
        padding: 0.3rem 0.6rem;
        margin: 0.2rem;
    }
    
    /* About секция */
    .about {
        padding: 2rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-main-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text-section {
        padding-top: 0;
        gap: 1rem;
    }
    
    .about-text-section .documents-section {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    /* Продукция */
    .products {
        padding: 1rem;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .products h4 {
        margin-bottom: 1rem;
    }

    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .product-item::after {
        display: none;
    }
    
    .products-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: auto;
    }
    
    .about-text-section {
        padding-top: 1rem;
    }

    /* Footer - компактный для мобильных */
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }
    
    .company-details p {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    /* Калькулятор скрыт, показываем стандартную цену */
    .calc-inline {
        display: none !important;
    }
    
    .mobile-price {
        display: block !important;
    }

    .floating-phone-btn {
        bottom: 20px;
        right: 20px;
        min-width: 50px;
        min-height: 50px;
        padding: 10px 14px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 25px;
    }

    .contact-modal-content {
        margin: 10px auto;
        padding: 1.5rem;
        width: 95%;
        max-height: calc(100vh - 40px); /* Ограничиваем высоту */
        overflow-y: auto; /* Добавляем прокрутку внутри контента */
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* Мобильные стили для социальных кнопок */
    .social-buttons {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .social-buttons img {
        width: 28px;
        height: 28px;
    }
    
    /* Мобильные стили для номеров телефонов */
    .phone-number {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .phone-copy {
        align-self: flex-start;
    }
    
    .phone-name {
        align-self: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .products {
        padding: 0.8rem;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .products h4 {
        margin-bottom: 0.8rem;
    }
    
    .product-grid {
        gap: 0.6rem;
    }

    .product-item::after {
        display: none;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .documents-section p {
        font-size: 1rem;
    }
    
    /* Footer еще более компактный */
    footer {
        padding: 1rem 0;
    }
    
    .footer-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .company-details p {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .hero {
        padding: 2rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-highlight {
        justify-content: center;
    }
    
    .highlight-badge {
        padding: 0.3rem 0.6rem;
        border-radius: 8px;
        backdrop-filter: blur(10px) saturate(180%);
    }
    
    .price-header h2 {
        font-size: 2rem;
    }
    
    .price-table {
        font-size: 0.8rem;
    }
    
    /* Навигация - уменьшаем размер шрифта обычных ссылок */

    .price-table th,
    .price-table td {
        padding: 0.7rem 0.5rem;
    }
}

/* === ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ ЦЕН === */
.price-table td.price-cell,
.price-table .price-cell,
.price-cell {
    color: #ff6600 !important;
    font-weight: 900 !important;
    text-align: left !important;
}

.price-table td.price-cell strong,
.price-table .price-cell strong,
.price-cell strong,
.calc-inline strong,
.calc-result,
#result-bcm,
#result-howo {
    color: #ff6600 !important;
    font-weight: 900 !important;
}

/* Стили для таблицы инертных материалов */
.materials-table .materials-header th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.materials-table .materials-header th:first-child {
    width: 50%;
    text-align: left;
}

.materials-table .materials-header th:last-child {
    width: 50%;
    text-align: left;
    border-right: none;
}

/* Модальное окно с контактами */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Добавляем прокрутку для всего модального окна */
}

.contact-modal-content {
    background: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    min-height: fit-content;
    margin-bottom: 5%; /* Добавляем отступ снизу */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-modal-content h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.contact-info-modal {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50; /* Изменили цвет обводки на темно-синий как в меню */
}

.contact-item p {
    font-size: 1.2rem; /* Увеличили размер текста в 1.5 раза */
}

.email-copy-modal {
    color: #3498db !important;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 5px;
    background: white;
    border: 1px solid #3498db;
    word-break: break-all; /* Разрешаем перенос email на мобильных */
    overflow-wrap: break-word;
}

.email-copy-modal:hover {
    background: #3498db;
    color: white !important;
    transform: translateY(-1px);
}

/* Стили для телефонов в модальном окне */
.phone-entry {
    margin-bottom: 1rem;
}

.phone-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.phone-number {
    margin-bottom: 0;
}

.phone-name {
    opacity: 0.7;
    font-style: italic;
    font-weight: normal;
}

/* Стили для социальных кнопок в модальном окне */
.social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.social-buttons a {
    background: transparent;
    background-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-buttons img {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.social-buttons a:hover {
    background: transparent !important;
    color: transparent !important;
    transform: translateY(-3px) scale(1.1);
}

/* Стили для кликабельных номеров телефонов в модальном окне */
.phone-copy {
    color: #e74c3c !important;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    background: white;
    border: 1px solid #e74c3c;
    display: inline-block;
    margin: 0.2rem 0;
}

.phone-copy:hover {
    background: #e74c3c;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Стили для ссылки на местоположение - используется универсальный стиль ссылок */

/* Новый стиль "текст с ссылкой" - оранжевый без подчеркивания */
a:not(.email-copy):not(.email-copy-modal):not(nav a):not(.secret-link):not(.menu-style-btn), 
.location-link,
.about-text a,
.documents-list a,
.about-text-section .documents-list a {
    color: #e74c3c;
    text-decoration: none !important;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 0;
}

a:not(.email-copy):not(.email-copy-modal):not(nav a):not(.secret-link):not(.menu-style-btn):hover,
.location-link:hover,
.about-text a:hover,
.documents-list a:hover,
.about-text-section .documents-list a:hover {
    color: white !important;
    background: #e74c3c;
    text-decoration: none !important;
}

/* Секретная ссылка на админ-панель - полностью сливается с текстом */
.secret-link {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: text !important; /* Даже курсор как у обычного текста */
}

.secret-link:hover {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: text !important;
}

/* === УМНАЯ ПЛАВАЮЩАЯ КНОПКА === */
.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 60px;
    min-height: 60px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    white-space: nowrap;
    text-align: center;
    /* По умолчанию скрыта */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.floating-phone-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-phone-btn:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

.floating-phone-btn.show:hover {
    transform: translateY(-2px);
}

/* === ИСПРАВЛЕНИЕ ADMIN GRID === */

/* Делаем grid более адаптивным для админки */

@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    /* Скрываем заголовки таблицы на мобильных */
    .service-headers {
        display: none !important;
    }
    
    /* Скрываем десктопную версию на мобильных */
    .service-row .service-name-input,
    .service-row .service-price-input,
    .service-row .service-unit-select,
    .service-row .service-calculator-checkbox,
    .service-row .service-remove-btn {
        display: none;
    }
    
    .desktop-subsection-input,
    .desktop-remove-btn {
        display: none;
    }
    
    /* Показываем мобильную версию */
    .mobile-service-fields,
    .mobile-subsection-fields {
        display: block;
    }
    
    /* Стили для мобильных полей услуг */
    .service-row {
        display: block !important;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .mobile-field {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .mobile-label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .mobile-input {
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        border: 2px solid #e9ecef;
        border-radius: 5px;
        font-size: 1rem;
        box-sizing: border-box;
        resize: none;
        overflow: hidden;
        min-height: 48px; /* Минимальная высота для одной строки */
        line-height: 1.4;
        font-family: inherit;
        transition: height 0.2s ease;
    }
    
    /* Адаптивные textarea для длинного текста */
    .mobile-input[type="text"] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Для очень длинного текста превращаем в textarea */
    .mobile-input.auto-expand {
        white-space: normal;
        overflow: visible;
        height: auto;
        min-height: 48px;
        max-height: 120px; /* Максимум 3 строки */
        overflow-y: auto;
    }
    
    .mobile-input:focus {
        border-color: #e74c3c;
        outline: none;
    }
    
    /* Селекты тоже во всю ширину */
    .mobile-input select,
    select.mobile-input {
        width: 100% !important;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 40px;
    }
    
    .mobile-checkbox-field {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .mobile-checkbox {
        transform: scale(1.5);
        flex-shrink: 0;
    }
    
    .mobile-checkbox-field .mobile-label {
        margin-bottom: 0;
        flex-grow: 1;
    }
    
    .mobile-remove-btn,
    .mobile-subsection-remove-btn {
        background: #e74c3c;
        color: white;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        width: auto;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    .mobile-remove-btn:hover,
    .mobile-subsection-remove-btn:hover {
        background: #c0392b;
    }
    
    /* Стили для мобильных полей подраздела */
    .subsection-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .mobile-subsection-fields {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Кнопки добавления на мобильных */
    .btn-add,
    .btn-add-subsection {
        width: 100%;
        padding: 0.75rem;
        margin: 0.5rem 0;
        font-size: 1rem;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        font-weight: 600;
    }
    
    .btn-add {
        background: #27ae60;
        color: white;
    }
    
    .btn-add:hover {
        background: #229954;
    }
    
    .btn-add-subsection {
        background: #3498db;
        color: white;
    }
    
    .btn-add-subsection:hover {
        background: #2980b9;
    }
    
    /* Главные кнопки админки */
    .admin-actions {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }
    
    /* Модальные окна */
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-buttons button {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Скрываем мобильную версию на десктопе */
@media (min-width: 769px) {
    .mobile-service-fields,
    .mobile-subsection-fields {
        display: none;
    }
}