@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* =============================================================================
   ПЕРЕМЕННЫЕ (цвета, размеры) — меняй здесь, чтобы обновить весь сайт
   ============================================================================= */
:root {
    --color-teal-dark: #33667B;        /* фон верхней панели и подвала */
    --color-teal-accent: #33667B;      /* кнопка «Замовити…» */
    --color-teal-accent-hover: #268a9b;  /* кнопка при наведении */
    --color-white: #ffffff;
    --color-text: #1a1a1a;             /* основной текст */
    --color-text-muted: #5c5c5c;       /* серый текст в hero */
    --color-border: #e2e8ec;           /* линии между блоками */
    --color-partner-arrow: #b8c5cc;    /* стрелки у партнёров */

    --font-family: "Inter", sans-serif;;
    --container-width: 1280px;         /* макс. ширина контента по центру */
    --header-top-height: 137px;         /* высота тёмной верхней полосы */
    --nav-height: 48px;                /* высота белого меню */
    --radius-btn: 6px;                 /* скругление кнопки */
    --radius-search: 123px;            /* поиск: «таблетка» как в Figma */
    --top-bar-width: 1284px;           /* Figma: ширина верхней панели */
    --top-bar-divider-color: #bcbcbc;
}

/* =============================================================================
   СБРОС И БАЗОВЫЕ СТИЛИ (для всей страницы)
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Резервуємо місце під смугу прокрутки, щоб контент не «зсувався»
       по горизонталі між сторінками з різною висотою */
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column; /* подвал прижат к низу */
    overflow-x: hidden;
}

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

/* Уникаємо зайвого GPU-blur на фото при масштабуванні */
.content-img,
.promo-card__media img,
.hero__slide img,
.about-intro__image img,
.lab-levels__media img,
.catalog-card__img img,
.product-page__image img,
.contacts-hero__media img,
.news-hero__image img,
.lk-hero__image img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Скрытый текст для скринридеров (подпись «Пошук» у поля поиска) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Общая обёртка: центрирует контент, ограничивает ширину */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =============================================================================
   ЛОГОТИП (верх и подвал)
   HTML: .logo > .logo__mark + .logo__text
   ============================================================================= */
.logo {
    display: block;
    line-height: 0;
}

.top-bar__inner > .logo img {
    position: absolute;
    width: 179px;
    height: 118px;
    border-radius: 18px;
    object-fit: contain; /* cover обрезает и размывает логотип */
}

.logo__text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =============================================================================
   ШАПКА: липкая при прокрутке
   ============================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Тёмная верхняя полоса (фон, цвет текста) */
.top-bar {
    background: var(--color-teal-dark);
    color: var(--color-white);
    min-height: var(--header-top-height);
}

/* Верхняя панель Figma: 1284×137, координаты L/T/R от левого верхнего угла */
.top-bar .top-bar__inner {
    position: relative;
    max-width: var(--top-bar-width);
    width: 100%;
    height: var(--header-top-height);
    min-height: var(--header-top-height);
    margin: 0 auto;
    padding: 0;
}

/* Логотип: W179 H118, L37 T14 */
.top-bar__inner > .logo {
    position: absolute;
    left: 0;
    top: 14px;
    width: 179px;
    height: 118px;
}

/* «Зв'яжіться з нами» + телефон: W163 H27, L213 T53, 14px */
.top-bar__contact {
    position: absolute;
    left: 213px;
    top: 53px;
    width: 163px;
    height: 27px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.top-bar__phone {
    transition: opacity 0.2s;
}

/* Вертикальные линии: W101 (высота), stroke #BCBCBC */
.top-bar__divider {
    position: absolute;
    width: 1px;
    height: 101px;
    background: var(--top-bar-divider-color);
}

/* Левая линия: L392 T16 */
.top-bar__divider--first {
    left: 392px;
    top: 16px;
}

/* Правая линия: L860 T17 */
.top-bar__divider--second {
    left: 860px;
    top: 17px;
}

.top-bar__phone:hover {
    opacity: 0.85;
}

/* Слоган: W533 H29, T61, C −16.5 → left 359px, шрифт 16px */
.top-bar__tagline {
    position: absolute;
    left: calc((var(--top-bar-width) - 533px) / 2 - 16.5px);
    top: 51px;
    width: 533px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

/* Поиск: W316 H44, R62 T45 */
.top-bar__inner > .search {
    position: absolute;
    right: 62px;
    top: 45px;
    left: auto;
    display: flex;
    align-items: center;
    width: 316px;
    height: 44px;
    background: #558d9c;
    border: 1px solid #fff4f4;
    border-radius: var(--radius-search);
    overflow: hidden;
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-white);
    min-width: 0;
    background: transparent;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px 0 8px;
    color: var(--color-white);
}

/* =============================================================================
   МОБИЛЬНОЕ МЕНЮ (checkbox + «гамбургер»)
   ============================================================================= */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none; /* показывается только в @media max-width 768px */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 1px;
}

/* =============================================================================
   БЕЛОЕ МЕНЮ НАВИГАЦИИ (Про нас, Реагенти, …)
   HTML: nav.main-nav
   ============================================================================= */
.main-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    min-height: var(--nav-height);
}

.main-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: normal;
    justify-content: left; /* пункты растянуты по ширине */
    gap: 8px 32px;
    min-height: var(--nav-height);
}

.main-nav__list a {
    display: block;
    padding: 24px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
}

.main-nav__list a:hover,
.main-nav__list a.nav--active {
    color: var(--color-teal-accent);
    border-bottom: 2px solid var(--color-teal-accent);
}

/* Dropdown nav item */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    display: flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown__toggle::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown__toggle::after {
    transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-top: 2px solid var(--color-teal-accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu {
    display: block;
}

.nav-dropdown__menu li {
    display: block;
}

.nav-dropdown__menu a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text) !important;
    border-bottom: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown__menu a:hover {
    background: #f3f1f1;
    color: var(--color-teal-accent) !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .nav-dropdown__menu {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-teal-accent);
        margin-left: 24px;
        padding: 0;
        display: block;
    }
    .nav-dropdown__toggle::after {
        display: none;
    }
    .nav-dropdown__menu a {
        padding: 10px 20px !important;
        font-size: 14px;
        border-bottom: 1px solid var(--color-border) !important;
    }
}


