/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.site-main {
    flex: 1;
}

:root {
    --color-primary: #e83f39;
    --color-primary-hover: #e83f39ba;
    --color-accent: var(--color-primary);
    --color-accent-hover: var(--color-primary-hover);
    --color-dark: #1a202c;
    --color-text: #333;
    --color-text-light: #718096;
    --color-bg-light: #f7fafc;
    --color-border: #e2e8f0;
    --color-white: #fff;

    --font-main: 'Roboto', sans-serif;
    --font-header: 'Hind', sans-serif;
    --font-stroi: 'Moniqa', sans-serif;

    --container-width: 1200px;
    --header-height: 120px;
    --top-bar-height: 40px;

    --nav-btn-size: 50px;
    --nav-btn-bg: rgba(255, 255, 255, 0.8);
    --nav-arrow-size: 10px;
}

body {
    font-family: var(--font-header);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@font-face {
    font-family: 'Hind';
    src: url('fonts/hind.woff2') format('woff2'),
        /* Браузер сначала попытается загрузить этот */
        url('fonts/hind.ttf') format('truetype');
    /* Если woff2 не поддерживается (старые браузеры) */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto.woff2') format('woff2'),
        /* Браузер сначала попытается загрузить этот */
        url('fonts/Roboto.ttf') format('truetype');
    /* Если woff2 не поддерживается (старые браузеры) */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Black.woff2') format('woff2'),
        /* Браузер сначала попытается загрузить этот */
        url('fonts/Montserrat-Black.ttf') format('truetype');
    /* Если woff2 не поддерживается (старые браузеры) */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moniqa';
    src: url('fonts/Moniqa/Moniqa.woff2') format('woff2'),
        /* Браузер сначала попытается загрузить этот */
        url('fonts/Moniqa/Moniqa.ttf') format('truetype');
    /* Если woff2 не поддерживается (старые браузеры) */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
         CONTAINER
         ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.container.steps__inner {
    padding: 0 1.5rem 0;
}

.grecaptcha-badge {
    opacity: 0.4;
    transition: 0.2s;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* ============================================
         BUTTONS
         ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn--big {
    max-width: 250px;
    height: 50px;
}

/* ============================================
         SITE HEADER
         ============================================ */
.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}

/* ============================================
         TOP BAR
         ============================================ */
.top-bar {
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1;
    height: var(--top-bar-height);
    position: relative;
    z-index: 1;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: end;
    height: var(--top-bar-height);
    gap: 3rem;
}

/* Контакты слева */
.top-bar__contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

a.top-bar__item:hover {
    color: var(--color-white);
}

.top-bar__icon {
    flex-shrink: 0;
    opacity: 0.7;
    color: var(--color-primary);
}

/* ============================================
         CITY SELECTOR
         ============================================ */
.top-bar__city-selector {
    position: relative;
}

.city-selector__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: var(--color-white);
    font-family: inherit;
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.city-selector__toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.city-selector__toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
}

.city-selector__arrow {
    transition: transform 0.3s;
}

.city-selector__toggle[aria-expanded="true"] .city-selector__arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.city-selector__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1600;
}

.city-selector__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.city-selector__option {
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.city-selector__option:hover {
    background: var(--color-bg-light);
}

.city-selector__option.is-active {
    color: var(--color-primary);
    font-weight: 600;
    background: var(--color-bg-light);
}

.page-header {
    position: relative;
    overflow: hidden;
}

main {
    padding: 2rem 0;
}

main.podr-page,
main.contacts-page {
    padding: 2rem 0 0;
}

main.portfolio__content {
    padding: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
}

main#primary {
    padding: 0;
}

.page-header .featured-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-attachment: fixed;
    background-size: 100%;
}

.single-portfolio .page-header .featured-image {
    /* filter: invert(0.8); */
}

.page-header-content .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header-content {
    position: relative;
    z-index: 1;
    padding: 240px 0 100px 0;

}

.pc_hide {
    display: none;
}

.page-header .featured-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.15), transparent 9%), rgba(0, 0, 0, 0.37);
    z-index: 3;
}

.page-header h1 {
    color: var(--color-white);
    margin: 0;
    opacity: 0.95;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 45px;
    padding: 0 10px;
    border-radius: 4px;
}

.page-header h2 {
    color: var(--color-border);
    margin: 0;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 22px;
    padding: 0 10px;
    border-radius: 0 0 4px 4px;
}

.header_ttl {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.primary_section {
    /*   padding: 2.5rem 1.5rem; */
}



.single-service-page {
    background-image: url(/wp-content/themes/pultak-theme/assets/images/fon_page2.png);
    background-repeat: repeat;
    background-position: center;
    background-size: 120%;
}

.single-service-page>* {
    position: relative;
    z-index: 1;
}

.mission-block {
    overflow: hidden;
}

.services-page {
    margin-bottom: 50px;
}

.single-service-page .trusted-logos {

    margin-left: calc(69% - 50vw);
}

form h3.labor-docs__title:after {
    bottom: -0.1rem;
}

.primary_section h2,
.primary_section h2.wp-block-heading {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 35px;
    text-align: center;
    margin: 65px 0 50px;
    position: relative;
}

h3 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 18px;
    position: relative;
}

h3:after {
    content: '';
    width: 80px;
    height: 3px;
    border-radius: 4px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: -0.1rem;
    left: 40px;
    transform: translateX(-50%);
}

h3.pm__title:after,
h3.mission__title:after {
    left: 50%;
}

.portfolio-card h3:after {
    left: 56px;
    bottom: -0.3rem;
}

.primary_section h2:after,
.primary_section h2.wp-block-heading:after {
    content: '';
    width: 80px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.prim_wrapper {
    position: relative;
}

.prim_wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/wp-content/themes/pultak-theme/assets/images/background_prim.jpg') center/cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.service-card {
    opacity: 0;
    transform: translate(var(--x, 0px), var(--y, 40px));
    transition: transform 1.1s ease, opacity 1.1s ease !important;
    will-change: transform, opacity;
}

.service-card.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.share-btn:hover {
    opacity: 1;
}

.share-btn.is-copied {
    color: green;
}

.req_btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* HERO */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

/* слайды */
.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 100%;
    flex-shrink: 0;
}

.hero-slider__inner {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* затемнение */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    /*  background: rgba(0, 0, 0, 0.45); */
}

/* контент */
.hero-slide__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin-left: 10%;
    color: #fff;
    z-index: 2;
}

