/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Новая шапка */
header {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: white;
}

.logo i {
    margin-right: 10px;
    color: #3498db;
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Главный экран */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero-main.jpg') no-repeat center center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 50px;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
}
/* Кнопки мессенджеров: общая форма + свои цвета */
.btn-whatsapp,
.btn-telegram,
.btn-max {
    border: none;
    padding: 12px 25px;
    border-radius: 5px;          /* та же форма у всех трёх */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* WhatsApp */
.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Telegram */
.btn-telegram {
    background: #0088cc;
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

/* MAX — тот же размер/форма, но градиент */
.btn-max {
    background: linear-gradient(135deg, #3bbcff, #7b3ff1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-max:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Секции */
.section-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.services {
    padding: 60px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Адаптивность для 4 колонок */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-top: 4px solid #3498db;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #3498db;
}

/* Галерея */
.gallery {
    padding: 60px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
    margin: 0;
}

/* Процесс */
.process {
    padding: 60px 0;
    background: #34495e;
    color: white;
}

.process .section-title {
    color: white;
}

.process .section-title::after {
    background: #e74c3c;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px 0;
    border: 3px solid #3498db;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}


/* Подвал */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 0;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Адаптивность для контактов в шапке */
@media (max-width: 1024px) {
    .header-contacts {
    }
    
    .header-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 14px;
    }
}


.mobile-contacts .contact-item {
    justify-content: center;
    margin: 5px 0;
}


/* Адаптивность */
@media (max-width: 768px) {
    .header-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-line {
        flex-direction: column;
        gap: 5px;
    }
    
    .city-item {
        margin-left: 0;
    }
}
/* Карусель брендов */
.brands {
    padding: 60px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.brands-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.brands-track {
    display: flex;
    animation: carousel-scroll 25s linear infinite;
    gap: 30px;
    padding: 25px 0;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
    height: 80px;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Анимация карусели */
@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 8 - 30px * 8));
    }
}

/* Пауза при наведении */
.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

/* Адаптивность карусели */
@media (max-width: 1024px) {
    .brand-item {
        min-width: 160px;
        height: 70px;
        font-size: 14px;
        padding: 15px 20px;
    }
    
    @keyframes carousel-scroll {
        100% {
            transform: translateX(calc(-160px * 6 - 30px * 6));
        }
    }
}

@media (max-width: 768px) {
    .brand-item {
        min-width: 140px;
        height: 60px;
        font-size: 12px;
        padding: 12px 16px;
        letter-spacing: 0.5px;
    }
    
    .brands-track {
        gap: 20px;
    }
    
    @keyframes carousel-scroll {
        100% {
            transform: translateX(calc(-140px * 5 - 20px * 5));
        }
    }
}

@media (max-width: 480px) {
    .brand-item {
        min-width: 120px;
        height: 50px;
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .brands-track {
        gap: 15px;
    }
}
/* Адаптивность для логотипа */
@media (max-width: 1024px) {
    .logo {
        font-size: 26px; /* Немного меньше на планшетах */
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 22px; /* Чуть меньше на мобильных */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px; /* Минимальный размер на маленьких экранах */
        letter-spacing: 0; /* Убираем интервал между буквами */
    }
}/* Адаптивность контактов в шапке для мобильных */
@media (max-width: 1024px) {
    .header-contacts {
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: flex-end;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .contact-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-contacts {
        display: none; /* Скрываем на маленьких экранах */
    }
    
    .mobile-contacts {
        display: block; /* Показываем мобильные контакты */
    }
}

@media (max-width: 480px) {
    .mobile-contacts .contact-item {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .mobile-contacts .contact-link {
        font-size: 14px;
    }

}
/* Стили для иконок в навигации */
nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a:hover i {
    color: #3498db;
}

/* Стили для блока статей */
.articles {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
}

.articles-carousel {
    position: relative;
    overflow: hidden;
    margin: 0; /* убираем отрицательные отступы, больше не рвём макет */
}

/* Стили для страницы статьи */
.article-page {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.article-full {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.article-full h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
}

.article-full h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 40px 0 20px 0;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.article-full h3 {
    color: #34495e;
    font-size: 1.4em;
    margin: 30px 0 15px 0;
}

.article-full p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1em;
}

.article-full ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-full li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    font-size: 1.1em;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.btn-back {
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #2980b9;
    transform: translateX(-5px);
}

.social-share {
    display: flex;
    gap: 10px;
}

.btn-share {
    background: #ecf0f1;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.articles-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;
    padding: 10px 15px;
}

.article-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    min-height: auto;

}

.article-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    display: inline-block;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
}

.btn-read-more:hover {
    background: #2980b9;
    text-decoration: none;
    color: white;
}

.btn-read-more:hover {
    background: #2980b9;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-prev,
.carousel-next {
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-prev::before,
.carousel-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-prev:hover::before,
.carousel-next:hover::before {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .article-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .articles-track {
        gap: 15px;
    }
    
    .article-card h3 {
        min-height: auto;
        font-size: 1.1rem;
    }
    
    .article-icon {
        height: 50px;
    }
    
    .article-icon i {
        font-size: 2rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .articles {
        padding: 40px 0;
    }
    
    .article-card {
        padding: 20px;
        min-height: 250px;
    }
    
    .carousel-nav {
        gap: 15px;
    }
}
/* Адаптивность для карусели статей */
@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 calc(50% - 20px);
    }
}
/* Однострочная шапка как на скрине */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип слева */
.logo {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.logo i {
    margin-right: 8px;
    color: #3498db;
}

/* Навигация по центру */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #3498db;
}

/* Контакты справа - ТЕЛЕФОНЫ ДРУГ ПОД ДРУГОМ + ГОРОД */
.header-contacts {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-shrink: 0;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-link {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3498db;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-top: 3px;
}

.contact-text {
    color: #ecf0f1;
    font-size: 13px;
}


/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    
    nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    nav ul li a {
        font-size: 13px;
    }
    
    .header-contacts {
        gap: 15px;
    }
    
    .contact-link,
    .contact-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
}
/* Адаптивность для страницы статьи */
@media (max-width: 768px) {
    .article-page {
        padding: 100px 0 40px;
    }
    
    .article-full {
        padding: 30px 20px;
    }
    
    .article-full h1 {
        font-size: 2em;
    }
    
    .article-full h2 {
        font-size: 1.5em;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Исправляем контакты в шапке */
.header-contacts {
    display: flex;
    align-items: center; /* Выравниваем по вертикали с навигацией */
    gap: 25px; /* Расстояние между телефонами и городом */
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Уменьшаем расстояние между номерами - УБИРАЕМ ПОЛОСКУ */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-top: 0; /* Убираем отступ сверху */
}

/* Убираем любые границы между номерами */
.contact-item {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contact-phones {
    border: none !important;
    padding: 0 !important;
}
/* Увеличиваем шрифт навигации и города */
nav ul li a {
    font-size: 16px !important; /* Увеличиваем шрифт навигации */
}

.city-item .contact-text {
    font-size: 16px !important; /* Увеличиваем шрифт города */
    font-weight: 500;
}

/* Также увеличиваем иконки в навигации для пропорциональности */
nav ul li a i {
    font-size: 18px !important;
}

.city-item .contact-icon {
    font-size: 16px !important;
}

/* Делаем логотип кликабельным */
.logo {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #3498db;
    text-decoration: none;
}

/* Убираем стандартные стили ссылки */
.logo:hover i {
    color: #3498db;
}

/* Убираем подчеркивание только у ссылки логотипа */
a.logo {
    text-decoration: none;
}

a.logo:hover {
    text-decoration: none;
}

/* Цвета для иконок мессенджеров */
.btn-share.telegram {
    background: #0088cc;
    color: white;
}

.btn-share.telegram:hover {
    background: #006699;
    transform: scale(1.1);
}

.btn-share.whatsapp {
    background: #25D366;
    color: white;
}

.btn-share.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* Увеличиваем размер иконок в кнопках поделиться */
.btn-share.telegram i,
.btn-share.whatsapp i {
    font-size: 1.4em; /* Увеличиваем размер иконки */
}

.btn-share.telegram:hover i,
.btn-share.whatsapp:hover i {
    font-size: 1.4em; /* Сохраняем размер при наведении */
}

/* Стили для кликабельных телефонов в подвале */
.contact-details a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Чтобы телефоны выглядели как обычный текст но были кликабельны */
.contact-item a.phone-link {
    color: #555 !important; /* Тот же цвет что и у обычного текста */
    text-decoration: none;
}

.contact-item a.phone-link:hover {
    color: #3498db !important;
    text-decoration: underline;
}

/* На мобильных делаем более заметными */
@media (max-width: 768px) {
    .contact-item a.phone-link {
        color: #3498db !important;
        font-weight: 500;
        padding: 2px 4px;
        border-radius: 3px;
    }
    
    .contact-item a.phone-link:hover {
        background-color: rgba(52, 152, 219, 0.1);
    }
}

/* Стили для кликабельных карточек услуг */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    border-top: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 8px 8px 0 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Выравниваем иконки услуг как у статей */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #3498db;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
}

/* Стрелка для индикации кликабельности */
.card-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 900;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px) scale(0.8);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .service-card {
        padding: 20px;
    }
    
    .card-arrow {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Жирная стрелка с фоном */
.card-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 900;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px) scale(0.8);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Стили для email ссылки */
.email-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Стили для страницы заправки картриджей */

/* Хлебные крошки */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #2c3e50;
    font-weight: 500;
}

/* Основной контент */
.refill-service {
    padding: 40px 0;
    background: white;
}

/* Фильтры */
.refill-filters {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-filter {
    background: white;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.brand-filter:hover {
    border-color: #3498db;
    color: #3498db;
}

.brand-filter.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Таблица с картриджами */
.refill-table {
    margin-bottom: 50px;
}

.brand-section {
    margin-bottom: 30px;
}

.brand-title {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.cartridges-list {
    display: grid;
    gap: 10px;
}

.cartridge-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cartridge-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.cartridge-model {
    font-weight: 500;
    color: #2c3e50;
}

.cartridge-price {
    font-weight: 700;
    color: #3498db;
    font-size: 1.1em;
}

.btn-order {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}


/* Секция заказа */
.order-section {
    background: #34495e;
    padding: 40px 0;
}

.order-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-call {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
/* ИСПРАВЛЕНИЕ ДЛЯ КОНТАКТОВ В ШАПКЕ */
.header-contacts .contact-item {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    align-items: center !important;
    gap: 6px !important;
}


/* Восстановление стилей шапки */
header {
    padding: 15px 0 !important;
}


/* ИСПРАВЛЕНИЕ ОТСТУПОВ ШАПКИ */
.header-container {
    padding: 0 20px !important;
}

/* Стили для страницы заправки - упрощенная версия */
.refill-service {
    padding: 80px 0 40px;
    background: white;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.brand-section {
    margin-bottom: 40px;
}

.brand-title {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.cartridges-list {
    display: grid;
    gap: 8px;
}

.cartridge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cartridge-item:hover {
    background: #e9ecef;
}

.cartridge-model {
    font-weight: 500;
    color: #2c3e50;
}

.cartridge-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 1.1em;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* Кнопки как в статьях */
.article-actions {
    padding: 40px 0;
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-buttons {
        justify-content: center;
    }
    
    .cartridge-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.help-notice {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0 40px;
    border-left: 4px solid #3498db;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.help-content i {
    font-size: 2em;
    color: #3498db;
}

.help-content h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.help-content p {
    color: #666;
    margin: 0;
}

.help-notice .phone-link {
    color: #2c3e50;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-notice .phone-link:hover {
    color: #3498db;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Фиксированные стили для карточек статей */
.articles-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;
    padding: 10px 15px;
}

/* ФИКС ДЛЯ КАРТОЧЕК СТАТЕЙ */
.article-card {
    min-height: 280px !important;
    width: 100% !important;
}

.article-card h3 {
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.article-card p {
    flex-grow: 1 !important;
}

/* Гарантия правильного отображения на всех экранах */
@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 calc(50% - 20px) !important;
    }
}

@media (max-width: 768px) {
    .article-card {
        flex: 0 0 calc(100% - 20px) !important;
        min-height: 250px !important;
    }
    
    .article-card h3 {
        min-height: auto !important;
    }
}

/* Жирные номера телефонов только в шапке */
.header-contacts .contact-link {
    font-weight: 700 !important;
    font-size: 14px;
}


/* СТИЛИ ДЛЯ СТРАНИЦЫ ДОСТАВКИ */

.notice-warning {
    background: #fff3cd;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.delivery-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.delivery-summary h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
}

.delivery-summary h3 i {
    color: #007bff;
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    min-width: 600px; /* таблица шире узкого экрана → появляется скролл */
}

.delivery-table th,
.delivery-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.95em;
}

.delivery-table th {
    background: #f8f9fa;
    font-weight: 700;      /* заголовок поувереннее */
    color: #2c3e50;
}

.delivery-table td {
    font-weight: 400;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}

/* Чуть выразительнее текст таблицы на десктопе (без жирного Arial) */
@media (min-width: 769px) {
    .delivery-table td {
        font-weight: 400;    
        font-size: 1.02em;
        color: #222;
    }
}


/* Крупнее и читаемее на планшетах и телефонах */
@media (max-width: 768px) {
    .delivery-table th,
    .delivery-table td {
        font-size: 1.05em;
        padding: 10px 8px;
    }
}

/* Ещё чуть крупнее на очень узких экранах */
@media (max-width: 480px) {
    .delivery-table th,
    .delivery-table td {
        font-size: 1.12em;
        padding: 10px 6px;
    }
}


.delivery-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 6px;

    /* прячем системный скроллбар, оставляем только наш ползунок */
    scrollbar-width: none;              /* Firefox */
}

.delivery-table-wrapper::-webkit-scrollbar {
    display: none;                      /* Chrome / Safari / Edge */
}


.delivery-table {
    min-width: 600px; /* не даём таблице ломаться в кашу на узких экранах */
}

.general-conditions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #007bff;
}

.conditions-section {
    margin-bottom: 1.5rem;
}

.conditions-section:last-child {
    margin-bottom: 0;
}

.conditions-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditions-section h4 i {
    color: #007bff;
}

.schedule-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ КОНТАКТОВ ===== */
.contacts {
    padding: 60px 0;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
    align-items: start;
}

/* Карта */
.contacts-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Контактная информация */
.contacts-info {
    width: 100%;
}

.contact-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    color: #3498db;
    font-size: 20px;
    width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 16px;
}

.contact-details p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 16px;
    text-shadow: 0.3px 0 0 currentColor; /* Легкая "псевдо-жирность" */
    font-weight: 500; /* ДОБАВИЛ жирность */
    word-break: break-word; /* Перенос длинных слов */
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ===== */

/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: 1fr 450px;
        gap: 25px;
    }
    
    .contact-card {
        padding: 22px;
    }
    
    .contact-details p {
        font-size: 15px;
    }
}

/* Небольшие планшеты (900px и меньше) */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr 400px;
        gap: 20px;
    }
    
    .map-iframe {
        height: 350px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-item {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }
}

/* Мобильные (768px и меньше) - ПОЛНОСТЬЮ ПЕРЕПИСАННЫЙ БЛОК */
@media (max-width: 768px) {
    .contacts {
        padding: 40px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contacts-map {
        border-radius: 10px;
    }
    
    .map-iframe {
        height: 300px;
    }
    
    .contact-card {
        padding: 25px 20px;
        text-align: left;
        margin: 0 -10px;
        width: calc(100% + 20px);
        border-radius: 0;
        box-shadow: none;
        background: #f8f9fa;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 12px;
        text-align: left;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .contact-item i {
        font-size: 18px;
        margin-top: 2px;
        align-self: flex-start;
    }
    
    .contact-details {
        min-width: 0;
        flex: 1;
    }
    
    .contact-details strong {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .contact-details p {
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {
    .contacts {
        padding: 30px 0;
    }
    
    .contacts-grid {
        gap: 20px;
    }
    
    .contact-card {
        padding: 20px 15px;
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
    
    .map-iframe {
        height: 250px;
    }
    
    .contact-item {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }
    
    .contact-item i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .contact-details strong {
        font-size: 14px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .contact-item:nth-child(1) .contact-details p {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Очень маленькие экраны (360px и меньше) */
@media (max-width: 360px) {
    .contact-card {
        padding: 15px 10px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .contact-item {
        gap: 8px;
    }
    
    .contact-item i {
        font-size: 14px;
        width: 16px;
    }
    
    .contact-details strong {
        font-size: 13px;
    }
    
    .contact-details p {
        font-size: 12px;
    }
    
    .contact-item:nth-child(1) .contact-details p {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .map-iframe {
        height: 200px;
    }
}

/* Ползунок по умолчанию скрыт */
.delivery-scroll-range {
    display: none;
}

/* Показываем только на мобильных */
@media (max-width: 768px) {
    .delivery-scroll-range {
        display: block;
        width: 100%;
        margin: 10px 0;
        height: 20px;
    }
}

.contacts-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.contacts-map-wide {
    grid-column: 1 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .contacts-grid-two {
        grid-template-columns: 1fr;
    }

    .contacts-map-wide {
        grid-column: 1;
    }
}


/* Карта в новой сетке */
.contacts-map-wide {
    width: 100%;
}

/* Чтобы iframe всегда был адаптивным */
.contacts-map-wide .map-iframe {
    width: 100% !important;
    height: 350px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .contacts-map-wide .map-iframe {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .contacts-map-wide .map-iframe {
        height: 250px !important;
    }
}

/* Переключение версии адреса для десктопа и мобил */
.addr-desktop {
    display: inline;
}

.addr-mobile {
    display: none;
}

/* На мобильных показываем версию с переносами */
@media (max-width: 768px) {
    .addr-desktop {
        display: none;
    }

    .addr-mobile {
        display: inline;
    }
}
