/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fff;
    color: #0f172a;
    line-height: 1.6;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: #f1f5f9;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar .brand {
    font-weight: 700;
    color: #1e293b;
}
.top-bar-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.top-bar-contacts i {
    margin-right: 6px;
    color: #f97316;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
}
.logo img {
    height: 40px;
}
.logo span {
    color: #1e293b;
}

.switchers {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.switcher-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.switcher-group a {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #64748b;
    transition: 0.2s;
    white-space: nowrap;
}
.switcher-group a:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.switcher-group a.active {
    color: #f97316;
    background: #fff7ed;
    font-weight: 700;
}
.switcher-divider {
    color: #e2e8f0;
}

/* Города в несколько строк */
.cities {
    gap: 2px 4px;
    max-width: 100%;
}
.cities a {
    font-size: 0.75rem;
    padding: 2px 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav a:hover {
    color: #f97316;
    border-bottom-color: #f97316;
}
.nav-socials {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
}
.nav-socials a {
    color: #64748b;
    border-bottom: none;
}
.nav-socials a:hover {
    color: #f97316;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
    padding: 0 8px;
    line-height: 1;
}
.mobile-toggle:focus {
    outline: none;
}

/* ============================================
   SLIDER
   ============================================ */
.slider-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slides {
    display: none;
    height: 100%;
}
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    z-index: 10;
}
.prev {
    left: 20px;
}
.next {
    right: 20px;
}
.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.7);
}
.dots-container {
    text-align: center;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    bottom: 0;
    width: 100%;
}
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s;
}
.dot.active,
.dot:hover {
    background-color: #f97316;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f8fafc);
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.hero .highlight {
    color: #f97316;
}
.hero .subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 24px;
}
.hero-city-text {
    max-width: 700px;
    margin: 0 auto 24px;
    color: #475569;
    font-size: 1.05rem;
}
.btn-viber {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #22c55e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}
.btn-viber:hover {
    background: #16a34a;
    transform: translateY(-3px);
}
.btn-viber-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #22c55e;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.btn-viber-large:hover {
    background: #16a34a;
    transform: scale(1.05);
}

/* ============================================
   SECTIONS (ОБЩИЕ)
   ============================================ */
.section {
    padding: 60px 0;
}
.section-gray {
    background: #f8fafc;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 40px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    height: 240px;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1e293b;
}
.about-text p {
    color: #475569;
    font-size: 1.05rem;
}
.about-text ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.about-text ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.about-text ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-item:hover {
    border-color: #f97316;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.service-item img {
    width: 100%;
    max-width: 180px;        /* Ограничиваем ширину, чтобы не растягивалось */
    height: auto;            /* Автоматическая высота, сохраняем пропорции */
    margin-bottom: 16px;
    object-fit: contain;     /* Чтобы иконка не обрезалась */
    transition: transform 0.3s ease;
}
.service-item:hover img {
    transform: scale(1.05);  /* Лёгкое увеличение при наведении */
}
.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1e293b;
}
.service-item p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .service-item img {
        max-width: 150px;
    }
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .service-item {
        padding: 24px 16px;
    }
    .service-item img {
        max-width: 140px;     /* На мобильных иконки чуть меньше, но всё ещё крупные */
        margin-bottom: 12px;
    }
    .service-item h3 {
        font-size: 1.1rem;
    }
    .service-item p {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .service-item img {
        max-width: 120px;
    }
    .service-item {
        padding: 20px 12px;
    }
}

/* ===== Убираем подчеркивание ссылок в секции "Примеры работ" ===== */
#examples .service-item a,
#examples .block-link {
    text-decoration: none;
}
#examples .service-item h3,
#examples .service-item p {
    text-decoration: none;
}
/* ============================================
   PRICES
   ============================================ */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.price-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 24px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.price-card.featured {
    border-color: #f97316;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.12);
}
.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}
.price-card ul {
    list-style: none;
    text-align: left;
    margin: 16px 0 24px;
    flex: 1;
}
.price-card ul li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}
.price-card ul li i {
    color: #22c55e;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.price-card ul li.missing i {
    color: #ef4444;
}
.price-card ul li.missing {
    color: #94a3b8;
}

/* ============================================
   TECHNOLOGY
   ============================================ */
.technology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.technology-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}
.technology-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}
.technology-text p {
    margin-bottom: 12px;
}
.technology-text ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.technology-text ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.technology-text ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}