.hero-slide__content p {
    font-family: var(--font-main);
    font-size: 18px;
}

.hero-slide__content h2 {
    font-family: var(--font-header);
    font-size: 46px;
}

/* скрытый H1 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*     Cтраница Услуги отдельная */
.service-layout {
    display: flex;
    gap: 40px;
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-content p a {
    font-weight: 700;
    color: var(--color-accent);
}

.service-sidebar {
    flex: 0 0 280px;
}

.service-sidebar__block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 140px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.service-list li {
    margin-bottom: 10px;
}

.service-list li a {
    text-decoration: none;
    color: inherit;
}

.service-list li.active a {
    font-weight: 600;
    color: var(--color-accent);
}

/*  Карта на форме Услуг    */

.form__map-field {
    display: flex;
    gap: 10px;
}

.form__map-btn {
    white-space: nowrap;
    padding: 10px 12px;
    cursor: pointer;
}

.form__map {
    border-radius: 10px;
    overflow: hidden;
}

/**/


h2.easy_ttl {
    padding-bottom: 15px;
    font-family: var(--font-main);
    font-size: 24px;
    position: relative;
    margin: 0 auto;
}

h2.easy_ttl::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    width: 10%;
    height: 2px;
    background: var(--color-primary);
}

h2.wp-block-heading,
h2.section-title {
    padding-bottom: 15px;
    font-family: var(--font-main);
    font-size: 26px;
    position: relative;
    margin: 50px 0 20px;
}

h3.wp-block-heading {
    padding-bottom: 15px;
    font-family: var(--font-main);
    font-size: 22px;
    position: relative;
    margin: 50px 0 20px;
}

h2.wp-block-heading:after,
h2.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    width: 10%;
    height: 2px;
    background: var(--color-primary);
}

h3.wp-block-heading:after {
    left: 40px;
}

/* ============================================
         MAIN NAV
         ============================================ */
.main-nav {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.45);
    transition: all 0.35s ease;
}

.main-nav__menu-wrapper {
    height: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.main-nav__logo img {
    height: 110px;
    width: auto;
}

.main-nav.is-scrolled {
    top: 0;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.main-nav.is-scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);

    z-index: -1;
}

.main-nav__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav__list a {
    position: relative;
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-bg-light);
    text-decoration: none;
    padding: 2px 0;
    text-transform: uppercase;
}

.main-nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav__list a:hover::after {
    width: 100%;
}

.main-nav__list .current-menu-item>a {
    color: var(--color-primary);
}

.main-nav__list li {
    position: relative;
}

.main-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0;
    background: var(--color-dark);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.25s ease;
    z-index: 20;
}

.main-nav__list .sub-menu li {
    padding: 10px;
}

.main-nav__list .sub-menu li a {
    color: var(--color-bg-light);
    font-size: 14px;
}

.main-nav__list .sub-menu li:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.main-nav__list li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(7px);
}

.main-nav__list .current-menu-parent>a::after,
.main-nav__list .current_page_item>a::after {
    width: 80%;
}

/* Наша миссия */


.mission {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 100px auto;
}

.mission-page {
    position: relative;
}

.mission-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(/wp-content/themes/pultak-theme/assets/images/background_prim.jpg) center / cover no-repeat;
    opacity: 0.15;
    height: 100%;
    pointer-events: none;
}

/* центр строго по центру */
.mission__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}

.mission__content {
    max-width: 260px;
}

/* круг */
.mission__circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.mission__title {
    font-size: 40px;
    font-family: var(--font-stroi);
    margin-bottom: 12px;
    line-height: 1;
}

.mission__text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

/* ИКОНКИ */
.mission__item {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100px;
    height: 100px;

    margin: 0;
    /* центрируем */

    border-radius: 50%;
    background: var(--color-accent);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
    cursor: pointer;
}

/* иконка внутри */
.mission__item img {
    width: 70px;
    height: auto;
    object-fit: scale-down;
}

/* ACTIVE */
.mission__item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 120px;
    height: 120px;
}

.mission__circle::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: -13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: radial-gradient(circle,
            rgba(0, 0, 0, 0.05) 55%,
            rgba(0, 0, 0, 0.20) 100%);
    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.12);
}

.mission__item:hover {
    width: 110px;
    height: 110px;
}

