 /* =========================================================================
   ARSENAL MET — global stylesheet
   Single CSS file (WordPress-ready). BEM. Mobile-first.
   ========================================================================= */

/* ------------------------------- FONTS --------------------------------- */
/* Используем системные шрифты — никаких загрузок, мгновенный рендер.
   При необходимости позже можно добавить @font-face с локальными woff2. */

/* ------------------------------- ROOT ---------------------------------- */
:root {
    /* Colors */
    --color-red: #d81f26;
    --color-red-hover: #b81a20;
    --color-white: #ffffff;
    --color-black: #111111;
    --color-text: #111111;
    --color-text-muted: #d7d7d7;
    --color-text-secondary: #ddd;
    --color-border: #e5e5e5;
    --color-border-light: #e6e6e6;
    --color-bg-light: #f5f5f5;
    --color-overlay: rgba(0, 0, 0, .45);
    --color-overlay-dark: rgba(0, 0, 0, .55);
    --color-overlay-red: rgba(175, 20, 25, .75);
    --color-footer-bg: #1d1d1d;
    --color-footer-text: #d8d8d8;
    --color-faq-line: #e5e5e5;
    --color-faq-icon: #9b9b9b;
    --color-pattern-1: #fafafa;
    --color-pattern-2: #f4f4f4;
    --color-pattern-3: #eeeeee;

    /* Typography — системные стеки, без загрузки шрифтов */
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-condensed: "Impact", "Haettenschweiler", "Arial Narrow Bold", "Roboto Condensed", "Oswald", sans-serif;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 20px;
    --header-height: 90px;

    /* Spacing */
    --section-py: clamp(40px, 6vw, 90px);

    /* Radius */
    --radius-sm: 4px;
    --radius-lg: 18px;

    /* Transition */
    --transition: .3s ease;

    /* Shadow */
    --shadow-form: 0 10px 40px rgba(0, 0, 0, .25);
}

/* ------------------------------- RESET --------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

input, select, textarea, button {
    font-family: inherit;
}

input,
select,
textarea {
    width: 100%;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-white);
}

:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* ----------------------------- CONTAINER ------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container-width) + var(--container-padding) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* WP content alignment helpers */
.alignleft  { float: left;  margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter{ display: block; margin-inline: auto; }
.alignwide  { max-width: 1100px; margin-inline: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }

/* Anchor scroll offset under fixed header */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* ============================== HEADER ================================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    min-height: var(--header-height);
    color: var(--color-white);
}

.header__container {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto auto;
    align-items: center;
    column-gap: 30px;
    min-height: var(--header-height);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}
.logo__img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}
.logo__text {
    font-size: 12px;
    line-height: 1.3;
    color: var(--color-white);
    max-width: 220px;
}

/* Nav */
.nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: center;
    white-space: nowrap;
}
.nav__link {
    display: inline-block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white);
    white-space: nowrap;
    transition: color var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible {
    color: var(--color-red);
}
.nav__item.current-menu-item > .nav__link,
.nav__link[aria-current="page"] {
    color: var(--color-white);
}
/* WP submenu prep */
.menu-item-has-children { position: relative; }
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    background: var(--color-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    border-radius: var(--radius-sm);
}
.menu-item-has-children:hover > .sub-menu {
    display: block;
}
.sub-menu .nav__link,
.sub-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 14px;
}

/* Socials */
.socials {
    display: flex;
    align-items: center;
    gap: 18px;
}
.socials__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-white);
    transition: color var(--transition), transform var(--transition);
}
.socials__link:hover,
.socials__link:focus-visible {
    color: var(--color-red);
    transform: translateY(-2px);
}
.socials__icon {
    width: 20px;
    height: 20px;
}

/* Phone */
.phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}
.phone__number {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-white);
    white-space: nowrap;
    transition: color var(--transition);
}
.phone__number:hover,
.phone__number:focus-visible {
    color: var(--color-red);
}
.phone__hours {
    margin-top: 4px;
    font-size: 11px;
    color: var(--color-text-secondary);
}

/* Burger (mobile only) */
.burger {
    display: none;
    width: 36px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 30;
}
.burger__line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* ============================== BUTTONS =============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 50px;
    padding-inline: 30px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-white);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-red);
    color: var(--color-white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-red-hover);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-black);
}
.btn--light:hover,
.btn--light:focus-visible {
    background: #f0f0f0;
}

/* Тёмная кнопка (используется на странице "О компании") */
.btn--dark {
    background: #353238;
    color: var(--color-white);
    border-radius: 5px;
}
.btn--dark:hover,
.btn--dark:focus-visible {
    background: #25232a;
}

.btn--sm {
    height: 40px;
    padding-inline: 24px;
    font-size: 13px;
}
.btn--lg {
    height: 50px;
    padding-inline: 40px;
    font-size: 15px;
    font-weight: 600;
}

.btn--with-icon {
    padding-right: 12px;
}
.btn__icon-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 4px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
}
.btn__icon-play svg {
    margin-left: 2px;
}

/* =============================== HERO ================================= */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: 60px;
    color: var(--color-white);
    background-color: #1a1a1a;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: -1;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    min-height: calc(100vh - var(--header-height));
    padding-block: 40px;
}

.hero__content {
    flex: 1 1 50%;
    max-width: 620px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: -0.3px;
}
.hero__title-accent {
    color: var(--color-red);
}

.hero__subtitle {
    margin-top: 30px;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.5;
    color: var(--color-text-muted);
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

/* =============================== FORM ================================= */
.hero__form {
    flex: 0 0 420px;
}

.form {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-form);
}

.form__title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-black);
}
.form__title-accent,
.form__title-main {
    display: block;
}
.form__title-accent {
    color: var(--color-red);
}

.form__divider {
    display: block;
    height: 1px;
    background: #e7e7e7;
    margin-block: 20px;
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__field {
    display: block;
    width: 100%;
}

.form__input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.form__input::placeholder {
    color: #9a9a9a;
}
.form__input:hover {
    border-color: #bbb;
}
.form__input:focus-visible {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, .12);
}

.form__select {
    color: #9a9a9a;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}
.form__select:required:valid {
    color: var(--color-text);
}

/* File field */
.form__field--file {
    position: relative;
}
.form__file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.form__file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 15px;
    font-size: 14px;
    color: #8a8a8a;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}
.form__field--file:hover .form__file-label {
    border-color: #ccc;
    background: #efefef;
}
.form__file-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #8a8a8a;
}

.form__submit {
    width: 140px;
    height: 48px;
    margin-top: 16px;
    font-weight: 600;
}

/* ============================ FEATURES ================================ */
.features {
    background: var(--color-white);
    padding-block: 80px;
}

.section-title {
    font-family: var(--font-condensed);
    font-size: 52px;
    font-weight: 700;
    line-height: .9;
    text-align: center;
    text-transform: uppercase;
    color: #2f2f2f;
    letter-spacing: .5px;
}

.section-title--dark {
    color: #333333;
}

/* ---------- Advantages ---------- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.advantage-card {
    min-height: 270px;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.advantage-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-red);
    border-radius: 50%;
    color: var(--color-red);
    flex-shrink: 0;
}

.advantage-card__title {
    margin-top: 30px;
    font-family: var(--font-condensed);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
    color: #202020;
}

.advantage-card__text {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: #666;
}

/* ---------- Services ---------- */
.services {
    background: var(--color-white);
    padding-block: 0 30px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

/* Пятая карточка занимает место "по центру" второго ряда, сохраняя ту же ширину */
.services__grid .service-card--5 {
    grid-column: 2 / span 2;
    justify-self: stretch;
    max-width: calc((100% - 20px) / 2);
    margin-inline: auto;
}

.service-card {
    position: relative;
    aspect-ratio: auto;
    min-height: 270px;
    height: 270px;
    overflow: hidden;
    border-radius: 14px;
    background-color: #1a1a1a;
    color: var(--color-white);
    isolation: isolate;
}

.service-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform var(--transition);
}