/* =============================================================================
   СТРАНИЦА СЕРВИС
   ============================================================================= */

/* Верхній блок: ілюстрація + текст */
.svc-intro {
    padding: 48px 0 40px;
    background: #fff;
}

.svc-intro__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.svc-intro__image img {
    max-width: 577px;
    width: 100%;
    height: auto;
    display: block;
}

.svc-intro__image {
    flex-shrink: 0;
}

.svc-intro__text {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #000;
}

@media (max-width: 900px) {
    .svc-intro__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Заголовок секції карточок */
.svc-section-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #216379;
    text-align: center;
    margin: 0 0 32px;
}

.svc-cards-section {
    padding: 40px 0 56px;
    background: #f7f8fa;
}

/* Три карточки */
.svc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    column-gap: 24px;
    row-gap: 0;
    justify-content: center;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.svc-card {
    grid-row: span 5;
    display: grid;
    grid-template-rows: subgrid;
    justify-items: center;
    background: #f3f1f1;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 40px;
    padding: 32px 20px 28px;
    row-gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.svc-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #216379;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    width: 100%;
    align-self: start;
}

.svc-card__text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #000;
    text-align: center;
    margin: 0;
    width: 100%;
    align-self: start;
}

.svc-card__person {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: center;
    align-self: center;
}

.svc-card__person--empty {
    visibility: hidden;
    min-height: 1.35em;
    pointer-events: none;
}

.svc-card__contact-name {
    font-size: 14px;
    opacity: 0.75;
}

.svc-card__person a,
.svc-card__email a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svc-card__person a:hover,
.svc-card__email a:hover {
    opacity: 0.75;
}

.svc-card__email {
    margin: 0;
    width: 100%;
    text-align: center;
    align-self: end;
}

.svc-card__email a {
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Блок CTA */
.svc-cta {
    padding: 48px 0 64px;
    background: #fff;
}

.svc-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.svc-cta__label {
    font-size: 24px;
    font-weight: 400;
    color: #216379;
}

.svc-cta__box {
    width: 100%;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.svc-cta__box-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    color: #000;
}

.svc-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 53px;
    padding: 12px 32px;
    background: #216379;
    color: #fff;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 400;
    transition: background 0.2s;
}

.svc-cta__btn:hover {
    background: #1a5263;
}

@media (max-width: 900px) {
    .svc-cards {
        grid-template-columns: minmax(0, 320px);
        grid-template-rows: none;
        gap: 24px;
        justify-content: center;
        margin: 0 auto;
    }

    .svc-card {
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        height: auto;
    }

    .svc-card__person--empty {
        display: none;
    }

    .svc-intro__text {
        font-size: 18px;
    }
}

/* =============================================================================
   СТОРІНКА "ЛАБОРАТОРНЕ ОБЛАДНАННЯ"
   ============================================================================= */
.eq-catalog {
    background: #f5f5f5;
    min-height: calc(100vh - 185px);
    padding: 48px 0 80px;
}

/* Заголовок «Каталог…» побудований на тій самій 3-колонковій сітці,
   що й .eq-grid нижче, і завжди центрується саме відносно середньої
   колонки — так текст гарантовано співпадає з центром таблиці. */
.eq-catalog__title {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    margin: 0 0 40px;
}

.eq-catalog__title span {
    grid-column: 2;
    justify-self: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #216379;
    text-align: center;
}

.eq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
}

.eq-column {
    display: flex;
    flex-direction: column;
}

.eq-row {
    height: 57px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-left: 1px solid #D1D1D1;
    border-right: 1px solid #D1D1D1;
    border-bottom: 1px solid #D1D1D1;
    background: #f5f5f5;
    transition: background 0.15s;
}

.eq-column li:first-child {
    border-top: 1px solid #D1D1D1;
}

.eq-row a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.15s;
}

.eq-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.eq-row:hover {
    background: #ebebeb;
}

.eq-row:hover a {
    color: #216379;
}

@media (max-width: 900px) {
    .eq-catalog__title,
    .eq-grid {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }

    .eq-catalog__title span {
        grid-column: 1;
    }
}

/* Хлібні крихти */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #216379;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb a:hover {
    opacity: 0.75;
}

/* Сітка товарів */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #D1D1D1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card__image--empty {
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

.product-card__name {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-top: 1px solid #D1D1D1;
    text-align: center;
}

/* ── Catalog Tabs ── */
.catalog-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid #216379;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto 48px;
    max-width: 560px;
}

.catalog-tab {
    display: block;
    padding: 14px 24px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #216379;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.catalog-tab--active {
    background: #216379;
    color: #fff;
    pointer-events: none;
}

.catalog-tab:not(.catalog-tab--active):hover {
    background: #eef5f8;
}

/* ── Catalog Cards Grid ── */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog-card {
    background: #ffffff;
    border: 1px solid #D1D1D1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s;
}

.catalog-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.catalog-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.catalog-card__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.catalog-card__img--empty {
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

.catalog-card__body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid #e8e8e8;
}

.catalog-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.35;
}

.catalog-card__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 20px;
}

.catalog-card__btn {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 22px;
    background: #216379;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.catalog-card__btn:hover {
    background: #1a4f60;
}

@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .catalog-tab {
        font-size: 15px;
        padding: 10px;
    }

    .eq-catalog__title {
        font-size: 26px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .breadcrumb {
        flex-wrap: wrap;
        row-gap: 4px;
        font-size: 12px;
        margin-bottom: 14px;
    }

    .catalog-card__img {
        aspect-ratio: 2 / 1;
        max-height: 120px;
        padding: 8px 14px;
    }

    .catalog-card__body {
        padding: 10px 12px 12px;
    }

    .catalog-card__title {
        font-size: 14px;
        margin: 0 0 4px;
        line-height: 1.3;
    }

    .catalog-card__desc {
        font-size: 12px;
        line-height: 1.35;
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .catalog-card__btn {
        padding: 7px 14px;
        font-size: 11px;
    }

    .product-card__image {
        aspect-ratio: 16 / 10;
        max-height: 120px;
        padding: 8px;
    }

    .product-card__name {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Заглушка для страниц в разработке */
.page-hero {
    padding: 80px 0 100px;
    background: #f7f8fa;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.page-hero p {
    font-size: 16px;
    color: var(--color-text-muted);
}

/* =============================================================================
   HERO — как в Figma: слева текст на #F5F5F5, справа большое фото + градиент поверх
   ============================================================================= */
.hero {
    position: relative;
    overflow: hidden;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    padding: 56px 0 64px;
    background: #f5f5f5;
}

/* Цветной градиент на всю секцию, включая фото */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(245, 245, 245, 0.42) 6%,
        rgba(157, 185, 193, 0.33) 50%,
        rgba(70, 126, 141, 0.24) 91%
    );
}

/* Фото: ровно правая половина (линия по центру) */
/* ── Hero Slider ── */
.hero__slides {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero__slide--active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Градієнт — плавний перехід від фону до фото на лівому краї */
.hero__slides::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f5f5f5 0%,
        rgba(245, 245, 245, 0.55) 10%,
        transparent 22%
    );
}

