/* ========================================
   1. ОСНОВНЫЕ НАСТРОЙКИ
======================================== */

:root {
    --base: #252a31;
    --text: var(--text-color, #333a43);
    --muted: #707985;

    --active: var(--primary-color, #2d497b);
    --active-dark: var(--primary-color, #20375f);

    --light: var(--secondary-color, #f3f5f8);
    --white: #ffffff;
    --border: #e0e5ec;

    --radius: 8px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

body,
button,
input,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 82px 0;
}

.section--light {
    background: var(--light);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--active);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h2 {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--base);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.8px;
}

.section__intro {
    max-width: 790px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

/* ========================================
   2. ШАПКА И НАВИГАЦИЯ
======================================== */

.header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    flex-shrink: 0;
    flex-direction: column;
    color: var(--base);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo span {
    color: var(--active);
    font-size: 11px;
    letter-spacing: 3px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.nav a {
    color: #424955;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--active);
}

.header__button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--active);
    border-radius: 5px;
    background: var(--active);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.header__button:hover {
    background: var(--active-dark);
    color: #ffffff;
}

.header__button:hover {
    background: var(--active);
    color: var(--white);
}

.menu-toggle {
    display: none;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--base);
    font-size: 28px;
    cursor: pointer;
}

/* ========================================
   3. ПЕРВЫЙ ЭКРАН
======================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(94, 126, 177, 0.22), transparent 38%),
        linear-gradient(115deg, #171f2b 0%, #263b5a 62%, #314c76 100%);
    color: var(--white);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 55px;
}

.hero .eyebrow {
    color: #b9c9e4;
}

.hero h1 {
    max-width: 690px;
    margin: 0 0 24px;
    font-size: clamp(34px, 5vw, 55px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.hero__description {
    max-width: 570px;
    margin: 0 0 32px;
    color: #d6deeb;
    font-size: 17px;
    line-height: 1.8;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: var(--active);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--active-dark);
    transform: translateY(-1px);
}

.hero .button {
    background: #ffffff;
    color: #263b5a;
}

.hero .button:hover {
    background: #e9eef6;
}

.hero__image {
    display: flex;
    min-height: 320px;
    align-items: flex-end;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background:
        linear-gradient(0deg, rgba(11, 19, 31, 0.8), rgba(11, 19, 31, 0.03)),
        radial-gradient(ellipse at 50% 40%, #8397b3 0%, #4c6384 28%, #263952 72%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.hero__image-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero__image-label strong {
    font-size: 17px;
    letter-spacing: 2px;
}

.hero__image-label span {
    color: #d3ddeb;
    font-size: 13px;
}

/* ========================================
   4. КАТАЛОГ
======================================== */

.catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.catalog-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: #b5c3d8;
    box-shadow: 0 12px 30px rgba(31, 47, 71, 0.07);
}

.catalog-card__number {
    margin-bottom: 20px;
    color: var(--active);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.catalog-card h3 {
    margin: 0 0 12px;
    color: var(--base);
    font-size: 21px;
}

.catalog-card p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.catalog-card a {
    margin-top: auto;
    color: var(--active);
    font-size: 13px;
    font-weight: 700;
}

/* ========================================
   5. ПРЕИМУЩЕСТВА
======================================== */

.advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 38px;
}

.advantage {
    padding-top: 22px;
    border-top: 2px solid var(--active);
}

.advantage > span {
    color: var(--active);
    font-size: 13px;
    font-weight: 800;
}

.advantage h3 {
    margin: 13px 0 10px;
    color: var(--base);
    font-size: 19px;
}

.advantage p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   6. ФОРМА ЗАЯВКИ
======================================== */

.request-section {
    background: var(--light);
}

.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 70px;
}

.request-layout > div > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

.request-form {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 35px rgba(31, 47, 71, 0.04);
}

.request-form label {
    margin: 0 0 7px;
    color: var(--base);
    font-size: 13px;
    font-weight: 700;
}

.request-form input,
.request-form textarea {
    width: 100%;
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #d8dee7;
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: var(--active);
    box-shadow: 0 0 0 3px rgba(45, 73, 123, 0.1);
}

.request-form textarea {
    min-height: 95px;
    resize: vertical;
}

.request-form .button {
    width: 100%;
}

.form-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ========================================
   7. ПОДВАЛ
======================================== */

.footer {
    padding: 38px 0;
    background: #1b222d;
    color: #cbd2dc;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.logo--footer {
    color: var(--white);
}

.logo--footer span {
    color: #a8bddf;
}

.footer p {
    margin: 0;
    font-size: 13px;
}

.footer__copy {
    margin-top: 8px;
    color: #929eae;
    font-size: 12px;
}

/* ========================================
   8. АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ
======================================== */

@media (max-width: 1000px) {
    .header__inner {
        gap: 16px;
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 12px;
    }

    .hero__content {
        gap: 30px;
    }

    .request-layout {
        gap: 35px;
    }
}

/* ========================================
   9. АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ
======================================== */

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 58px 0;
    }

    .header__inner {
        min-height: 70px;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo {
        font-size: 17px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header__button {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
}

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid var(--border);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 4px;
        font-size: 14px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 45px);
    }

    .hero__description {
        font-size: 15px;
    }

    .hero__image {
        min-height: 220px;
    }

    .catalog,
    .advantages {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-card {
        min-height: 0;
        padding: 24px;
    }

    .advantages {
        gap: 28px;
    }

    .request-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .request-form {
        padding: 22px;
    }
}

