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

/* Заголовки-div: .head2–.head6 повторяют браузерные стили h2–h6
   (размер и жирность). Нулевая специфичность через :where(),
   поэтому любые правила ниже переопределяют их так же, как раньше h2–h6. */
:where(.head2, .head3, .head4, .head5, .head6) { display: block; font-weight: bold; }
:where(.head2) { font-size: 1.5em; }
:where(.head3) { font-size: 1.17em; }
:where(.head4) { font-size: 1em; }
:where(.head5) { font-size: .83em; }
:where(.head6) { font-size: .67em; }


:root {
    --primary-color: #95CC29;
    --secondary-color: #000000;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Единая шкала отступов (база 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;

    --container-padding-x: 24px;
    --section-padding-y: 72px;
    --section-padding-y-md: 56px;
    --section-padding-y-sm: 40px;
    --block-gap: 48px;
    --block-gap-sm: 32px;
    --title-gap: 32px;
    --element-gap: 20px;
    --spacing-after-table: 32px;
    --spacing-after-faq: 48px;

    /* Высота .header на десктопе (>1200px): 50px логотип + 16px×2 паддинг.
       Используется, чтобы sticky-блоки в сайдбаре не залезали под sticky-шапку. */
    --header-height: 82px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

/* Вертикальный ритм внутренних страниц */
main > .container {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap);
    padding-top: var(--space-9);
    padding-bottom: var(--section-padding-y);
}

main > .container > * {
    margin-top: 0;
    margin-bottom: 0;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #7db320;
}

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

.btn-secondary:hover {
    background-color: #333;
}

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

.btn-white:hover {
    background-color: #7db320;
    color: var(--white);
}

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

.section-header {
    margin-bottom: var(--title-gap);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.section-header .section-title,
.section-header .head2.section-title {
    margin-bottom: 0;
}

.services-another {
    display: flex;
    flex-direction: column;
    gap: var(--title-gap);
    padding: 0;
}

.pricing-section,
.page-faq {
    display: flex;
    flex-direction: column;
}

/* Плавающий виджет обратного звонка */
.callback-widget {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 998;
    padding: 0;
}

.callback-widget__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.callback-widget__pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.55;
    z-index: 1;
    animation: callback-widget-pulse 2s ease-out infinite;
}

.callback-widget__pulse--second {
    animation-delay: 1s;
}

@keyframes callback-widget-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.callback-widget:hover {
    filter: brightness(0.95);
}

@media (max-width: 576px) {
    .callback-widget {
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .callback-widget__icon {
        font-size: 19px;
    }
}

/* Шапка */
.header {
    background-color: var(--primary-color);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-menu-extra {
    display: none;
}

.header-mobile-info {
    display: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    opacity: 0.9;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: var(--transition);
}

@media (min-width: 1201px) {
    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-submenu:hover .dropdown-submenu-list {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .dropdown-submenu:hover .submenu-arrow {
        transform: rotate(90deg);
    }
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    border-radius: 4px;
    overflow: visible;
    border: 1px solid var(--gray);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--gray);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
}

/* Вложенное подменю - Desktop */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid var(--gray);
}

.dropdown-submenu:last-child .dropdown-submenu-toggle {
    border-bottom: none;
}

.submenu-arrow {
    font-size: 10px;
    margin-left: 10px;
    transition: var(--transition);
}

.dropdown-submenu-list {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 320px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 101;
    list-style: none;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray);
    max-height: 450px;
    overflow-y: auto;
}

.dropdown-submenu-list li {
    border-bottom: 1px solid var(--gray);
}

.dropdown-submenu-list li:last-child {
    border-bottom: none;
}

.dropdown-submenu-list a {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.dropdown-submenu-list a:hover {
    color: var(--primary-color);
    background-color: rgba(149, 204, 41, 0.05);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    color: var(--white);
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.contact-value {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.contact-value:hover {
    opacity: 0.9;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1003;
    position: relative;
    width: 40px;
    height: 40px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.burger-menu span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 8px));
}

.burger-menu span:nth-child(2) {
    transform: translate(-50%, -50%);
}

.burger-menu span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 8px));
}

.burger-menu.active span {
    background-color: var(--secondary-color);
}

.burger-menu.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.burger-menu.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* Overlay for mobile menu */
.menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Баннер */
.banner {
    padding: var(--space-8) 0 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(150, 204, 41, 0.048) 0%, rgba(150, 204, 41, 0.13) 10%, rgba(150, 204, 41, 0.24) 30%, rgba(150, 204, 41, 0.295) 70%);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    min-height: 500px;
}

.banner-text {
    flex: 1;
    align-self: center;
    padding-bottom: var(--space-8);
}

.banner-title {
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-5);
    color: var(--secondary-color);
    text-transform: uppercase;
}

.banner-description {
    font-size: 18px;
    margin-bottom: var(--space-7);
    color: var(--secondary-color);
}

.banner-btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    margin-bottom: 0;
}