/* Стрілки — розміщені по боках фото (права половина) */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #216379;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.hero__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.hero__arrow svg {
    width: 20px;
    height: 20px;
}

/* Стрілки/крапки всередині .hero__slides — координати відносно фото */
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.hero__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.85);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero__dot--active {
    background: #fff;
    transform: scale(1.25);
}

/* Зберігаємо .hero__media для можливого старого використання */
.hero__media {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Лёгкий переход с фона на фото у левого края картинки */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f5f5f5 0%,
        rgba(245, 245, 245, 0.55) 10%,
        transparent 22%
    );
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}

.hero__content {
    max-width: 680px;
    padding-right: 24px;
    margin-left: -10px;
}

/* Анімація зміни тексту слайдера */
.hero__title-anim,
.hero__text-anim,
.hero__btn-anim {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__text-anim  { transition-delay: 0.08s; }
.hero__btn-anim   { transition-delay: 0.16s; }

.hero__content--in {
    opacity: 1;
    transform: translateY(0);
}

/* Заголовок H1 — шире, чтобы меньше переносов строк */
.hero h1 {
    max-width: 680px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Подзаголовок / описание */
.hero__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 504px;
}

/* Общие стили кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 12px;
    transition: background 0.2s, transform 0.15s;
}

/* Зелёная кнопка CTA */
.btn--primary {
    background: var(--color-teal-accent);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-teal-accent-hover);
}

.btn--primary:active {
    transform: scale(0.98);
}

/* Картинка hero — стили в блоке .hero__media выше */

/* =============================================================================
   СТОРІНКА НОВИН
   ============================================================================= */
.news-hero {
    background: #e8f2f4;
    overflow: hidden;
}

.news-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    height: 299px;
}

.news-hero__image {
    position: relative;
    flex: 0 0 auto;
    height: 299px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 0;
}

.news-hero__image img {
    display: block;
    height: 299px;
    width: auto;
}

.news-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 38%,
        rgba(168, 209, 214, 0.35) 58%,
        rgba(216, 236, 239, 0.85) 78%,
        #e8f2f4 100%
    );
}

.news-hero__title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    padding: 0 16px;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #216379;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.news-grid-section {
    padding: 48px 0 64px;
    background: #fff;
}

@media (max-width: 900px) {
    .news-hero__inner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .news-hero__image {
        height: min(42vw, 260px);
        min-height: 200px;
        justify-content: center;
        width: 100%;
    }

    .news-hero__image img {
        height: 100%;
        width: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .news-hero__image::after {
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 48%,
            rgba(125, 188, 196, 0.45) 72%,
            rgba(232, 242, 244, 0.95) 88%,
            #e8f2f4 100%
        );
    }

    .news-hero__title {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        font-size: clamp(32px, 8vw, 40px);
        text-align: center;
        padding: 22px 20px 28px;
        pointer-events: auto;
        white-space: normal;
    }
}

/* =============================================================================
   СЕКЦІЯ "ПРО КОМПАНІЮ" (about-intro)
   ============================================================================= */
.about-intro {
    padding: 48px 0;
    background: #fff;
}

.about-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: var(--container-width);
    margin-inline: auto;
}

.about-intro__image {
    width: 100%;
    max-width: 460px;
    justify-self: end;
}

.about-intro__image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    max-width: 480px;
    justify-self: start;
}

.about-intro__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: #3a3a3a;
    margin: 0;
}

.about-intro__text strong {
    font-weight: 600;
    color: #1a1a1a;
}

.about-intro__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 14px 40px;
    background: #216379;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s;
}

.about-intro__btn:hover {
    background: var(--color-teal-accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .about-intro__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 100%;
    }
    .about-intro__image {
        max-width: 360px;
        justify-self: center;
    }
    .about-intro__content {
        max-width: 100%;
        justify-self: center;
        align-items: center;
        text-align: center;
    }
    .about-intro__text {
        font-size: 16px;
    }
    .about-intro__btn {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .about-intro__text {
        font-size: 15px;
    }
    .about-intro__btn {
        align-self: stretch;
        text-align: center;
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* =============================================================================
   СТОРІНКА «ПРО НАС»
   ============================================================================= */
.about-page__intro {
    padding: 48px 0 56px;
    background: #fff;
}

.about-page__intro-inner {
    display: grid;
    grid-template-columns: 537px 1fr;
    gap: 48px;
    align-items: start;
}

.about-page__media {
    position: relative;
    margin: 0;
    max-width: 537px;
}

.about-page__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.about-page__lead p {
    margin: 0;
    max-width: 667px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #000;
}

.about-page__lead strong {
    font-weight: 700;
    color: #216379;
}

.about-page__values {
    padding: 0 0 48px;
    background: #fff;
}

.about-page__values-title {
    margin: 0 0 48px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.005em;
    font-size: 32px;
    line-height: 39px;
    color: #216379;
}

.about-page__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin: 0 auto;
    background: #f7f8fa;
    border: 1px solid #d5dde3;
}

.about-value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 40px 28px 36px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    border-right: 1px solid #d5dde3;
}

.about-value-card:last-child {
    border-right: none;
}

.about-value-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 16px;
}

.about-value-card__icon img {
    display: block;
    width: 36px;
    height: 36px;
    max-width: 100%;
    object-fit: contain;
}

.about-value-card__title {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #216379;
    text-transform: none;
}