.service-card:hover .service-card__img {
    transform: scale(1.05);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .75) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-card__num {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 2;
    font-family: var(--font-condensed);
    font-size: 92px;
    font-weight: 200;
    line-height: 1;
    color: var(--color-white);
    opacity: .9;
}

.service-card__body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
}

.service-card__title {
    font-family: var(--font-condensed);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
}

.service-card__text {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .85);
}

/* ============================== STATS ================================= */
.stats {
    position: relative;
    padding-block: 40px 80px;
    background-color: transparent;
}

/* Декоративный фон bgg.png — светлый низкополигональный паттерн.
   Поднят ВЫШЕ секции: заходит на белую область над заголовком
   (на нижнюю часть секции .services). Без isolation, чтобы z-index: -1
   реально опускал картинку под содержимое страницы. */
.stats__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -180px;
    bottom: 0;
    z-index: -1;
    background-image: url("../img/bgg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    pointer-events: none;
}

.stats__title {
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    grid-template-rows: 155px 155px;
    gap: 14px;
    width: 100%;
}

/* Карточка статистики */
.stat-card {
    position: relative;
    width: 100%;
    min-height: 155px;
    height: 155px;
    overflow: hidden;
    border-radius: 14px;
    color: var(--color-white);
    isolation: isolate;
    background-color: #1a1a1a;
}

.stat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.stat-card--dark::before {
    background: var(--color-overlay-dark);
}
.stat-card--red::before {
    background: var(--color-overlay-red);
}

.stat-card__num {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 2;
    font-family: var(--font-condensed);
    font-size: clamp(38px, 3.4vw, 58px);
    font-weight: 200;
    line-height: 1;
    color: var(--color-white);
    letter-spacing: -1px;
}

.stat-card__label {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.25;
    color: var(--color-white);
}

/* Большая ч/б фотография справа — занимает 2 строки */
.stats__photo {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background-color: #1a1a1a;
}

.stats__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: transform var(--transition), filter var(--transition);
}

.stats__photo:hover .stats__photo-img {
    transform: scale(1.04);
}

/* =============================== FAQ ================================== */
.faq {
    padding-block: 90px;
    background-color: var(--color-pattern-1);
    background-image:
        linear-gradient(135deg, var(--color-pattern-3) 0%, transparent 25%, transparent 75%, var(--color-pattern-2) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><polygon points='0,0 300,80 200,260 0,200' fill='%23f4f4f4' opacity='.65'/><polygon points='600,0 600,220 380,260 320,90' fill='%23eeeeee' opacity='.55'/><polygon points='0,600 220,420 420,520 250,600' fill='%23eeeeee' opacity='.5'/><polygon points='600,600 600,400 420,360 380,600' fill='%23f4f4f4' opacity='.6'/><polygon points='280,260 420,360 380,460 220,420' fill='%23fafafa' opacity='.7'/></svg>");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.faq__title {
    margin-bottom: 50px;
    font-size: 48px;
}

.faq__list {
    max-width: 1100px;
    margin-inline: auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-faq-line);
}
.faq__item:first-child {
    border-top: 1px solid var(--color-faq-line);
}

.faq__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 60px;
    padding: 12px 4px;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}
.faq__toggle:hover,
.faq__toggle:focus-visible {
    color: var(--color-red);
}
.faq__toggle:hover .faq__icon,
.faq__toggle:focus-visible .faq__icon {
    color: var(--color-red);
}

.faq__question {
    flex: 1 1 auto;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
    transition: color var(--transition);
}
.faq__toggle:hover .faq__question,
.faq__toggle:focus-visible .faq__question {
    color: var(--color-red);
}

.faq__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--color-faq-icon);
    transition: color var(--transition), transform var(--transition);
}

/* Минус когда раскрыто */
.faq__toggle[aria-expanded="true"] .faq__icon {
    color: var(--color-red);
    transform: rotate(180deg);
}
.faq__toggle[aria-expanded="true"] .faq__icon-v {
    opacity: 0;
}
.faq__icon-v {
    transition: opacity var(--transition);
}

/* ============================== FOOTER ================================ */
.footer {
    padding-block: 0;
    background-color: var(--color-footer-bg);
    /* Тёмный геометрический паттерн через inline SVG (декор) */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, .03) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, .35) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><polygon points='0,0 260,90 180,260 0,200' fill='%23262626'/><polygon points='800,0 800,200 560,240 460,80' fill='%23232323'/><polygon points='0,400 220,300 380,360 200,400' fill='%23222222'/><polygon points='800,400 800,260 600,300 520,400' fill='%23252525'/><polygon points='300,140 520,220 460,340 240,300' fill='%231f1f1f'/></svg>");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    color: var(--color-white);
}

.footer__container {
    min-height: 220px;
    padding-block: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

/* Col 1: contacts */
.footer__col--contacts {
    gap: 14px;
}
.footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-white);
}
.footer__phone {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-white);
    transition: color var(--transition);
}
.footer__phone:hover,
.footer__phone:focus-visible {
    color: var(--color-red);
}
.footer__email {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--color-white);
    transition: color var(--transition);
}
.footer__email:hover,
.footer__email:focus-visible {
    color: var(--color-red);
}
.footer__socials {
    margin-top: 4px;
    gap: 14px;
}
.footer__socials .socials__link {
    color: var(--color-white);
}
.footer__socials .socials__link:hover,
.footer__socials .socials__link:focus-visible {
    color: var(--color-red);
}

/* Col 2: menu */
.footer__col--menu {
    padding-top: 4px;
}
.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer__menu-link {
    font-size: 14px;
    color: var(--color-white);
    transition: color var(--transition);
}
.footer__menu-link:hover,
.footer__menu-link:focus-visible {
    color: var(--color-red);
}

/* Col 3: offices */
.footer__col--offices {
    gap: 14px;
}
.footer__heading {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
}
.footer__address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-footer-text);
}

/* Col 4: cta */
.footer__col--cta {
    gap: 20px;
    align-items: flex-start;
}
.footer__btn {
    width: 150px;
    height: 42px;
    padding-inline: 16px;
    font-size: 13px;
    font-weight: 500;
}
.footer__policy {
    font-size: 12px;
    color: var(--color-footer-text);
    text-decoration: underline;
    text-decoration-color: rgba(216, 216, 216, .3);
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.footer__policy:hover,
.footer__policy:focus-visible {
    color: var(--color-white);
}

/* =============================== WP-EDITOR ============================ */
.entry-content > * + * { margin-top: 1em; }
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}
.entry-content p { line-height: 1.6; }
.entry-content a { color: var(--color-red); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content blockquote {
    padding: 16px 20px;
    border-left: 4px solid var(--color-red);
    background: var(--color-bg-light);
    font-style: italic;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}
.wp-block-image img { height: auto; }

/* ============================ ABOUT HERO ============================== */
/* Светлая hero-секция страницы "О компании": слева текст, справа фото,
   декоративный полигональный фон (inline SVG) на всю площадь секции. */
.about-hero {
    position: relative;
    min-height: 760px;
    padding-top: var(--header-height);
    padding-bottom: 70px;
    background-color: var(--color-white);
    overflow: hidden;
    isolation: isolate;
}

/* Декоративный полигональный фон — растягиваем по всей секции */
.about-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.about-hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 90px;
    margin-top: 60px;
    min-height: calc(760px - var(--header-height) - 70px - 60px);
}

/* ---------- Левая колонка ---------- */
.about-hero__content {
    flex: 0 0 430px;
    max-width: 430px;
    padding-top: 15px; /* визуально ниже изображения на ~15px */
}

