/* =============================================================================
   AsfaltProfi / Geometria-style theme — main stylesheet
   ============================================================================= */

/* -----------------------------------------------------------------------------
   01. CSS variables
   ----------------------------------------------------------------------------- */
:root {
    --ap-orange: #ff6a00;
    --ap-orange-dark: #df5700;
    --ap-orange-shadow: #c94b00;
    --ap-dark: #171717;
    --ap-dark-2: #242424;
    --ap-text: #222222;
    --ap-muted: #666666;
    --ap-light: #f4f4f4;
    --ap-white: #ffffff;
    --ap-border: #d7d7d7;
    --ap-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
    
    --ap-header-top-h: 38px;
    --ap-header-bottom-h: 50px;
    --ap-header-h: calc(var(--ap-header-top-h) + var(--ap-header-bottom-h));
    --ap-header-bg: #ffffff;
    --ap-header-border: rgba(0, 0, 0, 0.08);
    --ap-header-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    --ap-header-text: #242424;
    --ap-header-nav-size: 15px;
    --ap-header-phone-size: 15px;

    --ap-btn-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ap-btn-duration: 0.35s;

    --ap-page-banner-radius: 18px;
    --ap-page-banner-min-h: 260px;
    --ap-breadcrumb-link: #2f8fd4;
    --ap-breadcrumb-current: #222222;
    --ap-breadcrumb-sep: #888888;
}

/* -----------------------------------------------------------------------------
   02. Reset & base
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: var(--ap-header-h);
    padding-bottom: 0;
    font-family: Arial, sans-serif;
}

#content,
.site-content,
main.site-main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.55;
}
/* -----------------------------------------------------------------------------
   03. Layout
   ----------------------------------------------------------------------------- */
.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.narrow-container {
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
}

/* -----------------------------------------------------------------------------
   04. Accessibility
   ----------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 9999;
    background: var(--ap-white);
    padding: 10px 16px;
    color: var(--ap-text);
    text-decoration: none;
}

.skip-link:focus {
    left: 10px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------------------------------------------
   05. Site header — 2 rows
   ----------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--ap-header-bg);
    border-bottom: none;
    box-shadow: var(--ap-header-shadow);
}

.header-shell {
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--ap-header-top-h);
    padding: 12px 0;
}

.header-top__brand {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 auto;
}

.site-logo-image {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-image img {
    display: block;
    width: auto;
    height: 56px;
    max-width: 260px;
    object-fit: contain;
}

.header-top__divider {
    flex: 0 0 auto;
    width: 1px;
    height: 44px;
    background: #d0d0d0;
}

.header-tagline {
    margin: 0;
    max-width: 240px;
    color: var(--ap-header-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.header-top__aside,
.header-top__center {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(28px, 4vw, 56px);
    flex: 0 0 auto;
}

.header-top__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.header-top__cta .header-btn {
    min-width: 200px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    white-space: nowrap;
}

.header-email {
    margin: 0 0 0 10px;
    color: var(--ap-header-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.header-email:hover {
    color: var(--ap-orange);
}

.header-top__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    text-align: right;
}

.header-top__contacts .header-phone {
    color: var(--ap-header-text);
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.header-top__contacts .header-phone:hover {
    color: var(--ap-orange);
}

.header-hours {
    margin: 0;
    color: var(--ap-header-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    opacity: 0.85;
}

.header-bottom {
    border-top: none;
}

.main-nav .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .menu > li {
    display: flex;
    position: relative;
}

.main-nav .menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ap-header-bottom-h);
    padding: 0 22px;
    color: var(--ap-header-text);
    font-size: var(--ap-header-nav-size);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    transition: color 0.2s ease;
}

.main-nav .menu > li:not(.current-menu-item):not(.current_page_item):not(.current-menu-ancestor):not(.current-menu-parent):not(.ap-menu-item--active) > a:hover {
    color: var(--ap-orange);
}

.main-nav .menu > .current-menu-item > a,
.main-nav .menu > .current_page_item > a,
.main-nav .menu > .current-menu-ancestor > a,
.main-nav .menu > .current-menu-parent > a,
.main-nav .menu > .ap-menu-item--active > a,
.main-nav .menu a[aria-current="page"] {
    background: transparent;
    color: var(--ap-orange);
}

.main-nav .menu > .current-menu-item > a::after,
.main-nav .menu > .current_page_item > a::after,
.main-nav .menu > .current-menu-ancestor > a::after,
.main-nav .menu > .current-menu-parent > a::after,
.main-nav .menu > .ap-menu-item--active > a::after,
.main-nav .menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--ap-orange);
}

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

.burger {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ap-header-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav .menu > li.menu-item-has-children {
    position: relative;
}

.main-nav .menu > li.menu-item-has-children > a {
    padding-right: 34px;
}

.main-nav .menu > li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.75;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.main-nav .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 320px;
    max-width: min(420px, 92vw);
    max-height: 70vh;
    margin: 0;
    padding: 8px 0;
    overflow: auto;
    list-style: none;
    background: var(--ap-header-bg);
    border: 1px solid var(--ap-header-border);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Десктоп: hover / focus / класс JS */
@media (min-width: 981px) {
    .main-nav li:hover > .sub-menu,
    .main-nav li:focus-within > .sub-menu,
    .main-nav li.is-submenu-open > .sub-menu {
        display: block;
    }
}

.main-nav .sub-menu a {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
}

.main-nav .sub-menu a::after {
    display: none;
}

.main-nav .sub-menu > .current-menu-item > a,
.main-nav .sub-menu > .ap-menu-item--active > a {
    color: var(--ap-orange);
    background: rgba(255, 106, 0, 0.08);
}

@media (max-width: 1100px) {
    .header-top__aside,
    .header-top__center {
        gap: 24px;
    }

    .header-tagline {
        max-width: 180px;
        font-size: 14px;
    }

    .header-top__cta .header-btn {
        min-width: 170px;
    }
}