/*  Блок доверия в цифрах*/

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* CARD */
.fact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 4px;
    background: var(--color-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    justify-content: flex-start;
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

/* ICON */
.fact-card img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* NUMBER WRAPPER */
.fact-number {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* MAIN NUMBER */
.fact-value {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary, #1a1a1a);
    letter-spacing: -0.02em;
}

/* SUFFIX (+, %, m²) */
.fact-suffix {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary, #1a1a1a);
    opacity: 0.7;
}

/* TEXT */
.fact-text {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-main);
    text-align: center;
    line-height: 1.5;
    color: var(--color-bg-light);
    max-width: 260px;
}



/* Миссия - как мы управляем */
.pm {
    padding: 80px 0;
}

.pm__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.single-service-page .pm__grid {
    flex: 1 2 auto;
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    align-content: center;
}

.pm__card {
    background: var(--color-dark);
    border-radius: 16px;
    padding: 24px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    flex: 1 1 48%;
    transform: translateY(60px) scale(0.95);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.pm__card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pm__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.pm__img img {
    width: 80%;
    margin: 0 auto;
    height: auto;
    object-fit: scale-down;
    max-width: 200px;
    max-height: 150px;
    min-height: 150px;
}

.pm__title {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.pm__list {
    color: var(--color-white);
    margin: 0;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.wp-block-list.pm__list li {
    line-height: 1.4;
    padding: 0 0 0 16px;
    font-size: 15px;
}

.wp-block-list.pm__list li:before {
    top: 40%;
}

/* Нам доверяют */
.trusted-logos {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: transparent;
    padding: 20px 0;
}

/* MOVING TRACK */
.trusted-logos__track {
    display: flex;
    width: max-content;
    animation: logos-scroll 30s linear infinite;
    will-change: transform;
    transition: filter 0.3s ease;
}

/* STOP ON HOVER */
.trusted-logos__track:has(.trusted-logos__item:hover) {
    animation-play-state: paused;
}

/* ONE GROUP */
.trusted-logos__group {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

/* LOGO WRAPPER */
.trusted-logos__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO IMAGE */
.trusted-logos__item img {
    height: 120px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s ease;
}


/* HOVER */
.trusted-logos__item img:hover {
    filter: grayscale(0%);
}

/* ANIMATION */
@keyframes logos-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/*  Burger  */
.main-nav__burger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.burger__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-bg-light);
    transition: 0.3s;
}

.burger__line:nth-child(1) {
    top: 0;
}

.burger__line:nth-child(2) {
    top: 9px;
}

.burger__line:nth-child(3) {
    bottom: 0;
}

/*  Крестик при закрытии    */
.main-nav.is-open .burger__line:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.main-nav.is-open .burger__line:nth-child(2) {
    opacity: 0;
}

.main-nav.is-open .burger__line:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    width: var(--nav-btn-size);
    height: var(--nav-btn-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-btn-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-dark);
    text-decoration: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    width: var(--nav-arrow-size);
    height: var(--nav-arrow-size);
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.nav-btn--prev::before {
    left: 54%;
}

.nav-btn--next::before {
    transform: translate(-50%, -50%) rotate(45deg);
    left: 48%;
}

.nav-btn--prev {
    left: 20px;
}

.nav-btn--next {
    right: 20px;
}

.nav-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}

.nav-btn--hero {
    background: rgba(20, 20, 20, 0.596);
    border: none;
    color: var(--color-white);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    width: var(--nav-btn-size);
    height: var(--nav-btn-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-btn-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-dark);
    text-decoration: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.nav-btn--hero:hover {
    background: var(--color-dark);
    color: #afa51c;
    border-color: var(--color-dark);
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
      FOOTER
      ============================================ */


.footer-main {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0;
}

.footer-main__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
}

/* ── Общие стили колонок ── */
.footer-col__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

/* ── Колонка: О компании ── */
.footer-col--about {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col__logo-img {
    height: 120px;
    width: auto;
}

.footer-col__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
}

.footer-col__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Кнопка outline для тёмного фона */
.btn--outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    /* кнопка по ширине текста */
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-white);
}

/*   Cтраница ОхРАНА ТРУДА  */
/* =========================
   LAYOUT
========================= */

.labor-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* MAIN CONTENT */
.labor-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* SIDEBAR */
.labor-sidebar {
    width: 360px;
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    position: sticky;
    top: 140px;
}

/* =========================
   DOCS BLOCK
========================= */

.labor-docs {
    padding: 15px;
    border: 1px solid var(--color-border, #e5e5e5);
    background: var(--color-white, #fff);
    border-radius: 8px;
}

.labor-docs__list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 20%;
    width: 35px;
    height: 35px;

    background-image: url("/wp-content/themes/pultak-theme/assets/images/pdf_icon.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.labor-docs__title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.labor-docs__list.work-hours li {
    padding-left: 50px;
    height: 60px;
    align-items: center;
}

h3.labor-docs__title {
    text-align: center;
}

h3.labor-docs__title:after {
    bottom: 1.3rem;
    left: 50%;
}

.labor-docs__title span {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

.labor-docs__desc {
    font-size: 18px;
    margin: 15px 0 10px;
    font-weight: 700;
}

.labor-docs__list {
    margin: 0 0 15px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labor-docs__list li {
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.labor-docs__contact {
    font-size: 14px;
    line-height: 1.5;
}

.labor-docs__contact a {
    display: inline-block;
    margin-top: 6px;
    color: var(--color-primary, #1a73e8);
    text-decoration: none;
    font-weight: 500;
}

.labor-docs__contact a:hover {
    text-decoration: underline;
}

/* =========================
   BUTTON
========================= */

.labor-btn .btn {
    width: 100%;
    text-transform: uppercase;
}

/* =========================
   TABLE RESET
========================= */

.wp-block-table {
    margin: 0 0 30px;
    overflow-x: auto;
}

/* сама таблица */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border, #e5e5e5);
    background: var(--color-white, #fff);
    border-radius: 4px;
    overflow: hidden;
}

/* =========================
   HEADER
========================= */

.wp-block-table thead tr {
    background: var(--color-accent-hover, #f5f7fa);
}

.wp-block-table thead td {
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    text-align: left;
}

/* =========================
   BODY
========================= */

.wp-block-table tbody tr {
    transition: background 0.2s ease;
}

.wp-block-table tbody tr:nth-child(even) {
    background: var(--color-accent-hover, #f5f7fa);
}

.wp-block-table tbody tr:not(:nth-child(even)) {
    background: #1a202c4d;

}

.wp-block-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.wp-block-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

/* убираем нижнюю границу у последней строки */
.wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================
   FIRST COLUMN (risk emphasis)
========================= */

.wp-block-table tbody td:first-child strong {
    display: inline-block;
    font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {


    .wp-block-table thead td,
    .wp-block-table tbody td {
        padding: 12px;
        font-size: 13px;
    }
}

/* =========================
   CONTENT TYPOGRAPHY
========================= */

.labor-body {
    font-size: 16px;
    line-height: 1.7;
}

.labor-body h2,
.labor-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.labor-body p {
    margin-bottom: 15px;
}

/* =========================
   RESPONSIVE
========================= */

/* tablet */
@media (max-width: 1024px) {

    .labor-layout {
        gap: 30px;
    }

    .labor-sidebar {
        width: 300px;
        flex-basis: 300px;
        top: 15px;
    }
}

/* mobile landscape / small tablet */
@media (max-width: 900px) {

    .labor-layout {
        flex-direction: column;
    }

    .labor-sidebar {
        width: 100%;
        flex: 1 1 auto;
        position: static;
    }
}

/* mobile */
@media (max-width: 600px) {

    .labor-docs {
        padding: 15px;
    }

    .labor-docs__title {
        font-size: 16px;
    }

    .labor-body {
        font-size: 15px;
        line-height: 1.65;
    }

    .labor-layout {
        gap: 20px;
    }
}

/* ── Колонка: Вакансии ── */
.footer-hh-widget {
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.career-sidebar {
    flex: 0 0 320px;
}

.career-sidebar__block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 140px;
    background: var(--color-text-light);
    padding: 10px;
    border-radius: 4px;
    z-index: 3;
}

.career-sidebar__block h3 {
    color: var(--color-bg-light);
}

.career-layout {
    display: flex;
    gap: 40px;
}

.modal .cf7-column {
    width: 100%;
    gap: 20px;
}

.consent label {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.consent .wpcf7-list-item {
    margin: 0;
}

.consent label input {
    width: fit-content;
    margin-right: 10px;
}

.career-content {
    flex: 1 1 auto;
    min-width: 0;
}


.hh-widget {
    width: 100%;
}

.career-benefits {
    background: var(--color-dark);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.career-benefits__title {
    font-size: 28px;
    margin-bottom: 50px;
    position: relative;
    color: var(--color-border);
}

.career-benefits__item h3::after {
    display: none;
}

.career-benefits__title span {
    display: block;
    width: 60px;
    height: 3px;
    background: red;
    margin: 12px auto 0;
}

.career-benefits__grid {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.career-benefits__item {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

}

.career-benefits__item img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    object-fit: contain;
}

.career-benefits__item h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-border);
}

.career-benefits__item p {
    font-size: 14px;
    color: var(--color-border);
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 72%);
}

/* адаптив, чтобы не умерло на мобиле */
@media (max-width: 992px) {
    .career-benefits__grid {
        flex-wrap: wrap;
    }

    .career-benefits__item {
        flex: 1 1 50%;
    }
}

@media (max-width: 576px) {
    .career-benefits__item {
        flex: 1 1 100%;
    }
}

.footer-col__empty {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ── Колонка: Контакты ── */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contacts__icon {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.footer-contacts__city {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.footer-contacts__value {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

a.footer-contacts__value:hover {
    color: var(--color-white);
}

.footer-contacts__phone {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
}

/* ── Нижний бар ── */
.footer-bottom {
    background: #111827;
    /* чуть темнее основного футера */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.footer-bottom__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom__privacy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-bottom__privacy:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
    .footer-main__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* О компании на всю ширину */
    .footer-col--about {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-col__text {
        flex: 1;
        min-width: 200px;
    }
}
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    z-index: 9999;
    padding: 16px 20px;
    display: none;
}

.cookie-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text);
    flex: 1;
    min-width: 220px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-main);
}

.cookie-btn--accept {
    background: var(--color-primary);
    color: var(--color-white);
}

.cookie-btn--accept:hover {
    background: var(--color-primary-hover);
}

.cookie-btn--decline {
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.cookie-btn--decline:hover {
    background: #edf2f7;
}
/* ── Прижимаем footer к низу (на body/html) ── */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-header {
    flex-shrink: 0;
}

.site-footer {
    flex-shrink: 0;
    z-index: 120;
}

/* Портфолио для блока на главной*/
.portfolio-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-selected .portfolio-card__image img {
    max-width: 100%;
    height: 255px;
    object-fit: inherit;
}

.portfolio-card {
    width: calc(50% - 0.5rem);
}

.portfolio-selected .portfolio-card {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    height: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    justify-content: flex-start;
    /* вместо “выпуклости” */
    box-shadow:
        inset 6px 6px 12px rgba(0, 0, 0, 0.06),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);

    transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-client {
    padding-bottom: 10px;
}

.portfolio-client__logo {
    border-radius: 5px;
}

.portfolio-selected .badge {
    z-index: 9;
}

.portfolio-selected .portfolio-card__image {
    position: relative;
    max-height: 241px;
    width: 100%;
    margin: 0;
}

.portfolio-selected .portfolio-card .meta {
    color: var(--color-dark);
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.portfolio-selected .portfolio-card .meta span {
    z-index: 2;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-right: 10px;
}

.portfolio-selected .portfolio-card h3 {
    max-width: 400px;
    position: relative;
    z-index: 2;
    padding: 0px 16px 0;
}

.portfolio-selected .portfolio-card a {
    color: var(--color-dark);
}

.portfolio-selected .portfolio-card:hover .portfolio-card__image {
    transform: scale(1.05);
}

.portfolio-selected .portfolio-card:hover {
    transform: none;
}

.portfolio-selected .portfolio-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* регулируй по вкусу */
    z-index: 2;
    pointer-events: none;
    /* чтобы не ломать клики */
}

.service-btn {
    text-align: center;
}

.service-btn .btn,
.pdf_btn button {
    width: 100%;
}

/* Портфолио*/
#portfolio-grid {
    gap: 1rem;
    align-items: stretch;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0;
    transition: opacity .2s ease;
}

.portfolio-archive .container {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: inherit;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-card h3 {
    margin: 0;
    padding: 16px 16px 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.portfolio-card h3 a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.portfolio-card h3 a:hover {
    color: var(--color-primary);
}

.portfolio-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    padding: 0 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.portfolio-card .meta span {
    display: inline-flex;
    gap: 6px;
    margin-right: 10px;
}

.portfolio-card .meta span svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    animation: spin 0.7s linear infinite;
}
#download-portfolio-pdf{
    position: relative;
}
#download-pdf::before,
#download-portfolio-pdf::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 20%;
    width: 22px;
    height: 22px;
    background-image: url(/wp-content/themes/pultak-theme/assets/images/pdf_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(1);
    background-position: center;
}
#download-pdf{
    position: relative;
}
#download-pdf .btn-text{
    margin: -1px 0 -5px 7px;
}
.pdf_btn button {
    width: 180px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.portfolio-card__image {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: auto;
    margin: 0 15px;
    transition: transform .4s ease;
}

.quiz__error-message {
    color: var(--color-primary);
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.main-image {
    flex: 1;
    position: relative;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 7px;

}

.letter-image {
    width: 180px;
    flex-shrink: 0;
    border-radius: 4px;
}

.letter-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 7px;
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.01);
}

.portfolio-letter {
    margin-top: 16px;
}

.portfolio-letter__link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.portfolio-letter__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform .2s ease;
}

.portfolio-letter__link:hover .portfolio-letter__img {
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;

    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;

    color: #fff;
    background: var(--color-dark);
    backdrop-filter: blur(6px);
}

.badge--easy {
    background: #38a169;
}

.badge--medium {
    background: #dd6b20;
}

.badge--hard {
    background: var(--color-primary);
}

.portfolio-card__body {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}

.portfolio-card__body p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.portfolio-card__body strong {
    color: var(--color-dark);
    min-width: 80px;
    flex-shrink: 0;
}

.portfolio-card__body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--color-primary);
    text-decoration: none;

    font-weight: 500;
    font-size: 14px;

    transition: opacity .2s ease;
}

.portfolio-card__body a:hover {
    opacity: .7;
}

/*Страница объекта*/
/* LAYOUT */

.portfolio {
    padding: 40px 0;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR */

.portfolio__sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.portfolio__sidebar .pdf_btn {
    margin-top: 20px;
    text-align: center;
}

.portfolio-meta {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 10px;
}

.portfolio-meta__title {
    margin-bottom: 15px;
    font-size: 18px;
}

.portfolio-meta__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-meta__list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.portfolio-meta__list span,
.portfolio-client span {
    color: var(--color-text-light);
    display: block;
    font-size: 12px;
}

/* DESCRIPTION */

.portfolio-desc {
    font-size: 14px;
    color: var(--color-text);
}

.quiz {
    overflow: hidden;
}

.quiz__wrapper {
    display: flex;
    transition: height 0.3s ease, transform 0.4s ease;
}

.quiz__card {
    min-width: 100%;
    padding: 1% 10%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: fit-content;
    gap: 30px;
}

.quiz__card[data-step="0"] {
    margin-bottom: 50px;
}

.quiz__answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quiz__inline-wrap {
    display: none;
}

.quiz__inline-input {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
}

.quiz__option {
    display: block;
    width: 100%;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    position: relative;
}

.quiz__option.active::before {
    content: "";
    position: absolute;
    left: 5%;
    top: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
}

.quiz__option:hover {
    background: var(--color-accent-hover);
}

.quiz__option.active {
    background: var(--color-accent-hover);
}

.quiz__input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: none;
}

.quiz__input.quiz__input--checkbox {
    width: fit-content;
}

.quiz__nav {
    display: flex;
    gap: 15px;
    margin: 10px 0 50px 0;
}


.quiz__input.error {
    border: 1px solid red;
}

.quiz__field.error label {
    color: red;
}

.quiz-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.25s ease;
    z-index: 50;
}

.quiz-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.quiz-success-box {
    background: #fff;
    padding: 24px 28px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: 0.25s ease;
}

.quiz-success-overlay.is-visible .quiz-success-box {
    transform: translateY(0);
}

.quiz-success-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-success-text {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.4;
}

/* блокировка формы */
.quiz.is-locked {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.quiz-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
}

.quiz-success-icon svg {
    width: 100%;
    height: 100%;
    padding: 6px;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* круг */
.check-circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: drawCircle 0.5s ease forwards;
}

/* галочка */
.check-mark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.3s ease 0.5s forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Реквизиты о Компании */
.requisites {
    padding: 60px 0;
}

.requisites .section-title {
    margin-bottom: 24px;
}

.req_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    background: var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.requisites__row {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    display: flex;
    gap: 6px;
    align-items: center;
    word-break: break-word;
}

.requisites__row strong {
    min-width: 140px;
    font-weight: 600;
    color: #000;
}

.requisites__row {
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.requisites__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portfolio-nav {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 900;
}

.portfolio-nav a {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.596);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;

}

.portfolio-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.portfolio-nav a[rel="next"] {
    right: 20px;
}

.portfolio-nav a[rel="prev"] {
    left: 20px;
}

.portfolio-nav a:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.02);
}

.portfolio-nav a[rel="next"]::before {
    transform: translate(-24%, -35%) rotate(45deg);
}

.portfolio-nav a[rel="prev"]::before {
    transform: translate(20%, -50%) rotate(225deg);
}

/* CONTENT */

.portfolio__title {
    margin-bottom: 25px;
}


.portfolio-block h2 {
    margin-bottom: 10px;
}

/* GALLERY */

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* КАРТОЧКА */

.portfolio-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #000;
}

/* ФИКСИРОВАННАЯ ВЫСОТА */

.portfolio-gallery__item::before {
    content: "";
    display: block;
    padding-top: 75%;
    /* 4:3 */
}

/* КАРТИНКА */

.portfolio-gallery__item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    /* вот это тебе нужно */
    object-position: center;

    transition: transform 0.3s ease;
}