@media (max-width: 768px) {
    .technology-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .technology-image img {
        height: auto;
        max-height: 350px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        width: 100%;
        border-radius: 24px;
    }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .gallery-item img {
        height: 150px;
    }
}
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 200px;
    }
}

/* ============================================
   COOPERATION (СТО)
   ============================================ */
.cooperation-content {
    max-width: 800px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}
.cooperation-content p {
    margin-bottom: 12px;
}
.cooperation-content ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.cooperation-content ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.cooperation-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}
.cooperation-content .btn-viber {
    display: inline-block;
    margin-top: 16px;
}

/* ============================================
   BOOKING
   ============================================ */
.booking-center {
    text-align: center;
}
.booking-center h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.booking-center p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-item {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.review-item .stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.review-item q {
    display: block;
    font-style: italic;
    color: #334155;
    margin-bottom: 12px;
}
.review-item .author {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col img {
    height: 40px;
    margin-bottom: 12px;
}
.footer-col h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #fff;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 4px 0;
    transition: 0.2s;
}
.footer-col a:hover {
    color: #f97316;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 992px) {
    .prices-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
        gap: 12px;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    .nav.open {
        display: flex !important;
    }
    .nav a {
        padding: 8px 20px;
        border-bottom: none;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
    .nav-socials {
        justify-content: center;
        padding: 8px 0;
        gap: 16px;
    }
    .header-inner {
        position: relative;
        flex-wrap: wrap;
    }
    .switchers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .logo {
        flex: 1;
    }

    .slider-section {
        height: 250px;
    }
    .prev,
    .next {
        width: 36px;
        height: 36px;
        font-size: 16px;
        padding: 8px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .prices-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .btn-viber-large {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .switcher-group a {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    .price-amount {
        font-size: 2.2rem;
    }
    .cities a {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

/* ============================================
   БЛОГ (ВСЕ СТИЛИ)
   ============================================ */

/* ----- Главная блога (сетка карточек) ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: #f97316;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #0f172a;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-content h3 {
    color: #f97316;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 12px;
}

.blog-card-readmore {
    display: inline-block;
    margin-top: auto;
    color: #f97316;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s;
    align-self: flex-start;
}

.blog-card-readmore::after {
    content: " →";
    transition: transform 0.2s;
    display: inline-block;
}

.blog-card:hover .blog-card-readmore::after {
    transform: translateX(4px);
}

/* ----- Страница одной статьи ----- */
.blog-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 6px 0;
}

.blog-back:hover {
    color: #ea580c;
    text-decoration: underline;
}

.blog-back::before {
    content: "← ";
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.blog-post-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #0f172a;
}

.blog-post-content .blog-post-meta {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: #0f172a;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #0f172a;
}

.blog-post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.blog-post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 16px 0 20px;
    padding-left: 28px;
    color: #334155;
}

.blog-post-content ul li,
.blog-post-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-post-content ul {
    list-style: none;
}

.blog-post-content ul li {
    padding-left: 24px;
    position: relative;
}

.blog-post-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}

.blog-post-content blockquote {
    border-left: 4px solid #f97316;
    padding: 16px 24px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    text-align: left;
}

.blog-post-content th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.blog-post-content tr:nth-child(even) {
    background: #f8fafc;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-post-content .btn-viber {
    display: inline-block;
    margin-top: 16px;
}

.blog-post-content .highlight-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    color: #9a3412;
}

/* ----- Адаптивность блога ----- */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content h3 {
        font-size: 1.05rem;
    }

    .blog-post-content {
        padding: 0 4px;
    }

    .blog-post-content h1 {
        font-size: 1.6rem;
    }

    .blog-post-content h2 {
        font-size: 1.3rem;
    }

    .blog-post-content h3 {
        font-size: 1.1rem;
    }

    .blog-post-content p {
        font-size: 0.98rem;
    }

    .blog-post-content table {
        font-size: 0.85rem;
    }

    .blog-post-content th,
    .blog-post-content td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 20px;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-content {
        padding: 16px 18px 20px;
    }

    .blog-back {
        font-size: 0.9rem;
    }

    .blog-post-content ul,
    .blog-post-content ol {
        padding-left: 20px;
    }
}

/* ----- Анимации появления карточек ----- */
.blog-card {
    animation: blogFadeUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.10s; }
.blog-card:nth-child(3) { animation-delay: 0.15s; }
.blog-card:nth-child(4) { animation-delay: 0.20s; }
.blog-card:nth-child(5) { animation-delay: 0.25s; }
.blog-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes blogFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== FOR WHICH CARS ===== */
.cars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 20px;
}
.cars-brand {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.cars-brand:hover {
    border-color: #f97316;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.cars-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #0f172a;
    text-align: center;
}
.cars-brand ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cars-brand ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 1rem;
}
.cars-brand ul li:last-child {
    border-bottom: none;
}
.cars-brand ul li strong {
    color: #0f172a;
}
.cars-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
    background: #fff7ed;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid #fed7aa;
}
.cars-note strong {
    color: #0f172a;
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cars-brand {
        padding: 20px 16px;
    }
    .cars-brand h3 {
        font-size: 1.2rem;
    }
    .cars-brand ul li {
        font-size: 0.95rem;
        padding: 6px 0;
    }
    .cars-note {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
}
@media (max-width: 480px) {
    .cars-brand ul li {
        font-size: 0.9rem;
    }
}

/* ===== СТРАНИЦЫ МОДЕЛЕЙ ===== */

/* --- Header модели --- */
.model-header {
    margin-bottom: 32px;
}
.model-h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 12px;
}
.model-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.model-article {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}
.model-brand {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.model-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    max-width: 800px;
}