@media (max-width: 980px) {
    :root {
        --ap-header-top-h: 70px;
        --ap-header-bottom-h: 0px;
        --ap-header-h: var(--ap-header-top-h);
    }

    .header-top {
        flex-wrap: wrap;
        position: relative;
        z-index: 1003;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 1004;
    }

    .header-top__aside,
    .header-top__center,
    .header-top__contacts {
        display: none;
    }

    .header-tagline,
    .header-top__divider {
        display: none;
    }

    .site-logo-image img {
        height: 46px;
        max-width: 220px;
    }

    .header-bottom {
        display: none;
        width: 100%;
        position: relative;
        z-index: 1002;
        max-height: calc(100vh - var(--ap-header-top-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-bottom.is-open {
        display: block;
    }

    .main-nav .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav .menu > li {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav .menu a {
        width: 100%;
        justify-content: flex-start;
        min-height: 48px;
        padding: 12px 16px;
    }

    /* Мобилка: подменю только по классу (не hover) */
    .header-bottom.is-open .main-nav .sub-menu {
        display: none;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .header-bottom.is-open .main-nav .menu-item-has-children.is-submenu-open > .sub-menu {
        display: block;
    }

    .header-bottom.is-open .main-nav .menu-item-has-children.is-submenu-open > a::before {
        transform: translateY(-35%) rotate(-135deg);
    }

    .header-bottom.is-open .main-nav .sub-menu a {
        padding: 10px 16px 10px 28px;
        font-size: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header-bottom.is-open .main-nav .sub-menu > li:last-child > a {
        border-bottom: 0;
    }

    .header-mobile-actions {
        display: grid;
        gap: 10px;
        padding: 0 0 16px;
        border-top: 1px solid var(--ap-header-border);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .site-logo-image img {
        height: 40px;
        max-width: 190px;
    }
}

@media (min-width: 981px) {
    .header-bottom {
        display: block;
    }

    .burger {
        display: none !important;
    }
}

/* -----------------------------------------------------------------------------
   06. Buttons
   ----------------------------------------------------------------------------- */
.btn,
.header-btn,
button,
input[type="submit"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 24px;
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    transform: none;
    transition:
        box-shadow var(--ap-btn-duration) var(--ap-btn-ease),
        filter var(--ap-btn-duration) var(--ap-btn-ease);
}

.btn-orange,
.header-btn,
.request-form .btn,
.contacts-form .btn,
button.btn-orange,
input[type="submit"] {
    color: #ffffff !important;
    background-color: var(--ap-orange);
    background-image: none;
    box-shadow: none;
    filter: none;
}

.btn-orange::before,
.header-btn::before,
.request-form .btn::before,
.contacts-form .btn::before,
button.btn-orange::before,
input[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, #ff7a13 0%, var(--ap-orange) 100%);
    opacity: 0;
    transition: opacity var(--ap-btn-duration) var(--ap-btn-ease);
}

.btn-orange:hover,
.header-btn:hover,
.request-form .btn:hover,
.contacts-form .btn:hover,
button.btn-orange:hover,
input[type="submit"]:hover {
    box-shadow: 0 7px 0 var(--ap-orange-shadow), 0 14px 24px rgba(255, 106, 0, 0.22);
    filter: brightness(1.03);
}

.btn-orange:hover::before,
.header-btn:hover::before,
.request-form .btn:hover::before,
.contacts-form .btn:hover::before,
button.btn-orange:hover::before,
input[type="submit"]:hover::before {
    opacity: 1;
}

.btn-orange:active,
.header-btn:active,
.request-form .btn:active,
.contacts-form .btn:active,
button.btn-orange:active,
input[type="submit"]:active {
    box-shadow: 0 2px 0 var(--ap-orange-shadow), 0 6px 14px rgba(255, 106, 0, 0.18);
    filter: brightness(0.97);
}

.btn-dark {
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
    white-space: nowrap;
}

.btn-orange:link,
.btn-orange:visited,
.header-btn:link,
.header-btn:visited {
    color: #ffffff !important;
}
/* =============================================================================
   07. Homepage hero + форма справа
   ============================================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: clamp(560px, 72vh, 680px);
    margin-top: 0;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.45) 68%, rgba(0, 0, 0, 0.35) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #2b2b2b;
    border: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    height: 90px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent);
    pointer-events: none;
}

.hero > .container.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: center;
    justify-items: stretch;
    gap: clamp(20px, 3vw, 40px);
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(36px, 5vw, 64px);
    border: none;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    min-width: 0;
    text-align: left;
}

.hero .eyebrow {
    margin: 0 0 12px;
    color: var(--ap-orange);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero .hero-subtitle {
    margin: 0 0 28px;
    color: #ffb06b;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    line-height: 1.25;
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
}

/* Форма в hero — только тень, без рамки (рамку не просили на «блоках») */
.hero-form-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    margin: 0 0 0 auto;
    padding: 26px 24px 28px;
    color: #ffffff;
    background: rgba(18, 18, 18, 0.82);
    border: none;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.hero-form-card__title {
    margin: 0 0 20px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.28;
    font-weight: 800;
    text-align: center;
}

.hero-form-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
}

.hero-form-message--success {
    background: rgba(46, 125, 50, 0.3);
    color: #eaffea;
}

.hero-form-message--error {
    background: rgba(180, 40, 40, 0.3);
    color: #ffe8e8;
}

.hero-lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-lead-form input[type="text"],
.hero-lead-form input[type="tel"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ap-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
}

.hero-lead-form input::placeholder {
    color: #7a7a7a;
    opacity: 1;
}

.hero-lead-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.45);
}

.hero-lead-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a !important;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    filter: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.hero-lead-form__submit::before {
    display: none !important;
    content: none !important;
}

.hero-lead-form__submit:hover {
    background: #f3f3f3;
    color: #111111 !important;
    transform: translateY(-1px);
}

/* Общие классы hero (вне главной) */
.eyebrow {
    margin: 0 0 12px;
    color: var(--ap-orange);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: #ffb06b;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1100px) {
    .hero > .container.hero-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero .hero-actions {
        justify-content: center;
    }

    .hero-form-card {
        max-width: none;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(30px, 7vw, 44px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-form-card {
        padding: 22px 18px 24px;
    }
}

/* =============================================================================
   07b. Внутренние страницы: крошки + баннер (без рамок)
   ============================================================================= */
.page-intro {
    padding: 18px 0 0;
    margin: 0;
    background: var(--ap-light);
    text-align: left;
    border: none;
}

/* Крошки — строго слева, как в .container */
nav.breadcrumbs,
.breadcrumbs,
.breadcrumbs.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 0 22px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    border: none;
    box-shadow: none;
}

.breadcrumbs a {
    color: var(--ap-orange);
    font-weight: 600;
    text-decoration: none;
    border: none;
}

.breadcrumbs a:hover {
    color: var(--ap-orange);
    text-decoration: underline;
}

.breadcrumbs__sep {
    color: var(--ap-breadcrumb-sep);
    font-weight: 600;
}

.breadcrumbs__current {
    color: var(--ap-breadcrumb-current);
    font-weight: 600;
}

/* Баннер внутренней страницы — без border */
.page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--ap-page-banner-min-h);
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    overflow: hidden;
    color: #ffffff;
    border: none;
    border-radius: 0 0 var(--ap-page-banner-radius) var(--ap-page-banner-radius);
    box-shadow: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #2b2b2b;
}

.page-banner--about,
.about-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.page-banner--contacts,
.contacts-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.page-banner--services,
.services-page-hero,
.single-service-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.page-banner--works,
.works-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.page-banner--reviews,
.reviews-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.page-banner--blog {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.25) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #222222;
}

.page-banner h1,
.page-banner .page-banner__title {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-banner__lead,
.page-banner p.page-banner__lead {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--ap-page-banner-min-h);
    margin-top: 0;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    overflow: hidden;
    color: #ffffff;
    border: none;
    box-shadow: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #222222;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    text-transform: none;
}

.page-intro + .site-content,
.page-intro + #content {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    :root {
        --ap-page-banner-min-h: 220px;
        --ap-page-banner-radius: 14px;
    }

    .page-banner,
    .page-hero {
        padding: 32px 22px;
    }

    .page-banner h1,
    .page-hero h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .breadcrumbs,
    .breadcrumbs.container {
        padding: 12px 0 18px;
        font-size: 13px;
    }
}
/* -----------------------------------------------------------------------------
   08. Quick services
   ----------------------------------------------------------------------------- */