.portfolio-gallery__item:hover img {
    transform: scale(1.05);
}

/* --- МОДАЛЬНОЕ ОКНО ДЛЯ ФОРМЫ --- */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Тот же фон, что у галереи */
    justify-content: center;
    align-items: center;
    z-index: 2000;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

button,
.form__submit,
.modal__close {
    -webkit-tap-highlight-color: transparent;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    align-items: center;
}

/* Белая плашка с формой внутри */
.modal__dialog {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    /* Ширина формы */
    position: relative;
    transform: translateY(-20px);
    /* Для анимации выезда сверху */
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal.is-open .modal__dialog {
    transform: translateY(0);
}

/* Кнопка закрытия (крестик) */
.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.modal__close::before,
.modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: var(--color-dark, #333);
}

.modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover::before,
.modal__close:hover::after {
    background-color: var(--color-primary, #007bff);
}

/* ===== FORM WRAPPER ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===== GROUP ===== */
.form__group {
    display: flex;
    flex-direction: column;
}

/* ===== LABEL ===== */
.form__label {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--color-text-light);
    font-family: var(--font-main);
}

/* ===== INPUTS CF7 ===== */
.form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    transition: all 0.2s ease;
    outline: none;
}

/* focus state */
.form__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 63, 57, 0.15);
}