/* ========================================
   10. УЗКИЕ ЭКРАНЫ
======================================== */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero h1 {
        font-size: 30px;
    }

    .request-form {
        padding: 16px;
    }
}

/* Таблица технических характеристик оборудования */
.specifications-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0 24px;
    border-radius: 8px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text, #333a43);
    background: #fff;
}

.specifications-table th,
.specifications-table td {
    padding: 12px 16px;
    border: 1px solid var(--border, #e0e5ec);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.specifications-table thead th {
    background: var(--active, #2d497b);
    color: #fff;
    font-weight: 600;
}

.specifications-table tbody th {
    width: 32%;
    background: var(--light, #f3f5f8);
    color: var(--base, #252a31);
    font-weight: 600;
}

.specifications-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

@media (max-width: 600px) {
    .specifications-table {
        table-layout: auto;
        font-size: 13px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 9px 10px;
    }

    .specifications-table tbody th {
        width: 40%;
    }
}

/* ========================================
   XYLEM / FLYGT VISUAL REFRESH
   Shared theme overrides for all pages
======================================== */
:root {
    --base: #153f56;
    --text: #294b60;
    --muted: #637f91;
    --active: #0083a9;
    --active-dark: #006d91;
    --light: #eff6f8;
    --white: #ffffff;
    --border: #d8e7ed;
    --radius: 3px;
    --container: 1380px;
}
body { color: var(--text); background: #fff; font-family: Arial, Helvetica, sans-serif; }
.header { background: #007fa3; border-bottom: 0; box-shadow: 0 2px 8px rgba(0, 54, 76, .08); }
.header__inner { min-height: 78px; gap: 28px; }
.logo { display: flex; align-items: center; flex-direction: row; gap: 16px; color: #fff; letter-spacing: 0; }
.logo img { display: block; width: 215px; max-height: 62px; object-fit: contain; background: #fff; }
.logo__company { color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav { gap: clamp(12px, 1.6vw, 26px); }
.nav a { color: #fff; font-size: 13px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: #b9edf2; }
.header__button, .button { background: #008bb2; border: 1px solid #008bb2; border-radius: 24px; color: #fff; box-shadow: none; transition: background .2s ease, transform .2s ease; }
.header__button { min-height: 42px; }
.header__button:hover, .button:hover { background: #006d91; border-color: #006d91; color: #fff; transform: translateY(-1px); }
.hero { padding: 68px 0; color: var(--text); background: linear-gradient(110deg, #f4f8f9 0%, #e8f3f6 58%, #d6ebf1 100%); }
.hero__content { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 60px; }
.hero .eyebrow { color: #0083a9; letter-spacing: 1px; }
.hero h1 { color: #0083a9; font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -1px; }
.hero__description { color: #476a80; font-size: 17px; }
.hero__image { min-height: 310px; border: 1px solid rgba(0, 131, 169, .16); border-radius: 2px; background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(212,235,241,.72)); box-shadow: none; }
.hero__image-label { background: rgba(0, 127, 163, .92); color: #fff; border-radius: 0; }
.hero__image-label span { color: #d8f4f6; }
.section { padding: clamp(48px, 6vw, 82px) 0; }
.section--light { background: #f2f7f9; }
h2 { color: #153f56; letter-spacing: -.4px; }
.eyebrow { color: #0083a9; letter-spacing: 1.3px; }
.section__intro { color: #637f91; }
.catalog { gap: 22px; }
.catalog-card { border: 1px solid #d6e5eb; border-radius: 3px; background: #fff; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.catalog-card:hover { border-color: #56bdc7; box-shadow: 0 10px 28px rgba(0, 87, 115, .09); transform: translateY(-3px); }
.catalog-card__number, .advantage > span { color: #0083a9; }
.catalog-card h3, .advantage h3 { color: #164d67; }
.catalog-card p, .advantage p { color: #637f91; }
.advantages { gap: 22px; }
.advantage { border: 1px solid #e0ebef; border-bottom: 3px solid #008bb2; background: #f6fafb; border-radius: 2px; box-shadow: none; }
.request-section { background: #eff6f8; }
.request-form, .request-layout > * { border-radius: 3px; }
input, textarea, select { border: 1px solid #cbdde5; border-radius: 2px; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(0, 139, 178, .18); border-color: #008bb2; }
.specifications-table { border-collapse: collapse; border: 1px solid #d8e7ed; }
.specifications-table th, .specifications-table td { border: 1px solid #d8e7ed; padding: 13px 16px; }
.specifications-table thead th { background: #0083a9; color: #fff; }
.specifications-table tbody th { background: #edf5f7; color: #164d67; }
.specifications-table tbody tr:nth-child(even) td { background: #f8fbfc; }
footer, .footer { background: #073f58; color: #eaf7fa; }
footer a, .footer a { color: #bdebf1; }
@media (max-width: 980px) {
    .header__inner { min-height: 72px; gap: 14px; }
    .logo img { width: 150px; }
    .logo__company { font-size: 13px; }
    .nav { gap: 12px; }
    .nav a { font-size: 12px; }
}
@media (max-width: 760px) {
    .header__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .logo img { width: 140px; }
    .logo__company { font-size: 12px; }
    .menu-toggle { color: #fff; }
    .nav { background: #007fa3; }
    .nav a { color: #fff; }
    .header__button { min-height: 38px; padding: 0 12px; font-size: 12px; }
    .hero { padding: 48px 0; }
    .hero__content { grid-template-columns: 1fr; gap: 28px; }
    .hero__image { min-height: 220px; }
}
/* Логотип Flygt / Xylem на фирменной шапке */
.header .logo {
    background: transparent !important;
    box-shadow: none;
}

.header .logo img {
    background: transparent !important;
    object-fit: contain;
    display: block;
}

.header .logo__company {
    color: #ffffff;
}

/* Category-specific imagery for catalog and category pages */
.hero__image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f9fa, #dceff3);
}
.hero__image-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero__image-label {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 14px 18px;
}
.catalog-card__image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    margin: 0 0 20px;
    border-radius: 2px;
    background: #eff6f8;
}
@media (max-width: 760px) {
    .catalog-card__image { height: 190px; }
}


/* Изображение на странице конкретной модели — отдельно от изображений карточек */
.product-detail__image-wrap {
    width: 100%;
    max-width: 520px;
    margin: 24px 0 32px;
}

.product-detail__image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: 360px;
    object-fit: contain;
    object-position: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f4f9fb;
}

@media (max-width: 760px) {
    .product-detail__image-wrap {
        max-width: 100%;
    }

    .product-detail__image {
        height: 280px;
        padding: 12px;
    }
}


/* Изолированные правила для страниц конкретных моделей и карточек.
   Баннер каталога и изображения категорий остаются без изменений. */
.hero--model .hero__image {
    /* Размещаем фотографию и подпись друг под другом без наложения. */
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.hero--model .hero__image-photo {
    position: static;
    width: 100%;
    height: 230px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}

.hero--model .hero__image-label {
    align-self: flex-start;
}

/* Фото серий: во всю ширину карточки, без полей и обрезки оборудования. */
.catalog-card--series .catalog-card__media {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 2px;
}
.catalog-card--series .catalog-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    padding: 0;
    margin: 0;
    border-radius: 2px;
    background: transparent;
}

/* Фото конкретных насосов в карточках компактнее, чем фото категорий. */
.catalog-card--model .catalog-card__image {
    height: 145px;
    object-fit: contain;
    padding: 12px;
}

@media (max-width: 760px) {
    .hero--model .hero__image {
        padding: 16px;
    }
    .hero--model .hero__image-photo {
        height: 190px;
    }
}


/* Премиальные карточки конкретных моделей */
.catalog-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.catalog-card--model {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 26px 28px 20px;
    border: 1px solid #d8e8ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    box-shadow: 0 10px 30px rgba(8, 66, 94, 0.06);
}
.catalog-card--model::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 131, 169, 0.05), rgba(0, 131, 169, 0));
    pointer-events: none;
}
.catalog-card--model .catalog-card__number {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}
.catalog-card--model .catalog-card__media {
    position: relative;
    z-index: 1;
    min-height: 232px;
    margin: 0 0 20px;
    padding: 18px 18px 14px;
    border: 1px solid #ecf2f5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}
.catalog-card--model .catalog-card__backdrop {
    display: none;
}
.catalog-card--model .catalog-card__image {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(100%, 270px);
    height: 206px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 10px 16px rgba(16, 58, 79, 0.10));
}
.catalog-card--model h3 { margin: 0 0 10px; font-size: 22px; color: #0c3155; }
.catalog-card--model p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #5d7788;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.catalog-card__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: auto;
    margin-bottom: 18px;
}
.catalog-card__spec { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.catalog-card__spec-icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.catalog-card__spec-icon::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #058fc0;
    font-size: 20px;
    line-height: 1;
}
.catalog-card__spec-icon--flow::before { content: '◔'; }
.catalog-card__spec-icon--head::before { content: '↕'; }
.catalog-card__spec-icon--power::before { content: '⚡'; font-size: 18px; }
.catalog-card__spec-icon--outlet::before { content: '⌀'; }
.catalog-card__spec-icon--mount::before { content: '⌂'; font-size: 17px; }
.catalog-card__spec-text { min-width: 0; }
.catalog-card__spec-title { display: block; margin-bottom: 2px; color: #698293; font-size: 12px; }
.catalog-card__spec-value { display: block; color: #10395f; font-size: 13px; line-height: 1.35; font-weight: 700; }
.catalog-card__footer {
    width: 100%;
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef7fa 0%, #e5f1f6 100%);
}
.catalog-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    color: #0b7ead;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}
.catalog-card__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, #11a5d5 0%, #008bb8 100%);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 18px rgba(0, 134, 180, 0.18);
}
.catalog-card--model:hover { border-color: #a9d8e6; box-shadow: 0 16px 34px rgba(8, 66, 94, 0.10); }
.catalog-card--model:hover .catalog-card__cta-icon { transform: translateX(2px); }
@media (max-width: 980px) {
    .catalog-card__specs { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
    .catalog-card--model { padding: 22px 20px 18px; border-radius: 10px; }
    .catalog-card--model .catalog-card__media {
        min-height: 214px;
        padding: 14px 14px 12px;
        border-radius: 14px;
    }
    .catalog-card--model .catalog-card__image {
        max-width: min(100%, 236px);
        height: 184px;
    }
    .catalog-card--model p { -webkit-line-clamp: 6; }
    .catalog-card__footer { padding: 10px; }
    .catalog-card__cta { font-size: 14px; }
    .catalog-card__cta-icon { width: 38px; height: 38px; font-size: 18px; }
}


/* Flygt N-Technology: баннеры с отдельной премиальной иллюстрацией.
   Только hero--styled-image: другие 10 моделей и каталог не затрагиваются. */
.hero--model.hero--styled-image .hero__image {
    padding: 14px;
    border-radius: 8px;
    background: #f5fbfd;
    gap: 10px;
}
.hero--model.hero--styled-image .hero__image-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 760;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
}
@media (max-width: 760px) {
    .hero--model.hero--styled-image .hero__image-photo {
        height: auto;
    }
}


/* N-Technology premium card layout v4 — only actual model cards.
   Square original images fill the whole photo zone without cropping.
   Other catalog levels, product detail heroes, forms remain unchanged. */
.catalog-card--model {
    padding: 0 0 20px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(12, 67, 97, 0.065);
}
.catalog-card--model::before {
    display: none;
}
.catalog-card--model .catalog-card__number {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid rgba(205, 229, 241, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.93);
    color: #067eaa;
    box-shadow: 0 2px 9px rgba(11, 73, 110, 0.08);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.catalog-card--model .catalog-card__media {
    display: block;
    position: relative;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e1ecf1;
    border-radius: 0;
    background: #f5fbfd;
    box-shadow: none;
    overflow: hidden;
}
.catalog-card--model .catalog-card__backdrop {
    display: none;
}
.catalog-card--model .catalog-card__image {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
    filter: none;
}
.catalog-card--model h3 {
    margin: 20px 22px 8px;
    color: #0a385b;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.catalog-card--model p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 86px;
    margin: 0 22px 16px;
    color: #567589;
    font-size: 14px;
    line-height: 1.54;
}
.catalog-card--model .catalog-card__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    width: calc(100% - 40px);
    margin: auto 20px 16px;
    padding: 12px 6px;
    border: 1px solid #e0edf2;
    border-radius: 12px;
    background: #f3f9fc;
}
.catalog-card--model .catalog-card__spec {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    text-align: center;
}
.catalog-card--model .catalog-card__spec + .catalog-card__spec {
    border-left: 1px solid #d9eaf1;
}
.catalog-card--model .catalog-card__spec-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-basis: 20px;
}
.catalog-card--model .catalog-card__spec-title {
    font-size: 11px;
    line-height: 1.25;
    color: #628194;
}
.catalog-card--model .catalog-card__spec-value {
    color: #123d61;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.catalog-card--model .catalog-card__footer {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 8px 8px 8px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #edf8fc, #e6f4f8);
}
.catalog-card--model .catalog-card__cta {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.25;
}
.catalog-card--model .catalog-card__cta-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
@media (max-width: 980px) {
    .catalog-card--model .catalog-card__specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }
}
@media (max-width: 760px) {
    .catalog-card--model {
        padding: 0 0 18px;
        border-radius: 12px;
    }
    .catalog-card--model .catalog-card__media {
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 0;
        border-radius: 0;
    }
    .catalog-card--model .catalog-card__image {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    .catalog-card--model h3 {
        margin: 18px 18px 8px;
        font-size: 20px;
    }
    .catalog-card--model p {
        margin: 0 18px 16px;
        min-height: 0;
        -webkit-line-clamp: 4;
    }
    .catalog-card--model .catalog-card__specs,
    .catalog-card--model .catalog-card__footer {
        width: calc(100% - 36px);
        margin-left: 18px;
        margin-right: 18px;
    }
    .catalog-card--model .catalog-card__spec {
        padding: 0 5px;
    }
}

/* Flygt: compact premium hero for model pages with a separate landscape hero image.
   This does not affect catalog/category/series banners or product-grid cards. */
.hero--model.hero--styled-image {
    padding: 42px 0 46px;
}
.hero--model.hero--styled-image .hero__content {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(26px, 3.2vw, 46px);
}
.hero--model.hero--styled-image .hero__image {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e5f4fa;
    box-shadow: 0 15px 35px rgba(23, 83, 111, 0.15);
    isolation: isolate;
}
.hero--model.hero--styled-image .hero__image-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
}
.hero--model.hero--styled-image .hero__image-label {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: max-content;
    max-width: calc(100% - 36px);
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 111, 150, 0.92);
    box-shadow: 0 6px 20px rgba(0, 59, 93, 0.18);
    color: #fff;
}
.hero--model.hero--styled-image .hero__image-label span {
    font-size: 11px;
    line-height: 1.2;
    color: #e5f8ff;
}
.hero--model.hero--styled-image .hero__image-label strong {
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1.25;
}
@media (max-width: 760px) {
    .hero--model.hero--styled-image {
        padding: 30px 0 34px;
    }
    .hero--model.hero--styled-image .hero__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .hero--model.hero--styled-image .hero__image {
        aspect-ratio: 3 / 2;
        border-radius: 10px;
        padding: 0;
        min-height: 0;
    }
    .hero--model.hero--styled-image .hero__image-photo {
        height: 100%;
    }
    .hero--model.hero--styled-image .hero__image-label {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 9px 12px;
        border-radius: 7px;
    }
    .hero--model.hero--styled-image .hero__image-label strong {
        font-size: 13px;
    }
}

/* Flygt — единый премиальный hero для всех основных страниц,
   общего каталога, категорий и серий.
   Hero конкретных моделей оставляем без изменений. */
.hero:not(.hero--model) {
    padding: 42px 0 46px;
}

.hero:not(.hero--model) .hero__content {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(26px, 3.2vw, 46px);
}

.hero:not(.hero--model) .hero__image {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #e5f4fa url('../images/catalog-hero.webp') center / cover no-repeat;
    box-shadow: 0 15px 35px rgba(23, 83, 111, 0.15);
}

.hero:not(.hero--model) .hero__image-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.hero:not(.hero--model) .hero__image-label {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: max-content;
    max-width: calc(100% - 36px);
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 111, 150, 0.92);
    box-shadow: 0 6px 20px rgba(0, 59, 93, 0.18);
    color: #fff;
}

.hero:not(.hero--model) .hero__image-label span {
    color: #e5f8ff;
    font-size: 11px;
    line-height: 1.2;
}

.hero:not(.hero--model) .hero__image-label strong {
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .hero:not(.hero--model) {
        padding: 30px 0 34px;
    }

    .hero:not(.hero--model) .hero__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hero:not(.hero--model) .hero__image {
        aspect-ratio: 3 / 2;
        min-height: 0;
        padding: 0;
        border-radius: 10px;
    }

    .hero:not(.hero--model) .hero__image-label {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 9px 12px;
        border-radius: 7px;
    }

    .hero:not(.hero--model) .hero__image-label strong {
        font-size: 13px;
    }
}

/* Flygt — единый формат обложек серий в каталоге (16:9).
   Изображения не обрезаются; шапки, категории и модели не затронуты. */
.catalog-card--series .catalog-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5f4fa;
}
.catalog-card--series .catalog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
}

/* Flygt: изображения только карточек направлений и серий.
   Единый исходный формат 1200x800 (3:2); без обрезки и искажения.
   Карточки конкретных моделей и остальные блоки не меняем. */
.catalog-card--category .catalog-card__media,
.catalog-card--series .catalog-card__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e5f4fa;
}
.catalog-card--category .catalog-card__image,
.catalog-card--series .catalog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
}

/* Flygt: одинаковый отступ между обложкой и заголовком
   только для карточек направлений и серий. */
.catalog-card--category .catalog-card__media,
.catalog-card--series .catalog-card__media {
    margin-bottom: 22px;
}

/* Flygt: единая сетка шапок каталога и карточек.
   Снимаем только дополнительный max-width внутренних блоков баннеров.
   Ширина следует за .container, общим с меню и сеткой каталога. */
/* Flygt: восстановлено центрирование общего контейнера баннеров.
   Работает для каталога, направлений, серий и карточек моделей.
   Не меняет сетку, изображения, шрифты или тексты. */
.hero > .container.hero__content {
    width: min(var(--container), calc(100% - 40px));
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 760px) {
    .hero > .container.hero__content {
        width: min(var(--container), calc(100% - 32px));
    }
}