.quick-services {
    background: var(--ap-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.quick-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    border-right: 1px solid var(--ap-border);
    transition: background 0.2s ease;
}

.quick-service:last-child {
    border-right: 0;
}

.quick-service:hover {
    background: #fafafa;
}

.quick-service img {
    width: 128px;
    height: 88px;
    margin-bottom: 12px;
    object-fit: contain;
}

.quick-service h3 {
    margin: 0;
    font-size: 18px;
}

/* -----------------------------------------------------------------------------
   09. Sections & titles
   ----------------------------------------------------------------------------- */
.section {
    padding: 30px 0;
}

.section-title,
.advantages-title {
    margin-bottom: 36px;
    text-align: center;
}

.decorated-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.decorated-title span {
    width: min(150px, 20vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, #777777, transparent);
}

.section-title h2,
.advantages-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    text-transform: uppercase;
}

.section-lead {
    max-width: 820px;
    margin: -12px auto 34px;
    text-align: center;
    color: var(--ap-muted);
    font-size: 18px;
}

.section-actions {
    margin-top: 34px;
    text-align: center;
}
/* -----------------------------------------------------------------------------
   10. Services cards (homepage) — фото + текст по hover
   ----------------------------------------------------------------------------- */
.section.services {
    background: var(--ap-light);
}

.section.services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.section.services .service-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #cfcfcf;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    min-height: 360px;
}

.section.services .service-card > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
}

/* Картинка на весь блок */
.section.services .service-card > a > img,
.section.services .service-card > a > .wp-post-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.section.services .service-card:hover > a > img,
.section.services .service-card:hover > a > .wp-post-image {
    transform: scale(1.06);
}

/* Оранжевая панель — поверх фото, скрыта */
.section.services .service-card .service-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 22px 20px 24px;
    min-height: 0 !important;
    color: #ffffff;
    background: var(--ap-orange) !important;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.22, 1);
    pointer-events: none;
}

.section.services .service-card:hover .service-card-body,
.section.services .service-card:focus-within .service-card-body {
    transform: translateY(0);
}

.section.services .service-card .service-card-body::after {
    display: none !important;
    content: none !important;
}

.section.services .service-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.section.services .service-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    opacity: 0.95;
}

/* Не трогаем карточки каталога */
.services-catalog-grid .service-catalog-card,
.services-page-grid .work-page-card {
    /* свои стили из блока 20 */
}

@media (max-width: 1100px) {
    .section.services .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .section.services .services-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }

    .section.services .service-card,
    .section.services .service-card > a {
        min-height: 300px;
    }

    /* На телефоне без hover — панель всегда снизу, но компактнее */
    .section.services .service-card .service-card-body {
        transform: translateY(0);
        padding: 16px 18px 18px;
    }

    .section.services .service-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* -----------------------------------------------------------------------------
   11. Advantages
   ----------------------------------------------------------------------------- */
.advantages {
    position: relative;
    padding: 56px 0 62px;
    color: #ffffff;
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
        url('../img/asphalt-texture.svg') center / cover repeat,
        #161616;
    border-top: 18px solid var(--ap-orange);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.advantage-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.advantage-item:last-child {
    border-right: 0;
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 62px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--ap-white);
    color: var(--ap-dark);
    font-size: 28px;
    font-weight: 900;
}

.advantage-item p {
    margin: 0;
    font-weight: 800;
}

.advantages-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111111;
}

.advantages-banner-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    box-shadow: none;
}

/* -----------------------------------------------------------------------------
   12. Request section
   ----------------------------------------------------------------------------- */
.request-section {
    padding: 88px 0;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.72)),
        url('../img/request-bg.svg') center / cover no-repeat,
        #222222;
}

.request-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    text-transform: uppercase;
}

.request-inner > p {
    margin: 0 0 30px;
    font-size: 19px;
}

.request-form {
    max-width: 760px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
}

input,
textarea {
    width: 100%;
    padding: 16px 15px;
    border: 0;
    border-radius: 2px;
    font: inherit;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.form-message {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 3px;
    font-weight: 800;
}

.form-message.success {
    background: #eaffea;
    color: #126b12;
}

.form-message.error {
    background: #ffe8e8;
    color: #8a1111;
}

/* -----------------------------------------------------------------------------
   13. Works (homepage) — карусель, стиль как у отзывов
   ----------------------------------------------------------------------------- */
.section.works {
    padding: 40px 0 56px;
    background: #f1f1f1;
}

.section.works .section-title {
    margin-bottom: 36px;
}

.section.works .works-carousel {
    position: relative;
    margin-top: 8px;
}

.section.works .works-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ap-orange) #e0e0e0;
    padding: 4px 4px 16px;
}

.section.works .works-carousel__viewport::-webkit-scrollbar {
    height: 8px;
}

.section.works .works-carousel__viewport::-webkit-scrollbar-thumb {
    background: var(--ap-orange);
    border-radius: 999px;
}

.section.works .works-carousel__viewport::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 999px;
}

.section.works .works-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 26px;
    width: max-content;
    min-width: 100%;
}

.section.works .work-card {
    flex: 0 0 clamp(300px, 32vw, 380px);
    width: clamp(300px, 32vw, 380px);
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.section.works .work-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.section.works .work-card img,
.section.works .work-card .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eeeeee;
}

.section.works .work-card h3 {
    margin: 0;
    padding: 22px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
    font-weight: 800;
    background: var(--ap-white);
    border-top: 5px solid var(--ap-orange);
}

.section.works .works-carousel__btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ap-white);
    color: var(--ap-text);
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.section.works .works-carousel__btn span {
    display: block;
    margin-top: -2px;
}

.section.works .works-carousel__btn:hover {
    background: var(--ap-orange);
    color: #ffffff;
}

.section.works .works-carousel__btn--prev {
    left: -12px;
}

.section.works .works-carousel__btn--next {
    right: -12px;
}

/* Страница «Наши работы» — такая же сетка карточек */
.works-page .works-page-section,
.works-page .section.works-archive {
    padding: 40px 0 56px;
    background: var(--ap-light);
}

.works-page .works-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}