.about-value-card__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #5c5c5c;
}

@media (max-width: 1100px) {
    .about-page__intro-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-page__media {
        max-width: none;
    }

    .about-page__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .about-page__intro-inner {
        grid-template-columns: 1fr;
    }

    .about-page__lead p {
        font-size: 20px;
        line-height: 1.4;
        max-width: none;
    }

    .about-page__cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-value-card {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #d5dde3;
        padding: 28px 24px;
    }

    .about-value-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .about-page__values-title {
        font-size: 28px;
        line-height: 1.2;
    }
}

/* =============================================================================
   СТОРІНКА «КОНТАКТИ»
   ============================================================================= */
.contacts-page {
    background: #fff;
}

.contacts-hero__banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    height: 299px;
    background: #e8f2f4;
    overflow: hidden;
}

.contacts-hero__media {
    position: relative;
    flex: 0 0 auto;
    height: 299px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 0;
}

.contacts-hero__media img {
    display: block;
    height: 299px;
    width: auto;
}

/* М’який бірюзовий градієнт: фото плавно переходить у фон */
.contacts-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 38%,
        rgba(168, 209, 214, 0.35) 58%,
        rgba(216, 236, 239, 0.85) 78%,
        #e8f2f4 100%
    );
}

.contacts-hero__title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    padding: 0 16px;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #216379;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.contacts-body {
    padding: 48px 0 0;
}

.contacts-cards {
    display: grid;
    grid-template-columns: repeat(2, 398px);
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 48px;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    min-height: 201px;
    height: 100%;
    padding: 24px 20px;
    background: #E6E9EE;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    box-sizing: border-box;
}

.contacts-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.contacts-card__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #000;
}

.contacts-card__text a {
    color: inherit;
    text-decoration: none;
}

.contacts-card__text a:hover {
    text-decoration: underline;
}

.contacts-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #216379;
}

.contacts-teams {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    column-gap: 24px;
    row-gap: 0;
    justify-content: center;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.contacts-team {
    grid-row: span 5;
    display: grid;
    grid-template-rows: subgrid;
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
    background: #f3f1f1;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 40px;
    padding: 32px 20px 28px;
    row-gap: 14px;
}

.contacts-team__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: #216379;
    text-align: center;
    width: 100%;
    align-self: start;
}

.contacts-team__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #000;
    text-align: center;
    width: 100%;
    align-self: start;
}

.contacts-team__person {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: #000;
    text-align: center;
    align-self: center;
}

.contacts-team__person--empty {
    visibility: hidden;
    min-height: 1.35em;
    pointer-events: none;
}

.contacts-team__phone-icon {
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
}

.contacts-team__person a,
.contacts-team__email a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-team__person a:hover,
.contacts-team__email a:hover {
    color: #333;
}

.contacts-team__email {
    margin: 0;
    width: 100%;
    text-align: center;
    align-self: end;
}

.contacts-team__email a {
    display: inline-block;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contacts-map {
    padding: 0 0 56px;
}

.contacts-map__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contacts-map__embed {
    display: block;
    width: 100%;
    max-width: 1054px;
    height: 379px;
    border: 0;
    border-radius: 4px;
    background: #e6e9ee;
}

.contacts-map__link {
    display: block;
    width: 100%;
    max-width: 1054px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #216379;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-map__link:hover {
    color: #1a4f63;
}

.contacts-cta {
    padding: 0 0 72px;
}

.contacts-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.contacts-cta__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: #216379;
    text-align: center;
}

.contacts-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 53px;
    padding: 12px 16px;
    background: #216379;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.contacts-cta__btn:hover {
    background: #1a4f63;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .contacts-hero__banner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
        padding-right: 0;
    }

    .contacts-hero__media {
        height: min(42vw, 260px);
        min-height: 200px;
        justify-content: center;
        width: 100%;
    }

    .contacts-hero__media img {
        height: 100%;
        width: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .contacts-hero__media::after {
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 48%,
            rgba(125, 188, 196, 0.45) 72%,
            rgba(232, 242, 244, 0.95) 88%,
            #e8f2f4 100%
        );
    }

    .contacts-hero__title {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        font-size: clamp(32px, 8vw, 40px);
        text-align: center;
        margin: 0;
        padding: 22px 20px 28px;
        pointer-events: auto;
        white-space: normal;
    }

    .contacts-cards {
        grid-template-columns: minmax(0, 398px);
        justify-content: center;
        gap: 14px;
        margin-bottom: 32px;
    }

    .contacts-card {
        min-height: 0;
        gap: 12px;
        padding: 16px 18px;
    }

    .contacts-card__icon {
        min-height: 40px;
    }

    .contacts-card__icon svg {
        width: 40px;
        height: 40px;
    }

    .contacts-card__text {
        font-size: 14px;
    }

    .contacts-hero__title {
        padding: 14px 20px 18px;
        font-size: clamp(28px, 7vw, 36px);
    }

    .news-hero__title {
        padding: 14px 20px 18px;
        font-size: clamp(28px, 7vw, 36px);
    }

    .contacts-teams {
        grid-template-columns: minmax(0, 320px);
        grid-template-rows: none;
        gap: 24px;
        justify-content: center;
        margin: 0 auto;
    }

    .contacts-team {
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        height: auto;
    }

    .contacts-team__person--empty {
        display: none;
    }
}

@media (max-width: 600px) {
    .contacts-map__embed {
        height: 280px;
    }

    .contacts-cta__title {
        font-size: 22px;
    }

    .contacts-cta__btn {
        width: 100%;
        max-width: 320px;
        font-size: 20px;
    }
}

/* =============================================================================
   СЕКЦІЯ "ПОВНЕ ОСНАЩЕННЯ ЛАБОРАТОРІЇ"
   ============================================================================= */
.lab-levels {
    padding: 60px 0;
    background: #f7f8fa;
}

.lab-levels__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.lab-levels__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 12px;
    max-width: 480px;
}

.lab-levels__subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #d0d5dc;
}

.lab-levels__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lab-level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 148px;
    padding: 18px 12px 20px;
    background: #fff;
    border: 1px solid #d7e3e8;
    box-shadow: 0 2px 8px rgba(33, 99, 121, 0.06);
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}