.about-hero__title {
    font-family: var(--font-condensed);
    font-size: 72px;
    font-weight: 700;
    line-height: .92;
    text-transform: uppercase;
    color: #2D2D2D;
    letter-spacing: 0;
}

.about-hero__title-line {
    display: block;
}

.about-hero__title-line--accent {
    color: var(--color-red);
}

.about-hero__subtitle {
    margin-top: 40px;
    max-width: 380px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

.about-hero__btn {
    margin-top: 45px;
    width: 190px;
    height: 48px;
    padding-inline: 0;
    font-size: 15px;
    font-weight: 500;
}

/* ---------- Правая колонка ---------- */
.about-hero__media {
    flex: 0 0 550px;
    width: 550px;
    height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background-color: #1a1a1a;
}

.about-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================ HEADER LIGHT ============================ */
/* Светлый вариант шапки для страниц с белым фоном (например "О компании"). */
.header--light {
    color: #222;
}
.header--light .logo,
.header--light .logo__text,
.header--light .nav__link,
.header--light .phone__number {
    color: #222;
}
.header--light .logo__text {
    color: #2D2D2D;
}
.header--light .nav__link {
    font-size: 15px;
    color: #222;
}
.header--light .nav__list {
    gap: 42px;
}
.header--light .nav__link:hover,
.header--light .nav__link:focus-visible,
.header--light .phone__number:hover,
.header--light .phone__number:focus-visible {
    color: var(--color-red);
}
.header--light .nav__item.current-menu-item > .nav__link,
.header--light .nav__link[aria-current="page"] {
    color: var(--color-red);
}
.header--light .socials__link {
    color: #111;
}
.header--light .socials__link:hover,
.header--light .socials__link:focus-visible {
    color: var(--color-red);
}
.header--light .phone__number {
    font-size: 18px;
    color: #202020;
}
.header--light .phone__hours {
    color: #666;
}
.header--light .burger__line {
    background: #222;
}
.header--light .header__btn {
    width: 145px;
    height: 42px;
    padding-inline: 0;
    font-size: 14px;
    font-weight: 500;
}

/* ============================== METALL ================================ */
/* Информационная секция «Металлолом»: диагональная композиция 2×2 —
   верх-лево фото + текст справа, низ-лево текст + фото справа.
   Фотографии одного размера, стоят «по диагонали» почти угол к углу.
   Тексты строго ограничены по высоте картинки. */
.metall {
    background: var(--color-white);
    padding-block: 80px 100px;
}

.metall__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 60px;
    row-gap: 24px; /* небольшое смещение — углы фото почти встречаются */
    align-items: stretch;
}

/* ---------- Фотографии: одинаковые, чуть уменьшённые ---------- */
.metall__media {
    width: 100%;
    max-width: 100%;
    height: 500px;        /* одинаковая высота для обеих картинок */
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background-color: #1a1a1a;
}
.metall__media--top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
}
.metall__media--bottom-right {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
}
.metall__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- Текстовые колонки ---------- */
/* Текст растягивается ровно от верха до низа картинки благодаря
   justify-content: space-between и height = height фотографии. */
.metall__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 500px;        /* равна высоте картинки — заполняем сверху донизу */
    max-width: 100%;
    overflow: hidden;
}

/* Справа от первой картинки — определения видов лома.
   justify-content: flex-start + крупные термины + умеренный gap —
   пустого пространства между блоками не остаётся. */
.metall__copy--top-right {
    grid-column: 2;
    grid-row: 1;
    justify-content: space-between;
    gap: 18px;
}

/* Слева от второй картинки — длинный текст о компании */
.metall__copy--bottom-left {
    grid-column: 1;
    grid-row: 2;
    gap: 16px;
}

/* Блок-определение: сверху — термин, ниже — описание */
.metall__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Термины-заголовки: «Металлолом», «Лом чёрных металлов», «Цветной лом» */
.metall__term {
    margin: 0;
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.2px;
}
.metall__term--accent {
    color: #C71F28;
}

.metall__paragraph {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    color: #222;
}
.metall__paragraph--strong {
    font-weight: 700;
    color: #111;
}

/* Верхний правый блок — описания под крупными терминами */
.metall__copy--top-right .metall__paragraph {
    font-size: 22px;
    line-height: 1.45;
}

/* Нижний левый блок — длинный текст; делаем чуть компактнее, чтобы уместить */
.metall__copy--bottom-left .metall__paragraph {
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================================
   CHOOSE — «Общая композиция»
   Hero-блок с 6 преимуществами + 3 карточки внизу
   ========================================================================= */

.choose {
    background: var(--color-white);
    padding-block: 20px 80px;
}

.choose__container {
    width: 100%;
    max-width: calc(var(--container-width) + var(--container-padding) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ---------- HERO BLOCK ---------- */
.choose__hero {
    position: relative;
    width: 100%;
    min-height: 540px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

/* Фоновое фото — ч/б и сильно затемнённое */
.choose__hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: grayscale(100%) brightness(0.3) contrast(1.05);
}

/* Тёмный полупрозрачный оверлей — усиливает затемнение */
.choose__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .75) 100%);
    z-index: 2;
}

.choose__hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 50px 70px 42px;
}

/* Заголовок */
.choose__title {
    margin: 0;
    font-family: var(--font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
}

.choose__title-line {
    display: block;
    font-size: 46px;
    color: var(--color-white);
    line-height: 1;
}

.choose__title-line + .choose__title-line {
    margin-top: 6px;
}

.choose__title-line--accent {
    color: #D91F26;
}

/* Список преимуществ — 3 × 2 */
.choose__list {
    list-style: none;
    margin: 46px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 70px;
    row-gap: 40px;
}

.choose__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 280px;
}

/* Иконка-кружок с обводкой */
.choose__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.choose__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.choose__text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-white);
    align-self: center;
}

/* Красная кнопка */
.choose__btn {
    margin-top: 40px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 218px;
    height: 48px;
    background: #D91F26;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition);
}

.choose__btn:hover,
.choose__btn:focus-visible {
    background: #F02934;
}

/* ---------- НИЖНИЕ КАРТОЧКИ ---------- */
.choose__cards {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.choose-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 402px;
    padding: 28px 24px 24px;
    background: #090909;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* Фоновое изображение карточки (linii.jpg) */
.choose-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.5);
}

/* Тёмный полупрозрачный оверлей поверх фото */
.choose-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .65) 100%);
}

.choose-card > *:not(.choose-card__bg) {
    position: relative;
    z-index: 2;
}

/* Номер */
.choose-card__num {
    display: block;
    font-family: var(--font-condensed);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: #D91F26;
    margin-bottom: 24px;
}

/* Заголовок карточки */
.choose-card__title {
    margin: 0 0 20px;
    width: 90%;
    font-family: var(--font-condensed);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0.3px;
}

/* Текст */
.choose-card__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 26px;
    color: rgba(255, 255, 255, .78);
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка прибита к низу карточки */
.choose-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #D91F26;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition);
}

.choose-card__btn:hover,
.choose-card__btn:focus-visible {
    background: #F02934;
}


/* =========================================================================
   RESPONSIVE
   ========================================================================= */


/* ≤ 1440 */
@media (max-width: 1440px) {
    :root {
        --container-width: 1180px;
    }
}

/* ≤ 1280 */
@media (max-width: 1280px) {
    .header__container {
        column-gap: 20px;
    }
    .nav__list {
        gap: 26px;
    }
    .logo__text {
        font-size: 11px;
        max-width: 190px;
    }
    .phone__number {
        font-size: 20px;
    }
    .hero__container {
        gap: 40px;
    }
    .hero__form {
        flex-basis: 380px;
    }
    .form {
        max-width: 380px;
        padding: 26px;
    }
}