.works-page .work-page-card,
.works-page .works-page-grid .work-card {
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.works-page .work-page-card a,
.works-page .works-page-grid .work-card a {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.works-page .work-page-thumb,
.works-page .works-page-grid .work-card > a > img,
.works-page .works-page-grid .work-card .wp-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eeeeee;
}

.works-page .work-page-body,
.works-page .works-page-grid .work-card h3 {
    margin: 0;
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.works-page .work-page-body h3 {
    margin: 0 0 10px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
    font-weight: 800;
}

.works-page .work-page-body p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .section.works .work-card {
        flex-basis: clamp(280px, 42vw, 340px);
        width: clamp(280px, 42vw, 340px);
    }

    .works-page .works-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .section.works .works-carousel__btn {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .section.works .works-carousel__btn--prev {
        left: 0;
    }

    .section.works .works-carousel__btn--next {
        right: 0;
    }

    .section.works .work-card {
        flex-basis: 86vw;
        width: 86vw;
    }

    .section.works .work-card h3 {
        padding: 18px;
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .works-page .works-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* -----------------------------------------------------------------------------
   14. Divider & why banner
   ----------------------------------------------------------------------------- */
.asphalt-divider {
    width: 100%;
    height: 410px;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('../img/asphalt-divider-bg.jpg') center / cover no-repeat,
        #111111;
}

.why-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        url('../img/asphalt-divider-bg.jpg') center / cover no-repeat,
        #111111;
}

.why-banner__inner {
    width: 100%;
    max-width: 1916px;
    margin: 0 auto;
}

.why-banner__image {
    display: block;
    width: 100%;
    max-width: 1916px;
    height: auto;
    margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   15. Footer
   ----------------------------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: var(--ap-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 44px);
    padding: 48px 0;
}

.footer-block h3 {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-block > p {
    margin: 0;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.55;
}

.footer-logo-image-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 16px;
    text-decoration: none;
}

.footer-logo-image {
    display: block;
    width: auto;
    height: 56px;
    max-width: 280px;
    object-fit: contain;
}

/* Навигация футера */
.site-footer .footer-menu,
.site-footer .footer-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-menu__item {
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
}

.site-footer .footer-menu__item > a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer .footer-menu__item > a:hover {
    color: var(--ap-orange);
}

/* «Услуги» — выпадающий список (<details>) */
.site-footer .footer-menu__item--services {
    margin-bottom: 8px;
}

.site-footer .footer-services-details {
    width: 100%;
    margin: 0;
}

.site-footer .footer-services-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    user-select: none;
}

.site-footer .footer-services-summary::-webkit-details-marker {
    display: none;
}

.site-footer .footer-services-summary__icon {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.75;
    transition: transform 0.2s ease, color 0.2s ease;
}

.site-footer .footer-services-details[open] .footer-services-summary {
    color: var(--ap-orange);
}

.site-footer .footer-services-details[open] .footer-services-summary__icon {
    transform: rotate(-135deg) translateY(2px);
}

.site-footer .footer-submenu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 8px 0 4px;
    padding: 0 0 0 12px;
    list-style: none;
    border-left: 2px solid rgba(255, 106, 0, 0.35);
}

.site-footer .footer-services-details[open] .footer-submenu {
    display: flex;
}

.site-footer .footer-submenu__item {
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
}

.site-footer .footer-submenu__item a {
    display: inline-block;
    padding: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;
}

.site-footer .footer-submenu__item a:hover,
.site-footer .footer-submenu__item.is-active a {
    color: var(--ap-orange);
}

.site-footer .footer-submenu__item--all a {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

/* Старое WP-подменю в футере — не разворачивать (если где-то остался wp_nav_menu) */
.site-footer .menu .sub-menu,
.site-footer .footer-menu .sub-menu {
    display: none;
}

/* Контакты */
.footer-contacts p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.footer-contacts span {
    display: inline-block;
    min-width: 4.5em;
    color: var(--ap-orange);
    font-weight: 800;
}

.footer-contacts a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: var(--ap-orange);
}

/* Нижняя полоса */
.footer-bottom {
    margin: 0;
    padding: 16px 0 18px;
    background: var(--ap-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .footer-logo-image {
        height: 48px;
        max-width: 240px;
    }
}
/* -----------------------------------------------------------------------------
   16. Archive & single
   ----------------------------------------------------------------------------- */
.archive-page,
.single-page {
    background: var(--ap-white);
}

.post-card,
.single-content {
    margin-bottom: 20px;
    padding: 28px;
    background: var(--ap-white);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.post-card a,
.read-more {
    color: var(--ap-orange);
}

.single-content h1 {
    margin-top: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.single-thumb img {
    width: 100%;
    max-height: 420px;
    margin-bottom: 24px;
    object-fit: cover;
}

.empty-state {
    padding: 34px;
    background: var(--ap-white);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------------------------------
   17. Blog — превью на главной (карусель, карточки как работы/отзывы)
   ----------------------------------------------------------------------------- */
.blog-preview {
    padding: 40px 0 56px;
    background: var(--ap-light);
}

.blog-preview .section-title {
    margin-bottom: 12px;
}

.blog-preview .section-lead {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--ap-muted);
    font-size: 18px;
    line-height: 1.55;
}

/* --- Карусель --- */
.blog-preview .blog-carousel {
    position: relative;
    margin-top: 8px;
}

.blog-preview .blog-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ap-orange) #e0e0e0;
    padding: 4px 4px 16px;
}

.blog-preview .blog-carousel__viewport::-webkit-scrollbar {
    height: 8px;
}

.blog-preview .blog-carousel__viewport::-webkit-scrollbar-thumb {
    background: var(--ap-orange);
    border-radius: 999px;
}

.blog-preview .blog-carousel__viewport::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 999px;
}

.blog-preview .blog-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 26px;
    width: max-content;
    min-width: 100%;
}

.blog-preview .blog-carousel__btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ap-white);
    color: var(--ap-text);
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-preview .blog-carousel__btn:hover {
    background: var(--ap-orange);
    color: #ffffff;
}

.blog-preview .blog-carousel__btn--prev {
    left: -12px;
}

.blog-preview .blog-carousel__btn--next {
    right: -12px;
}

/* --- Карточка на главной --- */
.blog-preview .blog-carousel .article-card {
    flex: 0 0 clamp(300px, 32vw, 380px);
    width: clamp(300px, 32vw, 380px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.blog-preview .article-thumb {
    display: block;
    overflow: hidden;
    background: #eeeeee;
    text-decoration: none;
}

.blog-preview .article-thumb img,
.blog-preview .article-thumb .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-preview .article-card:hover .article-thumb img,
.blog-preview .article-card:hover .article-thumb .wp-post-image {
    transform: scale(1.04);
}

.blog-preview .article-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.blog-preview .article-card-body .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-preview .article-card-body .post-meta span {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f0f0f0;
    border-radius: 999px;
}

.blog-preview .article-card-body h3 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    font-weight: 800;
}

.blog-preview .article-card-body h3 a {
    color: var(--ap-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-preview .article-card-body h3 a:hover {
    color: var(--ap-orange);
}

.blog-preview .article-card-body > p {
    margin: 0 0 16px;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.5;
    flex: 1 1 auto;
}

.blog-preview .article-card-body .read-more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--ap-orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.blog-preview .article-card-body .read-more:hover {
    text-decoration: underline;
}

.blog-preview .section-actions {
    margin-top: 36px;
    text-align: center;
}

@media (max-width: 768px) {
    .blog-preview .blog-carousel__btn {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .blog-preview .blog-carousel__btn--prev {
        left: 0;
    }

    .blog-preview .blog-carousel__btn--next {
        right: 0;
    }

    .blog-preview .blog-carousel .article-card {
        flex: 0 0 86vw;
        width: 86vw;
    }

    .blog-preview .article-card-body {
        padding: 18px;
    }
}

/* -----------------------------------------------------------------------------
   17a. Blog — общие стили (архив без .blog-page, одиночная, сайдбар, related)
   ----------------------------------------------------------------------------- */
.archive-page .blog-grid:not(.blog-carousel__track),
.archive-grid:not(.blog-carousel__track) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.archive-page .article-card,
.blog-main .article-card {
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--ap-shadow);
}

.article-thumb {
    display: block;
    background: #eeeeee;
}

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

.article-card-body {
    padding: 22px;
}

.article-card h2,
.article-card h3 {
    margin: 8px 0 12px;
    line-height: 1.18;
}

.article-card h2 {
    font-size: 25px;
}

.article-card h3 {
    font-size: 22px;
}

.article-card h2 a,
.article-card h3 a {
    color: var(--ap-text);
    text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
    color: var(--ap-orange);
}

.post-meta,
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--ap-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-meta span,
.single-meta span {
    display: inline-flex;
    padding: 5px 9px;
    background: #f0f0f0;
    border-radius: 999px;
}

.single-hero .single-meta {
    margin-bottom: 14px;
}

.single-hero .single-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.blog-hero p,
.single-hero p {
    max-width: 820px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.82);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
    background: var(--ap-white);
    border-left: 5px solid var(--ap-orange);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    margin-top: 0;
    text-transform: uppercase;
}

.sidebar-card ul {
    margin: 0;
    padding-left: 20px;
}

.sidebar-card li + li {
    margin-top: 8px;
}

.sidebar-card a {
    color: var(--ap-orange);
    font-weight: 700;
}


.blog-article {
    font-size: 18px;
    line-height: 1.75;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    margin-top: 34px;
    line-height: 1.2;
}

.blog-article h2 {
    font-size: 34px;
}

.blog-article h3 {
    font-size: 27px;
}

.blog-article ul,
.blog-article ol {
    padding-left: 24px;
}

.blog-article blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--ap-orange);
    background: #f7f7f7;
    font-weight: 700;
}