.banner-btn:hover {
    background-color: #7db320;
    color: var(--white);
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.banner-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

/* Услуги */
.services {
    padding: var(--section-padding-y) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.service-card {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(149, 204, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 36px;
    color: #000;
    transition: color 0.25s ease;
}

.service-card:hover .service-icon {
    color: var(--primary-color);
}

.service-icon img {
    width: 56px;
    height: auto;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;    
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.service-arrow {
    color: var(--primary-color);
    font-size: 20px;
}

/* Статистика */
.stats {
    padding: var(--section-padding-y-md) 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
}

.stat-item {
    display: flex;
    min-width: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    width: 100%;
    min-height: 148px;
    padding: var(--space-7) var(--space-4);
    background-color: var(--light-gray);
    border-radius: 8px;
}

.stat-number {
    font-size: clamp(1.75rem, 3.2vw, 2.625rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.stat-text {
    font-size: clamp(0.875rem, 1.6vw, 1.125rem);
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.35;
    max-width: 12ch;
}

@media (max-width: 400px) {
    .stat-number {
        font-size: clamp(1.375rem, 6vw, 1.75rem);
    }

    .stat-text {
        font-size: 0.8125rem;
    }

    .stat-content {
        min-height: 104px;
        padding: var(--space-4) var(--space-2);
    }
}

/* Консультация и история */
.consultation-history {
    padding: var(--section-padding-y) 0;
}

.consultation-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.consultation-form-wrapper {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 10px;
}

.consultation-form {
    background-color: var(--white);
    padding: var(--space-7);
    border-radius: 6px;
}

.consultation-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
    text-align: left;
}

.consultation-description {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--space-6);
    line-height: 1.5;
    text-align: left;
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    text-align: left;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.history-text {
    margin-bottom: var(--space-5);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

.history-text:last-child {
    margin-bottom: 0;
}

/* Отзывы */
.reviews {
    padding: var(--section-padding-y) 0;
    background-color: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
}

.review-card {
    background-color: var(--white);
    padding: var(--space-7);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-5);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 24px;
}

.review-info h3,
.review-info .head3,
.review-info h4,
.review-info .head4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary-color);
    text-align: left;
}

.review-info p {
    font-size: 14px;
    color: #777;
    text-align: left;
}

.review-divider {
    height: 1px;
    background-color: var(--gray);
    margin-bottom: var(--space-5);
}

.review-text {
    font-style: italic;
    line-height: 1.7;
    text-align: left;
}

/* FAQ */
.faq {
    padding-top: var(--section-padding-y);
    padding-bottom: calc(var(--section-padding-y) + var(--spacing-after-faq));
}

.faq-list {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background-color: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(149, 204, 41, 0.05);
}

.faq-question h3,
.faq-question .head3,
.faq-question .faq-question-text {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    flex: 1;
    min-width: 0;
    padding-right: 15px;
    margin: 0;
}

.faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.faq-icon i {
    flex-shrink: 0;
    line-height: 1;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
}

.faq-answer p {
    padding: var(--space-6);
    line-height: 1.7;
    text-align: left;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Подвал */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-top {
    padding: var(--section-padding-y-md) 0 var(--space-5);
}

.footer-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-7);
    color: var(--white);
    text-align: left;
}

.footer-contacts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
    text-align: left;
}

.footer-contact-value {
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

a.footer-contact-value {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

a.footer-contact-value:hover {
    color: var(--primary-color);
}

.footer-map {
    padding: var(--space-5) 0;
}

.map-placeholder {
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-align: center;
}

.map-placeholder h3, .map-placeholder .head3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: var(--space-5) 0 var(--space-8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 30px 30px 0 30px;
    position: relative;
}

.modal-header h3, .modal-header .head3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-align: left;
    padding-right: 40px;
}

.modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 0 30px 30px 30px;
}

.modal-body .form-group {
    margin-bottom: 25px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
}

.modal-body .form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    text-align: left;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-body .btn-primary {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 0;
        gap: var(--space-6);
    }

    .banner-text {
        align-self: center;
        padding-bottom: 0;
        width: 100%;
    }

    .banner-image {
        flex: none;
        width: 100%;
        align-self: stretch;
        border-radius: 8px 8px 0 0;
    }

    .banner-image img {
        width: 100%;
        max-height: 360px;
        object-fit: contain;
        object-position: bottom center;
        border-radius: 8px 8px 0 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .stat-content {
        min-height: 132px;
        padding: var(--space-6) var(--space-4);
    }
    
    .consultation-history-grid {
        grid-template-columns: 1fr;
        gap: var(--block-gap-sm);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-contacts {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-contact-item {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .header {
        position: relative; /* контейнер для абсолютно позиционированного бургера */
        z-index: auto;      /* не создаём stacking context: .nav-menu и .menu-overlay остаются fixed поверх страницы */
    }

    .header .container {
        padding-left: var(--container-padding-x);
        padding-right: var(--container-padding-x);
    }

    .navbar {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .header-mobile-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
        order: 1;
    }

    .header-mobile-brand {
        color: var(--white);
        font-weight: 700;
        font-size: 42px;
        letter-spacing: 0.5px;
    }

    .header-mobile-tagline {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        line-height: 1.3;
        max-width: 320px;
    }

    .header-mobile-phone {
        color: var(--white);
        text-decoration: none;
        font-weight: 700;
        font-size: 28px;
        margin-top: 4px;
    }

    .header-mobile-phone:hover {
        opacity: 0.9;
    }

    .header-mobile-email {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-weight: 500;
        font-size: 17px;
    }

    .header-mobile-email:hover {
        opacity: 0.9;
    }

    .burger-menu {
        position: absolute; /* скроллится вместе с шапкой */
        top: 16px;
        right: 16px;
        z-index: 1003;
    }

    /* При открытом меню крестик фиксируется поверх панели */
    .burger-menu.active {
        position: fixed;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        flex: none;
        width: min(86%, 360px);
        height: 100%;
        height: 100dvh;
        background-color: var(--white);
        padding: 72px 0 0;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease;
        z-index: 1002;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        overscroll-behavior: contain;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu-extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--gray);
        background: var(--white);
    }

    .nav-menu-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
    }

    .nav-menu-phone i {
        color: var(--primary-color);
    }

    .nav-menu-consult {
        width: 100%;
        text-align: center;
    }
    
    .nav-list > li {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--gray);
        justify-content: space-between;
        color: var(--secondary-color);
        font-weight: 600;
        opacity: 1;
    }
    
    .nav-link:hover,
    .nav-link.active,
    .nav-link.active:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
        opacity: 1;
    }
    
    /* Dropdown toggle arrow styling */
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .dropdown-arrow {
        color: var(--primary-color);
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: none;
        overflow: visible;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 30px;
        color: var(--secondary-color);
        opacity: 1;
        font-size: 14px;
        display: block;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }

    /* Мобильные стили для вложенного подменю */
    .dropdown-submenu {
        width: 100%;
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-submenu:last-child {
        border-bottom: none;
    }

    .dropdown-submenu-toggle {
        color: var(--secondary-color);
        padding: 12px 20px 12px 30px;
        border-bottom: none;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.3s ease;
        gap: 8px;
    }
    
    .dropdown-submenu-toggle:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }

    .submenu-arrow {
    flex-shrink: 0;
    transform: rotate(0deg);
        color: var(--primary-color);
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.active .submenu-arrow {
        transform: rotate(90deg);
    }

    .dropdown-submenu-list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--white);
        border: none;
        border-top: 1px solid var(--gray);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: auto;
        padding: 0;
    }

    .dropdown-submenu.active .dropdown-submenu-list {
        max-height: none;
        overflow: visible;
    }

    .dropdown-submenu-list li {
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-submenu-list li:last-child {
        border-bottom: none;
    }

    .dropdown-submenu-list a {
        color: var(--secondary-color);
        padding: 10px 20px 10px 45px;
        font-size: 13px;
        opacity: 1;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .dropdown-submenu-list a:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }
    
    .header-contacts {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        flex-shrink: 0;
    }

    .nav-menu .dropdown-submenu-toggle br {
        display: none;
    }

    .menu-overlay {
        z-index: 1001;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding-y: 48px;
        --section-padding-y-md: 40px;
        --section-padding-y-sm: 32px;
        --block-gap-sm: 24px;
        --spacing-after-table: 24px;
        --spacing-after-faq: 40px;
        --container-padding-x: 16px;
    }

    .header-contacts {
        display: none;
    }

    .banner-btn {
        width: 100%;
        max-width: 320px;
        padding: 15px 30px;
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-5);
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-right: 14px;
    }

    .service-name {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .stat-content {
        min-height: 116px;
        padding: var(--space-5) var(--space-3);
        gap: var(--space-2);
    }

    .stat-text {
        max-width: none;
    }

    .consultation-form-wrapper {
        padding: 6px;
    }

    .consultation-form {
        padding: var(--space-5);
    }

    .consultation-title {
        font-size: 20px;
    }

    .consultation-form .btn {
        width: 100%;
    }

    .review-card {
        padding: var(--space-5);
    }

    .review-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .faq-question {
        padding: var(--space-4);
        gap: 8px;
    }

    .faq-question .faq-question-text {
        font-size: 16px;
        padding-right: 8px;
    }
    
    .footer-title {
        font-size: 30px;
    }
    
    .header {
        padding: var(--space-3) 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-contacts {
        gap: var(--space-4);
    }
    
    .footer-contact-item {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .footer-contact-item i {
        margin-top: 0;
    }

    .modal {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 100%;
        max-width: 500px;
        border-radius: 8px;
        margin: 0;
    }
    
    .modal-header {
        padding: 20px 16px 0;
    }
    
    .modal-header h3, .modal-header .head3 {
        padding-right: 35px;
        font-size: 20px;
    }
    
    .close-modal {
        top: 14px;
        right: 12px;
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
    
    .modal-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .modal-body {
        padding: 0 16px 16px;
    }

    .modal-body .form-group {
        margin-bottom: 16px;
    }

    .modal-body .form-group input {
        padding: 14px;
    }
}

/* Страницы услуг и контента */
.breadcrumbs {
    margin: var(--space-2) 0 4px;
}

/* main > .container > * обнуляет margin у крошек (см. ниже по файлу),
   поэтому реальный отступ снизу = --block-gap (flex-gap контейнера),
   а сверху = --space-8 (padding-top контейнера). Компенсируем разницу,
   чтобы оба отступа совпадали. */
.container > .breadcrumbs {
    margin-bottom: calc(var(--space-8) - var(--block-gap));
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--text-color);
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: "/";
    color: #ccc;
    margin: 0 8px;
}

.breadcrumbs-list a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--primary-color);
}