.lab-level-card:hover {
    border-color: #216379;
    box-shadow: 0 6px 18px rgba(33, 99, 121, 0.14);
    transform: translateY(-2px);
}

.lab-level-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: 48px;
}

.lab-level-card__icon {
    width: auto;
    height: 48px;
    display: block;
    transform: scaleY(-1); /* колбы перевёрнуты: шапочка сверху */
}

.lab-level-card__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #216379;
    text-align: center;
}

/* Фото справа */
.lab-levels__media {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.lab-levels__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

    .lab-levels__media {
        order: -1;
    }

    .lab-levels__title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .lab-levels__cards {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 340px;
        margin-inline: auto;
    }

    .lab-level-card {
        display: grid;
        grid-template-columns: 64px 1fr;
        align-items: center;
        column-gap: 14px;
        min-height: 64px;
        padding: 12px 18px;
    }

    .lab-level-card__icon-wrap {
        width: 64px;
        height: 44px;
        justify-self: center;
    }

    .lab-level-card__icon {
        width: auto;
        height: 40px;
        max-width: 58px;
    }

    .lab-level-card__label {
        text-align: left;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* =============================================================================
   ПРОМО-КАРТОЧКА (Figma: 386×593, фон #F3F1F1)
   ============================================================================= */
.promo-cards {
    padding: 48px 0 64px;
    background: var(--color-white);
}

.promo-cards__title {
    font-size: 32px;
    font-weight: 700;
    color: #216379;
    text-align: center;
    margin: 0 0 32px;
}

.promo-cards__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px; /* Figma: ~15px между карточками */
}

.promo-cards__more {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.promo-cards__more-link {
    font-size: 16px;
    font-weight: 600;
    color: #216379;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.promo-cards__more-link:hover {
    color: #1a5263;
}

.promo-card {
    width: 100%;
    max-width: 386px;
    background: #f3f1f1;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 37px 15px 28px;
    display: flex;
    flex-direction: column;
}

.promo-card__media {
    width: 100%;
    max-width: 356px;
    margin: 0 auto 12px;
    aspect-ratio: 356 / 245;
    overflow: hidden;
    background: #e8e8e8;
}

.promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-card__media--contain img {
    object-fit: contain;
    background: #f3f1f1;
}

.promo-card__body {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-card__title {
    max-width: 373px;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    color: #000000;
}

.promo-card__text {
    max-width: 351px;
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 200;
    line-height: 17px;
    color: #000000;
    flex: 1;
}

.promo-card__footer {
    display: flex;
    justify-content: flex-end;
}

.promo-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 37px;
    padding: 0 20px;
    background: #216379;
    color: #ffffff;
    border-radius: 66px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
}

.promo-card__btn:hover {
    background: #1a5263;
}

.promo-card__btn:active {
    transform: scale(0.98);
}

/* =============================================================================
   LAB KLYUCH PAGES
   ============================================================================= */

/* Hero banner */
.lk-hero {
    background: #EBEBEB;
    overflow: hidden;
}

.lk-hero__inner {
    display: flex;
    align-items: center;
    height: 298px;
}

.lk-hero__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.lk-hero__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: #216379;
    letter-spacing: -0.005em;
    margin: 0;
    max-width: 560px;
    text-align: center;
}

.lk-hero__image {
    flex: 0 0 auto;
    height: 298px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lk-hero__image img {
    height: 298px;
    width: auto;
    display: block;
}

/* Section */
.lk-section {
    padding: 48px 0 80px;
}

/* Main heading */
.lk-heading {
    font-size: 24px;
    font-weight: 700;
    color: #216379;
    text-decoration: underline;
    text-align: center;
    letter-spacing: 0.1px;
    margin: 0 0 28px;
}

/* Description */
.lk-desc {
    max-width: 860px;
    margin: 0 auto 48px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #000;
}

.lk-desc p {
    margin: 0 0 14px;
}

.lk-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lk-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid #e8e8e8;
    font-size: 18px;
    line-height: 1.5;
}

.lk-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal-accent);
}

/* Equipment section */
.lk-equip-title {
    font-size: 24px;
    font-weight: 700;
    color: #216379;
    margin: 0 0 32px;
    text-align: center;
}

.lk-equip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.lk-equip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lk-equip-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-equip-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lk-equip-card__img--placeholder {
    background: #fafafa;
}

.lk-equip-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #216379;
    line-height: 1.4;
    margin: 0;
}