/* --- Контент модели (наследует стили blog-post-content) --- */
.model-content {
    max-width: 800px;
    margin: 0 auto 32px;
}
.model-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #0f172a;
}
.model-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: #0f172a;
}
.model-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #334155;
}
.model-content ul,
.model-content ol {
    margin: 16px 0 20px;
    padding-left: 28px;
}
.model-content ul li,
.model-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.model-content ul {
    list-style: none;
}
.model-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}
.model-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
}
.model-content th,
.model-content td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}
.model-content th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}
.model-content tr:nth-child(even) {
    background: #f8fafc;
}
.model-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
.model-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- Цены внутри контента --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
}
.price-table th,
.price-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}
.price-table th {
    background: #f97316;
    color: #fff;
    font-weight: 700;
}
.price-table tr:nth-child(even) {
    background: #f8fafc;
}

/* --- Warning/info boxes --- */
.alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f97316;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.alert-warning p {
    margin: 0 0 8px 0;
    color: #9a3412;
}
.alert-warning strong {
    color: #9a3412;
}

/* --- Секции поколений и кросс-ссылок --- */
.model-generations {
    margin: 32px 0;
}
.model-generations h2,
.model-crosslinks h3,
.model-content h2 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
.model-crosslinks {
    margin: 32px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}
.model-crosslinks h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #0f172a;
}
.crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.crosslink-item {
    display: block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    transition: 0.2s;
    text-align: center;
}
.crosslink-item:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* --- Бронирование CTA --- */
.booking-bar {
    margin: 32px 0 0;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #bfdbfe;
}
.booking-bar h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: #0f172a;
}
.booking-bar p {
    margin: 4px 0;
}
.booking-bar strong {
    color: #1d4ed8;
    font-size: 1.1rem;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .model-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .crosslinks-grid {
        grid-template-columns: 1fr;
    }
    .booking-bar {
        padding: 20px;
    }
    .booking-bar h3 {
        font-size: 1.15rem;
    }
}

/* ============================================
   PRODUCT CATALOG (listing page, mobile-first)
   ============================================ */