.breadcrumbs-list a .fa-home {
    font-size: 14px;
}

.breadcrumbs-list li[aria-current="page"] {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Кнопка "Наверх" */
.scroll-top-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.2s ease;
}

.scroll-top-btn.is-visible {
    display: flex;
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 576px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

.page-header {
    padding: 0;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: left;
    margin-bottom: 0;
    line-height: 1.2;
}

.info-block {
    background-color: rgba(149, 204, 41, 0.1);
    border-radius: 8px;
    padding: var(--space-8);
}

.info-block-content {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.info-block-text {
    flex: 1;
}

.info-block-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.info-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.info-block h2,
.info-block .head2,
.info-block h3,
.info-block .head3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--secondary-color);
    text-align: left;
}

.info-block p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--space-4);
    text-align: left;
}

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

.double-info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
}

.double-info-block {
    background-color: rgba(149, 204, 41, 0.1);
    border-radius: 8px;
    padding: var(--space-7);
}

.double-info-block h3,
.double-info-block .head3,
.double-info-block h4,
.double-info-block .head4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
    text-align: left;
}

.double-info-block p {
    margin-bottom: var(--space-4);
}

.double-info-block p:last-child {
    margin-bottom: 0;
}

.cta-section {
    padding: var(--space-9) 0;
    text-align: center;
}

main > .container > .cta-section {
    padding: var(--space-8) 0;
}

.cta-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.cta-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--space-7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-text:last-of-type {
    margin-bottom: var(--space-7);
}

.pricing-section {
    padding: 0;
}

/* Таблица — последний блок в колонке контента (перед подвалом) */
.content-main > .pricing-section:last-child {
    padding-bottom: var(--spacing-after-faq);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.warranty-section .warranty-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.callout-box {
    background-color: rgba(149, 204, 41, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-4) var(--space-5);
    border-radius: 4px;
    margin: var(--space-6) 0;
}

.callout-box p {
    font-style: italic;
    margin: 0;
    color: var(--text-color);
}

/* Оглавление статьи */
.text-content .toc-block {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
    margin: var(--space-5) 0 var(--space-6);
}

/* Врезка (перенос .spec_block из style.css примера) */
.text-content .spec_block {
    background-color: #f4f4f4;
    color: var(--text-color);
    margin: 30px 0;
    padding: 30px;
    position: relative;
}

.text-content .spec_block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background-color: var(--primary-color);
}

.text-content .toc-title {
    margin: 0 0 var(--space-3);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.text-content .toc-list {
    counter-reset: toc-counter;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.1;
}

.text-content .toc-list li {
    counter-increment: toc-counter;
    margin: 0;
    font-size: 17px;
}

.text-content .toc-list li::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: var(--primary-color);
}

.text-content .toc-list a {
    color: inherit;
    text-decoration: underline dotted 1px;
    text-underline-offset: 4px;
}

.text-content .toc-list a:hover {
    color: var(--primary-color);
}

/* CTA-баннер со звонком */
.text-content .call-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(149, 204, 41, 0.08);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 18px 24px;
    margin: var(--space-7) 0;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--secondary-color);
}

.text-content .call-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.text-content .call-cta-icon i {
    color: #fff;
    font-size: 16px;
}

/* Нумерованные преимущества (перенос .benefits-list из style.css примера) */
.text-content .benefits-list {
    list-style: none;
    margin: var(--space-6) 0;
    padding: 0;
}

.text-content .benefit-item {
    display: flex;
    gap: 16px;
    margin: 0;
    padding-bottom: 22px;
}

.text-content .benefit-item:last-child {
    padding-bottom: 0;
}

.text-content .benefit-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.text-content .benefit-body {
    flex: 1;
}

.text-content .benefit-body p {
    margin: 0;
}

.text-content mark {
    background-color: rgba(149, 204, 41, 0.2);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Факторы цены («Из чего складывается цена») — сетка 2x2 с иконкой-бейджем */
.text-content .price-factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.text-content .price-factor {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.text-content .price-factor-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(149, 204, 41, 0.14);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.text-content .price-factor-body h3,
.text-content .price-factor-body .head3,
.text-content .price-factor-body h4,
.text-content .price-factor-body .head4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

.text-content .price-factor-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .text-content .price-factors-grid {
        grid-template-columns: 1fr;
    }
}

.text-content .call-cta a {
    color: var(--secondary-color);
    text-decoration: underline 2px dotted;
    text-decoration-color: var(--primary-color);
}

/* Карточки (методы, типы объектов) */
.text-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-5) 0 var(--space-6);
    list-style: none;
    padding: 0;
}

.text-content .feature-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: var(--space-4);
    margin: 0;
    font-size: inherit;
    line-height: normal;
}

.text-content .feature-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(149, 204, 41, 0.12);
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: var(--space-3);
}

.text-content .feature-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 0 var(--space-3);
}

.text-content .feature-card h4, .text-content .feature-card .head4 {
    margin: 0 0 var(--space-2);
    font-size: 17px;
    color: var(--secondary-color);
    text-align: center;
    line-height: 22px;    
}

.text-content .feature-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

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

/* Чек-лист (преимущества, факторы цены) */
.text-content .check-list {
    list-style: none;
    margin: var(--space-5) 0 var(--space-6);
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.text-content .check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.text-content .check-list li i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.text-content .check-list li strong {
    color: var(--secondary-color);
}

/* Таймлайн этапов работы */
.text-content .steps-list {
    list-style: none;
    margin: var(--space-5) 0 var(--space-6);
    padding: 0;
    counter-reset: step-counter;
    display: grid;
    gap: var(--space-4);
}

.text-content .steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.text-content .steps-list li::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content .steps-list li strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .text-content .check-list li,
    .text-content .steps-list li {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .text-content .check-list li,
    .text-content .steps-list li {
        font-size: 15px;
        line-height: 1.4;
    }
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray);
    text-align: left;
}