a.lk-equip-card {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a.lk-equip-card:hover .lk-equip-card__name {
    color: var(--color-teal-accent, #2a9d8f);
}

a.lk-equip-card:hover .lk-equip-card__img {
    border-color: #b8d4dc;
    box-shadow: 0 4px 12px rgba(33, 99, 121, 0.12);
}

a.lk-equip-card:focus-visible {
    outline: 2px solid var(--color-teal-accent, #2a9d8f);
    outline-offset: 4px;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .lk-equip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lk-hero__inner {
        flex-direction: column;
        height: auto;
    }
    .lk-hero__text {
        flex: none;
        width: 100%;
        padding: 18px 20px 12px;
    }
    .lk-hero__title {
        font-size: 18px;
        line-height: 1.3;
    }
    .lk-hero__image {
        height: auto;
        max-height: 180px;
        aspect-ratio: 16 / 9;
        justify-content: center;
        overflow: hidden;
    }
    .lk-hero__image img {
        height: 100%;
        width: auto;
        max-height: 180px;
        object-fit: contain;
    }
    .lk-equip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lk-heading {
        font-size: 20px;
    }
    .lk-desc {
        font-size: 15px;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .lk-desc p {
        text-align: center;
    }
    .lk-desc p strong {
        display: inline-block;
        margin-top: 4px;
    }
    .lk-list {
        display: block;
        max-width: 340px;
        margin: 0 auto;
        text-align: left;
    }
    .lk-list li {
        font-size: 15px;
        padding: 10px 0 10px 22px;
        text-align: left;
    }
}

.lab-klyuch-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.lab-klyuch-tab {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.lab-klyuch-tab:hover {
    color: var(--color-teal-accent);
}

.lab-klyuch-tab--active {
    color: var(--color-teal-accent);
    border-bottom-color: var(--color-teal-accent);
}

.lab-klyuch-content__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #000;
}

.lab-klyuch-content__desc {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    max-width: 720px;
    margin: 0 0 40px;
}

.lab-klyuch-placeholder {
    background: #f3f1f1;
    border-radius: 8px;
    padding: 48px 40px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .lab-klyuch-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    .lab-klyuch-tab {
        padding: 12px 16px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    .lab-klyuch-tab--active {
        border-bottom-color: #e0e0e0;
        background: #f0fafa;
    }
    .lab-klyuch-placeholder {
        padding: 32px 20px;
    }
}

/* =============================================================================
   NEWS ARTICLE PAGE
   ============================================================================= */
.news-article-section {
    padding: 48px 0 80px;
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #216379;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 32px;
}

.news-article__back:hover {
    text-decoration: underline;
}

.news-article {
    max-width: 820px;
    margin: 0 auto;
}

.news-article__header {
    margin-bottom: 28px;
}

.news-article__date {
    font-size: 14px;
    color: #888;
    margin: 0 0 10px;
}

.news-article__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

.news-article__image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 36px;
    background: #f3f1f1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.news-article__image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.news-article__image.promo-card__media--contain {
    max-height: none;
}

.news-article__image.promo-card__media--contain img {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.news-article__image.promo-card__media--contain.news-article__image--framed {
    min-height: 420px;
}

.news-article__image.promo-card__media--contain.news-article__image--framed img {
    width: 100%;
    max-width: 420px;
    max-height: 520px;
}

.news-article__image.news-article__image--fill {
    display: block;
    min-height: 0;
    aspect-ratio: 3 / 2;
}

.news-article__image.news-article__image--fill img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.news-article__body {
    font-size: 16px;
    line-height: 1.75;
    color: #222;
}

.news-article__body p {
    margin: 0 0 18px;
}

.news-article__body a {
    color: #216379;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article__body a:hover {
    color: #1a4f63;
}

.news-article__body h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 14px;
    color: #000;
}

.news-article__body ul {
    padding-left: 24px;
    margin: 0 0 18px;
    list-style: none;
}

.news-article__body ul li {
    margin-bottom: 8px;
    padding-left: 10px;
    position: relative;
}

.news-article__body ul li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal-accent);
    position: absolute;
    left: -16px;
    top: 6px;
}

.news-article__footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.news-article__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #216379;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.news-article__back-btn:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-article__title {
        font-size: 26px;
    }
    .news-article__body {
        font-size: 15px;
    }
}

/* =============================================================================
   ПАРТНЁРЫ (логотипы брендов)
   ============================================================================= */
.partners {
    padding: 32px 0 48px;
    border-top: 1px solid var(--color-border);
}

.partners__title {
    margin: 0 0 48px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.005em;
    font-size: 32px;
    line-height: 39px;
    color: #216379;
}

.about-page .partners {
    border-top: none;
    padding-top: 0;
}

.partners__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.partners__viewport {
    flex: 1;
    overflow: hidden;
}

.partners__track {
    display: flex;
    transition: transform 0.45s ease;
}

.partners__slide {
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.partners__slide--center {
    justify-content: center;
    gap: 48px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    flex-shrink: 0;
}

/* Одинаковая «рамка» под каждый логотип */
.partner-item__logo {
    width: 160px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-item__logo--lg img {
    transform: scale(1.5);
}

.partner-item__caption {
    margin: 13px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
}

.partner-item__country {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Стрелки влево/вправо */
.partners__arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-partner-arrow);
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.2s, border-color 0.2s;
}

.partners__arrow:hover:not(:disabled) {
    color: var(--color-teal-mid);
}

.partners__arrow--disabled,
.partners__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    border: none;
    outline: none;
    box-shadow: none;
}

.partners__arrow:focus,
.partners__arrow:focus-visible {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

/* =============================================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================================= */
@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes overlay-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

@keyframes modal-out {
    from { opacity: 1; transform: translateY(0)     scale(1);    }
    to   { opacity: 0; transform: translateY(-16px) scale(0.97); }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vh, 16px) clamp(8px, 2vw, 16px);
    box-sizing: border-box;
}

.modal-overlay.is-open {
    display: flex;
    animation: overlay-in 0.22s ease forwards;
}

.modal-overlay.is-closing {
    animation: overlay-out 0.2s ease forwards;
}