.single-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--ap-border);
}

.single-footer a {
    display: inline-flex;
    margin: 0 8px 8px 0;
    padding: 7px 12px;
    color: var(--ap-text);
    font-weight: 700;
    text-decoration: none;
    background: #f0f0f0;
    border-radius: 999px;
}

.related-posts {
    background: #f1f1f1;
}

@media (max-width: 980px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }
}

/* -----------------------------------------------------------------------------
   17b. Blog — страница архива /blog/ (.blog-page)
   ----------------------------------------------------------------------------- */
.blog-page .blog-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.blog-page .archive-page {
    padding: 40px 0 56px;
    background: var(--ap-light);
}

.blog-page .content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 34px;
    align-items: start;
}

.blog-page .blog-main {
    min-width: 0;
}

.blog-page .blog-grid.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}

.blog-page .article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.blog-page .article-thumb {
    display: block;
    overflow: hidden;
    background: #eeeeee;
    text-decoration: none;
}

.blog-page .article-thumb img,
.blog-page .article-thumb .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-page .article-card:hover .article-thumb img,
.blog-page .article-card:hover .article-thumb .wp-post-image {
    transform: scale(1.04);
}

.blog-page .article-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.blog-page .article-card-body .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-page .article-card-body .post-meta span {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f0f0f0;
    border-radius: 999px;
}

.blog-page .article-card-body h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.25;
    font-weight: 800;
}

.blog-page .article-card-body h2 a {
    color: var(--ap-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-page .article-card-body h2 a:hover {
    color: var(--ap-orange);
}

.blog-page .article-card-body > p {
    margin: 0 0 16px;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.55;
    flex: 1 1 auto;
}

.blog-page .article-card-body .read-more {
    display: inline-flex;
    margin-top: auto;
    color: var(--ap-orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.blog-page .article-card-body .read-more:hover {
    text-decoration: underline;
}

.blog-page .empty-state {
    padding: 34px;
    background: var(--ap-white);
    border-left: 5px solid var(--ap-orange);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.blog-page .empty-state h2 {
    margin-top: 0;
}

.blog-page .navigation.pagination,
.blog-page nav.pagination {
    margin-top: 36px;
}

.blog-page .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.blog-page .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    color: var(--ap-text);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    background: var(--ap-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-page .page-numbers.current,
.blog-page .page-numbers:hover {
    color: #ffffff;
    background: var(--ap-orange);
}

.blog-page .blog-sidebar {
    display: grid;
    gap: 20px;
}

.blog-page .sidebar-card {
    padding: 24px;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--ap-orange);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.blog-page .sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-page .sidebar-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-page .sidebar-card li {
    margin: 0 0 8px;
    padding: 0;
    font-size: 15px;
    line-height: 1.45;
}

.blog-page .sidebar-card li:last-child {
    margin-bottom: 0;
}

.blog-page .sidebar-card a {
    color: var(--ap-orange);
    font-weight: 700;
    text-decoration: none;
}

.blog-page .sidebar-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .blog-page .content-layout {
        grid-template-columns: 1fr;
    }

    .blog-page .blog-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .blog-page .blog-grid.archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-page .article-card-body {
        padding: 18px;
    }
}

/* -----------------------------------------------------------------------------
   18. About & contacts
   ----------------------------------------------------------------------------- */
.about-page-hero,
.contacts-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.about-grid,
.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: stretch;
}

.contacts-grid__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    height: 100%;
}

.about-text,
.about-card,
.contacts-card,
.contacts-form-card,
.contacts-map-card,
.step-card {
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.about-text,
.about-card,
.contacts-card,
.contacts-form-card,
.contacts-map-card {
    padding: 32px;
}

.about-text h2,
.contacts-card h2,
.contacts-form-card h2 {
    margin-top: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.contacts-map-card h2 {
    margin: 0 0 18px;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.15;
}

.about-text p {
    font-size: 18px;
    color: var(--ap-muted);
}

.about-card,
.contacts-form-card,
.contacts-map-card {
    border-top: 5px solid var(--ap-orange);
}

.about-card h3 {
    margin-top: 0;
    font-size: 26px;
}

.about-card ul {
    margin: 0 0 26px;
    padding-left: 20px;
}

.about-card li + li {
    margin-top: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step-card {
    padding: 24px;
}

.step-card strong {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ap-orange);
    font-size: 32px;
    line-height: 1;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.step-card p {
    margin: 0;
    color: var(--ap-muted);
}

.contacts-card p {
    margin: 0 0 16px;
    font-size: 18px;
}

.contacts-card span {
    color: var(--ap-orange);
    font-weight: 900;
}

.contacts-card a {
    color: var(--ap-text);
    font-weight: 800;
    text-decoration: none;
}

.contacts-card a:hover {
    color: var(--ap-orange);
}

.contacts-map {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
    background: #e8e8e8;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

.contacts-map__address {
    margin: 14px 0 0;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.45;
}

.contacts-form-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.contacts-form-card > p {
    margin: 0 0 20px;
    color: var(--ap-muted);
    font-size: 16px;
    line-height: 1.5;
}

.contacts-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    margin: 0;
}

.contacts-form textarea {
    flex: 1 1 auto;
    min-height: 140px;
    resize: vertical;
}

.contacts-form .btn {
    width: max-content;
    margin-top: auto;
}

.contacts-form input,
.contacts-form textarea {
    padding: 18px;
    color: var(--ap-text);
    background: var(--ap-white);
    border: 2px solid #d9d9d9;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contacts-form input::placeholder,
.contacts-form textarea::placeholder {
    color: #7b7b7b;
    opacity: 1;
}

.contacts-form input:hover,
.contacts-form textarea:hover {
    border-color: #c4c4c4;
}

.contacts-form input:focus,
.contacts-form textarea:focus {
    outline: none;
    border-color: var(--ap-orange);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

@media (max-width: 980px) {
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-form-card {
        height: auto;
        min-height: 0;
    }

    .contacts-form textarea {
        flex: 0 0 auto;
    }

    .contacts-map {
        height: 280px;
    }

    .contacts-map iframe {
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    .contacts-map-card,
    .contacts-card,
    .contacts-form-card {
        padding: 22px;
    }

    .contacts-map {
        height: 240px;
    }

    .contacts-map iframe {
        min-height: 240px;
    }
}


/* -----------------------------------------------------------------------------
   19. Works page
   ----------------------------------------------------------------------------- */
.works-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.works-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.works-page-head h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    text-transform: uppercase;
}

.works-page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--ap-muted);
    font-size: 18px;
}

.works-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.work-page-card {
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.work-page-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-page-thumb {
    background: #eeeeee;
}

.work-page-thumb img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.work-page-card:hover .work-page-thumb img {
    transform: scale(1.04);
}

.work-page-body {
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.work-page-body h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.15;
}

.work-page-body p {
    margin: 0 0 16px;
    color: var(--ap-muted);
}

.empty-works {
    padding: 34px;
    background: var(--ap-white);
    border-left: 5px solid var(--ap-orange);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.empty-works h3 {
    margin-top: 0;
    font-size: 28px;
}
/* -----------------------------------------------------------------------------
   20. Services — каталог /uslugi/ (.services-page)
   ----------------------------------------------------------------------------- */
.services-page {
    background: var(--ap-light);
}

/* Hero (если нет page-intro — свой баннер в шаблоне) */
.services-page .services-page-hero,
.services-page .page-hero.services-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--ap-page-banner-min-h, 260px);
    margin-top: 0;
    padding: clamp(36px, 5vw, 56px) 0;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.28) 100%),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.services-page .services-page-hero .container,
.services-page .page-hero.services-page-hero .container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.services-page .services-page-hero .eyebrow {
    margin: 0 0 12px;
    color: var(--ap-orange);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.services-page .services-page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.services-page .services-page-hero p {
    max-width: 780px;
    margin: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

/* Секция каталога */
.services-page .services-catalog-section {
    padding: 40px 0 56px;
    background: var(--ap-light);
}

/* Шапка «Виды работ» + кнопка */
.services-page .services-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 24px;
    margin-bottom: 34px;
}

.services-page .services-page-head h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
}

.services-page .services-page-head p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--ap-muted);
    font-size: 18px;
    line-height: 1.55;
}

.services-page .services-page-head .btn-orange {
    flex-shrink: 0;
}

/* Сетка — 3 колонки */
.services-page .services-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}

/* Карточка услуги */
.services-page .service-catalog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    margin: 0;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.services-page .service-catalog-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.services-page .service-catalog-card > a {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Превью */
.services-page .service-catalog-thumb {
    display: block;
    overflow: hidden;
    background: #eeeeee;
}

.services-page .service-catalog-thumb img,
.services-page .service-catalog-thumb .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-page .service-catalog-card:hover .service-catalog-thumb img,
.services-page .service-catalog-card:hover .service-catalog-thumb .wp-post-image {
    transform: scale(1.04);
}

/* Текст */
.services-page .service-catalog-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.services-page .service-catalog-body h3 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--ap-text);
    transition: color 0.2s ease;
}

.services-page .service-catalog-card:hover .service-catalog-body h3 {
    color: var(--ap-orange);
}

.services-page .service-catalog-body > p {
    margin: 0 0 16px;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.5;
    flex: 1 1 auto;
}

.services-page .service-catalog-body .read-more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--ap-orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.services-page .service-catalog-card:hover .service-catalog-body .read-more {
    text-decoration: underline;
}

/* Пустое состояние */
.services-page .empty-services {
    padding: 34px;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--ap-orange);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.services-page .empty-services h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}

