:root {
    --primary: #1E3A5F;
    --primary-dark: #152C4A;
    --primary-light: #2A4F7A;
    --accent: #92D253;
    --accent-dark: #6FBF2A;
    --accent-light: #B7E77D;
    --dark: #0D1117;
    --gray-900: #1A1D23;
    --gray-800: #2D3139;
    --gray-700: #404550;
    --gray-600: #5A5F6A;
    --gray-500: #787D87;
    --gray-400: #9198A1;
    --gray-300: #B0B5BD;
    --gray-200: #D0D4DA;
    --gray-100: #EBEDF0;
    --gray-50: #F6F7F9;
    --white: #FFFFFF;
    --success: #92D253;
    --warning: #E9A100;
    --danger: #DE350B;
    
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --section-padding: clamp(60px, 8vw, 100px);
    --container-width: 1320px;
    --gap: clamp(16px, 2.5vw, 28px);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-accent: 0 4px 20px rgba(146, 210, 83, 0.35);
    
    --transition: 0.25s ease;
}

/* Font Face Declarations */
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Black.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded/Unbounded-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    /* Перенос только целыми словами на следующую строку, без разрыва внутри слова */
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

main {
    min-width: 0;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
/* Глобальные стили для списков и выделений */
/* Исключаем TOC, навигацию, футер и другие служебные списки */
ul:not(.toc__list):not(.toc__sublist):not(.toc-modal__list):not(.breadcrumbs):not(.faq-grid):not(.articles-grid):not(.share-buttons):not(.article-navigation):not(.hero__stats):not(.hero__actions):not(.btn-group):not(.geography-seo__list):not(.footer__links):not(.header__nav),
.article-content__body ul,
.article-content__body ol {
    list-style-position: outside;
    padding-left: 24px;
    margin: 16px 0;
}

ul:not(.toc__list):not(.toc__sublist):not(.toc-modal__list):not(.breadcrumbs):not(.faq-grid):not(.articles-grid):not(.share-buttons):not(.article-navigation):not(.hero__stats):not(.hero__actions):not(.btn-group):not(.geography-seo__list):not(.footer__links):not(.header__nav),
.article-content__body ul {
    list-style-type: disc;
}

ul:not(.toc__list):not(.toc__sublist):not(.toc-modal__list):not(.breadcrumbs):not(.faq-grid):not(.articles-grid):not(.share-buttons):not(.article-navigation):not(.hero__stats):not(.hero__actions):not(.btn-group):not(.geography-seo__list):not(.footer__links):not(.header__nav) li::marker,
.article-content__body ul li::marker,
.article-content__body ol li::marker {
    color: var(--accent);
    font-weight: 700;
}

ul:not(.toc__list):not(.toc__sublist):not(.toc-modal__list):not(.breadcrumbs):not(.faq-grid):not(.articles-grid):not(.share-buttons):not(.article-navigation):not(.hero__stats):not(.hero__actions):not(.btn-group):not(.geography-seo__list):not(.footer__links):not(.header__nav) li,
.article-content__body ul li,
.article-content__body ol li {
    margin-bottom: 8px;
    padding-left: 8px;
}

strong, b {
    color: var(--accent);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

/* Мобильные: уменьшенные заголовки, чтобы помещались в ширину экрана */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
    h2 { font-size: clamp(1.35rem, 4.5vw, 1.65rem); }
    h3 { font-size: clamp(1.1rem, 3.5vw, 1.3rem); }
    h4 { font-size: 1rem; }
}

p {
    margin-bottom: 1rem;
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-500); }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* Мобильные: увеличенные отступы от краёв, чтобы контент не уходил за границы */
@media (max-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section {
        padding: clamp(40px, 8vw, 60px) 0;
    }
}

/* Уменьшенные отступы для страницы услуги */
.service-detail-page .section {
    padding: clamp(20px, 3vw, 35px) 0;
}

@media (max-width: 768px) {
    .service-detail-page .section {
        padding: clamp(15px, 3vw, 25px) 0;
    }
}

/* Уменьшенные отступы между соседними секциями на странице услуги */
.service-detail-page .section + .section {
    margin-top: -clamp(15px, 2vw, 25px);
    padding-top: clamp(15px, 2vw, 25px);
}

/* Уменьшаем h1 на странице услуги, чтобы не заходил за синий фон */
.service-detail-page .hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    }
    .service-detail-page .hero__title {
        font-size: clamp(1.35rem, 5vw, 1.65rem);
        margin-bottom: 32px;
    }
}