/* Catalog grid */
.product-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* Product card */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: #f97316;
}
.product-card-image {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-card-body {
    padding: 20px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}
.product-card-article {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.product-card-rating .stars {
    color: #f59e0b;
    font-size: 1rem;
}
.product-card-rating .rating-count {
    color: #94a3b8;
    font-size: 0.85rem;
}
.product-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.product-card-price .product-card-usd {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.product-card-stock {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
}
.product-card-stock.in-stock {
    background: #dcfce7;
    color: #166534;
}
.product-card-stock.out-of-stock {
    background: #fef3c7;
    color: #924000;
}

/* Catalog: desktop (>= 768px) */
@media (min-width: 768px) {
    .product-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .product-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PRODUCT PAGE (mobile-first)
   ============================================ */

/* --- Back link --- */
.product-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.2s;
}
.product-back:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* --- Layout: stacked on mobile, side-by-side on desktop --- */
.product-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Media column (photo + thumbs) --- */
.product-media {
    width: 100%;
}
.product-main-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-main-image img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Thumbnails: horizontal scroll on mobile */
.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 4px 8px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumbs .product-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.2s;
    padding: 2px;
}
.product-thumbs .product-thumb:hover {
    border-color: #f97316;
}
.product-thumbs .product-thumb.active {
    border-color: #f97316;
    background: #fff7ed;
}
.product-thumbs .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Info column --- */
.product-info {
    width: 100%;
}
.product-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 12px;
}
.product-article-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* --- Rating --- */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.product-rating .stars {
    color: #f59e0b;
    font-size: 1.2rem;
}
.rating-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}
.rating-count {
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Price box --- */
.product-price-box {
    margin-bottom: 20px;
}
.product-price {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.product-price-usd {
    font-size: 1rem;
    color: #64748b;
    margin-top: 4px;
}
.product-stock {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.product-stock.in-stock {
    background: #dcfce7;
    color: #166534;
}
.product-stock.out-of-stock {
    background: #fef3c7;
    color: #924000;
}

/* --- Action buttons --- */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-buy {
    flex: 2;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f97316;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    border: none;
    cursor: pointer;
}
.btn-buy:hover {
    background: #ea580c;
    transform: translateY(-3px);
}
.btn-viber-secondary {
    flex: 1;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #8a2be2;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.3);
    border: none;
    cursor: pointer;
}
.btn-viber-secondary:hover {
    background: #7b2cbf;
    transform: translateY(-3px);
}

/* --- Features --- */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
}
.feature-item i {
    font-size: 1.3rem;
    color: #f97316;
    flex-shrink: 0;
}

/* --- Tabs / Accordion --- */
.product-tabs {
    margin-top: 8px;
}
.product-tab {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}
.product-tab[open] .product-tab-title,
.product-tab .product-tab-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
}
.product-tab .product-tab-title {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.product-tab[open] .product-tab-title {
    border-bottom: 1px solid #e2e8f0;
}
.product-tab .product-tab-title i.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 1rem;
    color: #64748b;
}
.product-tab[open] .product-tab-title i.toggle-icon {
    transform: rotate(180deg);
}
.product-tab .product-tab-title i:first-child {
    color: #f97316;
}
.product-tab-content {
    padding: 20px;
}
.product-tab-content p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #334155;
}
.product-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.product-tab-content ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.product-tab-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}

.product-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

/* --- Spec table inside tabs --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}
.spec-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    width: 40%;
}
.spec-table tr:nth-child(even) {
    background: #f8fafc;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.product-gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.product-gallery-grid .gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* --- Related products --- */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.related-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}
.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #f97316;
}
.related-product-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}
.related-product-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}
.related-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f97316;
}

/* --- Reviews --- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
}
.review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.review-text {
    margin: 8px 0;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
}
.review-author {
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Bottom CTA --- */
.product-cta-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}
.product-cta-bottom .product-price-small {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

/* ===== PRODUCT PAGE — DESKTOP (≥ 768px) ===== */
@media (min-width: 768px) {
    .product-layout {
        flex-direction: row;
        gap: 40px;
    }

    /* Media column gets fixed width on desktop */
    .product-media {
        flex: 0 0 40%;
        max-width: 480px;
    }

    /* Info column takes the rest */
    .product-info {
        flex: 1;
    }

    /* Thumbnails as grid on desktop */
    .product-thumbs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        flex-direction: row;
        overflow: visible;
        padding: 0;
        gap: 10px;
    }

    .product-thumb {
        width: 100%;
        height: 70px;
        flex: 0 0 0;
    }

    /* Action buttons side by side */
    .product-actions {
        flex-direction: row;
        gap: 12px;
    }
    .btn-buy {
        flex: 2;
    }
    .btn-viber-secondary {
        flex: 1;
    }

    .product-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .feature-item {
        flex: 1 1 45%;
    }

    .product-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRODUCT PAGE — MOBILE ADJUSTMENTS ===== */
@media (max-width: 480px) {
    .product-main-image {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.8rem;
    }

    .product-main-image img {
        max-height: 280px;
    }

    .product-gallery-grid {
        grid-template-columns: 1fr;
    }

    .product-cta-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== LIGHTBOX ===== */
.product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.product-lightbox.active {
    display: flex;
}
.product-lightbox .lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.product-lightbox .lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.product-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .product-lightbox .lightbox-close {
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}