.modal {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: min(100%, 520px);
    max-height: min(90vh, 90dvh);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: modal-in 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-closing .modal {
    animation: modal-out 0.2s ease forwards;
}

.modal__header {
    background: #216379;
    border-radius: 12px 12px 0 0;
    padding: clamp(16px, 2.5vh, 28px) clamp(16px, 3vw, 32px) clamp(14px, 2vh, 24px);
    text-align: center;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal__title {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    margin: 0 0 6px;
}

.modal__subtitle {
    font-size: clamp(12px, 1.5vw, 14px);
    opacity: 0.9;
    margin: 0;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
    z-index: 3;
}

.modal__close:hover {
    opacity: 1;
}

.modal__form {
    padding: clamp(16px, 2.5vh, 24px) clamp(16px, 3vw, 32px) clamp(20px, 3vh, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 16px);
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal__field label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.modal__field input,
.modal__field select {
    width: 100%;
    height: clamp(42px, 6vh, 48px);
    padding: 0 14px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: #333;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.modal__field input:focus,
.modal__field select:focus {
    border-color: #216379;
}

.modal__field input::placeholder {
    color: #aab4be;
}

.modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal__select-wrap {
    position: relative;
}

.modal__select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}

.modal__sn-wrap {
    display: flex;
    gap: 8px;
}

.modal__sn-wrap input {
    flex: 1;
}

.modal__sn-hint {
    width: clamp(42px, 6vh, 48px);
    height: clamp(42px, 6vh, 48px);
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #216379;
    background: #e8f1f4;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.modal__sn-hint:hover {
    background: #d5e6ec;
}

.modal__submit {
    height: clamp(46px, 6.5vh, 52px);
    background: #216379;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

.modal__submit:hover {
    background: #1a4f63;
}

.modal__submit:disabled {
    background: #7fa3b0;
    cursor: default;
}

.modal__botcheck {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.modal__error {
    margin: 4px 0 0;
    font-size: 14px;
    color: #c0392b;
    text-align: center;
}

.modal__success {
    padding: clamp(24px, 5vh, 48px) clamp(16px, 3vw, 32px);
    text-align: center;
}

.modal__success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--color-teal-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__success p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
}

@media (max-height: 720px) {
    .modal__header {
        padding: 14px 20px 12px;
    }

    .modal__form {
        padding: 14px 20px 18px;
        gap: 10px;
    }

    .modal__field input,
    .modal__field select,
    .modal__sn-hint {
        height: 40px;
    }

    .modal__submit {
        height: 44px;
        margin-top: 0;
    }
}

/* =============================================================================
   ПРОСТА МОДАЛКА «ЗАЛИШИТИ ЗАЯВКУ» (для кнопок на сторінках товарів)
   ============================================================================= */

.request-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vh, 16px) clamp(8px, 2vw, 16px);
    box-sizing: border-box;
}

.request-modal-overlay.is-open {
    display: flex;
    animation: overlay-in 0.22s ease forwards;
}

.request-modal-overlay.is-closing {
    animation: overlay-out 0.2s ease forwards;
}

.request-modal {
    position: relative;
    background: #f6f8f9;
    border-radius: 24px;
    width: min(100%, 460px);
    max-height: min(90vh, 90dvh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(24px, 4vh, 40px) clamp(20px, 4vw, 40px) clamp(22px, 3.5vh, 36px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    animation: modal-in 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    -webkit-overflow-scrolling: touch;
}

.request-modal-overlay.is-closing .request-modal {
    animation: modal-out 0.2s ease forwards;
}

.request-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.request-modal__close:hover {
    opacity: 1;
}

.request-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 10px;
}

.request-modal__subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 32px;
}

.request-modal__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.request-modal__field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.request-modal__field input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #dde3e6;
    border-radius: 12px;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
}

.request-modal__field input::placeholder {
    color: #9aa3ab;
}

.request-modal__field input:focus {
    outline: none;
    border-color: var(--color-teal-accent);
}

.request-modal__botcheck {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.request-modal__captcha-wrap {
    min-height: 78px;
}

.request-modal__captcha {
    display: flex;
    justify-content: center;
}

.request-modal__captcha-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #c0392b;
    text-align: center;
}

.request-modal__submit {
    height: 56px;
    background: var(--color-teal-accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease;
}

.request-modal__submit:hover {
    background: var(--color-teal-accent-hover);
}

.request-modal__success {
    text-align: center;
    padding: 12px 0 4px;
}

.request-modal__success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--color-teal-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 540px) {
    .request-modal {
        padding: 32px 24px 28px;
        border-radius: 18px;
    }

    .request-modal__title {
        font-size: 24px;
    }
}

@media (max-width: 540px) {
    .modal__form {
        padding: 20px 16px 24px;
    }

    .modal__row {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   ПОДВАЛ (footer)
   ============================================================================= */
.site-footer {
    margin-top: auto;
    background: var(--color-teal-dark);
    color: var(--color-white);
    padding: 28px max(0px, calc((100vw - var(--top-bar-width)) / 2));
    overflow: hidden; /* обрезает логотип по верхней/нижней границе панели */
}

.site-footer__inner {
    position: relative;
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    min-height: 36px;
}

/* Тот же размер, что в шапке (179×118); лишнее обрежет .site-footer */
.logo--footer {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 179px;
    height: 36px;
    z-index: 1;
}

.logo--footer img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 179px;
    height: 118px;
    border-radius: 18px;
    object-fit: contain;
}

.site-footer__copy {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 420px);
    margin: 0;
    font-size: 13px;
    text-align: center;
    opacity: 0.95;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.site-footer__social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.15s;
}

.site-footer__social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.site-footer__social img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

/* =============================================================================
   ПЛАНШЕТ (экран уже 1100px)
   ============================================================================= */
@media (max-width: 1100px) {
    .top-bar__inner > .logo,
    .top-bar__contact,
    .top-bar__tagline,
    .top-bar__divider,
    .top-bar__inner > .search {
        position: static;
        width: auto;
        height: auto;
        max-width: none;
    }

    .top-bar .top-bar__inner {
        display: grid;
        grid-template-columns: auto 1fr 316px;
        align-items: center;
        gap: 16px;
        height: auto;
        min-height: var(--header-top-height);
        padding: 12px 24px;
    }

    .top-bar__tagline,
    .top-bar__divider {
        display: none;
    }

    .top-bar__inner > .logo {
        width: 140px;
    }

    .top-bar__inner > .logo img {
        position: static;
        width: 140px;
        height: auto;
        max-width: 140px;
        display: block;
    }

    .top-bar__inner > .search {
        width: 100%;
        max-width: 316px;
        justify-self: end;
    }

    .main-nav__list {
        justify-content: flex-start;
        gap: 8px 20px;
    }
}

/* =============================================================================
   МОБИЛЬНЫЙ (экран уже 768px)
   ============================================================================= */
@media (max-width: 768px) {
    .promo-cards__inner {
        flex-direction: column;
        align-items: center;
    }

    .top-bar {
        min-height: 0;
        height: auto;
    }

    .top-bar__inner > .logo,
    .top-bar__contact,
    .top-bar__tagline,
    .top-bar__divider,
    .top-bar__inner > .search {
        position: static;
    }

    .top-bar .top-bar__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        height: auto;
        min-height: unset;
        padding: 8px 12px 8px 12px;
        position: relative;
    }

    .top-bar__inner > .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        width: auto;
        height: auto;
        display: block;
    }

    .top-bar__tagline,
    .top-bar__divider,
    .top-bar__inner > .search {
        display: none;
    }

    .top-bar__contact {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        justify-self: center;
        align-self: center;
        margin: 0;
        width: auto;
        min-width: 0;
        max-width: 100%;
        text-align: center;
        gap: 2px;
        padding: 0 2px;
    }

    .top-bar__contact-label {
        display: block;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
    }

    .top-bar__phone {
        font-size: 12px;
        font-weight: 600;
        color: var(--color-white);
        white-space: nowrap;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .top-bar__inner > .logo img {
        position: static;
        width: 108px;
        height: auto;
        max-width: 108px;
        max-height: 64px;
        display: block;
        border-radius: 12px;
        object-fit: contain;
    }

    .menu-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        position: static;
        transform: none;
        justify-self: end;
        align-self: center;
        flex-shrink: 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    /* Меню открывается, когда отмечен #nav-toggle */
    .site-header:has(.nav-toggle:checked) .main-nav {
        display: block;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
    }

    .main-nav__list a {
        padding: 12px 24px;
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 400px) {
    .top-bar__contact-label {
        font-size: 9px;
    }

    .top-bar__phone {
        font-size: 11px;
        letter-spacing: -0.02em;
    }

    .top-bar__inner > .logo img {
        width: 96px;
        max-width: 96px;
        max-height: 58px;
    }

    .top-bar .top-bar__inner {
        gap: 6px;
        padding: 8px 10px;
    }
}

/* ================================================
   PRODUCT PAGE (maccura_f600.html etc.)
   ================================================ */

.product-page {
    padding: 40px 0 80px;
}

.product-page__hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin: 32px 0 56px;
}