/* ===== SUBMIT BUTTON ===== */
.form__submit {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 20px;
    font-weight: lighter;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-header);
}

/* hover */
.form__submit:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* active */
.form__submit:active {
    transform: translateY(0);
}

/* CF7 default overrides (ВАЖНО) */
.wpcf7 form {
    margin: 0;
}

.contacts_form .wpcf7-form-control-wrap[data-name="your-consent"] {
    text-align: center;
}

.contacts_form {
    position: relative;
}

.contacts_form .is-locked {
    opacity: 0.6;
    pointer-events: none;
}

.cf7-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 5;
}

.cf7-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.cf7-success-box {
    text-align: center;
    padding: 20px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cf7-success-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cf7-success-text {
    font-size: 14px;
    color: #666;
}

.wpcf7-response-output {
    display: none !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 4px;
    color: var(--color-accent);
}

.wpcf7-response-output {
    margin: 10px 0 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* LIGHTBOX */
/* Базовое состояние (скрыт) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Активное состояние (видим) */
.lightbox--active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Изображение по умолчанию */
.lightbox__img {
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    border-radius: 14px;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    /* Оптимизация рендеринга */
}

/* Изображение в активном лайтбоксе */
.lightbox--active .lightbox__img {
    opacity: 1;
    transform: scale(1);
}

section.contacts_form {
    background-color: #718096ab;
}

.cf7-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cf7-row {
    width: 100%;
    display: flex;
}

section.contacts_form .wpcf7-not-valid-tip {
    font-size: 12px;
    position: absolute;
    margin-top: 4px;
    top: 0px;
    color: var(--color-accent);
    left: 15px;
}

.cf7-row.full {
    width: 60%;
}

/* сами поля CF7 */
.cf7-row input,
.cf7-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    height: 100%;
}

/* textarea чуть выше, потому что жизнь и так тяжелая */
.cf7-row textarea {
    min-height: 140px;
    resize: vertical;
    height: 100%;
}

.cf7-submit {
    margin: 25px 0;
}

.cf7-column {
    display: flex;
    flex-direction: column;
    height: stretch;
    width: 40%;
    justify-content: space-between;
}

.wpcf7-form-control-wrap {
    width: 100%;
}

.cf7-column .cf7-row {
    height: 60px;
}

.form_header_span {
    text-align: center;
    margin-bottom: 2em;
}

.contacts_form h2 {
    margin: 50px 0 30px;
}

.cf7-submit {
    text-align: center;
}

.wpcf7-spinner {
    display: none;
}

.cf7-submit input[type="submit"] {
    padding: 14px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.btn-hero-slider_prev,
.btn-hero-slider_next {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    background: rgba(20, 20, 20, 0.596);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.btn-hero-slider_prev::before,
.lightbox__prev::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-38%, -61%) rotate(-135deg);
}

.lightbox__next::before,
.btn-hero-slider_next::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-69%, -65%) rotate(45deg);
}