/* ≤ 1200 */
@media (max-width: 1200px) {
    .section-title {
        font-size: 44px;
    }
    /* Choose — ≤1200 */
    .choose__container {
        max-width: 100%;
        padding-inline: var(--container-padding);
    }
    .choose__hero-inner {
        padding: 32px 40px 26px;
    }
    .choose__list {
        column-gap: 40px;
        row-gap: 32px;
    }
    .choose__item {
        gap: 14px;
        max-width: 100%;
    }
    /* About hero */
    .about-hero__container {
        gap: 50px;
    }
    .about-hero__content {
        flex-basis: 380px;
    }
    .about-hero__title {
        font-size: 60px;
    }
    .about-hero__media {
        flex-basis: 480px;
        width: 480px;
        height: 380px;
    }
    /* Metall — ≤1200: чуть уменьшаем высоту, но сохраняем одинаковость */
    .metall {
        padding-block: 60px 80px;
    }
    .metall__container {
        column-gap: 40px;
        row-gap: 20px;
    }
    .metall__media,
    .metall__copy {
        height: 500px;
    }
    .metall__term {
        font-size: 30px;
    }
    .metall__copy--top-right .metall__paragraph {
        font-size: 19px;
        line-height: 1.45;
    }
    .metall__copy--bottom-left .metall__paragraph {
        font-size: 13px;
        line-height: 1.5;
    }
    .advantage-card {

        min-height: 200px;
        padding: 22px;
    }
    .advantage-card__title {
        font-size: 28px;
    }
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services__grid .service-card--5 {
        grid-column: auto;
        max-width: 100%;
        margin-inline: 0;
    }
    .service-card {
        min-height: 200px;
        height: 200px;
    }
    .services {
        padding-block: 0 24px;
    }

    .stats {
        padding-block: 30px 60px;
    }
    .stats__grid {
        grid-template-columns: 1fr 1fr 1.4fr;
        grid-template-rows: 140px 140px;
        gap: 12px;
    }
    .stat-card {
        min-height: 140px;
        height: 140px;
    }
    .faq__title {
        font-size: 40px;
    }
    .footer__container {
        grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
        gap: 30px;
    }
}

/* ≤ 1024 */
@media (max-width: 1024px) {
    .header__container {
        grid-template-columns: auto 1fr auto auto;
        column-gap: 16px;
    }
    .header__nav,
    .header__socials,
    .header__btn {
        display: none;
    }
    .burger {
        display: flex;
    }

    /* Mobile nav (open by burger) */
    .header__nav {
        position: fixed;
        inset: 0;
        z-index: 20;
        padding: calc(var(--header-height) + 20px) var(--container-padding) 30px;
        background: rgba(17, 17, 17, .97);
        overflow-y: auto;
    }
    .header__nav.is-open {
        display: block;
    }
    .nav__list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .nav__link {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .sub-menu {
        position: static;
        display: block;
        padding: 0 0 0 16px;
        background: transparent;
        box-shadow: none;
    }
    .sub-menu .nav__link,
    .sub-menu a {
        color: var(--color-text-muted);
        font-size: 16px;
    }

    .hero__container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding-block: 30px;
    }
    .hero__content,
    .hero__form {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .form {
        max-width: 100%;
    }

    /* About hero — таблет: колонка, фото снизу */
    .about-hero {
        min-height: 0;
        padding-bottom: 50px;
    }
    .about-hero__container {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        margin-top: 40px;
        min-height: 0;
    }
    .about-hero__content,
    .about-hero__media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .about-hero__content {
        padding-top: 0;
    }
    .about-hero__media {
        height: clamp(280px, 50vw, 430px);
    }

    /* Metall — таблет: одна колонка, последовательность как в ТЗ:
       фото → заголовки → длинный текст → фото */
    .metall {
        padding-block: 50px 70px;
    }
    .metall__container {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
    .metall__media,
    .metall__media--top-left,
    .metall__media--bottom-right {
        max-width: 100%;
        justify-self: stretch;
        height: clamp(240px, 45vw, 360px);
    }
    .metall__title {
        font-size: 44px;
    }
    .metall__block:first-child .metall__title {
        font-size: 48px;
    }
    .metall__copy {
        max-width: 100%;
    }

    .features {

        padding-block: 60px;
    }
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services__grid .service-card--5 {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-inline: 0;
    }


    /* Choose — таблет 768–1023 */
    .choose__hero {
        min-height: 0;
    }
    .choose__hero-inner {
        padding: 32px 32px 28px;
    }
    .choose__title-line {
        font-size: 36px;
    }
    .choose__list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 28px;
    }
    .choose__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .choose-card:last-child {
        grid-column: 1 / -1;
    }

    /* STATS — планшет: карточки 2×2 + фото снизу на всю ширину */
    .stats {
        padding-block: 20px 50px;
    }
    .stats__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(180px, auto) minmax(180px, auto) minmax(260px, auto);
        gap: 16px;
    }
    .stats__photo {
        grid-column: 1 / -1;
        grid-row: 3;
        min-height: 260px;
    }
}

/* ≤ 768 */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .logo__img {
        width: 44px;
        height: 44px;
    }
    .logo__text {
        display: none;
    }
    .phone__number {
        font-size: 16px;
    }
    .phone__hours {
        font-size: 10px;
    }

    .hero {
        padding-bottom: 40px;
    }
    .hero__title {
        font-size: clamp(28px, 7vw, 40px);
    }
    /* About hero — мобайл */
    .about-hero {
        padding-bottom: 40px;
    }
    .about-hero__title {
        font-size: clamp(40px, 11vw, 56px);
    }
    .about-hero__subtitle {
        margin-top: 24px;
        font-size: 17px;
    }
    .about-hero__btn {
        margin-top: 30px;
    }
    .hero__subtitle {
        margin-top: 20px;
        font-size: 16px;
    }
    .hero__actions {
        margin-top: 28px;
    }
    .btn--lg {
        height: 48px;
        padding-inline: 28px;
        font-size: 14px;
    }
    .form {
        padding: 22px;
        border-radius: 14px;
    }
    .form__title {
        font-size: 22px;
    }

    /* Choose — мобайл ≤768 */
    .choose {
        padding-block: 16px 50px;
    }
    .choose__hero-inner {
        padding: 28px 24px 24px;
    }
    .choose__title-line {
        font-size: 30px;
    }
    .choose__list {
        grid-template-columns: 1fr;
        margin-top: 32px;
        row-gap: 22px;
    }
    .choose__btn {
        margin-top: 30px;
        width: 100%;
        max-width: 320px;
    }
    .choose__cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .choose-card {
        min-height: 0;
        padding: 24px 20px 20px;
    }
    .choose-card:last-child {
        grid-column: auto;
    }
    .choose-card__num {
        font-size: 46px;
        margin-bottom: 18px;
    }
    .choose-card__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    .choose-card__text {
        -webkit-line-clamp: unset;
        margin-bottom: 22px;
    }

    .features {
        padding-block: 50px;
    }
    .section-title {
        font-size: 36px;
    }
    .advantage-card {
        min-height: auto;
        padding: 20px;
    }

    .advantage-card__title {
        font-size: 24px;
        margin-top: 18px;
    }
    .services {
        padding-block: 0 20px;
    }
    .service-card {
        aspect-ratio: 3 / 4;
        min-height: 220px;
    }
    .service-card__num {
        font-size: 60px;
    }
    .service-card__title {
        font-size: 20px;
    }
}

/* ≤ 480 */
@media (max-width: 480px) {
    .advantages__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 32px;
    }
    .header__container {
        grid-template-columns: auto 1fr auto;
        column-gap: 12px;
    }
    .header__phone {
        align-items: flex-end;
    }
    .phone__hours {
        display: none;
    }
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
    }
    .form__submit {
        width: 100%;
    }
}