.services-page .empty-services p {
    margin: 0 0 12px;
    color: var(--ap-muted);
    font-size: 16px;
    line-height: 1.55;
}

.services-page .empty-services p:last-child {
    margin-bottom: 0;
}

/* Пагинация каталога */
.services-page .services-pagination {
    margin-top: 40px;
    padding: 0;
    text-align: center;
}

.services-page .services-pagination ul,
.services-page .services-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-page .services-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-page .services-pagination a.page-numbers,
.services-page .services-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    color: var(--ap-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    background: var(--ap-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.services-page .services-pagination span.page-numbers.current {
    color: #ffffff;
    background: var(--ap-orange);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.25);
    cursor: default;
}

.services-page .services-pagination a.page-numbers:hover {
    color: #ffffff;
    background: var(--ap-orange);
}

.services-page .services-pagination a.prev.page-numbers,
.services-page .services-pagination a.next.page-numbers {
    min-width: auto;
    padding: 8px 18px;
}

.services-page .services-pagination span.page-numbers.dots {
    min-width: auto;
    padding: 8px 10px;
    background: transparent;
    box-shadow: none;
    color: var(--ap-muted);
    font-weight: 700;
}

/* Одиночная услуга (если стили в том же блоке) */
.single-service-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.service-seo-content {
    font-size: 18px;
    line-height: 1.75;
}

.service-seo-content h2,
.service-seo-content h3,
.service-seo-content h4 {
    margin-top: 34px;
    line-height: 1.2;
}

.service-bottom-cta {
    margin-top: 36px;
    padding: 28px;
    border-left: 5px solid var(--ap-orange);
    border-radius: 14px;
}

.service-bottom-cta h2 {
    margin-top: 0;
}


/* Адаптив каталога */
@media (max-width: 1100px) {
    .services-page .services-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .services-page .services-page-head .btn-orange {
        width: 100%;
        justify-content: center;
    }

    .services-page .services-catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-page .service-catalog-body {
        padding: 18px;
    }

    .services-page .services-page-hero,
    .services-page .page-hero.services-page-hero {
        padding: 32px 0;
    }
}

@media (max-width: 560px) {
    .services-page .services-pagination ul {
        gap: 6px;
    }

    .services-page .services-pagination a.page-numbers,
    .services-page .services-pagination span.page-numbers {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
}


/* -----------------------------------------------------------------------------
   21. Reviews — страница /otzyvy/ (сетка)
   ----------------------------------------------------------------------------- */
.reviews-page-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35)),
        url('../img/hero-roadwork.webp') center / cover no-repeat,
        #1c1c1c;
}

.reviews-page .reviews-section {
    padding: 40px 0 56px;
    background: var(--ap-light);
}

.reviews-page .reviews-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.reviews-page .reviews-page-head h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    text-transform: uppercase;
}

.reviews-page .reviews-page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--ap-muted);
    font-size: 18px;
    line-height: 1.5;
}

.reviews-page .reviews-page-head .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Сетка отзывов */
.reviews-page .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}

.reviews-page .review-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.reviews-page .review-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #111111;
    overflow: hidden;
}

.reviews-page .review-video iframe,
.reviews-page .review-video img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.reviews-page a.review-video.review-thumb {
    display: block;
    text-decoration: none;
}