.pricing-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.pricing-table tr:hover {
    background-color: rgba(150, 204, 41, 0.082);
}

.pricing-table .service-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    line-height: 20px;    
}

.page-faq {
    padding: 0;
    padding-bottom: var(--spacing-after-faq);
}

.page-faq .faq-item:last-child {
    margin-bottom: 0;
}

/* Стили текстового контента */
.text-content {
    padding: 0;
}

.text-content > *:first-child {
    margin-top: 0;
}

.text-content h2, .text-content .head2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-top: var(--space-9);
    margin-bottom: var(--space-6);
    text-align: left;
    line-height: 1.2;    
}

.text-content h2:first-child, .text-content .head2:first-child {
    margin-top: 0;
}

.text-content h3, .text-content .head3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: var(--space-7);
    margin-bottom: var(--space-5);
    text-align: left;
}

.text-content p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: var(--space-5);
    text-align: left;
}

.text-content ul,
.text-content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.text-content ul li,
.text-content ol li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--space-2);
    text-align: left;
}

.text-content ul li:last-child,
.text-content ol li:last-child {
    margin-bottom: 0;
}

.text-content ul li strong,
.text-content ol li strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Только для страниц на новой вёрстке (layout-v2): стандартный текст 17px/1.6.
   Лежит здесь, а не в конце файла: при равной специфичности с точечными
   правилами компонентов ниже по файлу (2 класса + тип, например
   .text-content .feature-card p) побеждает последнее правило в файле — так
   что новым компонентам ниже уже не нужно добавлять .layout-v2 в свой
   селектор, чтобы не попасть под это увеличение шрифта. */
.layout-v2 .text-content p,
.layout-v2 .text-content ul li,
.layout-v2 .text-content ol li {
    font-size: 17px;
    line-height: 1.6;
}

/* Примечание под таблицей цен. Селектор p.pricing-note внутри .text-content
   нужен, чтобы перебить .text-content p и .layout-v2 .text-content p;
   блок должен стоять ниже них. */
.text-content p.pricing-note {
    text-align: left;
    margin-top: var(--space-4);
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Стили для текстовых элементов */
.text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--space-5);
}

.text-strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    text-align: left;
}

/* .pricing-section уже добавляет --spacing-after-table (32px) через
   padding-bottom, который не схлопывается с margin-top заголовка —
   иначе получаем 32+32=64px вместо нужных 32px */
.pricing-section + .subsection-title,
.pricing-section + h2.subsection-title,
.pricing-section + .head2.subsection-title {
    margin-top: 0;
}

.highlight-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    background-color: rgba(149, 204, 41, 0.15);
    padding: var(--space-4) var(--space-5);
    border-radius: 4px;
    text-align: center;
    margin: var(--space-7) 0;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(149, 204, 41, 0.35);
}

.btn-call:hover {
    background-color: #7db320;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-links {
    margin-top: var(--space-3);
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover {
    text-decoration: none;
    color: var(--primary-color);
    opacity: 1;
}

.service-callback-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: var(--space-7) 0;
    gap: 12px;
    padding: var(--space-6) var(--space-5);
    background-color: var(--light-gray);
    border-radius: 8px;
}

/* Убираем соседние отступы, чтобы сверху и снизу блока было одинаково */
.text-content > p:has(+ .service-callback-block) {
    margin-bottom: 0;
}

.text-content > .service-callback-block + h2,
.text-content > .service-callback-block + .head2,
.text-content > .service-callback-block + h3,
.text-content > .service-callback-block + .head3 {
    margin-top: 0;
}

.info-block-text > p:has(+ .service-callback-block) {
    margin-bottom: 0;
}

.service-callback-block .service-callback-note {
    margin: 0;
    width: 100%;
    max-width: none;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-color);
    text-align: center;
}

.service-callback-btn {
    margin: 0;
}

@media (max-width: 768px) {
    .service-callback-block {
        margin: var(--space-6) 0;
        gap: 10px;
        padding: var(--space-5) var(--space-4);
    }

    .service-callback-block .service-callback-note {
        font-size: 16px;
        line-height: 1.6;
    }

    .service-callback-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
    }
}

@media (max-width: 576px) {
    .service-callback-block {
        margin: var(--space-5) 0;
        gap: 8px;
        padding: var(--space-4);
    }

    .service-callback-block .service-callback-note {
        font-size: 15px;
        line-height: 1.55;
    }

    .service-callback-btn {
        max-width: 100%;
        width: 100%;
    }
}

.form-consent {
    margin: 0 0 var(--space-5);
    font-size: 13px;
    line-height: 1.45;
    color: #555;
}

.form-consent a,
.cookie-banner__text a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-consent a:hover,
.cookie-banner__text a:hover {
    text-decoration: underline;
}

.success-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    text-align: center;
}

.modal-content--error .success-icon {
    color: #c0392b;
}

.success-message {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: var(--space-6);
    line-height: 1.45;
}

.modal-content--success .modal-body {
    text-align: center;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
}

body.menu-open .cookie-banner,
body:has(.modal.active) .cookie-banner {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.cookie-banner__btn {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-banner__btn {
        width: 100%;
    }

}

.legal-content h2, .legal-content .head2 {
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
}

.legal-content ul {
    margin: 0 0 var(--space-5) 1.2em;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .info-block-content {
        flex-direction: column;
    }
    
    .info-block-image {
        order: -1;
    }
    
    .double-info-blocks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding-x: 16px;
        --block-gap: 32px;
        --title-gap: 24px;
        --spacing-after-table: 28px;
        --spacing-after-faq: 40px;
    }

    .banner-description {
        font-size: 16px;
        margin-bottom: var(--space-6);
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        padding: var(--space-5);
    }

    .service-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
        margin-right: 16px;
    }

    .consultation-form {
        padding: var(--space-6);
    }

    .history-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        width: 100%;
    }

    .modal-header {
        padding: 24px 20px 0;
    }

    .modal-body {
        padding: 0 20px 20px;
    }

    .page-title {
        font-size: 28px;
    }
    
    .info-block {
        padding: var(--space-6);
    }
    
    .double-info-block {
        padding: var(--space-6);
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: var(--space-3) var(--space-4);
    }

    main > .container {
        gap: var(--block-gap-sm);
        padding-top: var(--space-6);
        padding-bottom: var(--section-padding-y-md);
    }

    .services,
    .consultation-history,
    .reviews,
    .faq {
        padding-top: var(--section-padding-y-md);
    }

    .faq {
        padding-bottom: calc(var(--section-padding-y-md) + var(--spacing-after-faq));
    }

    :root {
        --spacing-after-table: 28px;
        --spacing-after-faq: 40px;
    }

    .stats {
        padding-top: var(--section-padding-y-sm);
        padding-bottom: var(--section-padding-y-sm);
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 30px;
    }
    
    .info-block h2,
