/*
Theme Name: Electro Ride v3
Theme URI: https://example.com
Author: ООО "Электро Райд"
Author URI: https://example.com
Description: Адаптивная тема для грузового сервиса.
Version: 3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: electro-ride v3
*/

/* Подключение шрифта Inter, который хорошо поддерживает кириллицу */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap&subset=cyrillic');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&display=swap');

/* Применение шрифта ко всем элементам */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Основные стили для body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(to bottom, #ffffff, #000000); /* Градиент от белого к серому */
    margin: 0;
    padding: 0;
}

/* Убираем искусственное удлинение страницы для классов WordPress */
body.home,
body.blog,
body.logged-in,
body.admin-bar,
body.wp-custom-logo,
body.wp-theme-ERSITEv2,
body.customize-support {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
}

/* Основной контейнер страницы */
.page-wrapper,
.main,
.container,
.page-content,
.site-content {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Убираем фиксированные min-height для .page-content и main.container */
.page-content,
main.container {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
}

/* Убираем лишние отступы и прокрутку */
body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #222;
    margin-bottom: 0.5em;
}

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, a, span, li, input, button, textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 70ch; /* Оптимальная длина строки для чтения */
    margin: 0 auto;
}

/* Стили для ссылок */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004c99;
}

/* Базовые стили меню */
.header-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