.reviews-page .review-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.reviews-page .review-card-body h3 {
    margin: 0 0 10px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
    font-weight: 800;
}

.reviews-page .review-card-body p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 15px;
    line-height: 1.5;
}

.reviews-page .empty-reviews {
    padding: 34px;
    background: var(--ap-white);
    border-left: 5px solid var(--ap-orange);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.reviews-page .empty-reviews h3 {
    margin-top: 0;
    font-size: 28px;
}

.reviews-page .reviews-pagination {
    margin-top: 40px;
}

/* Главная — карусель отзывов (если добавили блок #reviews) */
.reviews-preview {
    background: var(--ap-white);
}

.reviews-preview .reviews-carousel {
    position: relative;
    margin-top: 8px;
}

.reviews-preview .reviews-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ap-orange) #e0e0e0;
    padding: 4px 4px 16px;
}

.reviews-preview .reviews-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 26px;
    width: max-content;
}

.reviews-preview .reviews-carousel .review-card {
    flex: 0 0 clamp(300px, 32vw, 380px);
    width: clamp(300px, 32vw, 380px);
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--ap-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.reviews-preview .reviews-carousel .review-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111111;
}

.reviews-preview .reviews-carousel .review-video iframe,
.reviews-preview .reviews-carousel .review-video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.reviews-preview .reviews-carousel .review-card-body {
    padding: 22px;
    border-top: 5px solid var(--ap-orange);
}

.reviews-preview .reviews-carousel__btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--ap-white);
    color: var(--ap-text);
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateY(-50%);
}

.reviews-preview .reviews-carousel__btn:hover {
    background: var(--ap-orange);
    color: #ffffff;
}

.reviews-preview .reviews-carousel__btn--prev {
    left: -12px;
}

.reviews-preview .reviews-carousel__btn--next {
    right: -12px;
}

.single-review-video {
    margin-bottom: 26px;
}

@media (max-width: 1100px) {
    .reviews-page .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .reviews-page .reviews-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-page .reviews-page-head .btn {
        width: max-content;
    }
}

@media (max-width: 640px) {
    .reviews-page .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-page .review-card-body {
        padding: 18px;
    }
}
/* -----------------------------------------------------------------------------
   22. Pagination — каталог, блог, архивы
   ----------------------------------------------------------------------------- */
nav.pagination,
.navigation.pagination,
.services-pagination {
    margin: 40px 0 0;
    padding: 0;
    text-align: center;
}

/* Список без маркеров */
nav.pagination ul,
nav.pagination ul.page-numbers,
.services-pagination ul,
.services-pagination ul.page-numbers,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.pagination li,
.services-pagination li,
.navigation.pagination .nav-links > * {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Кнопки страниц */
nav.pagination a.page-numbers,
nav.pagination span.page-numbers,
.services-pagination a.page-numbers,
.services-pagination span.page-numbers,
.navigation.pagination a.page-numbers,
.navigation.pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    color: var(--ap-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    background: var(--ap-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Текущая страница */
nav.pagination span.page-numbers.current,
.services-pagination span.page-numbers.current,
.navigation.pagination .page-numbers.current {
    color: #ffffff;
    background: var(--ap-orange);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.25);
    cursor: default;
}

/* Hover */
nav.pagination a.page-numbers:hover,
.services-pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
    color: #ffffff;
    background: var(--ap-orange);
}

/* «Назад» / «Далее» */
nav.pagination a.prev.page-numbers,
nav.pagination a.next.page-numbers,
.services-pagination a.prev.page-numbers,
.services-pagination a.next.page-numbers,
.navigation.pagination a.prev,
.navigation.pagination a.next {
    min-width: auto;
    padding: 8px 18px;
}

/* Многоточие */
nav.pagination span.page-numbers.dots,
.services-pagination span.page-numbers.dots,
.navigation.pagination span.page-numbers.dots {
    min-width: auto;
    padding: 8px 10px;
    background: transparent;
    box-shadow: none;
    color: var(--ap-muted);
    font-weight: 700;
}

@media (max-width: 560px) {
    nav.pagination ul,
    .services-pagination ul,
    .navigation.pagination .nav-links {
        gap: 6px;
    }

    nav.pagination a.page-numbers,
    nav.pagination span.page-numbers,
    .services-pagination a.page-numbers,
    .services-pagination span.page-numbers,
    .navigation.pagination a.page-numbers,
    .navigation.pagination span.page-numbers {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }

    nav.pagination a.prev.page-numbers,
    nav.pagination a.next.page-numbers,
    .services-pagination a.prev.page-numbers,
    .services-pagination a.next.page-numbers {
        padding: 8px 14px;
    }
}

/* =============================================================================
   23. Responsive — layout & sections
   ============================================================================= */
@media (max-width: 1024px) {
    .asphalt-divider {
        height: 340px;
    }
}

@media (max-width: 980px) {
    .quick-services-grid,
    .services-grid,
    .advantages-grid,
    .works-grid,
    .footer-inner,
    .form-row,
    .blog-grid,
    .archive-grid,
    .content-layout,
    .about-grid,
    .contacts-grid,
    .steps-grid,
    .works-page-grid,
    .services-catalog-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .quick-service,
    .advantage-item {
        border-right: 0;
        border-bottom: 1px solid var(--ap-border);
    }

    .advantage-item {
        border-bottom-color: rgba(255, 255, 255, 0.25);
    }

    .hero {
        min-height: 540px;
    }

    .works-page-head,
    .services-page-head,
    .reviews-page-head {
        display: grid;
        align-items: start;
    }

    .blog-sidebar {
        order: 2;
    }

    .section,
    .request-section {
        padding: 54px 0;
    }
}

@media (max-width: 768px) {
    .asphalt-divider {
        height: 240px;
    }

    .site-footer .footer-logo-image {
        height: 54px;
        max-width: 300px;
    }

    .site-footer .footer-block h3,
    .site-footer .footer-contacts p,
    .site-footer .footer-contacts a,
    .site-footer .footer-menu a,
    .site-footer .menu a {
        font-size: 20px;
    }

    .why-banner__image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 500px;
    }

    .decorated-title span {
        display: none;
    }
}

@media (min-width: 1917px) {
    .why-banner {
        padding-left: 0;
        padding-right: 0;
    }
}


/* =============================================================================
   24. Modal Window
   ============================================================================= */
   body.modal-open {
    overflow: hidden;
}

/* Overlay */
.request-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.request-modal.is-open {
    display: flex;
}

.request-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.62);
    backdrop-filter: blur(2px);
}

/* Dialog */
.request-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    margin: 0;
    padding: 30px 30px 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.38),
        0 4px 18px rgba(0, 0, 0, 0.12);
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.request-modal__dialog::-webkit-scrollbar {
    width: 8px;
}

.request-modal__dialog::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 999px;
}

/* Close */
.request-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f3f3f3;
    color: #1f1f1f;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.request-modal__close:hover {
    background: #222222;
    color: #ffffff;
    transform: scale(1.03);
}