.info-block .head2,
.info-block h3,
.info-block .head3 {
        font-size: 24px;
    }
    
    .double-info-block h3,
.double-info-block .head3,
.double-info-block h4,
.double-info-block .head4 {
        font-size: 20px;
    }
}

/* Сетка карточек услуг */
.services-another-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    margin-bottom: 0;
}

.service-another-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: var(--transition);
    min-height: 120px;
    min-width: 0;
    justify-content: space-between;
    height: 100%;
}

.service-another-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.service-another-card h3, .service-another-card .head3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.service-another-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    max-width: 100%;
}

/* Адаптивность для карточек услуг */
@media (max-width: 1200px) {
    .services-another-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-4);
    }
}

@media (max-width: 992px) {
    .services-another-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .service-another-card {
        min-height: 110px;
        padding: var(--space-4);
    }
}

@media (max-width: 576px) {
    .services-another-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .service-another-card {
        min-height: 0;
        padding: var(--space-3);
        align-items: stretch;
    }

    .service-another-card h3, .service-another-card .head3 {
        font-size: 14px;
        margin-bottom: var(--space-3);
    }

    .service-another-btn {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .service-another-card h3, .service-another-card .head3 {
        font-size: 13px;
    }

    .service-another-btn {
        font-size: 12px;
        padding: 7px 8px;
    }
}

/* Стили для страницы вакансии */
.vacancy-form-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(135deg, rgba(149, 204, 41, 0.05) 0%, rgba(149, 204, 41, 0.02) 100%);
    min-height: calc(100vh - 200px);
}

.vacancy-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: var(--space-10);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.vacancy-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-7);
    text-align: center;
}

.vacancy-form-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-7);
    text-align: center;
}

.vacancy-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-field label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.form-field label .field-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

.form-field input,
.form-field textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.vacancy-form-submit {
    margin-top: var(--space-5);
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.vacancy-form-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-7);
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.vacancy-form-footer p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    :root {
        --container-padding-x: 16px;
        --block-gap: 32px;
        --title-gap: 24px;
    }

    .vacancy-form-container {
        padding: var(--space-7) var(--space-5);
        margin: 0 auto;
    }
    
    .vacancy-form-title {
        font-size: 24px;
    }
    
    .vacancy-form-subtitle {
        font-size: 18px;
    }
}

/* Стили для страницы 404 */
.error-404 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--container-padding-x);
}

.error-404-content {
    text-align: center;
    max-width: 600px;
}

.error-404-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-5);
}

.error-404-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
}

.error-404-text {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: var(--space-7);
    line-height: 1.6;
}

.error-404-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.error-404-btn:hover {
    background-color: #7db320;
}

/* Адаптивность для страницы 404 */
@media (max-width: 768px) {
    .error-404-code {
        font-size: 100px;
    }
    
    .error-404-title {
        font-size: 28px;
    }
    
    .error-404-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .error-404-code {
        font-size: 80px;
    }
    
    .error-404-title {
        font-size: 24px;
    }
    
    .error-404 {
        min-height: calc(100vh - 70px);
    }
}