.section--gray { background: var(--gray-50); }
.section--dark { background: var(--primary); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--gray-200); }

.section__header {
    max-width: 800px;
    margin-bottom: clamp(32px, 5vw, 56px);
    min-width: 0;
}

.section__header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section--dark .section__label { color: var(--accent-light); }

.grid {
    display: grid;
    gap: var(--gap);
    min-width: 0;
}

.grid > * {
    min-width: 0;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .grid--6 { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 32px);
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(146, 210, 83, 0.45);
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn--large {
    padding: 20px 40px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: clamp(20px, 3vw, 36px);
    transition: var(--transition);
    min-width: 0;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card--dark {
    background: var(--gray-900);
    border-color: var(--gray-800);
    color: var(--gray-300);
}

.card--dark h3, .card--dark h4 { color: var(--white); }

.card--accent-border {
    border-left: 4px solid var(--accent);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.card__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.card__label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header__logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.header__logo:hover .header__logo-img {
    opacity: 0.8;
}

.header__logo-mark {
    width: 40px;
    height: 40px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav a {
    font-weight: 500;
    color: var(--gray-600);
}

.header__nav a:hover {
    color: var(--accent);
}


.header__contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    text-align: right;
}

.header__phone-number {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.header__phone-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Mobile menu button */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__burger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1024px) {
    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
        gap: 0;
    }
    
    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .header__nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.1rem;
    }
    
    .header__burger {
        display: flex;
    }
    
    .header__contact {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .header__phone-label { display: none; }
    .header__inner { height: 64px; gap: 12px; }
    .header__logo-img { height: 40px; }
    .header__phone-number { font-size: 1rem; }
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .header__nav { top: 64px; }
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
    padding: clamp(100px, 12vw, 140px) 0 clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero--main {
    background: radial-gradient(1200px 700px at 20% 10%, rgba(146, 210, 83, 0.18) 0%, rgba(146, 210, 83, 0) 55%), linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero--main::before {
    width: 56%;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 6% 100%);
}

.hero--main::after {
    content: '';
    position: absolute;
    left: -180px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 50%;
}

/* Скрыть декоративный элемент справа для страницы privacy */
.hero--privacy::before {
    display: none !important;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Одна колонка для страницы privacy */
.hero__grid--single {
    grid-template-columns: 1fr !important;
    max-width: 800px;
}

@media (max-width: 1024px) {
    .hero::before { display: none; }
    .hero__grid { 
        grid-template-columns: 1fr;
        display: grid;
        grid-template-rows: auto auto auto auto auto auto auto;
        gap: 20px;
        min-width: 0;
    }
    .hero__content {
        display: contents;
    }
    .hero__content > * {
        min-width: 0;
    }
    .hero__content > .breadcrumbs {
        grid-row: 1;
    }
    .hero__content > .hero__badge {
        grid-row: 2;
    }
    .hero__content > .hero__title {
        grid-row: 3;
    }
    .hero__visual {
        grid-row: 4;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        position: static;
        z-index: auto;
    }
    .hero__content > .hero__subtitle {
        grid-row: 5;
    }
    .hero__content > .hero__actions {
        grid-row: 6;
    }
    .hero__content > .hero__stats {
        grid-row: 7;
    }
    .hero { background: var(--gray-50); text-align: center; }
    .hero--main::after { display: none; }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumbs__item {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs__item:hover {
    color: var(--accent);
}

.breadcrumbs__item--current {
    color: var(--accent);
    font-weight: 600;
    pointer-events: none;
}

.breadcrumbs__separator {
    color: var(--gray-400);
    user-select: none;
}

@media (max-width: 1024px) {
    .breadcrumbs {
        justify-content: center;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    margin-bottom: 20px;
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.hero--main .hero__title {
    margin-bottom: 32px;
}

.hero__title-accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 520px;
    min-width: 0;
}

@media (max-width: 1024px) {
    .hero__subtitle { margin-left: auto; margin-right: auto; }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero__actions .btn {
        width: 100%;
        max-width: 100%;
    }
    /* Важно: .btn--large задаёт фиксированные паддинги 20px 40px и ломает mobile overflow */
    .hero__actions .btn--large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.hero__stats {
    display: flex;
    gap: 40px;
}

@media (max-width: 1024px) {
    .hero__stats { justify-content: center; }
}

@media (max-width: 480px) {
    .hero__stats { flex-direction: column; gap: 20px; }
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.hero__visual {
    position: relative;
    z-index: 1;
    margin-top: -40px;
}

.hero__image {
    width: 100%;
    height: 420px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.hero__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(146, 210, 83, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.hero__image:hover img {
    transform: scale(1.05);
}

.hero__image-float {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
}

.hero__image-float--top {
    top: 20px;
    right: -20px;
}

.hero__image-float--bottom {
    bottom: 20px;
    left: -20px;
}

.hero__float-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.hero__float-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .hero__image {
        height: 280px;
        min-width: 0;
        width: 100%;
    }
    .hero__image-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .section__header {
        padding-left: 0;
        padding-right: 0;
    }
    .section__header h2 {
        hyphens: none;
        word-break: normal;
        overflow-wrap: normal;
        min-width: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   ADVANTAGES (TRUST BAR)
══════════════════════════════════════════════════════════════ */
.trust-bar {
    background: var(--primary);
    padding: 32px 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 48px;
    justify-content: center;
}

@media (max-width: 768px) {
    .trust-bar__grid {
        grid-template-columns: repeat(2, auto);
        gap: 24px;
        padding: 0 8px;
    }
}

.trust-bar__item {
    text-align: center;
    color: var(--white);
    padding: 0 32px;
}

@media (max-width: 768px) {
    .trust-bar__item {
        padding: 0 12px;
    }
}

.trust-bar__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.trust-bar__label {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .services__grid { grid-template-columns: 1fr; }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-card__image {
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card__body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--gray-600);
    margin-bottom: 20px;
    flex: 1;
}

.service-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.service-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card__meta-item strong {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   SERVICE TYPES (DETAILED)
══════════════════════════════════════════════════════════════ */
.repair-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .repair-types { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .repair-types { grid-template-columns: 1fr; }
}

.repair-type {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 24px;
    transition: var(--transition);
}

.repair-type:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.repair-type__icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.repair-type__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--dark) !important;
}

.repair-type__price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   SPECS TABLE
══════════════════════════════════════════════════════════════ */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.specs-table th,
.specs-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.specs-table th {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table tr:nth-child(even) {
    background: var(--gray-50);
}

.specs-table tr:hover {
    background: rgba(146, 210, 83, 0.05);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
}

.specs-table__highlight {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .specs-table {
        font-size: 0.85rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 12px 8px;
    }
    
    .specs-table th {
        font-size: 0.75rem;
    }
}

/* Table wrapper for mobile scroll */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .table-wrapper {
        margin: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   CERTIFICATES
══════════════════════════════════════════════════════════════ */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.certificate-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.certificate-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.certificate-item__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.certificate-item:hover .certificate-item__image {
    transform: scale(1.02);
}

/* Модальное окно */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal--active {
    display: flex;
    opacity: 1;
}

.certificate-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.certificate-modal__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.certificate-modal__close {
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
    transition: var(--transition);
    z-index: 2;
}

.certificate-modal__close:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .certificate-modal__close {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .certificate-modal__content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* ══════════════════════════════════════════════════════════════
   BRANDS
══════════════════════════════════════════════════════════════ */
.brands-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.brands-marquee__track {
    display: flex;
    gap: 32px;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.brands-marquee:hover .brands-marquee__track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 24px 40px;
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: fit-content;
}

.brand-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Yandex Maps Reviews Widget */
.yandex-reviews-section {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(32px, 5vw, 48px);
    border-top: 1px solid var(--gray-200);
}

.yandex-reviews-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    height: 620px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.yandex-reviews-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 620px;
    background: var(--gray-50);
}

.yandex-reviews-placeholder__content {
    text-align: center;
    color: var(--gray-500);
}

.yandex-reviews-placeholder__content i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.yandex-reviews-placeholder__content p {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.yandex-reviews-placeholder__hint {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.yandex-reviews-wrapper.yandex-reviews-wrapper--loaded .yandex-reviews-placeholder {
    display: none;
}

.yandex-reviews-wrapper .yandex-reviews-iframe {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 620px;
    border: none;
    border-radius: 12px;
}

.yandex-reviews-wrapper.yandex-reviews-wrapper--loaded .yandex-reviews-iframe {
    display: block;
}

@media (max-width: 768px) {
    .yandex-reviews-section {
        margin-top: clamp(24px, 5vw, 40px);
        padding-top: clamp(24px, 5vw, 36px);
    }
    .yandex-reviews-wrapper {
        max-width: 100%;
        height: 520px;
        border-radius: 10px;
    }
    .yandex-reviews-placeholder {
        height: 520px;
        min-height: 520px;
    }
    .yandex-reviews-wrapper .yandex-reviews-iframe {
        min-height: 520px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PROCESS / STEPS
══════════════════════════════════════════════════════════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}

@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr; }
}

.process-step {
    background: var(--white);
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    position: relative;
}

.process-step__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 16px;
}

.process-step__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--dark) !important;
}

.process-step__desc {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.process-step__time {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE SERVICE
══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   FLEET
══════════════════════════════════════════════════════════════ */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .fleet-grid { grid-template-columns: 1fr; }
}

.fleet-card {
    background: var(--gray-900);
    color: var(--white);
    overflow: hidden;
}

.fleet-card__image {
    height: 180px;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.fleet-card__body {
    padding: 24px;
}

.fleet-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.fleet-card__count {
    color: var(--accent);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════════════════════ */
.team-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 24px;
    margin-bottom: 48px;
    justify-content: center;
}

@media (max-width: 768px) {
    .team-stats { grid-template-columns: repeat(2, auto); justify-content: center; }
}

.team-stat {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-stat__value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.team-stat__label {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-top: 4px;
}

.team-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .team-info { grid-template-columns: 1fr; }
}

.team-info__image {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.team-info__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   GEOGRAPHY
══════════════════════════════════════════════════════════════ */
.geo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .geo-grid { grid-template-columns: 1fr; }
}

.geo-map {
    height: 400px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    min-width: 0;
}

#yandex-map {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

/* Стили для элементов карты, создаваемых скриптом Яндекс */
.geo-map > div:not(.fade-in),
.geo-map iframe,
.geo-map [id*="ymaps"],
.geo-map [id*="yandex"],
.geo-map script + div {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 8px;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
}

/* Мобильная адаптация для Яндекс.Карт */
@media (max-width: 768px) {
    .geo-map {
        height: 350px !important;
        min-height: 350px !important;
        overflow: visible !important;
    }
    
    #yandex-map {
        min-height: 350px !important;
        height: 350px !important;
    }
    
    .geo-map > div:not(.fade-in),
    .geo-map iframe,
    .geo-map [id*="ymaps"],
    .geo-map [id*="yandex"],
    .geo-map script + div,
    .geo-map [class*="ymaps"],
    .geo-map [class*="yandex"] {
        width: 100% !important;
        height: 350px !important;
        min-height: 350px !important;
        max-width: 100% !important;
        border: none !important;
        border-radius: 8px;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        z-index: 1 !important;
    }
}

.geo-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.geo-item__label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.geo-item__value {
    font-weight: 600;
    color: var(--dark);
}

/* ══════════════════════════════════════════════════════════════
   DOCUMENTS
══════════════════════════════════════════════════════════════ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .docs-grid { grid-template-columns: 1fr; }
}

.docs-list__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: block;
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--dark) !important;
}

.docs-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.docs-list__item::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.docs-list__item--no::before {
    content: '✕';
    background: var(--gray-400);
}

/* ══════════════════════════════════════════════════════════════
   PDF DOCUMENTS CARDS
══════════════════════════════════════════════════════════════ */
.documents-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.document-pdf-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-pdf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #dc2626;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.document-pdf-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.document-pdf-card:hover::before {
    transform: scaleY(1);
}

.document-pdf-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    color: #dc2626;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.document-pdf-card:hover .document-pdf-card__icon {
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
}

.document-pdf-card__body {
    flex: 1;
    min-width: 0;
}

.document-pdf-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.document-pdf-card__desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.document-pdf-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.document-pdf-card__format {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .documents-pdf-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .document-pdf-card {
        padding: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-item__question:hover {
    color: var(--accent);
}

.faq-item__icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-600);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-item__icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer-inner {
    padding-bottom: 24px;
    color: var(--gray-600);
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PREVIEW
══════════════════════════════════════════════════════════════ */
.article-preview {
    max-width: 800px;
    margin: 0 auto;
    min-width: 0;
}

.article-preview h2 {
    text-align: center;
    margin-bottom: 32px;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-preview__content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 32px;
    min-width: 0;
    max-width: 100%;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-preview__text {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-preview__text--full {
    display: none;
    overflow-x: hidden;
    max-width: 100%;
}

/* Скрываем заголовки в превью, чтобы избежать дублирования */
.article-preview__text--preview h2,
.article-preview__text--preview h3 {
    display: none !important;
}

.article-preview.is-expanded .article-preview__text--preview {
    display: none;
}

.article-preview.is-expanded .article-preview__text--full {
    display: block;
}

.article-preview__actions {
    text-align: center;
}

/* Увеличиваем специфичность для article-preview richtext */
.article-preview__text--full.richtext p {
    margin: 0 0 12px !important;
}

.article-preview__text--full.richtext p:last-child {
    margin-bottom: 0 !important;
}

.article-preview__text--full.richtext p:empty {
    display: none !important;
}

.article-preview__text--full.richtext h2 {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--dark) !important;
}

@media (max-width: 768px) {
    .article-preview__text--full.richtext h2 {
        font-size: clamp(1.35rem, 4.5vw, 1.6rem) !important;
    }
    .article-preview__text--full.richtext h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
    }
}

.article-preview__text--full.richtext h2:first-child {
    margin-top: 0 !important;
}

.article-preview__text--full.richtext h3 {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--dark) !important;
}

.article-preview__text--full.richtext h4 {
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    font-size: 1.125rem !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: var(--dark) !important;
}

.article-preview__text--full.richtext ul,
.article-preview__text--full.richtext ol {
    margin: 12px 0 !important;
    padding-left: 24px !important;
    list-style-position: outside !important;
}

.article-preview__text--full.richtext ul {
    list-style-type: disc !important;
}

.article-preview__text--full.richtext ol {
    list-style-type: decimal !important;
}

.article-preview__text--full.richtext li {
    margin-bottom: 6px !important;
    padding-left: 8px !important;
}

.article-preview__text--full.richtext ul li::marker,
.article-preview__text--full.richtext ol li::marker {
    color: var(--accent) !important;
    font-weight: 700 !important;
}

.article-preview__text--full.richtext blockquote {
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    border-left: 4px solid var(--accent) !important;
    background: var(--gray-50) !important;
    font-style: italic !important;
    color: var(--gray-600) !important;
}

.article-preview__text--full.richtext strong,
.article-preview__text--full.richtext b {
    color: var(--accent) !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .article-preview__content {
        padding: 24px;
    }
    
    .article-preview__text--full.richtext h2 {
        margin-top: 20px !important;
    }
    
    .article-preview__text--full.richtext h3 {
        margin-top: 16px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   RICHTEXT (общий класс для контента из TinyMCE)
══════════════════════════════════════════════════════════════ */
.richtext {
    line-height: 1.8;
    color: var(--gray-700);
}

/* Нормализация отступов параграфов */
.richtext p {
    margin: 0 0 16px;
}

.richtext p:last-child {
    margin-bottom: 0;
}

/* Убираем пустые параграфы */
.richtext p:empty {
    display: none;
}

/* Заголовки */
.richtext h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
}

.richtext h2:first-child {
    margin-top: 0;
}

.richtext h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
}

.richtext h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.125rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
}

/* Списки */
.richtext ul,
.richtext ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style-position: outside;
}

.richtext ul {
    list-style-type: disc;
}

.richtext ol {
    list-style-type: decimal;
}

.richtext li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.richtext ul li::marker,
.richtext ol li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* Цитаты */
.richtext blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--gray-50);
    font-style: italic;
    color: var(--gray-600);
}

/* Ссылки */
.richtext a {
    color: var(--primary);
    text-decoration: underline;
}

.richtext a:hover {
    color: var(--primary-dark);
}

/* Выделение */
.richtext strong,
.richtext b {
    color: var(--accent);
    font-weight: 700;
}

/* Адаптив */
@media (max-width: 768px) {
    .richtext h2 {
        margin-top: 32px;
    }
    
    .richtext h3 {
        margin-top: 24px;
    }
    
    .richtext ul,
    .richtext ol {
        padding-left: 20px;
    }
}

/* Таблицы (TinyMCE / richtext) */
.richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    overflow: hidden; /* чтобы скругление работало на thead */
}

/* Таблица внутри обёртки не должна растягивать контейнер */
.richtext .table-wrapper table {
    width: auto;
    min-width: 100%;
}

.richtext thead {
    background: var(--primary);
}

.richtext th,
.richtext td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.richtext th {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.richtext tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.richtext tbody tr:hover {
    background: rgba(146, 210, 83, 0.06);
}

.richtext tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .richtext table {
        font-size: 0.9rem;
    }

    .richtext th,
    .richtext td {
        padding: 12px 12px;
    }
}

/* Richtext table wrapper (horizontal scroll on small screens) */
.richtext .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .richtext .table-wrapper {
        margin: 16px 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .richtext .table-wrapper table {
        width: auto;
        min-width: 600px;
    }
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-section .btn-group {
    justify-content: center;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .cta-contacts { flex-direction: column; gap: 16px; }
}

.cta-contact__label {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.cta-contact__value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════════════════════════ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-card__image {
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card__title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-card__desc {
    color: var(--gray-600);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.article-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card__meta-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   GEOGRAPHY SEO BLOCK
══════════════════════════════════════════════════════════════ */
.geography-seo {
    padding: 60px 0;
}

.geography-seo__title {
    text-align: center;
    margin-bottom: 40px;
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.geography-seo__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 32px;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    min-width: 0;
}

.geography-seo__column {
    min-width: 0;
}

.geography-seo__content--expanded {
    max-height: 2000px;
}

.geography-seo__column h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.geography-seo__intro {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.geography-seo__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.geography-seo__list li {
    padding: 6px 0;
    position: relative;
    padding-left: 16px;
}

.geography-seo__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.geography-seo__actions {
    text-align: center;
}

@media (max-width: 768px) {
    .geography-seo {
        padding: 40px 0;
    }
    
    .geography-seo__content {
        grid-template-columns: 1fr;
        gap: 32px;
        max-height: 200px;
    }
    
    .geography-seo__content--expanded {
        max-height: 3000px;
    }
    
    .geography-seo__list {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer__links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer__links li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.footer__links li::marker {
    display: none !important;
}

.footer__links a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a:hover {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   STICKY CTA
══════════════════════════════════════════════════════════════ */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-cta__btn {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-accent);
    transition: var(--transition);
}

.sticky-cta__btn:hover {
    transform: scale(1.1);
}

.sticky-cta__btn--secondary {
    background: var(--primary);
    box-shadow: var(--shadow-lg);
}

.sticky-cta__btn--up {
    background: var(--gray-600);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.sticky-cta__btn--up:hover {
    background: var(--gray-700);
}

.sticky-cta__btn--up:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.sticky-cta__btn--up.hidden {
    opacity: 0;
    visibility: hidden;
}

.sticky-cta__btn i {
    font-size: 1.2em;
}

/* ══════════════════════════════════════════════════════════════
   PARTNERS (MAIN PAGE)
══════════════════════════════════════════════════════════════ */
.partners__grid {
    gap: 24px;
}

.partners__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.partners__card:hover {
    border-color: rgba(146, 210, 83, 0.65);
    transform: translateY(-4px);
}

.partners__card-icon {
    width: 64px;
    height: 64px;
    background: rgba(146, 210, 83, 0.14);
    border: 1px solid rgba(146, 210, 83, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 14px;
}

.partners__card-icon i {
    font-size: 1.5rem;
}

.partners__card-title {
    color: var(--white);
    margin-bottom: 8px;
    text-align: center;
}

.partners__card-text {
    color: var(--gray-200);
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   EQUIPMENT CARDS (MAIN PAGE)
══════════════════════════════════════════════════════════════ */
.equipment-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(30, 58, 95, 0.06);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 14px;
}

.equipment-card__icon i {
    font-size: 1.5rem;
}

.equipment-card h3 {
    font-size: 1.05rem;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    min-width: 0;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */
.about-hero {
    padding: clamp(110px, 12vw, 150px) 0 clamp(60px, 8vw, 90px);
    background: radial-gradient(1200px 700px at 18% 10%, rgba(146, 210, 83, 0.18) 0%, rgba(146, 210, 83, 0) 55%), linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 8% 100%);
}

.about-hero__grid {
    display: block;
}

.about-hero__content {
    position: relative;
    z-index: 1;
}

.about-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.about-hero__tag-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
}

.about-hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--dark);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .about-hero__title {
        font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    }
}

.about-hero__subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--gray-600);
    max-width: 640px;
    margin-bottom: 28px;
}

.about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.about-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.about-hero__highlight {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    min-width: 180px;
}

.about-hero__highlight-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-hero__highlight-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about-hero__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-left: auto;
    max-width: fit-content;
}

.about-hero__panel-card {
    background: rgba(30, 58, 95, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 18px 18px;
}

.about-hero__panel-icon {
    width: 48px;
    height: 48px;
    background: rgba(146, 210, 83, 0.16);
    border: 1px solid rgba(146, 210, 83, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
}

.about-hero__panel-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.about-hero__panel-text {
    color: var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-story__card,
.about-values__card,
.about-facts__card {
    transition: var(--transition);
}

.about-story__card:hover,
.about-values__card:hover,
.about-facts__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.about-story__icon,
.about-values__icon {
    width: 52px;
    height: 52px;
    background: rgba(30, 58, 95, 0.06);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 14px;
}

.about-values__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.about-values__icon {
    margin-bottom: 0;
}

.about-values__title {
    margin-bottom: 0;
}

.about-values__text,
.about-story__text {
    color: var(--gray-600);
}

.about-facts__value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.about-facts__label {
    color: var(--gray-600);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .about-hero::before { display: none; }
    .about-hero__grid { grid-template-columns: 1fr; }
    .about-hero { text-align: center; }
    .about-hero__actions { justify-content: center; }
    .about-hero__highlights { justify-content: center; }
    .about-hero__subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    .about-hero__highlight { min-width: 0; width: 100%; }
    .about-hero__actions .btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE ADAPTATION IMPROVEMENTS
══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .header__inner { gap: 8px; }
    .header__logo-img { height: 35px; }
    .header__phone { display: none; }
    .btn { padding: 10px 16px; font-size: 0.75rem; }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .service-card__body {
        padding: 20px;
    }
    
    .sticky-cta {
        bottom: 16px;
        right: 16px;
    }
    
    .sticky-cta__btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════════════════════════════ */

/* Общий отступ страницы статьи, чтобы хлебные крошки не заходили под фиксированный хедер */
.article-page {
    padding-top: 96px;
}

@media (max-width: 768px) {
    .article-page {
        padding-top: 80px;
    }
}

/* Основное изображение статьи */
.article-hero {
    padding: 0;
    margin-top: 72px;
}

.article-hero__image {
    width: 100%;
    height: 400px;
    background: var(--gray-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .article-hero {
        margin-top: 64px;
    }
    
    .article-hero__image {
        height: 250px;
    }
}

/* Двухколоночный макет */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Важно для grid: иначе длинный контент может раздвигать страницу по ширине */
.article-layout > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Контент статьи */
.article-content {
    max-width: none;
}

.article-content__header {
    margin-bottom: 32px;
}

.article-content__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.article-content__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content__meta-item i {
    color: var(--accent);
    font-size: 0.85rem;
}

.article-content__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-content__title {
        font-size: clamp(1.4rem, 5vw, 1.7rem);
    }
}

.article-content__excerpt {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

.article-content__image {
    width: 100%;
    margin: 24px 0 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-content__image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-content__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-content__body {
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.8;
    color: var(--gray-700);
    min-width: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.article-content__body h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-display);
    scroll-margin-top: 100px;
}

.article-content__body h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-family: var(--font-display);
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .article-content__body h2 {
        font-size: clamp(1.35rem, 4.5vw, 1.6rem);
    }
    .article-content__body h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }
}

.article-content__body h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    scroll-margin-top: 100px;
}

.article-content__body p {
    margin-bottom: 20px;
}

.article-content__body ul,
.article-content__body ol {
    margin: 20px 0;
    padding-left: 24px;
    list-style-position: outside;
}

.article-content__body ul {
    list-style-type: disc;
}

.article-content__body ol {
    list-style-type: decimal;
}

.article-content__body li {
    margin-bottom: 8px;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .article-content__body h2 {
        margin-top: 32px;
    }
    
    .article-content__body h3 {
        margin-top: 24px;
    }
}

/* Сайдбар: по умолчанию (моб/планшет) — обычный (внизу) */
.article-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
}

/* Десктоп: фиксированный сайдбар (через JS добавляется модификатор) */
@media (min-width: 1025px) {
    .article-sidebar--fixed {
        position: fixed;
        top: 100px; /* отступ под фиксированный хедер */
        right: calc((100vw - var(--container-width)) / 2);
        width: 320px;
        z-index: 10;
    }
}

/* TOC (после изображения, внутри контента) */
.article-toc {
    margin-top: 24px;
    margin-bottom: 32px;
}

/* Блок связанных услуг */
.related-services {
    margin-bottom: 0;
    text-align: center;
}

.related-services__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.related-services__title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.related-services__all-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: underline;
}

.related-services__all-link:hover {
    color: var(--primary-dark);
}

.related-services__list {
    display: grid;
    gap: 12px;
    justify-items: center;
}

/* Внутренний скролл списка услуг на десктопе (при этом сайдбар НЕ sticky) */
@media (min-width: 1025px) {
    .article-sidebar .related-services__list {
        max-height: calc(100vh - 240px);
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-gutter: stable;
    }

    .article-sidebar .related-services__list::-webkit-scrollbar {
        width: 6px;
    }

    .article-sidebar .related-services__list::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 3px;
    }

    .article-sidebar .related-services__list::-webkit-scrollbar-thumb {
        background: var(--gray-400);
        border-radius: 3px;
    }

    .article-sidebar .related-services__list::-webkit-scrollbar-thumb:hover {
        background: var(--gray-500);
    }
}

.related-service-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 320px;
}

.related-service-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.related-service-card__image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.related-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-service-card__body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.related-service-card__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--dark);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-service-card__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
    align-items: center;
}

.related-service-card__price-top {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.related-service-card__price-bottom {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.related-service-card__desc {
    margin: 0 0 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Блок услуг на мобилке теперь не дублируется: используется тот же .article-sidebar */

@media (max-width: 480px) {
    .related-service-card__image {
        height: 100px;
    }
}

/* TOC (Оглавление) */
.toc {
    position: relative;
    margin-bottom: 0;
}

.toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.toc__title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark);
}

.toc__toggle-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
    border-radius: 4px;
}

.toc__toggle-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.toc__toggle-btn i {
    transition: transform 0.3s ease;
}

.toc--collapsed .toc__toggle-btn i {
    transform: rotate(180deg);
}

.toc__list-wrapper {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.toc--collapsed .toc__list-wrapper {
    max-height: 0 !important;
    opacity: 0;
    padding: 0;
}

.toc--collapsed .toc__toggle-btn i {
    transform: rotate(-90deg);
}

.toc__list,
.toc__sublist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc__list li,
.toc__sublist li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.toc__list li::marker,
.toc__sublist li::marker {
    display: none !important;
}

.toc__item {
    margin-bottom: 8px;
}

.toc__item a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
    line-height: 1.5;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.toc__item a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* Отступы для уровней заголовков (древовидная структура) */
.toc__item--h2 a {
    padding-left: 12px;
}

.toc__item--h3 a {
    padding-left: 28px;
}

.toc__item--h4 a {
    padding-left: 44px;
}

.toc__sublist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.toc__sublist .toc__item {
    margin-bottom: 6px;
}

.toc__sublist .toc__item a {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Модальное окно TOC */
.toc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-modal--active {
    display: flex;
    opacity: 1;
}

.toc-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.toc-modal__content {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.toc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    transition: var(--transition);
    z-index: 2;
}

.toc-modal__close:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.toc-modal__title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--dark);
}

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

.toc-modal__list .toc__item {
    margin-bottom: 12px;
}

.toc-modal__list .toc__item a {
    padding: 12px 16px;
    font-size: 1rem;
}

.toc-modal__list .toc__sublist {
    margin-top: 8px;
}

.toc-modal__list .toc__sublist .toc__item a {
    font-size: 0.95rem;
    padding: 10px 16px;
}

@media (max-width: 768px) {
    .toc-modal__content {
        padding: 24px;
        max-height: 90vh;
    }
    
    .toc-modal__title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

/* Подвал статьи */
.article-footer {
    padding-top: 60px;
}

.article-footer__faq,
.article-footer__share,
.article-footer__related {
    margin-bottom: 60px;
}

.article-footer__faq .section__header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.article-footer__share {
    text-align: center;
}

.article-footer__share .section__header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.share-button i {
    font-size: 1.1rem;
}

/* Навигация между статьями */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.article-navigation__prev,
.article-navigation__next {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-align: left;
    transition: var(--transition);
}

.article-navigation__next {
    text-align: right;
    flex-direction: row-reverse;
}

.article-navigation__prev:hover,
.article-navigation__next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-navigation__content {
    flex: 1;
}

.article-navigation__label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-navigation__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.article-navigation__prev i,
.article-navigation__next i {
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .article-navigation__next {
        text-align: left;
        flex-direction: row;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        width: 100%;
    }
}