/* Typography */
.request-modal__dialog h3 {
    margin: 0 36px 8px 0;
    color: #111111;
    font-size: clamp(30px, 3.8vw, 44px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.request-modal__dialog > p {
    margin: 0 0 20px;
    color: #666666;
    font-size: 17px;
    line-height: 1.5;
}

/* Form */
.request-modal__form {
    display: grid;
    gap: 14px;
}

.request-modal__label {
    display: block;
    margin: 0;
}

.request-modal__label > span {
    display: block;
    margin: 0 0 7px;
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.request-modal__form input,
.request-modal__form textarea,
.request-modal__form select {
    width: 100%;
    margin: 0;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #ffffff;
    color: #1f1f1f;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.request-modal__form input,
.request-modal__form select {
    height: 52px;
    padding: 0 15px;
}

.request-modal__form textarea {
    min-height: 120px;
    padding: 14px 15px;
    resize: vertical;
}

.request-modal__form input::placeholder,
.request-modal__form textarea::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.request-modal__form input:hover,
.request-modal__form textarea:hover,
.request-modal__form select:hover {
    border-color: #c8c8c8;
}

.request-modal__form input:focus,
.request-modal__form textarea:focus,
.request-modal__form select:focus {
    outline: none;
    border-color: var(--ap-orange);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.16);
}

/* Button */
.request-modal__submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
}

/* Status */
.request-modal__status {
    min-height: 22px;
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #333333;
}

/* Mobile */
@media (max-width: 768px) {
    .request-modal {
        padding: 12px;
    }

    .request-modal__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 22px 16px 16px;
        border-radius: 14px;
    }

    .request-modal__dialog h3 {
        margin-right: 30px;
        font-size: clamp(26px, 8vw, 34px);
    }

    .request-modal__dialog > p {
        font-size: 15px;
    }

    .request-modal__close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 24px;
    }

    .request-modal__form input,
    .request-modal__form select {
        height: 48px;
    }

    .request-modal__submit {
        min-height: 50px;
        font-size: 17px;
    }
}

.request-modal__error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #c62828;
    font-size: 10px;
    font-weight: 500;
}

.request-modal__label input.is-invalid,
.request-modal__label textarea.is-invalid {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
/* -----------------------------------------------------------------------------
   Service single — превью, FAQ, галерея (под дизайн проекта)
   ----------------------------------------------------------------------------- */

/* 3 карточки-блоки в основном контенте */
.single-content .service-preview,
.single-content .service-faq,
.single-content .service-gallery {
    margin-top: 34px;
    padding: 26px;
    background: var(--ap-white);
    border-radius: 14px;
    box-shadow: var(--ap-shadow);
    border-left: 5px solid var(--ap-orange);
}

/* Заголовки блоков */
.single-content .service-preview h2,
.single-content .service-faq > h2,
.single-content .service-gallery > h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--ap-text);
}

/* Превью */
.service-preview p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* FAQ */
.service-faq {
    padding: 26px;
    border-left: 5px solid var(--ap-orange);
}

.service-faq__item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-faq__item + .service-faq__item {
    margin-top: 14px;
}

.service-faq__item[open] {
    border-color: rgba(255, 106, 0, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.service-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--ap-text);
    background: #ffffff;
    transition: background 0.22s ease, color 0.22s ease;
}

.service-faq__item summary::-webkit-details-marker {
    display: none;
}

.service-faq__item summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 3px solid rgba(0, 0, 0, 0.45);
    border-bottom: 3px solid rgba(0, 0, 0, 0.45);
    transform: rotate(45deg);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.service-faq__item[open] summary {
    color: #1f1f1f;
    background: #fff8f2;
    border-bottom: 1px solid rgba(255, 106, 0, 0.2);
}

.service-faq__item[open] summary::after {
    transform: rotate(-135deg);
    border-color: var(--ap-orange);
}

/* Главное исправление: ответ читается как отдельный мягкий блок */
.service-faq__answer {
    margin: 0;
    padding: 14px 18px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    color: #4f4f4f;
    font-size: 16px;
    line-height: 1.68;
    letter-spacing: 0.01em;
    border-top: 0;
}

.service-faq__answer p {
    margin: 0;
}

.service-faq__answer strong {
    color: #2a2a2a;
    font-weight: 800;
}

/* Галерея */
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-gallery__link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #eeeeee;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-gallery__link img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.service-gallery__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.service-gallery__link:hover img {
    transform: scale(1.04);
}

/* Адаптив */
@media (max-width: 768px) {
    .single-content .service-preview,
    .single-content .service-faq,
    .single-content .service-gallery {
        padding: 18px;
        margin-top: 26px;
    }

    .service-faq__item summary {
        font-size: 16px;
        padding: 16px 14px;
    }

    .service-faq__answer {
        padding: 12px 14px 14px;
        font-size: 15px;
        line-height: 1.62;
    }

    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .service-gallery-grid {
        grid-template-columns: 1fr;
    }
}



/* -----------------------------------------------------------------------------
   Hero quiz
   ----------------------------------------------------------------------------- */
.hero-quiz-card {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    margin: 0 0 0 auto;
    padding: 18px 18px 14px;
    color: #fff;
    background: rgba(18, 18, 18, 0.9);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}
.hero-quiz-card__eyebrow {
    margin: 0 0 4px;
    color: #ffb06b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}
.hero-quiz-card__title {
    margin: 0 0 12px;
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}
.hero-quiz {
    position: relative;
    min-height: 150px;
}
.hero-quiz__step {
    display: none !important;
    margin: 0;
    padding: 0;
}
.hero-quiz__step.is-active {
    display: block !important;
    animation: heroQuizFade 0.22s ease;
}
@keyframes heroQuizFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-quiz__progress {
    margin: 0 0 12px;
    padding: 0;
}
.hero-quiz__progress.is-hidden {
    display: none !important;
}
.hero-quiz__progress-bar {
    height: 5px;
    margin: 0 0 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}
.hero-quiz__progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ap-orange);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.hero-quiz__progress-text {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}
.hero-quiz__benefits {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.4;
}
.hero-quiz__benefits li {
    position: relative;
    margin: 0 0 4px;
    padding-left: 16px;
}
.hero-quiz__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ap-orange);
    font-weight: 800;
}
.hero-quiz__question {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}
.hero-quiz__hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}
.hero-quiz__success {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}
.hero-quiz__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
}
.hero-quiz__options--stack {
    grid-template-columns: 1fr;
}
.hero-quiz__option {
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}
.hero-quiz__option:hover,
.hero-quiz__option.is-selected {
    border-color: var(--ap-orange);
    background: rgba(255, 106, 0, 0.28);
}
.hero-quiz__input {
    width: 100%;
    height: 44px;
    margin: 0 0 10px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}
.hero-quiz__input.is-hidden {
    display: none !important;
}
.hero-quiz .btn {
    width: 100%;
    margin: 0;
}
.hero-quiz__actions {
    display: grid;
    gap: 8px;
    margin: 0;
}
.hero-quiz__status {
    margin: 8px 0 0;
    padding: 0;
    min-height: 1.2em;
    font-size: 12px;
    font-weight: 700;
    color: #ffb06b;
    text-align: center;
}
.hero-quiz__back {
    display: inline-flex;
    margin: 8px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.hero-quiz__back.is-hidden {
    display: none !important;
}
@media (max-width: 980px) {
    .hero--home .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-quiz-card {
        max-width: none;
        margin: 0;
    }
}