/* Общие стили */
* {
    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: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.services-grid .service-card-link {
    flex: 1 1 260px;
    max-width: 280px;
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .services-grid .service-card-link {
        width: 100%;
        max-width: 420px;
    }
}

.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;
    }
}

/* ===== Новый каталог: картридж -> принтер -> услуга ===== */
.catalog-page { padding: 30px 0 70px; background: #f7f9fc; min-height: 70vh; }
.breadcrumbs { display:flex; gap:9px; flex-wrap:wrap; align-items:center; font-size:14px; margin: 0 0 24px; color:#677489; }
.breadcrumbs a { color:#2457a7; text-decoration:none; }
.catalog-heading { margin: 10px 0 26px; max-width: 850px; }
.catalog-heading h1, .product-hero h1 { font-size: clamp(30px,4vw,48px); line-height:1.08; margin:10px 0 16px; color:#172033; }
.catalog-heading p, .product-lead { font-size:18px; line-height:1.6; color:#536176; }
.product-hero { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,.75fr); gap:28px; align-items:stretch; margin-bottom:30px; }
.product-hero-main, .service-price-card, .catalog-section, .catalog-cta { background:#fff; border-radius:18px; box-shadow:0 7px 24px rgba(25,49,83,.08); }
.product-hero-main { padding:36px; }
.product-badge { display:inline-block; padding:7px 11px; border-radius:999px; background:#eaf2ff; color:#2457a7; font-weight:700; font-size:13px; }
.compatibility-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.compatibility-chips span, .compatibility-chips a { padding:8px 12px; border-radius:999px; background:#f0f3f7; color:#334155; text-decoration:none; font-size:14px; }
.compatibility-chips a { color:#2457a7; font-weight:700; }
.service-price-card { padding:28px; display:flex; flex-direction:column; justify-content:center; }
.price-line { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid #e8edf3; }
.price-line small { display:block; color:#6b7789; margin-bottom:5px; }
.price-line strong { font-size:26px; color:#172033; }
.price-line i { font-size:24px; color:#2457a7; }
.price-loading { font-size:18px !important; color:#6b7789 !important; }
.catalog-primary-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; margin-top:20px; background:#2457a7; color:#fff !important; text-decoration:none; border-radius:10px; padding:14px 18px; font-weight:700; }
.price-note { color:#738095; line-height:1.45; font-size:13px; margin:14px 0 0; }
.catalog-section { padding:32px; margin:22px 0; }
.catalog-section h2, .catalog-cta h2 { margin:0 0 18px; color:#172033; font-size:27px; }
.catalog-section p { color:#536176; line-height:1.7; }
.service-option-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.service-option { border:1px solid #e5eaf1; border-radius:14px; padding:22px; }
.service-option > i { font-size:25px; color:#2457a7; margin-bottom:13px; }
.service-option h3 { margin:0 0 10px; color:#172033; }
.service-option p { margin:0 0 15px; }
.service-option a, .catalog-inline-link { color:#2457a7; text-decoration:none; font-weight:700; }
.option-price { border-top:1px solid #edf0f4; padding-top:12px; color:#536176; }
.catalog-two-column { display:grid; grid-template-columns:1.4fr .7fr; gap:30px; }
.catalog-list { margin:15px 0; padding-left:22px; color:#364152; line-height:1.9; }
.catalog-list a { color:#2457a7; }
.fact-card { background:#f6f9fe; border:1px solid #dce8f8; border-radius:14px; padding:22px; }
.fact-card h3 { margin-top:0; }
.fact-card dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:0; }
.fact-card dt { color:#718096; }.fact-card dd { margin:0; font-weight:700; text-align:right; }
.muted-text { font-size:14px; color:#768399 !important; }
.process-list { padding-left:24px; line-height:1.7; color:#536176; }.process-list li { margin:10px 0; }
.faq-section details { border-top:1px solid #e6ebf1; padding:14px 0; }.faq-section details:last-child { border-bottom:1px solid #e6ebf1; }.faq-section summary { cursor:pointer; font-weight:700; color:#27364c; }.faq-section details p { margin-bottom:0; }
.catalog-cta { padding:28px 32px; display:flex; justify-content:space-between; align-items:center; gap:25px; margin:22px 0; background:linear-gradient(135deg,#eef5ff,#fff); border:1px solid #dce8f8; }.catalog-cta h2 { margin-bottom:7px; }.catalog-cta p { margin:0; color:#536176; }.catalog-cta .catalog-primary-btn { margin:0; white-space:nowrap; }
.related-grid, .catalog-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.related-grid a, .catalog-model-card { display:flex; flex-direction:column; gap:6px; padding:20px; border:1px solid #e3e9f1; border-radius:12px; text-decoration:none; color:#172033; background:#fff; }.related-grid span, .catalog-model-card p { color:#617086; }.catalog-model-card h3 { margin:10px 0 0; font-size:23px; }
.cartridge-item.has-detail-link .cartridge-model a { color:#2457a7; text-decoration:none; font-weight:700; }.cartridge-item.has-detail-link .cartridge-model a:hover { text-decoration:underline; }.catalog-detail-pill { font-size:12px; background:#eaf2ff; color:#2457a7; border-radius:999px; padding:3px 7px; margin-left:8px; white-space:nowrap; }
@media (max-width:900px){.product-hero,.catalog-two-column{grid-template-columns:1fr}.service-option-grid,.related-grid,.catalog-card-grid{grid-template-columns:1fr}.catalog-cta{align-items:flex-start;flex-direction:column}.catalog-cta .catalog-primary-btn{width:100%}.product-hero-main,.catalog-section{padding:24px}}
.catalog-service-intro{max-width:850px;margin:-10px auto 12px;text-align:center;color:#536176;line-height:1.6;font-size:17px}
.catalog-service-seo{max-width:900px;margin:38px auto 0;padding:24px 26px;border:1px solid #e2e9f2;border-radius:12px;background:#fff;color:#536176;line-height:1.65}.catalog-service-seo h2{margin:0 0 12px;color:#24364d;font-size:24px}.catalog-service-seo p{margin:0 0 10px}.catalog-service-seo p:last-child{margin-bottom:0}
@media (max-width:768px){.catalog-service-intro{margin-top:0;font-size:16px}.catalog-service-seo{margin-top:26px;padding:20px}}

/* ===== Catalog Stage 2 ===== */
.product-hero-v2{align-items:stretch}.product-kicker{display:flex;align-items:center;gap:10px;margin-bottom:12px}.availability-dot{font-size:13px;font-weight:800;color:#147a46;background:#e8f8ef;border:1px solid #c7ecd7;padding:6px 10px;border-radius:999px}.hero-facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.hero-facts span,.hero-facts a{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:10px;background:#fff;border:1px solid #e1e8f2;color:#40506a;text-decoration:none;font-size:14px}.hero-facts i{color:#2c91e8}.service-price-card-v2{box-shadow:0 18px 45px rgba(28,52,83,.12)}.price-card-label{font-weight:800;color:#66748a;text-transform:uppercase;letter-spacing:.07em;font-size:12px;margin-bottom:5px}.price-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin-top:15px}.catalog-secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cdd8e8;color:#24364d;background:#fff;border-radius:9px;padding:12px 16px;text-decoration:none;font-weight:800}.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:0 0 24px;background:#dfe8f3;border:1px solid #dfe8f3;border-radius:14px;overflow:hidden}.trust-strip span{background:#fff;padding:17px 14px;display:flex;justify-content:center;align-items:center;gap:9px;font-size:14px;font-weight:700;color:#40506a}.trust-strip i{color:#2c91e8}.eyebrow{display:block;color:#2c91e8;text-transform:uppercase;letter-spacing:.09em;font-size:12px;font-weight:900;margin-bottom:7px}.section-heading-row{display:flex;justify-content:space-between;gap:18px;align-items:end}.section-heading-row>span{color:#7a879a;font-size:14px}.service-option-grid-v2 .service-option{display:flex;flex-direction:column;min-height:265px}.option-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#eaf4ff;color:#2c91e8;font-size:19px;margin-bottom:14px}.option-footer{border-top:1px solid #edf1f6;margin-top:auto;padding-top:14px;display:flex;justify-content:space-between;gap:10px;align-items:center}.option-footer a{font-weight:800;text-decoration:none}.compatibility-list{columns:2;column-gap:28px}.compatibility-list li{break-inside:avoid}.printer-link-card{margin-top:18px;padding:14px;border-radius:10px;background:#f4f8fd;text-decoration:none;display:flex;flex-direction:column;gap:4px;color:#24364d}.printer-link-card small{color:#6e7c90}.printer-link-card span{color:#2c91e8;font-size:13px;font-weight:800;margin-top:5px}.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.process-grid>div{padding:20px;border-radius:12px;background:#f7f9fc;border:1px solid #e7edf4}.process-grid b{display:block;font-size:28px;color:#c6d7ea;margin-bottom:15px}.process-grid h3{font-size:17px;margin:0 0 7px}.process-grid p{margin:0;color:#627086;font-size:14px}.catalog-cta-v2{background:linear-gradient(135deg,#eff7ff,#f7fbff)}.cta-buttons{display:flex;gap:10px}.catalog-heading-v2{padding-bottom:22px}.catalog-search-box{max-width:820px;margin:25px auto 17px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#fff;border:1px solid #d8e2ef;border-radius:12px;padding:7px 8px 7px 16px;box-shadow:0 10px 30px rgba(31,54,83,.07)}.catalog-search-box i{color:#8390a4}.catalog-search-box input{border:0;outline:0;padding:12px 4px;font-size:16px;min-width:0}.catalog-search-box button{border:0;background:#edf3fa;color:#496077;border-radius:8px;padding:10px 13px;cursor:pointer;font-weight:700}.catalog-stats{display:flex;justify-content:center;gap:25px;flex-wrap:wrap;color:#65748a}.catalog-stats strong{color:#1c2d44}.catalog-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.catalog-card-status{font-size:11px;text-transform:uppercase;font-weight:900;color:#147a46}.catalog-no-results{text-align:center;padding:30px;border:1px dashed #cbd7e6;border-radius:12px;color:#617086}.searchable-card[hidden],.brand-catalog-section[hidden]{display:none!important}.printer-hero{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;padding:42px;margin:18px 0 24px;border:1px solid #e0e8f2;border-radius:16px;background:linear-gradient(135deg,#f6faff,#fff)}.printer-hero h1{font-size:42px;line-height:1.12;margin:4px 0 12px;color:#1d2c42}.printer-hero p{max-width:760px;color:#5b6a80;font-size:18px;line-height:1.6}.printer-hero-icon{width:110px;height:110px;border-radius:24px;background:#eaf4ff;display:grid;place-items:center;color:#2c91e8;font-size:42px}.printer-cartridge-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.printer-cartridge-card{padding:22px;border:1px solid #e2e9f2;border-radius:12px;display:flex;gap:20px;justify-content:space-between;align-items:center}.printer-cartridge-card h3{margin:9px 0 5px}.printer-cartridge-card p{margin:0;color:#69788e}.compact-btn{padding:10px 13px;white-space:nowrap}.inline-btn{display:inline-flex;margin-top:10px}.catalog-model-card{transition:transform .16s ease,box-shadow .16s ease}.catalog-model-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(30,50,75,.09)}
@media(max-width:900px){.trust-strip{grid-template-columns:1fr 1fr}.process-grid{grid-template-columns:1fr 1fr}.compatibility-list{columns:1}.price-actions{grid-template-columns:1fr}.cta-buttons{width:100%;flex-direction:column}.printer-hero{grid-template-columns:1fr;padding:26px}.printer-hero-icon{display:none}.printer-hero h1{font-size:32px}.printer-cartridge-grid{grid-template-columns:1fr}.printer-cartridge-card{align-items:flex-start;flex-direction:column}.compact-btn{width:100%}}
@media(max-width:560px){.trust-strip{grid-template-columns:1fr}.process-grid{grid-template-columns:1fr}.catalog-search-box{grid-template-columns:auto 1fr}.catalog-search-box button{grid-column:1/-1}.hero-facts{flex-direction:column}.hero-facts span,.hero-facts a{width:100%}}


/* ===== Catalog Stage 3 ===== */
.global-catalog-search{background:#f4f8fc;border-bottom:1px solid #e0e8f2;padding:10px 0}.global-catalog-search form{max-width:860px;margin:0 auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:#fff;border:1px solid #d7e2ef;border-radius:10px;overflow:hidden}.global-catalog-search i{margin-left:15px;color:#7b8ba1}.global-catalog-search input{border:0;outline:0;padding:12px;font-size:14px;min-width:0}.global-catalog-search button{height:100%;border:0;background:#2457a7;color:#fff;padding:0 20px;font-weight:800;cursor:pointer}.product-hero-v3{align-items:stretch}.product-hero-v3 .product-hero-main{display:flex;flex-direction:column}.product-hero-v3 .product-lead{max-width:720px}.hero-compat{margin-top:26px;padding-top:20px;border-top:1px solid #e8edf4}.hero-compat>strong{display:block;color:#25364d;margin-bottom:11px}.hero-compat-chips{display:flex;flex-wrap:wrap;gap:8px}.hero-compat-chips span,.hero-compat-chips a{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dce6f1;border-radius:9px;background:#f8fbff;color:#40506a;text-decoration:none;font-size:13px}.hero-compat-chips a{color:#2457a7;font-weight:700}.hero-compat-chips i{color:#2c91e8}.hero-compat-chips .compat-more{background:#eef4fb;font-weight:700}.hero-compat-link{display:inline-block;margin-top:11px;color:#2457a7;text-decoration:none;font-size:13px;font-weight:800}.chip-status{display:flex;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid #e8edf3}.chip-status>i{font-size:22px;color:#2c91e8}.chip-status small,.chip-status span{display:block;color:#718096}.chip-status strong{display:block;color:#26374d;margin:2px 0;font-size:15px}.chip-status span{font-size:12px}.product-hero-v3 .price-actions .catalog-primary-btn{margin-top:0}.service-option-grid-v2 .service-option{min-height:225px}.service-option-grid-v2 .service-option p{line-height:1.55}.header-container nav ul{gap:18px}.header-container nav a{white-space:nowrap}
@media(max-width:1100px){.header-container nav li a{font-size:13px}.header-contacts{font-size:13px}.product-hero-v3{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:900px){.global-catalog-search{padding:8px 12px}.product-hero-v3{grid-template-columns:1fr}.hero-compat-chips{flex-direction:column}.hero-compat-chips span,.hero-compat-chips a{width:100%}}
@media(max-width:560px){.global-catalog-search form{grid-template-columns:auto 1fr}.global-catalog-search button{grid-column:1/-1;padding:10px}.hero-compat{margin-top:20px}}


/* ===== Catalog Stage 4 ===== */
.compat-more-button{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dce6f1;border-radius:9px;background:#eef4fb;color:#2457a7;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.compat-more-button:hover{background:#e4eef9}.compat-extra[hidden]{display:none!important}.order-choice-btn{border:0;cursor:pointer;font:inherit}.order-choice-dialog{border:0;padding:0;border-radius:18px;max-width:560px;width:calc(100% - 32px);box-shadow:0 28px 80px rgba(18,37,62,.28);background:transparent}.order-choice-dialog::backdrop{background:rgba(15,28,45,.5);backdrop-filter:blur(2px)}.order-choice-card{position:relative;background:#fff;border-radius:18px;padding:28px}.order-choice-card h2{margin:3px 0 7px;font-size:28px;color:#17273d}.order-choice-model{margin:0 0 20px;color:#607086}.order-choice-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border-radius:50%;border:1px solid #dce4ee;background:#fff;color:#40506a;font-size:25px;line-height:1;cursor:pointer}.order-choice-grid{display:grid;gap:10px}.order-channel{display:flex;align-items:center;gap:14px;padding:15px 16px;border-radius:12px;text-decoration:none;border:1px solid #dfe7f0;color:#20334d;background:#f9fbfd}.order-channel:hover{border-color:#b9cee6;background:#f3f8fd}.order-channel>i{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#eaf4ff;color:#2457a7;font-size:18px}.order-channel span{display:flex;flex-direction:column;gap:2px}.order-channel strong{font-size:16px}.order-channel small{color:#708097}.order-channel-telegram>i{color:#168bd2}.order-channel-max>i{color:#7253d8}.order-choice-hint{margin:18px 0 0;padding-top:16px;border-top:1px solid #edf1f5;color:#6d7c90;font-size:13px;line-height:1.5}.catalog-primary-btn.order-choice-btn{appearance:none}.price-actions .order-choice-btn{width:100%}@media(max-width:560px){.order-choice-card{padding:22px 18px}.order-choice-card h2{font-size:24px}}


/* ===== Stage 5: polished contact modal ===== */
body.modal-open { overflow: hidden; }

.contact-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 48, 0.58);
  backdrop-filter: blur(3px);
}

.contact-choice-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 31, 48, 0.28);
  padding: 30px;
  color: #10253b;
}

.contact-choice-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4fa;
  color: #10253b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.contact-choice-kicker {
  color: #1d75d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.contact-choice-dialog h2 {
  margin: 0 42px 6px 0;
  font-size: 30px;
  line-height: 1.15;
}

.contact-choice-model {
  color: #64778b;
  margin-bottom: 22px;
}

.contact-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-choice-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  color: #10253b;
  text-decoration: none;
  background: #fff;
}

.contact-choice-action:hover {
  border-color: #2b67b8;
  background: #f7fbff;
}

.contact-choice-action--primary {
  background: #2b67b8;
  border-color: #2b67b8;
  color: #fff;
}

.contact-choice-action--primary:hover {
  background: #245aa3;
}

.contact-choice-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eaf3ff;
  color: #1d75d8;
  font-size: 18px;
}

.contact-choice-action--primary .contact-choice-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.contact-choice-action span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-choice-action b {
  font-size: 16px;
}

.contact-choice-action small {
  font-size: 13px;
  opacity: .78;
}

.contact-choice-hint {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6edf4;
  color: #64778b;
  font-size: 14px;
  line-height: 1.45;
}

.price-note {
  margin-top: 4px;
  font-size: 12px;
  color: #728399;
}

@media (min-width: 640px) {
  .contact-choice-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-choice-action {
    align-items: flex-start;
    min-height: 104px;
    flex-direction: column;
  }
}

@media (max-width: 639px) {
  .contact-choice-dialog {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }
  .contact-choice-dialog h2 {
    font-size: 24px;
  }
}


/* ===== Global contacts + feedback form ===== */
.site-contact-footer {
  margin-top: 56px;
  background: #0f2236;
  color: #fff;
  padding: 54px 0 22px;
}

.site-contact-footer .eyebrow { color: #8bc0ff; }

.site-contact-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.site-contact-footer h2 {
  color: #fff;
  margin: 8px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.site-contact-footer p {
  color: #c3d0de;
  line-height: 1.6;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.footer-contact-card {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}

.footer-contact-card:hover {
  background: rgba(255,255,255,.10);
}

.footer-contact-card strong { font-size: 13px; color: #a9c7e8; }
.footer-contact-card span { font-size: 18px; font-weight: 700; }
.footer-contact-card small { color: #9fb0c0; }

.site-contact-footer__form-wrap {
  background: #fff;
  color: #10253b;
  padding: 26px;
  border-radius: 16px;
}

.site-contact-footer__form-wrap h2 {
  color: #10253b;
  margin-top: 0;
}

.site-feedback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feedback-field--full,
.feedback-form__bottom {
  grid-column: 1 / -1;
}

.feedback-field label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #3b4f63;
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd8e3;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  color: #10253b;
  background: #fff;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: #2b67b8;
  box-shadow: 0 0 0 3px rgba(43,103,184,.10);
}

.feedback-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.feedback-form__bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.feedback-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.feedback-status {
  margin: 0 !important;
  font-size: 14px;
}

.feedback-status.is-success { color: #137333 !important; }
.feedback-status.is-error { color: #b42318 !important; }

.site-contact-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-contact-footer__bottom p,
.site-contact-footer__bottom small {
  margin: 0;
  color: #8fa2b5;
}

@media (max-width: 820px) {
  .site-contact-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-feedback-form {
    grid-template-columns: 1fr;
  }

  .feedback-field,
  .feedback-field--full,
  .feedback-form__bottom {
    grid-column: 1;
  }

  .site-contact-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}


.footer-form-kicker {
  display: inline-block;
  margin-bottom: 2px;
}
.footer-form-intro {
  margin: -4px 0 18px !important;
  color: #617487 !important;
  font-size: 14px;
}
#feedback-form {
  scroll-margin-top: 24px;
}
#footerContactsTitle {
  scroll-margin-top: 24px;
}


/* Footer mobile contact + Telegram/MAX */
.site-contact-footer .footer-mobile-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 14px 16px !important;
}
.site-contact-footer .footer-mobile-info {
  display: grid;
  gap: 3px;
}
.site-contact-footer .footer-mobile-info strong {
  font-size: 13px;
  color: #a9c7e8;
}
.site-contact-footer .footer-mobile-number {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.site-contact-footer .footer-mobile-info small {
  color: #9fb0c0;
}
.site-contact-footer .footer-messenger-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-contact-footer .footer-messenger-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
}
.site-contact-footer .footer-messenger-btn:hover {
  background: rgba(255,255,255,.15);
}
@media (max-width: 560px) {
  .site-contact-footer .footer-mobile-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}


/* CF259A safe visual test: no changes to price-card HTML/JS */
@media (min-width: 901px) {
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main::after {
    content: "";
    display: block;
    width: 190px;
    height: 190px;
    margin-top: 18px;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    background: #fff url("/images/catalog/hp-cf259a.jpg") center / contain no-repeat;
  }
}
@media (max-width: 900px) {
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main::after {
    content: "";
    display: block;
    width: 145px;
    height: 145px;
    margin-top: 16px;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    background: #fff url("/images/catalog/hp-cf259a.jpg") center / contain no-repeat;
  }
}


/* CF259A photo placement v2 — top-right of LEFT hero card only */
@media (min-width: 901px) {
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main {
    position: relative;
    padding-right: 235px !important;
    min-height: 330px;
  }

  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main::after {
    content: "";
    position: absolute;
    top: 54px;
    right: 28px;
    width: 185px;
    height: 185px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent url("/images/catalog/hp-cf259a.jpg") center / contain no-repeat;
  }
}

/* On tablets/phones keep normal document flow so text never gets squeezed. */
@media (max-width: 900px) {
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main {
    padding-right: initial !important;
  }

  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main::after {
    content: "";
    position: static;
    display: block;
    width: 145px;
    height: 145px;
    margin: 16px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent url("/images/catalog/hp-cf259a.jpg") center / contain no-repeat;
  }
}


/* Visual compatible-printer family card */
.compat-printer-family-photo {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 330px;
  margin: 10px 0 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fff;
  color: #172b4d !important;
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.compat-printer-family-photo:hover {
  border-color: #b8cbe0;
  box-shadow: 0 5px 16px rgba(25, 58, 92, .08);
  transform: translateY(-1px);
}
.compat-printer-family-photo img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
}
.compat-printer-family-photo span {
  display: grid;
  gap: 3px;
}
.compat-printer-family-photo strong {
  font-size: 14px;
  line-height: 1.25;
}
.compat-printer-family-photo small {
  font-size: 12px;
  color: #66788a;
}
@media (max-width: 560px) {
  .compat-printer-family-photo {
    display: flex !important;
    max-width: 100%;
  }
  .compat-printer-family-photo img {
    width: 82px;
    height: 64px;
  }
}


/* CF259A: let compatible-printer area use the full width of the left card */
@media (min-width: 901px) {
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main {
    padding-right: 28px !important;
  }

  /* Reserve photo space only in the upper content; compatibility can flow underneath. */
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main > h1,
  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main > h1 ~ p:first-of-type {
    max-width: calc(100% - 215px);
  }

  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .product-hero-main::after {
    top: 54px;
    right: 28px;
  }

  body:has(.order-choice-btn[data-model="HP CF259A (59A)"]) .compat-printer-family-photo {
    max-width: 330px;
  }
}


/* CF259A compatible printer family grid */
.compat-printer-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 10px 0 14px;
}
.compat-printer-family-grid .compat-printer-family-photo {
  display: flex !important;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 9px;
  box-sizing: border-box;
}
.compat-printer-family-grid .compat-printer-family-photo img,
.compat-printer-family-grid .compat-photo-placeholder {
  width: 82px;
  height: 64px;
  flex: 0 0 82px;
  object-fit: contain;
}
.compat-printer-family-grid .compat-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f6f9;
  color: #7a8998;
  font-size: 14px;
  font-weight: 800;
}
.compat-printer-family-grid .compat-printer-family-photo strong {
  font-size: 13px;
}
.compat-printer-family-grid .compat-printer-family-photo small {
  line-height: 1.25;
}
.compat-printer-no-photo {
  cursor: default;
}
@media (max-width: 760px) {
  .compat-printer-family-grid {
    grid-template-columns: 1fr;
  }
}


/* Slightly larger printer visuals for easier recognition */
@media (min-width: 761px) {
  .compat-printer-family-grid .compat-printer-family-photo img {
    width: 96px;
    height: 74px;
    flex-basis: 96px;
  }
}


/* M404 printer page — visual alignment with cartridge pages */
.printer-hero-photo {
  width: 230px;
  height: 150px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.printer-hero-photo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.printer-cartridge-name {
  color:#10213b !important;
  text-decoration:none !important;
}
.printer-cartridge-name:hover {
  color:#1769d2 !important;
  text-decoration:underline !important;
}
.printer-cart-thumb {
  display:block;
  width:120px;
  height:90px;
  object-fit:contain;
  margin:0 0 10px;
}
@media(max-width:700px){
  .printer-hero-photo{width:170px;height:115px}
  .printer-cart-thumb{width:100px;height:76px}
}

.printer-order-choice-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-width:180px;min-height:58px;padding:10px 18px;border:0;border-radius:11px;
  background:#2860b5;color:#fff;font:inherit;font-weight:700;cursor:pointer;
}
.printer-order-choice-btn i{font-size:16px}.printer-order-choice-btn span{line-height:1.35}
.printer-order-modal[hidden]{display:none!important}
.printer-order-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.printer-order-backdrop{position:absolute;inset:0;background:rgba(10,25,45,.58)}
.printer-order-dialog{position:relative;z-index:1;width:min(520px,100%);padding:28px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}
.printer-order-dialog h2{margin:0 35px 6px 0;color:#10213b}.printer-order-dialog>p{margin:0 0 20px;color:#607087}
.printer-order-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:30px;cursor:pointer;color:#617187}
.printer-order-actions{display:grid;gap:10px}
.printer-order-actions>a{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid #dce5ef;border-radius:11px;color:#10213b!important;text-decoration:none!important;font-weight:800}
.printer-order-actions>a:hover{border-color:#9ebce1;background:#f7faff}
.printer-order-actions i{width:24px;color:#1769d2;text-align:center;font-size:18px}
.printer-order-actions span{display:grid;gap:2px}.printer-order-actions small{font-size:11px;color:#718096;font-weight:500}
.printer-order-form-link{display:block;margin-top:18px;color:#1769d2!important;text-decoration:none!important;font-weight:700;text-align:center}
body.modal-open{overflow:hidden}

.printer-order-choice-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.compat-printer-model-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.compat-printer-model-link:hover,
.compat-printer-model-link:focus-visible {
    color: #2588dc;
    text-decoration: underline;
}

.compat-model-pages {
    margin: 18px 0 0;
    line-height: 1.8;
}

/* О компании: изолированные стили для блока на главной и страницы /o-nas.html. */
.home-about {
    padding: 72px 0;
    background: #f5f8fc;
}

.home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 42px;
    align-items: center;
}

.home-about__intro h2,
.about-page-hero h1 {
    color: #1d2c42;
}

.home-about__intro h2 {
    margin: 0 0 18px;
    font-size: 34px;
}

.home-about__intro p {
    margin: 0 0 14px;
    color: #526177;
    font-size: 17px;
    line-height: 1.75;
}

.home-about__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.home-about__facts > div {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #dfe7f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25,49,83,.06);
}

.home-about__facts i {
    display: block;
    margin-bottom: 15px;
    color: #2c91e8;
    font-size: 24px;
}

.home-about__facts strong,
.home-about__facts span {
    display: block;
}

.home-about__facts strong {
    margin-bottom: 6px;
    color: #24364d;
}

.home-about__facts span {
    color: #6b788b;
    font-size: 14px;
    line-height: 1.45;
}

.about-page-hero {
    margin: 18px 0 24px;
    padding: 46px;
    border: 1px solid #dfe8f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #f2f8ff, #fff);
}

.about-page-hero h1 {
    max-width: 850px;
    margin: 4px 0 16px;
    font-size: 44px;
    line-height: 1.12;
}

.about-page-hero p {
    max-width: 900px;
    margin: 0;
    color: #526177;
    font-size: 19px;
    line-height: 1.7;
}

.about-service-link {
    color: inherit;
    text-decoration: none;
}

.about-service-link:hover h3,
.about-service-link:focus-visible h3 {
    color: #2588dc;
}

@media (max-width: 900px) {
    .home-about__grid {
        grid-template-columns: 1fr;
    }

    .about-page-hero {
        padding: 30px 24px;
    }

    .about-page-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 560px) {
    .home-about {
        padding: 52px 0;
    }

    .home-about__intro h2 {
        font-size: 29px;
    }

    .home-about__facts {
        grid-template-columns: 1fr;
    }

    .home-about__facts > div {
        min-height: 0;
    }
}