/* ≤ 390 */
@media (max-width: 390px) {
    :root {
        --container-padding: 16px;
    }
    .hero__title {
        font-size: 26px;
    }
    .form {
        padding: 18px;
    }
    .form__input,
    .form__file-label {
        height: 46px;
        font-size: 13px;
    }
}

/* ≤ 375 */
@media (max-width: 375px) {
    .phone__number {
        font-size: 14px;
    }
    .logo__img {
        width: 40px;
        height: 40px;
    }
    .hero__title {
        font-size: 24px;
    }
    .form__title {
        font-size: 20px;
    }
}

/* ===========================================================
   PROCESS / LICENSES / CALLBACK (about page)
   =========================================================== */

/* --- Общий контейнер для трёх блоков (1140px) --- */
.process,
.licenses,
.callback {
    padding-block: 0;
}
.process {
    padding-top: 80px;
}
.licenses {
    padding-top: 90px;
}
.callback {
    padding-top: 90px;
    padding-bottom: 80px;
}

.process__container,
.licenses__container,
.callback__container {
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

/* --- Заголовки секций --- */
.process__title,
.licenses__title {
    margin: 0 0 34px;
    text-align: center;
    font-family: 'Oswald', 'Bebas Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #2f2f2f;
}
.process__title span {
    display: inline;
}
.process__title-accent {
    color: var(--color-red);
    margin-left: 10px;
}
.licenses__title {
    color: #333;
    margin-bottom: 36px;
}

/* --- Сетка карточек процесса --- */
.process__slider {
    overflow: hidden;
}
.process__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-card {
    min-height: 145px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.process-card__num {
    display: block;
    font-family: 'Oswald', 'Bebas Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    color: var(--color-red);
    margin-bottom: 12px;
}
.process-card__title {
    margin: 0 0 16px;
    font-family: 'Oswald', 'Bebas Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    color: #222;
}
.process-card__text {
    margin: 0;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #666;
}

/* --- Слайдер-навигация (общая для процесса и лицензий) --- */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}
.slider-nav__btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--color-red);
    background: #fff;
    color: var(--color-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color .2s ease, color .2s ease;
}
.slider-nav__btn svg {
    width: 8px;
    height: 8px;
}
.slider-nav__btn:hover,
.slider-nav__btn:focus-visible {
    background: var(--color-red);
    color: #fff;
    outline: none;
}
.slider-nav__btn:active {
    background: var(--color-red-hover);
    color: #fff;
}
.slider-nav__btn[disabled],
.slider-nav__btn.is-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* --- Галерея лицензий --- */
.licenses__slider {
    overflow: hidden;
}
.licenses__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.license-card {
    border-radius: 10px;
    overflow: hidden;
    background: #d9d9d9;
}
.license-card__placeholder {
    width: 100%;
    aspect-ratio: 262 / 205;
    background: #d9d9d9;
    border-radius: 10px;
}

/* --- Форма обратной связи --- */
.callback-form {
    width: 100%;
    min-height: 430px;
    padding: 48px;
    background: #f7f7f7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.callback-form__title {
    margin: 0 0 18px;
    text-align: center;
    font-family: 'Oswald', 'Bebas Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #333;
}
.callback-form__title-line {
    display: block;
}
.callback-form__title-line--accent {
    color: var(--color-red);
}
.callback-form__subtitle {
    margin: 0 0 36px;
    text-align: center;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #222;
}

.callback-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.callback-form__field {
    display: block;
    width: 100%;
}
.callback-form__field--textarea {
    margin-top: 12px;
}

.callback-form__input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    transition: border-color .2s ease;
}
.callback-form__input::placeholder {
    color: #a8a8a8;
}
.callback-form__input:hover,
.callback-form__input:focus,
.callback-form__input:focus-visible {
    border-color: var(--color-red);
    outline: none;
}

.callback-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23A8A8A8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.callback-form__textarea {
    height: 98px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.4;
}

.callback-form__submit {
    align-self: center;
    margin-top: 30px;
    min-width: 84px;
    height: 32px;
    padding: 0 18px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease;
}
.callback-form__submit:hover,
.callback-form__submit:focus-visible {
    background: #f02934;
    outline: none;
}
.callback-form__submit:active {
    background: var(--color-red-hover);
}

/* =========================================================================
   PRIEM HERO — страница «Приём лома»
   Светлый hero: слева заголовок + 4 преимущества + 2 кнопки,
   справа крупное фото. Контейнер 1140px. Декоративный SVG-фон.
   ========================================================================= */
.priem-hero {
    position: relative;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 80px;
    background: var(--color-white);
    overflow: hidden;
    isolation: isolate;
}

.priem-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.priem-hero__container {
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 70px;
    align-items: center;
}

/* ---------- Левая колонка ---------- */
.priem-hero__content {
    max-width: 560px;
}

.priem-hero__title {
    margin: 0 0 52px;
    font-family: 'Bebas Neue', 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 74px;
    line-height: 0.95;
    text-transform: uppercase;
    color: #333333;
    letter-spacing: 0;
}
.priem-hero__title-line {
    display: block;
}
.priem-hero__title-line--accent {
    color: var(--color-red);
}

/* ---------- Список преимуществ ---------- */
.features-list {
    list-style: none;
    margin: 0 0 42px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 26px;
    row-gap: 32px;
}

.features-list__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.features-list__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-red);
    color: #fff;
    border-radius: 50%;
    margin-top: 2px;
}

.features-list__icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.features-list__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.features-list__title {
    margin: 0;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

.features-list__text {
    margin: 0;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    color: #333;
}

/* ---------- Кнопки ---------- */
.priem-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.priem-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 5px;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, transform .2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.priem-hero__btn:active {
    transform: translateY(1px);
}

.priem-hero__btn--red {
    width: 178px;
    background: var(--color-red);
}
.priem-hero__btn--red:hover,
.priem-hero__btn--red:focus-visible {
    background: #F02934;
    outline: none;
}

.priem-hero__btn--dark {
    width: 168px;
    background: #2E2B30;
}
.priem-hero__btn--dark:hover,
.priem-hero__btn--dark:focus-visible {
    background: #3D3940;
    outline: none;
}

/* ---------- Правая колонка — фото ---------- */
.priem-hero__media {
    width: 520px;
    height: 372px;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    justify-self: end;
}

.priem-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- Стрелка у пункта «Прием лома» в меню ---------- */
.nav__link--has-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav__arrow {
    flex-shrink: 0;
    transition: transform .2s ease;
}
.nav__link--has-arrow:hover .nav__arrow,
.nav__link--has-arrow:focus-visible .nav__arrow {
    transform: translateY(2px);
}

/* ---------- Адаптив PRIEM HERO ---------- */

/* 1024–1439 */
@media (max-width: 1439px) {
    .priem-hero__container {
        max-width: 1040px;
        grid-template-columns: 1fr 480px;
        gap: 40px;
    }
    .priem-hero__title {
        font-size: 62px;
        margin-bottom: 40px;
    }
    .priem-hero__media {
        width: 480px;
        height: 344px;
    }
}

/* 768–1023 */
@media (max-width: 1023px) {
    .priem-hero {
        padding-top: 30px;
        padding-bottom: 60px;
    }
    .priem-hero__container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .priem-hero__content {
        max-width: 100%;
    }
    .priem-hero__title {
        font-size: 52px;
        margin-bottom: 32px;
    }
    .priem-hero__media {
        width: 100%;
        height: auto;
        aspect-ratio: 520 / 372;
        justify-self: stretch;
        order: 2;
    }
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }
}