.btn-hero-slider_prev {
    left: 20px;
}

.btn-hero-slider_next {
    right: 20px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
    border-radius: 4px;
}

/*Кнопка вверх*/
.btn-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.596);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* стрелка вверх */
.btn-scroll-top::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;

    width: 10px;
    height: 10px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;

    transform: translate(-50%, -50%) rotate(-45deg);
}

/* hover */
.btn-scroll-top:hover {
    background: var(--color-accent-hover);
    color: #afa51c;
    transform: translateY(0) scale(1.08);
}

/* видимое состояние */
.btn-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*Фильтр портфолио*/
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-filter__label {
    font-weight: 500;
    color: var(--color-text);
}

.portfolio-actions {
    margin-left: auto;
}

.portfolio-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.filter-btn {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);

    padding: 6px 12px;
    border-radius: 4px;

    font-size: 14px;
    cursor: pointer;

    transition: all .2s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.skeleton {
    pointer-events: none;
}

.skeleton div {
    position: relative;
    overflow: hidden;
    background: #eee;
    border-radius: 8px;
}

/* shimmer эффект */
.skeleton div::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* элементы */
.skeleton-title {
    height: 18px;
    margin: 16px;
}

.skeleton-meta {
    height: 14px;
    margin: 0 16px;
    width: 60%;
}

.skeleton-image {
    height: 200px;
    margin: 10px 0;
    border-radius: 0;
}

.skeleton-text {
    height: 60px;
    margin: 0 16px 16px;
}

/* =========================
   Contacts Page Layout
========================= */

.contacts-page {
    background: #fff;
}

/* контейнер сетки */
.contacts-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* =========================
   LEFT SIDEBAR
========================= */
#map {
    width: 100%;
    height: 460px;
    overflow: hidden;
    position: relative;
    background: #0f0f10;
    z-index: 1;
    border: none;
}

#map::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 401;

    /* мягкая виньетка = ощущение глубины */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.45) 100%);
}

/* Leaflet не любит, когда его ломают */
.leaflet-container {
    width: 100%;
    height: 100%;
}

.leaflet-attribution-flag path:nth-child(1) {
    fill: #ffffff !important;
    /* белый */
}

.leaflet-attribution-flag path:nth-child(2) {
    fill: #0039A6 !important;
    /* синий */
}

.leaflet-attribution-flag path:nth-child(3) {
    fill: #D52B1E !important;
    /* красный */
}

.contacts-sidebar {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    background: #fafafa;
}

.contacts-sidebar h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.contacts-sidebar p {
    font-weight: 700;
    font-size: 16px;
}

.b_flex>div {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.b_flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-sidebar>.b_flex>div>div {
    flex-direction: column;
}

.contacts-sidebar .cont_phone,
.contacts-sidebar .cont_email,
.contacts-sidebar .cont_address {
    font-size: 18px;
}

.contacts-sidebar a {
    display: inline-block;
    margin-top: 4px;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: .2s;
}

.contacts-sidebar a:hover {
    border-bottom-color: #111;
}

/* =========================
   CENTER CONTENT
========================= */

.contacts-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contacts-block {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.contacts-block h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* staff + departments */
.staff-item,
.dept-item {
    border-bottom: 1px solid #f0f0f0;
}

.staff-item:last-child,
.dept-item:last-child {
    border-bottom: none;
}

.staff-item div,
.dept-item div {
    font-size: 14px;
    margin-bottom: 4px;
}

.staff-item a,
.dept-item a {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

/* =========================
   RIGHT SIDEBAR
========================= */

.contacts-sidebar-right {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    background: #fafafa;
}

.contacts-sidebar-right h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* work hours */
.work-hours {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.work-hours li:nth-child(even) {
    background: var(--color-accent-hover);
}

.work-hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 14px;
}

.work-hours li:last-child {
    border-bottom: none;
}

.contacts-accordion {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.contacts-accordion h3 {
    margin: 0;
}

/* стрелка */
.contacts-accordion__icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

/* контент */
.contacts-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.contacts-accordion__content>div {
    margin-top: 20px;
}

/* active */
.contacts-block.is-open .contacts-accordion__icon,
.dept-item.is-open .contacts-accordion__icon {
    transform: rotate(225deg);
}

.contacts-block.is-open .contacts-accordion__content,
.dept-item.is-open .contacts-accordion__content {
    max-height: 800px;
}

/* =========================
   MAP
========================= */

.contacts-map {
    margin-top: 20px;
    overflow: hidden;
    min-height: 240px;
    background: #f5f5f5;
}

.contacts-map iframe {
    width: 100%;
    height: auto;
    border: 0;
}

/*      УСЛУГИ      */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* CARD */
.service-card {
    position: relative;
    width: calc(33.333% - 16px);
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* IMAGE */
.service-card__img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* BASE OVERLAY */
.service-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.55));
    opacity: 0.6;
    transition: opacity 0.35s ease;
}

/* GLOBAL OVERLAY */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

/* INNER LAYOUT */
.service-card__inner {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
    align-items: center;
}

/* TEXT (70%) */
.service-card__text {
    width: 80%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: min-content;
    border-radius: 8px;
}

/* 🔥 ПОДЛОЖКИ */
.service-card__title,
.service-card__desc {
    display: inline-block;
    padding: 6px 10px;


}

/* TITLE */
.service-card__title {
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2;
    font-family: var(--font-stroi);
    color: var(--color-border);
}

/* DESC */
.service-card__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* ICON ZONE */
.service-card__icon {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateX(30px);
    transition: 0.35s ease;
}

.service-card__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* HOVER EFFECT */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-card__img img {
    transform: scale(1.08);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover .service-card__img::after {
    opacity: 0.8;
}

/* 👇 УБИРАЕМ ПОДЛОЖКИ НА ХОВЕР */
.service-card__text {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.service-card:hover .service-card__text {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

/* ICON APPEAR */
.service-card:hover .service-card__icon {
    opacity: 1;
    transform: translateX(0);
}

/* Этапы подрядчикам*/
.steps {
    position: relative;
    height: calc(100vh * (var(--steps-count) + 0.8));
}


.wp-block-list li,
.steps__text li,
.portfolio-desc li,
.portfolio-block li {
    position: relative;
    padding: 4px 0 4px 25px;
}

.steps__text li {
    color: var(--color-bg-light);
}

.steps__left h2.wp-block-heading {
    margin: 0;
}

.steps__text .wp-block-table table {
    border: none;

}

.wp-block-list li:before,
.steps__text li::before,
.portfolio-desc li::before,
.portfolio-block li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 10px;
    transform: rotate(45deg);
}

.steps__inner {
    display: flex;
    height: calc(100vh - 120px);
    position: sticky;
    top: 120px;
    overflow: hidden;
}

/* ЛЕВАЯ ЧАСТЬ */

.steps__left {
    width: 50%;
    position: relative;
    overflow: hidden;
    /* важно */
}

.steps__circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
}

/* орбита */

.steps__orbit {
    width: 100%;
    height: 100%;
    transition: none;
    top: 0;
    left: 50%;
    position: absolute;
}

/* кружки */
.steps__content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.steps__content.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.steps__item {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    background: var(--color-text-light);
    opacity: 0.4;
}

#podriad_form {
    background-color: #718096ab;
}

.wpcf7 input[type="file"] {
    background-color: var(--color-bg-light);
}

#podriad_form .cf7-column {
    gap: 15px;
}

.steps__item.is-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ПРАВАЯ ЧАСТЬ */

.steps__right {
    width: 60%;
    background: var(--color-dark);
    position: relative;
    z-index: 5;
    /* перекрывает круг */
    padding: 60px 30px;
}

.steps__name {
    font-size: 30px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-bg-light);

}