/* Сброс стилей для меню */
.header-menu ul,
.header-menu ul li,
.header-menu ul li a {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

/* Основное меню */
.header-menu {
    position: relative;
}

.header-menu > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.header-menu ul li {
    position: relative;
}

/* Стили для подменю */
.header-menu ul li ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #000;
    padding: 10px 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Показываем подменю при наведении */
.header-menu ul li:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Стили для пунктов подменю */
.header-menu ul li ul.sub-menu li {
    width: 100%;
}

.header-menu ul li ul.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

/* Индикатор для пунктов с подменю */
.menu-item-has-children > a:after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a:after {
    transform: rotate(180deg);
}

/* Стили для пунктов с подменю */
.menu-item-has-children {
    position: relative;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    .header-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        padding-top: 60px;
    }

    .header-menu.menu-open {
        display: flex;
    }

    .header-menu ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .header-menu ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .header-menu ul li a {
        padding: 15px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .header-menu ul ul {
        display: none;
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        width: 100%;
    }

    .header-menu ul ul li a {
        padding-left: 30px;
    }

    .submenu-active + ul {
        display: block !important;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Стили для навигации */
.header-menu ul li a,
.footer-menu ul li a {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

/* Стили для блоков услуг и информации */
.service-block h3,
.info-block h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-block p,
.info-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Улучшенная читаемость для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .services-grid,
    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .service-block,
    .info-block {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .service-image img,
    .info-image img {
        width: 100%;
        height: auto;
    }

    .info-grid {
        display: flex;
        flex-direction: row; /* Изменяем на горизонтальное расположение */
        flex-wrap: nowrap; /* Запрещаем перенос блоков */
        gap: 20px;
        width: 100%;
        overflow-x: auto; /* Добавляем горизонтальную прокрутку */
        padding: 20px 15px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .info-block {
        flex: 0 0 300px; /* Фиксированная ширина для каждого блока */
        width: 300px;
        margin: 0;
        scroll-snap-align: start;
    }

    /* Скрываем полосу прокрутки для чистоты дизайна */
    .info-grid::-webkit-scrollbar {
        display: none;
    }

    .info-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .services,
    .info {
        margin: 40px 0;
    }

    .header-contacts {
        display: none;
    }

    .mobile-contacts {
        display: block;
        color: #fff;
        text-align: center;
        margin-top: 20px;
    }

    body.menu-open {
        overflow: hidden; /* Блокируем прокрутку body */
    }

    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .service-block {
        width: 100%;
        height: auto;
        min-height: auto; /* Убираем фиксированную высоту */
        aspect-ratio: auto; /* Убираем фиксированное соотношение сторон */
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    .service-image {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .service-block h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .service-block p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
        -webkit-line-clamp: none; /* Убираем ограничение строк */
        overflow: visible; /* Показываем весь текст */
    }

    .services h2 {
        font-size: 1.4rem;
        padding: 0 15px;
        margin-bottom: 20px;
        line-height: 1.3;
    }
}

/* Сбрасываем все фиксированные размеры для блоков услуг */
.service-block {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: unset !important;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 15px;
}

.service-image img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
}

@media (max-width: 768px) {
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    .service-block {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: unset !important;
        margin-bottom: 20px !important;
    }

    .service-block h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    .service-block p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }

    /* Убираем все возможные ограничения по высоте */
    .services h2, 
    .service-block, 
    .service-image,
    .service-block > * {
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
    }
}

/* Стили для шапки */
header {
    background-color: #000; /* Чёрный цвет для шапки */
    color: #fff;
    height: 120px; /* Увеличиваем высоту шапки */
    width: 100%; /* Полная ширина */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Центрирование содержимого по вертикали */
    box-sizing: border-box; /* Учитываем отступы в размере шапки */
    overflow: visible !important;
    margin-bottom: 0; /* Убрали отступ после шапки */
}

.header-container {
    position: relative; /* Добавляем для правильного позиционирования дочерних элементов */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    height: 120px;
    overflow: visible !important;
}

.header-logo,
.header-menu,
.header-contacts {
    flex: 1; /* Each block takes equal space */
    text-align: center; /* Center content inside each block */
}

.header-logo {
    flex: 0 0 auto; /* Prevent the block from stretching */
    text-align: left; /* Align logo to the left */
    max-height: 60px; /* Match the height of the logo */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center the logo vertically */
    z-index: 101;
}

.header-contacts {
    flex: 0 0 auto;
    text-align: right;
    z-index: 101;
    max-width: 300px; /* Задаем максимальную ширину для адреса */
}

.header-logo img {
    max-height: 60px; /* Ограничиваем высоту логотипа */
    width: auto; /* Сохраняем пропорции логотипа */
}

/* Стили для основного меню */
.header-menu {
    display: flex !important; /* Всегда показываем меню в десктопной версии */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Скрываем кнопку меню в десктопной версии */
.mobile-menu-toggle {
    display: none !important;
}

/* Медиа-запрос для мобильной версии */
@media (max-width: 768px) {
    .header-menu {
        display: none !important; /* Скрываем меню по умолчанию на мобильных */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #000;
    }

    .header-menu.menu-open {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important; /* Показываем кнопку только на мобильных */
    }
}

/* Стили для меню и подменю */
.header-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.header-menu ul li {
    position: relative; /* Важно для позиционирования подменю */
    display: inline-block;
}

/* Стили для выпадающего подменю */
.header-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%; /* Располагаем прямо под родительским пунктом */
    left: 0;
    background: #000;
    min-width: 200px;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

/* Показываем подменю при наведении */
.header-menu ul li:hover > ul {
    display: flex !important; /* Принудительное отображение */
}

/* Стили для пунктов подменю */
.header-menu ul li ul li {
    width: 100%;
    padding: 0;
}

.header-menu ul li ul li a {
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    line-height: 1.2 !important; /* Переопределяем line-height */
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Эффект при наведении на пункты подменю */
.header-menu ul li ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00bcd4;
}

/* Удаляем подчеркивание у пунктов подменю */
.header-menu ul li ul li a::after {
    display: none;
}

/* Анимация появления подменю */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для пунктов меню */
.header-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.header-menu ul li {
    position: relative;
}

/* Стили для подменю */
.header-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
}

/* Показываем подменю при наведении */
.header-menu ul li:hover > ul {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Стили для ссылок в основном меню */
.header-menu ul li > a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Стили для ссылок в подменю */
.header-menu ul li ul li {
    width: 100%;
    padding: 0;
}

.header-menu ul li ul li a {
    padding: 8px 15px;
    line-height: 1.2;
    font-size: 14px;
    display: block;
    transition: all 0.3s ease;
}

.header-menu ul li ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00bcd4;
}

/* Стили для ссылок в подменю */
.header-menu ul li ul li a {
    line-height: 1.5;
    padding: 8px 15px;
    font-size: 14px;
    white-space: nowrap;
}

/* Эффекты при наведении */
.header-menu ul li a:hover {
    color: #00bcd4;
}

/* Медиа-запрос для мобильной версии */
@media (max-width: 768px) {
    .header-menu {
        display: none !important; /* Скрываем меню по умолчанию на мобильных */
    }

    .header-menu.menu-open {
        display: flex !important; /* Показываем при открытии */
    }

    .mobile-menu-toggle {
        display: flex !important; /* Показываем кнопку на мобильных */
    }
}

.header-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex; /* Горизонтальное расположение пунктов меню */
    gap: 20px; /* Расстояние между пунктами меню */
}

.header-menu ul li {
    display: inline-block;
}

.header-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px; /* Размер шрифта меню */
    line-height: 120px; /* Обновляем line-height под новую высоту шапки */
    position: relative;
    transition: color 0.3s ease;
}

.header-menu ul li a:hover {
    color: #00bcd4; /* Цвет при наведении */
}

.header-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #00bcd4;
    transition: width 0.3s ease;
}

.header-menu ul li a:hover::after {
    width: 100%; /* Подчеркивание при наведении */
}

/* Стили для подзаголовков в меню */
.header-menu ul li ul {
    display: none;
    position: absolute;
    background-color: #000;
    padding: 10px;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.header-menu ul li:hover ul {
    display: block;
}

.header-menu ul li ul li {
    margin: 5px 0;
}

.header-menu ul li ul li a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-menu ul li ul li a:hover {
    color: #00bcd4;
}

.header-contacts {
    position: absolute; /* Position the contacts absolutely */
    right: 20px; /* Align the contacts to the right */
    flex: 0 0 auto; /* Контакты занимают фиксированное место */
    text-align: right; /* Выравнивание контактов по правому краю */
    font-size: 14px;
    line-height: 1.4; /* Уменьшаем межстрочный интервал */
    white-space: normal; /* Разрешаем перенос текста */
    margin-left: auto; /* Отодвигаем контакты вправо */
    position: relative; /* Устанавливаем позиционирование для z-index */
    z-index: 10; /* Устанавливаем высокий z-index, чтобы текст был на переднем плане */
}

.header-contacts-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: #ffffff !important; /* Принудительно устанавливаем белый цвет текста */
    font-size: 16px; /* Увеличиваем размер шрифта */
    margin: 0; /* Убираем отступы между строками */
    line-height: 1.4; /* Уменьшаем межстрочный интервал */
    position: relative; /* Устанавливаем позиционирование для z-index */
    z-index: 10; /* Устанавливаем высокий z-index для текста */
}

/* Убедимся, что ссылки внутри контактов также белые */
.header-contacts a {
    color: #ffffff !important; /* Принудительно устанавливаем белый цвет ссылок */
    text-decoration: none; /* Убираем подчеркивание */
}

/* Стили для выпадающего меню */
.menu-item-hас-children {
    position: relative;
}

.menu-item-hас-children > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-item-hас-children:hover > ul {
    display: block;
}

.menu-item-hас-children > ul > li {
    padding: 5px 15px;
}

.menu-item-hас-children > ul > li > a {
    color: #fff;
    line-height: 1.5;
    display: block;
    padding: 5px 0;
}

/* Стили для подвала */
footer {
    position: relative; /* Устанавливаем позиционирование для предотвращения перекрытия */
    z-index: 10; /* Устанавливаем высокий z-index, чтобы подвал был поверх других элементов */
    background-color: #000; /* Чёрный цвет для подвала */
    color: #fff;
    text-align: center;
    padding: 10px 0; /* Восстановлено исходное значение */
    height: auto; /* Высота подвала зависит от содержимого */
}

nav {
    margin: 10px 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

/* Общие стили для контейнера */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Обновленные стили для секций и их контейнеров */
.services, .info {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0;
    box-sizing: border-box;
}

/* Обновленные стили для сеток */
.services-grid,
.info-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Обновленные стили для блоков */
.service-block,
.info-block {
    width: 100%;
    aspect-ratio: 1 / 0.6; /* Уменьшаем соотношение сторон в два раза */
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px; /* Уменьшаем минимальную высоту */
}

/* Стили для изображений в блоках */
.service-image,
.info-image {
    width: 100%;
    height: 150px; /* Уменьшаем высоту изображений */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Стили для текстового контента */
.service-block h3,
.info-block h3 {
    font-size: 1.2rem; /* Уменьшаем размер заголовка */
    margin: 0 0 8px 0;
    color: #333;
    flex-shrink: 0;
}

.service-block p,
.info-block p {
    font-size: 0.9rem; /* Уменьшаем размер текста */
    line-height: 1.4;
    color: #666;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Уменьшаем количество строк */
    -webkit-box-orient: vertical;
}

/* Медиа-запросы */
@media (max-width: 992px) {
    .services-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 15px;
    }
    
    .service-block,
    .info-block {
        aspect-ratio: auto;
        height: auto;
        min-height: 350px;
    }
}

/* Обновленные стили для главного контейнера */
main.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

/* Обновленные стили для секций */
.services,
.info {
    width: 100%;
    margin: 0 auto 50px;
    padding: 0;
    box-sizing: border-box;
}

/* Обновленные стили для сеток */
.services-grid,
.info-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: center;
}

/* Обновленные стили для блоков */
.service-block,
.info-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Стили для изображений в блоках */
.service-image,
.info-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.service-image img,
.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Медиа-запросы */
@media (max-width: 992px) {
    .services-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .services,
    .info {
        padding: 0 15px;
    }
}

/* Исправление переполнения по ширине */
body, html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.page-wrapper,
container,
.page-content,
.site-content,
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Исправление для .promotions (убрать ширину 100vw и отрицательные маргины) */
.promotions {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Скрыть .header-contacts на мобильных */
@media (max-width: 768px) {
    .header-contacts {
        display: none !important;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        gap: 20px;
    }
    .footer-block {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-block.footer-logo img {
        max-width: 120px;
        height: auto;
    }
}

/* Исправить размеры иконок в подвале и плавающих иконках */
.footer-contacts img,
.floating-icons img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    margin: 0 6px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .footer-contacts img,
    .floating-icons img {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
}

/* Стили для плавающих иконок */
.floating-icons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floating-icons a {
    display: block;
}
.floating-icons img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #fff;
    padding: 4px;
}

@media (max-width: 768px) {
    .floating-icons img {
        width: 56px;
        height: 56px;
        max-width: 56px;
        max-height: 56px;
    }
}

/* Исправить .footer-container для мобильных */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}
.footer-block {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    box-sizing: border-box;
}
.footer-block.footer-logo {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.footer-block.footer-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .footer-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 20px 10px;
        box-sizing: border-box;
    }
    .footer-block.footer-logo {
        height: auto;
    }
    .footer-block.footer-logo img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }
}

/* HERO BLOCK (главный баннер) */
.hero-block {
    width: 100%;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.hero-block::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,0.48); /* увеличено затемнение */
    z-index: 1;
}
.hero-block-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 40px 32px; /* увеличен внутренний отступ */
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif; /* более приятный шрифт */
    text-shadow: 0 4px 16px rgba(0,0,0,0.32), 0 2px 8px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.18); /* более выраженная тень */
}
.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 18px;
    margin-top: 60px; /* Отступ сверху для заголовка 60px */
    letter-spacing: -0.02em;
    text-shadow: 0 6px 24px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.22);
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
}
.hero-text {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 4px 16px rgba(0,0,0,0.32), 0 2px 8px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.18);
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
}
@media (max-width: 700px) {
    .hero-block {
        min-height: 180px;
        margin-bottom: 24px;
        /* margin-top: 60px;  Удалено, чтобы не было отступа сверху */
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-text {
        font-size: 1.05rem;
    }
    .hero-block-inner {
        padding: 20px 12px;
    }
}

/* Универсальный селектор для белого цвета текста и ссылок внутри hero-блока */
.hero-block,
.hero-block *,
.hero-block a {
    color: #fff !important;
}