/* ≤767 */
@media (max-width: 767px) {
    .priem-hero {
        padding-top: 20px;
        padding-bottom: 50px;
    }
    .priem-hero__title {
        font-size: 38px;
        margin-bottom: 26px;
    }
    .features-list {
        grid-template-columns: 1fr;
        row-gap: 18px;
        margin-bottom: 32px;
    }
    .priem-hero__actions {
        flex-direction: column;
        gap: 10px;
    }
    .priem-hero__btn,
    .priem-hero__btn--red,
    .priem-hero__btn--dark {
        width: 100%;
    }
    .priem-hero__media {
        border-radius: 14px;
    }
}

/* ≤390 */
@media (max-width: 390px) {
    .priem-hero__title {
        font-size: 32px;
    }
    .features-list__title {
        font-size: 16px;
    }
    .features-list__text {
        font-size: 15px;
    }
}

/* --- Утилита для скрытия лейблов (доступность) --- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Адаптив: 1024–1439 --- */
@media (max-width: 1199px) {
    .process__container,
    .licenses__container,
    .callback__container {
        max-width: 1040px;
    }
    .process__title,
    .licenses__title {
        font-size: 40px;
    }
    .callback-form__title {
        font-size: 32px;
    }
}

/* --- 768–1023 --- */
@media (max-width: 1023px) {
    .process__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .licenses__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .callback-form__row {
        grid-template-columns: 1fr 1fr;
    }
    .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: 1 / -1;
    }
    .callback-form {
        padding: 36px 28px;
        min-height: 0;
    }
    .callback-form__title {
        font-size: 28px;
    }
    .callback-form__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .process,
    .licenses,
    .callback {
        padding-top: 60px;
    }
    .callback {
        padding-bottom: 60px;
    }
}

/* --- ≤767 --- */
@media (max-width: 767px) {
    .process__title,
    .licenses__title {
        font-size: 30px;
        margin-bottom: 24px;
    }
    .process__cards,
    .licenses__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .process-card {
        min-height: 0;
    }
    .process-card__num {
        font-size: 44px;
    }
    .process-card__title {
        font-size: 20px;
    }
    .callback-form {
        padding: 24px 18px;
    }
    .callback-form__title {
        font-size: 22px;
    }
    .callback-form__subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .callback-form__row {
        grid-template-columns: 1fr;
    }
    .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: auto;
    }
    .callback-form__submit {
        min-width: 200px;
        height: 42px;
        font-size: 14px;
    }
    .process,
    .licenses,
    .callback {
        padding-top: 50px;
    }
    .callback {
        padding-bottom: 50px;
    }
}

/* =========================================================================
   PRICES — секция «Цены на металлолом»
   Узкий контейнер 770–780px, белый фон, центрированная композиция.
   Согласно ТЗ: чёрная шапка таблиц со скруглением 6px по верхним углам,
   светло-серые строки #F8F8F8, разделители #E8E8E8.
   ========================================================================= */
.prices {
    background: #FFFFFF;
    padding-block: 40px 60px;
}

.prices__container {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Заголовок блока ---------- */
.prices__head {
    text-align: center;
    margin-bottom: 10px;
}

.prices__title {
    margin: 0;
    color: #333333;
    font-family: 'Roboto', 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
}

.prices__title-line {
    display: block;
}

.prices__title-line + .prices__title-line {
    margin-top: 2px;
}

/* ---------- Красный подзаголовок ---------- */
.prices__subtitle {
    margin: 0 0 30px;
    color: #D71920;
    font-family: 'Roboto', 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
}

.prices__subtitle--second {
    margin-top: 55px;
    margin-bottom: 25px;
}

.prices__table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Таблица цен ---------- */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: #F8F8F8;
    font-family: 'Roboto', 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    table-layout: fixed;
}

/* Шапка таблицы — чёрная плашка */
.price-table__head .price-table__row {
    background: #000000;
}

.price-table__head .price-table__cell {
    height: 34px;
    padding: 0 12px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0;
}

/* Тело таблицы */
.price-table__body .price-table__row {
    background: #F8F8F8;
}

.price-table__body .price-table__row + .price-table__row {
    border-top: 1px solid #E8E8E8;
}

.price-table__body .price-table__cell {
    height: 34px;
    padding: 0 12px;
    color: #222222;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    vertical-align: middle;
    text-align: left;
}

/* ---------- 2-колоночная таблица (цветной металл) — 65% / 35% ---------- */
.price-table--2col .price-table__cell--name {
    width: 65%;
}
.price-table--2col .price-table__cell--price {
    width: 35%;
}

/* ---------- 3-колоночная таблица (чёрный металл) — 35% / 30% / 35% ---------- */
.price-table--3col .price-table__cell--name {
    width: 35%;
}
.price-table--3col .price-table__row .price-table__cell--price:nth-of-type(2) {
    width: 30%;
}
.price-table--3col .price-table__row .price-table__cell--price:last-child {
    width: 35%;
}

/* Вертикальные разделители только во второй таблице */
.price-table--3col .price-table__head .price-table__cell + .price-table__cell {
    border-left: 1px solid rgba(255, 255, 255, .15);
}

.price-table--3col .price-table__body .price-table__cell + .price-table__cell {
    border-left: 1px solid #E5E5E5;
}