.steps h3 {
    color: var(--color-bg-light);
}

.steps a {
    font-weight: 800;
    color: var(--color-accent);
}

.steps a.btn {
    background: var(--color-accent);
    color: white;
    font-weight: 600;
}

.steps a:hover {
    color: var(--color-accent-hovers);
}

.steps__text p {
    color: var(--color-bg-light);
}

/* =========================
   ABOUT HISTORY (HORIZONTAL)
========================= */

.about-history {
    position: relative;
    height: auto;
    overflow: hidden;
}

.js-history-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    cursor: grab;
}

/* контейнер */
.history--horizontal {
    position: sticky;
    top: calc(var(--header-height) + var(--top-bar-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* линия */
.history--horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

/* трек */
.history__track {
    display: flex;
    gap: 40px;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

/* элемент */
.history-item {
    position: relative;
    flex: 0 0 260px;
}

/* точка на линии */
.history-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* контент */
.history-item__content {
    margin-top: 70px;
    text-align: center;
    padding: 0 10px;
}

/* дата */
.history-item__date {
    font-size: 25px;
    color: var(--color-text);
    margin-bottom: 25px;
    font-family: var(--font-stroi);
}

/* заголовок */
.history-item__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* описание */
.history-item__desc {
    font-size: 13px;
    color: #555;
}

.about-intro__content {
    font-size: 18px;
    line-height: 1.7;
    color: #222;
}

.about-intro__content p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-intro__content p {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

/*   Блок Почему выбирают нас   */
.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.why-card {
    flex: 1 1 calc(50% - 12px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.04),
        0 12px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

.why-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 1;
    transition: all 0.3s ease;
}

.why-card__icon {
    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

.why-card__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* hover: уезжает за пределы */
.why-card:hover .why-card__icon {
    transform: translateX(-80px);
    opacity: 0;
}

.why-card:hover .why-card__content {
    padding-left: 0;
    transform: translateX(-36px);
}

.why-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    padding-bottom: 10px;
    font-family: var(--font-main);
    position: relative;
}

.why-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    width: 10%;
    height: 2px;
    background: var(--color-primary);
}

.why-card__text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
    margin-top: 4px;
}

/*  Госконтракты страница о компании*/
.diagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#contractsChart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-tooltip {
    position: absolute;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.3;
    pointer-events: none;
    opacity: 0;
    transform: translate(10px, -10px);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 10;
}

.chart-wrapper {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
         MOBILE (< 1024px)
         ============================================ */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
        --top-bar-height: 40px;
    }

    /* Top bar: скрываем часть контактов */
    .top-bar__hours,
    .top-bar__email {
        display: none;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .fact-value {
        font-size: 40px;
    }

    .main-nav__logo img {
        height: 70px;
    }

    /* Показываем бургер */
    .main-nav__burger {
        display: flex;
    }

    .main-nav__menu-wrapper {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 280px;
        height: calc(100% - var(--top-bar-height) - var(--header-height));
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.35s ease;

        z-index: 999;
        padding: 80px 20px;
    }

    .main-nav__list {
        flex-direction: column;
        gap: 5px;
    }

    .page-header .featured-image {
        background-size: cover;
        background-position: left bottom;
    }

    .page-header-content {
        padding: 140px 0 100px 0;
    }

    .main-nav__list .sub-menu li a {
        color: var(--color-bg-light);
        font-size: 15px;
    }

    .main-nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        padding: 0;
    }

    .main-nav__list li.is-open>.sub-menu {
        max-height: 500px;
        margin-top: 10px;
    }

    .main-nav.is-open .main-nav__menu-wrapper {
        transform: translateX(0);
        background: var(--color-dark);
    }

    .main-nav__actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        justify-content: space-between;
        align-items: center;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-sidebar,
    .contacts-sidebar-right {
        position: relative;
        top: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Скрываем десктопный телефон и CTA */
    .main-nav__phone {
        display: none;
    }

    .main-nav.is-scrolled .main-nav__menu-wrapper {
        height: calc(100% - var(--header-height));
    }

    .service-card {
        width: calc(50% - 12px);
    }

    .pm__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm__list {
        padding-left: 15px;
    }

    .portfolio__sidebar {
        position: relative;
        top: 0;
    }

    .career-layout {
        flex-direction: column;
    }

    .career-sidebar {
        flex: 0 0 auto;
        width: 100%;
        order: -1;
        /* уводим вверх */
    }

    .career-sidebar__block {
        position: relative;
        top: auto;
        width: 100%;
        align-items: center;
    }

    .alignfull {
        margin-left: 0;
        width: 100%;
    }

    /* Мобильное меню */


}

/* ============================================
             MOBILE (< 576px)
             ============================================ */
@media (max-width: 576px) {
    .top-bar__contacts {
        gap: 1rem;
    }

    .top-bar__phone .top-bar__icon {
        display: none;
    }

    .why-card {
        flex: 1 1 100%;
    }

    .why-card:hover .why-card__icon {
        transform: translateX(-60px);
    }

    .container {
        max-width: 98%;
        padding: 0.5rem 3%;
        margin: 0 auto;
    }

    .single-service-page::before {
        background-size: 156%;
        top: 0;
        left: -42%;
    }
}

@media (max-width: 768px) {
    .trusted-logos__item img {
        filter: unset;
    }

    .portfolio-card {
        width: 100%;
    }

    .mission {
        width: 270px;
        height: 270px;
    }

    .mission__circle {
        width: 100%;
        height: 100%;
    }

    .mission__item {
        width: 70px;
        height: 70px;
    }

    .mission__title {
        font-size: 33px;
    }

    .mission__item.active {
        width: 80px;
        height: 80px;
    }

    .mission__item img {
        width: 50px;
        height: 50px;
    }

    .mission__content {
        max-width: 180px;
    }

    .service-sidebar {
        display: none;
    }

    .pc_hide {
        display: block;
    }

    .req_fields {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .requisites__row strong {
        min-width: 120px;
    }

    .service-btn {
        position: fixed;
        left: 5%;
        bottom: 20px;
        z-index: 9;
    }

    .steps {
        height: auto;
    }

    .container.steps__inner {
        display: block;
        position: relative;
        height: auto;
        top: 0;
    }

    .steps__left {
        width: 100%;
        overflow: visible;
        margin-bottom: 30px;
    }

    .steps__circle {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        left: auto;
        top: auto;
    }

    .steps__orbit {
        display: none;
    }

    .steps__item {
        position: relative;
        flex: 0 0 140px;
        height: 140px;
        transform: none !important;
        opacity: 1;
    }

    .steps__right {
        padding: 20px;
        margin: -1.5rem;
        padding: 20px;
    }

    .steps__content {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid white;
    }

    h2.wp-block-heading {
        font-size: 22px;
    }

    .chart-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-legend {
        display: none;
    }

    .chart-tooltip {
        font-size: 12px;
        transform: none;
    }

    .single-service-page {
        overflow: hidden;
    }

    .portfolio-selected .portfolio-card {
        width: 100%;
    }

    /* скрываем всё лишнее */
    .top-bar__email,
    .top-bar__hours,
    .top-bar__address {
        display: none !important;
    }

    .hero-slide__content h2 {
        font-size: 30px;
    }

    /* оставляем только базовую структуру */
    .top-bar__inner {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* чуть упрощаем контактную часть */
    .top-bar__contacts {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* делаем текст компактнее */
    .top-bar__item {
        font-size: 13px;
        white-space: nowrap;
    }

    .btn-hero-slider_prev,
    .btn-hero-slider_next {
        background: rgba(20, 20, 20, 0.596);
        backdrop-filter: blur(1px);
        top: 20%;
    }

    .steps__name {
        font-size: 22px;
    }

    /* город справа не ломаем */
    .top-bar__city-selector {
        flex-shrink: 0;
    }

    .hero-slide__content {
        max-width: 90vw;
        margin-left: 0;
        margin: 0 auto;
    }

    .footer-main {
        padding: 2.5rem 0;
    }

    .footer-main__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col--about {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom__inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* модалка — убираем "плавающий центр" */
    .modal__dialog {
        max-width: 90%;
        padding: 24px 20px;
        border-radius: 12px;
    }

    /* заголовок внутри модалки (если есть h3) */
    .modal__content h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* форма становится плотнее */
    .form {
        gap: 14px;
    }

    .cf7-grid {
        flex-direction: column;
    }

    .cf7-row.full {
        width: 100%;
    }

    .cf7-column {
        width: 100%;
        gap: 20px;
    }

    .portfolio-nav a {
        width: 40px;
        height: 40px;
    }

    /* label чуть компактнее */
    .form__label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    /* поля — удобнее для пальца */
    .form__input {
        padding: 12px 12px;
        font-size: 16px;
        /* важно: не меньше 16px, иначе iOS зумит */
        border-radius: 8px;
    }

    /* кнопка — чуть ниже и крупнее */
    .form__submit {
        padding: 14px;
        font-size: 18px;
        border-radius: 10px;
    }

    /* крестик — удобнее тапать */
    .modal__close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .modal__close::before,
    .modal__close::after {
        width: 18px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .service-card {
        width: 100%;
    }

    .service-card__img {
        height: 200px;
    }

    .main-nav__list .sub-menu li {
        padding: 5px;
    }

    .pm__img img {
        width: 50%;
    }

    .pm__grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fact-card {
        padding: 20px;
    }

    .portfolio-actions {
        left: 50%;
        position: absolute;
        top: 280px;
        z-index: 2;
    }

    .fact-value {
        font-size: 36px;
    }
}

@media (hover: none) and (pointer: coarse) {

    .btn-hero-slider_prev:hover,
    .btn-hero-slider_next:hover {
        background: rgba(20, 20, 20, 0.596);
        color: var(--color-white);
        border-color: inherit;
        transform: translateY(-50%);
    }

    .trusted-logos__track:has(.trusted-logos__item:hover) {
        animation: logos-scroll 30s linear infinite;
    }
}

@media (hover: none) {

    .service-card .service-card__text {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }

    .service-card .service-card__icon {
        opacity: 1;
        transform: translateX(0);
    }

    .service-card {
        transform: translateY(-6px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    .service-card::after {
        opacity: 1;
    }

    .service-card .service-card__img::after {
        opacity: 0.8;
    }


    .letter-image {
        display: none;
    }
}