.product-page__image {
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 240px;
}

.product-page__image img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
}

.product-page__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 16px;
}

.product-page__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
}

.product-page__desc {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.product-page__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 14px 40px;
    background: var(--color-teal-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(51, 102, 123, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 12px;
}

.product-page__cta:hover {
    background: var(--color-teal-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 102, 123, 0.45);
}

/* Specs table */
.product-page__specs {
    border-top: 2px solid var(--color-border);
    padding-top: 48px;
    margin-top: 64px;
}

.product-page__specs-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 32px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.order-table th,
.order-table td {
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    color: #444;
}

.order-table thead th {
    background: #f3f1f1;
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 700px) {
    .order-table {
        font-size: 13px;
    }
    .order-table th,
    .order-table td {
        padding: 10px 12px;
    }
}

.reagents-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 40px;
}

.reagents-filter__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.reagents-filter__btn:hover {
    border-color: var(--color-teal-accent);
    color: var(--color-teal-accent);
}

.reagents-filter__btn.is-active {
    background: var(--color-teal-accent);
    border-color: var(--color-teal-accent);
    color: var(--color-white);
}

.reagents-section {
    margin-bottom: 56px;
}

.reagents-section.is-hidden {
    display: none;
}

.reagents-section:last-child {
    margin-bottom: 0;
}

.reagents-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}

.reagents-table-wrap {
    overflow-x: auto;
}

.reagents-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.reagents-table th,
.reagents-table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
    color: #444;
}

.reagents-table thead th {
    background: #f3f1f1;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.reagents-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

.reagents-table__stock--in {
    color: #1f8a3d;
    font-weight: 600;
}

.reagents-table__stock--out {
    color: #b3261e;
    font-weight: 500;
}

@media (max-width: 700px) {
    .reagents-table {
        font-size: 12.5px;
    }
    .reagents-table th,
    .reagents-table td {
        padding: 9px 10px;
    }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.specs-table tr {
    border-bottom: 1px solid #e8e8e8;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    width: 260px;
    padding: 16px 24px 16px 0;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.specs-table td {
    padding: 16px 0 16px 24px;
    color: #444;
    vertical-align: top;
    border-left: 2px solid #d0d0d0;
}

@media (max-width: 900px) {
    .product-page__hero {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0 36px;
    }
    .product-page__image {
        min-height: 0;
        max-height: 220px;
        aspect-ratio: 4 / 3;
    }
    .product-page__image img {
        max-height: 220px;
        width: auto;
        margin: 0 auto;
    }
    .product-page__title {
        font-size: 24px;
    }
    .product-page {
        padding: 24px 0 56px;
    }
    .specs-table th {
        width: 160px;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
    }
    .specs-table th {
        padding: 16px 0 4px;
        border-left: none;
        border-top: 1px solid #e8e8e8;
        color: var(--color-teal-accent);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .specs-table td {
        padding: 0 0 16px;
        border-left: none;
    }
    .specs-table tr {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: auto;
        overflow: visible;
        padding: 32px 0 0;
    }

    .hero__inner {
        order: 1;
        height: auto;
        max-height: none;
        min-height: auto;
        align-items: flex-start;
        padding-bottom: 24px;
    }

    .hero::before {
        display: none;
    }

    .hero__slides {
        position: relative;
        left: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 200px;
        order: 2;
        overflow: hidden;
    }

    .hero__slides::after {
        background: linear-gradient(
            180deg,
            #f5f5f5 0%,
            transparent 30%
        );
    }

    .hero__arrow {
        width: 34px;
        height: 34px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .hero__arrow:hover {
        transform: translateY(-50%) scale(1.08);
    }

    .hero__arrow--prev { left: 10px; }
    .hero__arrow--next { right: 10px; }

    .hero__dots {
        left: 50%;
        bottom: 10px;
    }

    .hero__media {
        position: relative;
        left: auto;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }

    .hero__media::after {
        background: linear-gradient(
            180deg,
            #f5f5f5 0%,
            transparent 30%
        );
    }

    .hero__content {
        max-width: none;
        margin-left: 0;
    }

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

    .partners {
        overflow: hidden;
    }

    .partners__inner {
        gap: 8px;
        min-width: 0;
    }

    .partners__arrow {
        display: flex;
        flex-shrink: 0;
        width: 32px;
        height: 32px;
    }

    .partners__viewport {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .partners__viewport::-webkit-scrollbar {
        display: none;
    }

    .partners__track {
        transform: none !important;
        gap: 20px;
        width: max-content;
        padding-inline: 2px;
    }

    .partners__slide {
        display: contents;
    }

    .partners__slide--center {
        gap: 0;
    }

    .partner-item {
        width: 120px;
        scroll-snap-align: start;
    }

    .partner-item__logo {
        width: 120px;
        height: 56px;
    }

    .partner-item__caption {
        white-space: normal;
        font-size: 12px;
        max-width: 120px;
    }

    .site-footer {
        padding: 28px 24px;
    }

    .site-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-height: 0;
    }

    .logo--footer {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 120px;
        height: 36px;
        margin: 0 auto;
    }

    .logo--footer img {
        width: 120px;
        height: auto;
        max-height: 79px;
    }

    .site-footer__copy {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        white-space: normal;
        pointer-events: auto;
    }

    .site-footer__social {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        justify-content: center;
        margin: 0;
    }
}