/* ---------- Адаптив PRICES ---------- */
@media (max-width: 767px) {
    .prices {
        padding-block: 30px 40px;
    }
    .prices__container {
        padding-inline: 16px;
    }
    .prices__title {
        font-size: 26px;
    }
    .prices__subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }
    .prices__subtitle--second {
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .price-table {
        min-width: 460px;
    }
    .price-table__head .price-table__cell {
        font-size: 10px;
        padding: 0 10px;
    }
    .price-table__body .price-table__cell {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (max-width: 390px) {
    .prices__title {
        font-size: 22px;
    }
    .prices__subtitle {
        font-size: 13px;
    }
}

/* =========================================================================
   PRIEM PAGE — точечные правки только для страницы «Приём лома»
   (общий style.css; скоупим всё через .page--priem)
   Цели:
   - сократить вертикальные расстояния между секциями;
   - сделать таблицы цен во всю ширину, как «широкие карточки»;
   - выровнять ширину обоих блоков таблиц и общего контейнера секций.
   ========================================================================= */

/* --- Единый минимальный вертикальный ритм между ВСЕМИ секциями страницы priem.
   Один шаг = --priem-gap. Все секции получают одинаковый верх/низ-отступ. --- */
.page--priem {
    --priem-gap: 24px;
}

.page--priem .priem-hero {
    padding-bottom: var(--priem-gap);
}

/* PRICES — широкий контейнер 1140px, таблицы как «карточки» во всю ширину */
.page--priem .prices {
    padding-block: var(--priem-gap);
}
.page--priem .prices__container {
    max-width: 1140px;
    padding-inline: var(--container-padding);
}
.page--priem .prices__head {
    margin-bottom: 12px;
}
.page--priem .prices__subtitle {
    margin: 0 0 14px;
}
.page--priem .prices__subtitle--second {
    margin-top: 20px;
    margin-bottom: 14px;
}

/* Обе таблицы — одинаковая широкая «карточка» */
.page--priem .price-table {
    width: 100%;
    background: #F8F8F8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.page--priem .price-table__head .price-table__cell {
    height: 44px;
    font-size: 13px;
    padding: 0 22px;
}
.page--priem .price-table__body .price-table__cell {
    height: 44px;
    font-size: 15px;
    padding: 0 22px;
}

/* SERVICES — без собственных вертикальных отступов, шаг даёт соседняя секция */
.page--priem .services {
    padding-block: 0;
}
.page--priem .services__grid {
    margin-top: 0;
    margin-bottom: 0;
}

/* PROCESS — один и тот же шаг сверху/снизу */
.page--priem .process {
    padding-top: var(--priem-gap);
    padding-bottom: var(--priem-gap);
}
.page--priem .process__title {
    margin-bottom: 20px;
}

/* CALLBACK — одинаковый шаг сверху/снизу */
.page--priem .callback {
    padding-top: var(--priem-gap);
    padding-bottom: var(--priem-gap);
}

/* --- Адаптив: тот же единый ритм, чуть меньше на узких экранах --- */
@media (max-width: 1023px) {
    .page--priem {
        --priem-gap: 20px;
    }
    .page--priem .price-table__head .price-table__cell,
    .page--priem .price-table__body .price-table__cell {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .page--priem {
        --priem-gap: 18px;
    }
    .page--priem .price-table__head .price-table__cell {
        height: 38px;
        font-size: 11px;
        padding: 0 12px;
    }
    .page--priem .price-table__body .price-table__cell {
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }
}


/* ============================================================
   SERVICES PAGE (services.html)
   Лендинг услуг: hero c полигональным фоном, сетка 3×2 крупных
   карточек, секция «Как сдать металлолом» (общая) и форма.
   Все правила инкапсулированы префиксом .page--services.
============================================================ */

.page--services {
    --services-gap: 60px;
    background: #ffffff;
    overflow-x: hidden;
}

/* --- HERO с услугами + декоративный полигональный фон --- */
.page--services .services-page {
    position: relative;
    padding-top: calc(var(--header-height) + var(--services-gap));
    padding-bottom: 80px;
    isolation: isolate;
}

.page--services .services-page__bg {
    position: absolute;
    inset: -90px 0 0 0; /* перекрывает фон под header */
    width: 100%;
    height: calc(100% + 90px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.page--services .services-page__container {
    position: relative;
    z-index: 1;
}

/* --- Заголовок «НАШИ / УСЛУГИ» (две строки, слева) --- */
.page--services .services-page__title {
    margin: 0 0 45px;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-black, #1e1e1e);
    text-align: left;
}

.page--services .services-page__title-line {
    display: block;
}

.page--services .services-page__title-line--accent {
    color: var(--color-red, #c41e24);
}

/* --- Сетка карточек 3×2 --- */
.page--services .services-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Крупные карточки услуг (340×420) --- */
.page--services .service-card--lg {
    aspect-ratio: 340 / 420;
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
}

.page--services .service-card--lg::before {
    /* затемняющий градиент поверх изображения */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.page--services .service-card--lg .service-card__num {
    top: 20px;
    left: 20px;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 82px;
    font-weight: 200;
    line-height: 1;
    color: #ffffff;
    opacity: 0.95;
}

.page--services .service-card--lg .service-card__body {
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 0;
}

.page--services .service-card--lg .service-card__title {
    margin: 0;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
}

.page--services .service-card--lg .service-card__text {
    margin-top: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

/* --- Общие секции, обернутые в .page--services, получают равные отступы --- */
.page--services .process {
    padding-top: 0;
    padding-bottom: 70px;
}

.page--services .callback {
    padding-top: 0;
    padding-bottom: 80px;
}

/* ============================================================
   SERVICES PAGE — переопределения секций PROCESS и CALLBACK
   под требования ТЗ (отличаются от about/priem).
============================================================ */

/* --- PROCESS на странице услуг --- */
.page--services .process__container {
    max-width: 1200px;
}

.page--services .process__title {
    margin: 0 0 45px;
    font-size: 48px;
    line-height: 1.05;
    color: var(--color-black, #1e1e1e);
}
.page--services .process__title span:not(.process__title-accent) {
    color: var(--color-black, #1e1e1e);
}
.page--services .process__title-accent {
    color: var(--color-red, #c41e24);
    margin-left: 12px;
}

.page--services .process__cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.page--services .process-card {
    min-height: 220px;
    padding: 25px;
    background: #f7f7f7;
    border-radius: 12px;
}

.page--services .process-card__num {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-red, #c41e24);
    margin-bottom: 14px;
}

.page--services .process-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #1e1e1e;
}

.page--services .process-card__text {
    font-size: 14px;
    line-height: 1.45;
    color: #6b6b6b;
}

/* --- Slider nav: круглые 28px, белый фон, красная рамка, красная стрелка --- */
.page--services .slider-nav {
    margin-top: 40px;
    gap: 10px;
}
.page--services .slider-nav__btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-red, #c41e24);
    background: #ffffff;
    color: var(--color-red, #c41e24);
}
.page--services .slider-nav__btn svg {
    width: 10px;
    height: 10px;
}
.page--services .slider-nav__btn:hover,
.page--services .slider-nav__btn:focus-visible {
    background: var(--color-red, #c41e24);
    color: #ffffff;
}

/* --- CALLBACK: большой светло-серый контейнер 1060px --- */
.page--services .callback__container {
    max-width: 1200px;
}

.page--services .callback-form {
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px;
    background: #f8f8f8;
    border-radius: 14px;
    min-height: 0;
}

.page--services .callback-form__title {
    margin: 0 0 18px;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-black, #1e1e1e);
}
.page--services .callback-form__title-line--accent {
    color: var(--color-red, #c41e24);
}

.page--services .callback-form__subtitle {
    margin: 0 0 35px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    text-align: center;
}

/* Поля формы */
.page--services .callback-form__row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.page--services .callback-form__input {
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #222;
}
.page--services .callback-form__input::placeholder {
    color: #9a9a9a;
}
.page--services .callback-form__input:focus,
.page--services .callback-form__input:focus-visible {
    border-color: var(--color-red, #c41e24);
    outline: none;
}

.page--services .callback-form__field--textarea {
    margin-top: 15px;
}

.page--services .callback-form__textarea {
    height: 120px;
    padding: 14px 16px;
    line-height: 1.45;
    resize: vertical;
}

/* Красная кнопка по центру */
.page--services .callback-form__submit {
    align-self: center;
    margin-top: 24px;
    width: 150px;
    min-width: 0;
    height: 42px;
    padding: 0;
    background: var(--color-red, #c41e24);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* --- Адаптив для PROCESS / CALLBACK на странице услуг --- */
@media (max-width: 1199px) {
    .page--services .process__cards {
        gap: 16px;
    }
    .page--services .callback-form {
        padding: 48px 40px;
    }
    .page--services .callback-form__title {
        font-size: 42px;
    }
}

@media (max-width: 1023px) {
    .page--services .process__title {
        font-size: 38px;
        margin-bottom: 32px;
    }
    .page--services .process__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .page--services .process-card {
        min-height: 0;
    }
    .page--services .callback-form {
        padding: 40px 28px;
    }
    .page--services .callback-form__title {
        font-size: 34px;
    }
    .page--services .callback-form__subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .page--services .callback-form__row {
        grid-template-columns: 1fr 1fr;
    }
    .page--services .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .page--services .process {
        padding-bottom: 50px;
    }
    .page--services .process__title {
        font-size: 30px;
        margin-bottom: 24px;
    }
    .page--services .process__cards {
        grid-template-columns: 1fr;
    }
    .page--services .callback {
        padding-bottom: 50px;
    }
    .page--services .callback-form {
        padding: 28px 18px;
        border-radius: 12px;
    }
    .page--services .callback-form__title {
        font-size: 26px;
    }
    .page--services .callback-form__subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }
    .page--services .callback-form__row {
        grid-template-columns: 1fr;
    }
    .page--services .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: auto;
    }
    .page--services .callback-form__submit {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Тонкая нижняя строка футера с реквизитами --- */
.footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    background: #1d1d1d;
}

.footer__legal-text {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #8e8e8e;
    text-align: center;
}

/* --- Адаптив для страницы услуг --- */
@media (max-width: 1199px) {
    .page--services .services-page__grid {
        gap: 20px;
    }
    .page--services .service-card--lg .service-card__num {
        font-size: 72px;
    }
}

@media (max-width: 1023px) {
    .page--services {
        --services-gap: 40px;
    }
    .page--services .services-page__title {
        font-size: 48px;
        margin-bottom: 32px;
    }
    .page--services .services-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .page--services .service-card--lg {
        min-height: 340px;
        border-radius: 22px;
    }
    .page--services .service-card--lg .service-card__num {
        font-size: 62px;
        top: 16px;
        left: 16px;
    }
    .page--services .service-card--lg .service-card__body {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
    .page--services .service-card--lg .service-card__title {
        font-size: 22px;
    }
    .page--services .service-card--lg .service-card__text {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .page--services {
        --services-gap: 28px;
    }
    .page--services .services-page {
        padding-bottom: 50px;
    }
    .page--services .services-page__title {
        font-size: 38px;
        margin-bottom: 24px;
    }
    .page--services .services-page__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page--services .service-card--lg {
        aspect-ratio: auto;
        min-height: 300px;
        border-radius: 18px;
    }
    .page--services .service-card--lg .service-card__num {
        font-size: 54px;
    }
    .page--services .service-card--lg .service-card__title {
        font-size: 20px;
    }
    .footer__legal-text {
        font-size: 11px;
        padding: 0 4px;
    }
}

/* ============================================================
   CONTACTS PAGE
   Структура: декоративный полигональный фон, заголовок,
   4 карточки контактов (красные/чёрные чередуются), карта,
   форма обратной связи (наследует стиль со страницы услуг).
============================================================ */

.page--contacts {
    background: #ffffff;
}

/* --- Hero/контакты блок --- */
/* padding-top учитывает высоту фиксированного/абсолютного header
   (var(--header-height)) + дополнительный отступ, чтобы заголовок
   «Контакты» не заходил под шапку. */
.contacts-page {
    position: relative;
    padding-top: calc(var(--header-height) + 90px);
    padding-bottom: 50px;
    overflow: hidden;
}

.contacts-page__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.contacts-page__container {
    position: relative;
    z-index: 1;
}

.contacts-page__title {
    margin: 0 0 45px;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #2b2b2b;
}

/* --- Сетка карточек --- */
.contacts-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Карточка контакта --- */
.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 25px;
    border-radius: 18px;
    overflow: hidden;
    color: #ffffff;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.contact-card--red {
    background: #c41e24;
}

.contact-card--black {
    background: #000000;
}

/* Иконка в круглой белой рамке */
.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-card__icon svg {
    display: block;
}

/* Заголовок карточки */
.contact-card__title {
    margin: 0 0 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

/* Основной текст */
.contact-card__value {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 4px;
    word-wrap: break-word;
}

a.contact-card__value:hover,
a.contact-card__value:focus-visible {
    text-decoration: underline;
    outline: none;
}

.contact-card__value--bold {
    font-weight: 700;
}

/* Подписи */
.contact-card__note,
.contact-card__sub {
    margin: 0 0 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    opacity: .75;
}

.contact-card__sub {
    margin-top: 8px;
}

/* Кнопки соцсетей в карточке WhatsApp */
.contact-card__socials {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    list-style: none;
}

.contact-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.contact-card__social-link:hover,
.contact-card__social-link:focus-visible {
    background: var(--color-red, #c41e24);
    color: #ffffff;
    transform: scale(1.05);
    outline: none;
}

.contact-card__social-link svg {
    display: block;
}

/* --- Карта --- */
.contacts-map {
    padding-top: 0;
    padding-bottom: 60px;
}

.contacts-map__frame {
    width: 100%;
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f5f5;
}

.contacts-map__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Форма обратной связи: наследует стили услуг --- */
.page--contacts .callback {
    padding-top: 0;
    padding-bottom: 80px;
}

.page--contacts .callback__container {
    max-width: 1200px;
}

.page--contacts .callback-form {
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px;
    background: #f7f7f7;
    border-radius: 14px;
    min-height: 0;
}

.page--contacts .callback-form__title {
    margin: 0 0 18px;
    font-family: var(--font-condensed, 'Bebas Neue'), 'Roboto', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-black, #1e1e1e);
}

.page--contacts .callback-form__title-line--accent {
    color: var(--color-red, #c41e24);
}

.page--contacts .callback-form__subtitle {
    margin: 0 0 35px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #2f2f2f;
    text-align: center;
}

.page--contacts .callback-form__row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.page--contacts .callback-form__input {
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #222;
}

.page--contacts .callback-form__input::placeholder {
    color: #9a9a9a;
}

.page--contacts .callback-form__input:focus,
.page--contacts .callback-form__input:focus-visible {
    border-color: var(--color-red, #c41e24);
    outline: none;
}

.page--contacts .callback-form__field--textarea {
    margin-top: 15px;
}

.page--contacts .callback-form__textarea {
    height: 120px;
    padding: 14px 16px;
    line-height: 1.45;
    resize: vertical;
}

.page--contacts .callback-form__submit {
    align-self: center;
    margin-top: 24px;
    width: 150px;
    min-width: 0;
    height: 42px;
    padding: 0;
    background: var(--color-red, #c41e24);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* --- Адаптив страницы контактов --- */
@media (max-width: 1199px) {
    .contacts-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .contacts-page__title {
        font-size: 52px;
    }
    .contacts-map__frame {
        height: 460px;
    }
    .page--contacts .callback-form {
        padding: 48px 40px;
    }
    .page--contacts .callback-form__title {
        font-size: 42px;
    }
}

@media (max-width: 1023px) {
    .contacts-page {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 40px;
    }
    .contacts-page__title {
        font-size: 44px;
        margin-bottom: 32px;
    }
    .contacts-page__bg {
        height: 480px;
    }
    .contact-card {
        min-height: 220px;
        padding: 22px;
    }
    .contact-card__title {
        font-size: 22px;
    }
    .contact-card__value {
        font-size: 16px;
    }
    .contacts-map__frame {
        height: 400px;
        border-radius: 14px;
    }
    .contacts-map {
        padding-bottom: 40px;
    }
    .page--contacts .callback-form {
        padding: 40px 28px;
    }
    .page--contacts .callback-form__title {
        font-size: 34px;
    }
    .page--contacts .callback-form__subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .page--contacts .callback-form__row {
        grid-template-columns: 1fr 1fr;
    }
    .page--contacts .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .contacts-page {
        padding-top: calc(var(--header-height) + 28px);
        padding-bottom: 30px;
    }
    .contacts-page__title {
        font-size: 36px;
        margin-bottom: 24px;
    }
    .contacts-page__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-card {
        min-height: 0;
        padding: 22px;
        border-radius: 16px;
    }
    .contact-card__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }
    .contact-card__title {
        font-size: 20px;
    }
    .contact-card__value {
        font-size: 16px;
    }
    .contacts-map__frame {
        height: 320px;
        border-radius: 12px;
    }
    .contacts-map {
        padding-bottom: 32px;
    }
    .page--contacts .callback {
        padding-bottom: 50px;
    }
    .page--contacts .callback-form {
        padding: 28px 18px;
        border-radius: 12px;
    }
    .page--contacts .callback-form__title {
        font-size: 26px;
    }
    .page--contacts .callback-form__subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }
    .page--contacts .callback-form__row {
        grid-template-columns: 1fr;
    }
    .page--contacts .callback-form__row > .callback-form__field:nth-child(3) {
        grid-column: auto;
    }
    .page--contacts .callback-form__submit {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 390px) {
    .contacts-page__title {
        font-size: 32px;
    }
    .contact-card {
        padding: 20px;
    }
    .contact-card__title {
        font-size: 18px;
    }
}