/* Адаптивность для текстового контента */
@media (max-width: 768px) {
    .text-content h2, .text-content .head2 {
        font-size: 20px;
        margin-top: 40px;
    }
    
    .text-content h3, .text-content .head3 {
        font-size: 18px;
        margin-top: 30px;
    }
    
    .text-content p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .text-content ul li,
    .text-content ol li {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .subsection-title {
        font-size: 20px;
        margin-top: 25px;
    }
    
    .text {
        font-size: 16px;
    }
    
    .highlight-text {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .text-content h2, .text-content .head2 {
        font-size: 27px;
        margin-top: 30px;
        margin-bottom: 20px;
        line-height: 32px;        
    }
    
    .text-content h3, .text-content .head3 {
        font-size: 16px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .text-content p,
    .layout-v2 .text-content p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .text-content ul,
    .text-content ol {
        margin: 20px 0;
        padding-left: 25px;
    }
    
    .text-content ul li,
    .text-content ol li,
    .layout-v2 .text-content ul li,
    .layout-v2 .text-content ol li {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 3px;
    }
    
    .subsection-title {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .text {
        font-size: 15px;
    }
    
    .highlight-text {
        font-size: 16px;
        padding: 12px 15px;
        margin: 25px 0;
    }
    
    .btn-call {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* FAQ as button + honeypot */
button.faq-question {
    width: 100%;
    border: none;
    margin: 0;
    font: inherit;
    justify-content: space-between;
    align-items: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

img.article {
  float: left;
  max-width: 100%;
  height: auto;
  margin-right: 20px;
}

@media (max-width: 480px) {
  img.article {
    float: none;
    width: 100%;
    margin: 0 0 30px;
  }
}

/* =====================================================================
   НАЧАЛО: СТРАНИЦА «УНИЧТОЖЕНИЕ ТАРАКАНОВ»
   Только .roach-page. Все стили этой страницы редактируются в этом блоке.
   Файл: uslugi/dopolnitelnyye/dezinsektsiya/unichtozhenie-tarakanov.php
   ===================================================================== */
.roach-page { --roach-ink: #202a25; --roach-muted: #58625b; --roach-line: #dde4db; color: var(--roach-ink); padding-bottom: 72px; }
.roach-page > .container { display: block; padding-bottom: 0; }
.roach-page .breadcrumbs { margin-bottom: 24px; }
.roach-page .btn-primary { color: #202a25; font-weight: 700; }
.roach-page h1, .roach-page h2, .roach-page .head2, .roach-page h3, .roach-page .head3, .roach-page p { margin: 0; }
.roach-page h2, .roach-page .head2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; font-weight: 750; margin-bottom: 20px; }
.roach-page h3, .roach-page .head3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.roach-page p { font-size: 16px; line-height: 1.75; color: var(--roach-muted); }
.roach-page .roach-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; color: #4b603c; }
.roach-page .roach-small { font-size: 12px; line-height: 1.65; margin-top: 16px; }
.roach-page .btn { min-height: 50px; padding: 15px 22px; border-radius: 9px; font-size: 14px; line-height: 1.5; white-space: normal; text-align: center; }
.roach-page a:focus-visible, .roach-page button:focus-visible, .roach-page summary:focus-visible { outline: 3px solid #45651b; outline-offset: 5px; }
.roach-page .roach-hero { display: grid; grid-template-columns: 1.15fr 1fr; background: #f1f4ed; border: 1px solid var(--roach-line); border-radius: 22px; overflow: hidden; }
.roach-page .roach-hero-copy { padding: clamp(26px, 4vw, 54px); align-self: center; }
.roach-page h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; margin-bottom: 24px; }
.roach-page h1 span { color: #56674c; }
.roach-page .roach-lead { max-width: 530px; }
.roach-page .roach-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.roach-page .roach-phone { font-size: 16px; font-weight: 700; color: var(--roach-ink); text-decoration: none; }
.roach-page .roach-hero-media { position: relative; min-height: 400px; }
.roach-page .roach-hero-media > img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.roach-page .roach-photo-note { position: absolute; bottom: 20px; left: 20px; right: 20px; background: #ffffffed; padding: 18px 22px; border-radius: 12px; }
.roach-page .roach-photo-note span, .roach-page .roach-photo-note strong { display: block; }
.roach-page .roach-photo-note span { color: var(--roach-muted); font-size: 12px; margin-bottom: 6px; }
.roach-page .roach-photo-note strong { font-size: 16px; }
.roach-page .roach-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 12px; border-bottom: 1px solid var(--roach-line); }
.roach-page .roach-trust > div { display: flex; gap: 14px; align-items: center; }
.roach-page .roach-trust i { font-size: 22px; color: #537129; }
.roach-page .roach-trust span { font-size: 12px; color: var(--roach-muted); line-height: 1.6; }
.roach-page .roach-trust strong { display: block; font-size: 14px; color: var(--roach-ink); }
.roach-page .roach-nav { display: flex; gap: 10px; flex-wrap: wrap; padding: 24px 0 0; }
.roach-page .roach-nav a { color: var(--roach-muted); border: 1px solid var(--roach-line); border-radius: 30px; padding: 9px 16px; font-size: 13px; text-decoration: none; }
.roach-page .roach-nav a:hover { color: var(--roach-ink); background: #edf3e4; border-color: #9db67b; }
.roach-page .roach-section { margin-top: 76px; scroll-margin-top: 130px; }
.roach-page .roach-section-intro { max-width: 680px; margin-bottom: 28px; }
.roach-page .roach-price-layout, .roach-page .roach-objects { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.roach-page .roach-price-help { margin-top: 24px; }
.roach-page .roach-checks { list-style: none; padding: 0; margin: 0 0 24px; }
.roach-page .roach-checks li { padding-left: 24px; position: relative; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.roach-page .roach-checks li::before { content: "✓"; position: absolute; left: 0; color: #527727; font-weight: 700; }
.roach-page .roach-price-card { border: 1px solid var(--roach-line); border-radius: 16px; padding: 24px; align-self: start; }
.roach-page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.roach-page caption { text-align: left; font-size: 20px; font-weight: 700; padding-bottom: 18px; }
.roach-page th, .roach-page td { padding: 15px 8px; text-align: left; border-bottom: 1px solid var(--roach-line); }
.roach-page thead th { font-size: 11px; color: var(--roach-muted); text-transform: uppercase; letter-spacing: .06em; background: #f5f7f2; }
.roach-page tbody th { font-weight: 500; }
.roach-page td { text-align: right; font-weight: 700; white-space: nowrap; }
.roach-page thead th:last-child { text-align: right; }
.roach-page .roach-soft { background: #f4f6f1; padding: 40px; border-radius: 20px; }
.roach-page .roach-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.roach-page .roach-step-number { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: #e3edcf; border-radius: 50%; color: #466225; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.roach-page .roach-steps p, .roach-page .roach-method p, .roach-page .roach-object-list p { font-size: 14px; }
.roach-page .roach-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roach-page .roach-method { border: 1px solid var(--roach-line); border-radius: 16px; overflow: hidden; }
.roach-page .roach-method img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.roach-page .roach-method > div { padding: 24px; }
.roach-page .roach-assurance { background: #24372e; color: white; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.roach-page .roach-assurance p { color: #d0dbd3; }
.roach-page .roach-assurance .roach-eyebrow { color: #c1e391; }
.roach-page .roach-assurance-points > div + div { border-top: 1px solid #506257; padding-top: 20px; margin-top: 20px; }
.roach-page .roach-assurance-points p { font-size: 14px; }
.roach-page .roach-object-list > div { padding: 20px 0; border-bottom: 1px solid var(--roach-line); }
.roach-page .roach-object-list > div:first-child { padding-top: 0; }
.roach-page .roach-faq { max-width: 900px; }
.roach-page .roach-faq details { border-bottom: 1px solid var(--roach-line); }
.roach-page .roach-faq summary { position: relative; cursor: pointer; padding: 24px 40px 24px 0; font-size: 16px; font-weight: 600; list-style: none; line-height: 1.5; }
.roach-page .roach-faq summary::-webkit-details-marker { display: none; }
.roach-page .roach-faq summary::after { content: "+"; position: absolute; right: 6px; top: 21px; font-size: 25px; color: #557132; font-weight: 400; }
.roach-page .roach-faq details[open] summary::after { content: "−"; }
.roach-page .roach-faq details p { padding: 0 32px 24px 0; font-size: 15px; }
.roach-page .roach-final { margin-top: 76px; padding: 44px; border: 1px solid #cfdcbb; border-radius: 20px; background: #eef4e5; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
.roach-page .roach-final p { max-width: 530px; }
.roach-page .roach-final-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.roach-page .roach-final-actions .btn { width: 100%; max-width: 320px; }
.roach-page .roach-final-actions a { font-size: 21px; font-weight: 700; color: var(--roach-ink); text-decoration: none; }
.roach-page .roach-final-actions span { font-size: 12px; color: var(--roach-muted); }
@media (max-width: 1000px) {
    .roach-page .roach-hero { grid-template-columns: 1.2fr 1fr; }
    .roach-page .roach-hero-copy { padding: 28px; }
    .roach-page .roach-price-layout, .roach-page .roach-objects { gap: 30px; }
    .roach-page .roach-steps { grid-template-columns: repeat(2, 1fr); }
    .roach-page .roach-assurance { gap: 30px; padding: 32px; }
    .roach-page .roach-methods { gap: 14px; }
    .roach-page .roach-method > div { padding: 18px; }
}
@media (max-width: 700px) {
    .roach-page { padding-bottom: 40px; }
    .roach-page .roach-hero, .roach-page .roach-price-layout, .roach-page .roach-objects, .roach-page .roach-assurance, .roach-page .roach-final { grid-template-columns: 1fr; }
    .roach-page .roach-hero-copy { padding: 28px 22px; }
    .roach-page .roach-hero-media { min-height: 260px; }
    .roach-page .roach-trust { grid-template-columns: 1fr; gap: 18px; padding: 24px 4px; }
    .roach-page .roach-trust > div { gap: 18px; }
    .roach-page .roach-trust i { width: 24px; text-align: center; }
    .roach-page .roach-nav { gap: 8px; }
    .roach-page .roach-nav a { font-size: 12px; padding: 8px 12px; }
    .roach-page .roach-section, .roach-page .roach-final { margin-top: 48px; }
    .roach-page .roach-soft, .roach-page .roach-assurance, .roach-page .roach-final { padding: 26px 22px; border-radius: 16px; }
    .roach-page .roach-methods { grid-template-columns: 1fr; gap: 20px; }
    .roach-page .roach-method img { aspect-ratio: 16 / 8; }
    .roach-page .roach-price-card { padding: 18px 14px; }
    .roach-page th, .roach-page td { padding: 14px 4px; font-size: 13px; }
    .roach-page .roach-final-actions { align-items: stretch; text-align: center; }
    .roach-page .roach-final-actions .btn { max-width: none; }
}
@media (max-width: 420px) {
    .roach-page .roach-steps { grid-template-columns: 1fr; gap: 24px; }
    .roach-page .roach-step-number { margin-bottom: 12px; }
    .roach-page .roach-actions { align-items: stretch; flex-direction: column; }
    .roach-page .roach-phone { text-align: center; }
}
/* КОНЕЦ: СТРАНИЦА «УНИЧТОЖЕНИЕ ТАРАКАНОВ» ============================= */









/* ---------- Блок "Где проводим обработку от тараканов" (объекты с фото) ----------
   Блок вставлен внутрь .text-content, поэтому у заголовков/абзацев карточек
   селекторы намеренно с префиксом .text-content — это поднимает специфичность
   выше, чем у общих правил .text-content h3 / .text-content p (иначе те
   перебивают стили карточек, и блок выглядит иначе, чем задумано). */
.svc-objects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin: var(--space-5) 0 var(--space-6);
}

.svc-object-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray);
    background-color: var(--white);
}

.svc-object-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
}

.svc-object-card-body {
    padding: var(--space-5);
}

.text-content .svc-object-card h3, .text-content .svc-object-card .head3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 6px;
    text-align: left;
}

.text-content .svc-object-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

.text-content h3.subsection-title, .text-content .head3.subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    text-align: left;
}

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

/* ==========================================================================
   НОВОЕ: Контент + правый сайдбар (двухколоночная раскладка внутренних страниц)
   ========================================================================== */

/* Ширины и зазоры — как на странице коренщиц (Bootstrap 4: container + col-lg-9 / col-lg-3):
   контейнер 1140 / 960 / 720 / 540, паддинг 15px; между текстом и сайдбаром 50px;
   сайдбар = 25% строки минус 42.5px (25% ряда − 2×15 паддинга − 20 отступ виджета). */
main.layout-v2 > .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) {
    main.layout-v2 > .container { max-width: 540px; }
}

@media (min-width: 768px) {
    main.layout-v2 > .container { max-width: 720px; }
}

@media (min-width: 992px) {
    main.layout-v2 > .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    main.layout-v2 > .container { max-width: 1140px; }
}

.content-row {
    display: flex;
    align-items: stretch; /* колонки равны по высоте — это даёт "sticky" блоку место для прилипания */
    gap: 50px;
}

.content-main {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--block-gap);
}

.content-sidebar {
    flex: 0 0 calc(25% - 42.5px);
    width: calc(25% - 42.5px);
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: 100%; /* растягиваем до высоты .content-main, иначе sticky-блоку некуда "плыть" */
}

/* Прилипает при прокрутке только блок под меню категорий (виджет менеджера и т.п.) */
.sidebar-sticky-cta {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.widget {
    margin-bottom: var(--space-8);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    position: relative;
    margin: 0 0 var(--space-6);
    padding-left: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
}

/* Дерево категорий (аккордеон на чекбоксах) */
.cat-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-menu-item {
    margin-bottom: 8px;
}

.cat-menu-item:last-child {
    margin-bottom: 0;
}

.cat-menu-toggle {
    display: none;
}

.cat-menu-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 40px 12px 14px;
    background: var(--light-gray);
    border-left: 3px solid #dedede;
    transition: border-color 0.2s;
}

.cat-menu-toggle:checked ~ .cat-menu-row {
    border-left-color: var(--primary-color);
}

.cat-menu-link {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-menu-link:hover {
    color: var(--primary-color) !important;
}

.cat-menu-toggle:checked ~ .cat-menu-row .cat-menu-link {
    color: var(--primary-color) !important;
}

.cat-menu-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: var(--primary-color);
    margin: 0;
}

.cat-menu-arrow:before {
    display: block;
    line-height: 1;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f067";
}

.cat-menu-toggle:checked ~ .cat-menu-row .cat-menu-arrow:before {
    content: "\f068";
}

.cat-menu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cat-menu-sub li {
    border-top: 1px solid #ededed;
}

.cat-menu-sub li a {
    display: flex;
    align-items: center;
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 14px;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-menu-sub li a:before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 2px;
    font-size: 14px;
    color: #b0b0b0;
    transition: color 0.2s;
}

.cat-menu-sub li a:hover {
    color: var(--primary-color) !important;
}

.cat-menu-sub li a:hover:before {
    color: var(--primary-color);
}

.cat-menu-sub li.active > a {
    display: block; /* не flex: иначе span-маркер становится блоком и не рисует штрих по строкам */
    color: var(--secondary-color) !important;
    font-weight: 700;
    line-height: 1.45;
}

.cat-menu-sub li.active > a:before {
    color: var(--primary-color);
    top: 50%; /* раньше центрировалось через align-items: center у flex */
    transform: translateY(-50%);
}

/* Зелёный штрих: рисуется фоном на inline-элементе, поэтому
   при переносе текста на 2+ строки подсвечивается каждая строка отдельно */
.cat-menu-highlight {
    display: inline;
    padding: 2px 5px;
    margin: 0 -5px;
    background: linear-gradient(#E4F2C1, #E4F2C1) 0 64% / 100% 78% no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    border-radius: 2px 8px 3px 7px / 6px 3px 7px 4px;
}

.cat-menu-toggle:checked ~ .cat-menu-sub {
    max-height: 900px;
}

/* «Окно» из 5 подпунктов + спойлеры скрытых пунктов (см. cat-menu-spoiler.js) */
.cat-menu-sub li.cm-hidden {
    display: none;
}

.cat-menu-spoiler {
    border-top: 1px solid #ededed;
}

.cat-menu-spoiler-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 0 7px 26px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    text-align: left;
}

.cat-menu-spoiler-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.cat-menu-spoiler-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b0b0b0;
    transition: background 0.2s;
}

.cat-menu-spoiler-btn:hover .cat-menu-spoiler-dots span {
    background: var(--primary-color);
}

.cat-menu-spoiler-text {
    color: var(--text-color);
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.cat-menu-spoiler-btn:hover .cat-menu-spoiler-text {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .content-row {
        flex-direction: column;
        gap: 48px; /* как mb-5 у колонки контента на странице коренщиц */
    }

    .content-sidebar {
        width: 100%;
        flex: 1 1 auto;
    }

    .sidebar-sticky {
        height: auto;
    }

    .sidebar-sticky-cta {
        position: static;
    }
}

/* Виджет "менеджер" (перенос .quote-item / .quote-border из style.css примера) */
img.testimonial-thumb {
    max-width: 180px;
    border-radius: 5px;
}

.quote-item.quote-border .quote-text-border {
    border: 1px solid var(--primary-color);
    padding: 20px;
    position: relative;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
}

.quote-item.quote-border .quote-text-border:before {
    border: 12px solid;
    border-color: #e1e1e1 transparent transparent;
    border-top-color: var(--primary-color);
    bottom: -24px;
    position: absolute;
    content: "";
    display: block;
    height: 0;
    width: 0;
    left: 0;
    margin: 0 auto;
    right: 0;
}

.quote-item.quote-border .quote-text-border:after {
    border: 12px solid;
    border-color: #fff transparent transparent;
    bottom: -22px;
    position: absolute;
    content: "";
    display: block;
    height: 0;
    width: 0;
    left: 0;
    margin: 0 auto;
    right: 0;
}

.quote-item.quote-border .quote-item-footer {
    margin-top: 35px;
    text-align: center;
}

.quote-item.quote-border .quote-item-footer img.testimonial-thumb {
    float: none;
    margin: 0;
}

.quote-item.quote-border .quote-item-footer .quote-item-info {
    display: block;
    padding-top: 15px;
}

.quote-author {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 2px;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

.quote-subtext {
    display: block;
    font-size: 13px;
    color: var(--text-color);
}

.quote-item-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.quote-item-info a:hover {
    color: var(--primary-color);
}

/* Своя типографика карточек внутри layout-v2 (крупнее .layout-v2 .text-content p
   по специфичности, поэтому надёжно её не перебивает) */
.layout-v2 .text-content .feature-card p {
    font-size: 15px;
    line-height: 1.5;
}

.layout-v2 .text-content .svc-object-card p {
    font-size: 14px;
    line-height: 1.5;
}

.layout-v2 .text-content .price-factor-body p {
    font-size: 14px;
    line-height: 1.5;
}

/* Более "живая" зелёная таблица цен (только на новой вёрстке) */
.layout-v2 .pricing-table {
    border-radius: 10px;
    overflow: hidden;
}

.layout-v2 .pricing-table th {
    background: linear-gradient(135deg, #A3D93A, #82B81E);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.layout-v2 .pricing-table tr:nth-child(even) {
    background-color: rgba(149, 204, 41, 0.12);
}

.layout-v2 .pricing-table tr:hover {
    background-color: rgba(149, 204, 41, 0.22);
}

.layout-v2 .pricing-table td {
    border-bottom: none;
}

.layout-v2 .pricing-table th:last-child,
.layout-v2 .pricing-table td:last-child {
    text-align: right;
}

/* CTA "Заказать звонок" — cta-2.php, карточка с иконкой, серый фон (вариант 2) */
.cta-2-block {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 28px 24px;
    margin: var(--space-6) 0;
    text-align: center;
}

.cta-2-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(149, 204, 41, 0.14);
    color: var(--primary-color);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.cta-2-btn {
    font-size: 15px;
    padding: 13px 28px;
}

/* Специфичность .text-content p (0,1,1) выше одноклассовых
   .cta-2-headline/.cta-2-note — поэтому квалифицируем через .text-content,
   иначе цвет/выравнивание молча перебиваются базовым правилом абзацев */
.text-content .cta-2-title,
.text-content .cta-2-headline,
.text-content .cta-2-note {
    text-align: center;
}

.cta-2-icon i {
    transform: scaleX(-1);
}

.text-content .cta-2-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.layout-v2 .text-content .cta-2-headline {
    margin: 0 auto 18px;
    max-width: 380px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.layout-v2 .text-content .cta-2-note {
    margin: 12px 0 0;
    font-size: 15px;
    color: #888;
}

/* Разделитель под заголовком страницы (перенос из style.css примера) */
.layout-v2 .page-header hr {
    background-color: #e7e7e7;
    border: 0;
    height: 1px;
    margin: var(--space-8) 0 0;
}

/* Мобильные: отступ h1 от крошек сверху и от линии снизу — 40px → 20px.
   Расстояние до крошек = flex-gap (--block-gap-sm) + margin-bottom крошек,
   поэтому margin-bottom считаем от gap. */
@media (max-width: 768px) {
    .container > .breadcrumbs {
        margin-bottom: calc(var(--space-6) - var(--block-gap-sm));
    }

    .layout-v2 .page-header hr {
        margin-top: var(--space-5);
    }
}

/* блок "Как проходит визит мастера" */

.visit-steps--timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    margin: var(--space-6) 0;
}

.visit-steps--timeline .visit-step {
    position: relative;
    min-width: 0;
}

.visit-steps--timeline .visit-step-top {
    position: relative;
    height: 48px;
    margin-bottom: var(--space-3);
}

.visit-steps--timeline .visit-step-num {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: var(--secondary-color);
}

.visit-steps--timeline .visit-step-dot {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.visit-steps--timeline .visit-step:not(:last-child) .visit-step-top::after {
    content: '';
    position: absolute;
    left: 18px;
    right: calc(var(--space-6) * -1 + 8px);
    bottom: 4px;
    height: 2px;
    background: #e5e5e5;
}

.text-content .visit-steps--timeline h3, .text-content .visit-steps--timeline .head3 {
    margin: 0 0 var(--space-2);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--secondary-color);
}

.text-content .visit-steps--timeline p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .visit-steps--timeline {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .visit-steps--timeline .visit-step {
        padding-left: 38px;
    }

    .visit-steps--timeline .visit-step-top {
        position: absolute;
        left: 0;
        top: 0;
        width: 24px;
        height: 100%;
        margin: 0;
    }

    .visit-steps--timeline .visit-step-num {
        display: none;
    }

    .visit-steps--timeline .visit-step-dot {
        top: 6px;
        bottom: auto;
        width: 12px;
        height: 12px;
    }

    .visit-steps--timeline .visit-step:not(:last-child) .visit-step-top::after {
        left: 5px;
        top: 22px;
        bottom: -26px;
        right: auto;
        width: 2px;
        height: auto;
    }
}

/* Методы уничтожения плесени: на десктопе компактные горизонтальные карточки
   (картинка 600×333 слева, текст справа), на мобильных — как feature-card:
   картинка сверху на всю ширину, текст под ней.
   Селекторы с .text-content нужны, чтобы перебить .text-content ul / ul li
   (padding-left, margin-bottom, font-size). */
.text-content .method-list {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-5) 0 var(--space-6);
    padding: 0;
    list-style: none;
}

.text-content .method-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin: 0;
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.text-content .method-item__img {
    flex: 0 0 200px;
    display: block;
    width: 200px;
    height: auto;
    aspect-ratio: 600 / 333;
    margin: var(--space-4) 0 var(--space-4) var(--space-2);
}

.text-content .method-item__body {
    flex: 1;
    padding: var(--space-4) var(--space-5) var(--space-4) 0;
}

.text-content .method-item__body .head4 {
    margin: 0 0 var(--space-1);
    font-size: 17px;
    color: var(--secondary-color);
    text-align: left;
}

.layout-v2 .text-content .method-item__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .text-content .method-item { gap: var(--space-4); }
    .text-content .method-item__img { flex-basis: 160px; width: 160px; }
    .text-content .method-item__body { padding-right: var(--space-4); }
}

@media (max-width: 576px) {
    .text-content .method-list { gap: var(--space-4); }

    .text-content .method-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        padding: var(--space-4);
    }

    .text-content .method-item__img {
        flex: none;
        width: 100%;
        margin: 0;
    }

    .text-content .method-item__body { padding: 0; }
    .text-content .method-item__body .head4 { text-align: center; }
}
