:root {
    --color-text: #1a1a1a;
    --color-muted: #666;
    --color-bg: #ffffff;
    --color-accent: #2b6cb0;
    --color-accent-dark: #234e7d;
    --color-border: #e5e7eb;
    --container: 1140px;
    --radius: 10px;
    --font: "Jost", sans-serif;;
}

*, *::before, *::after { box-sizing: border-box; }
.order-modal input[type="tel"] {
    padding-left: 36px;
}
span.phone-code {
    position: absolute;
    z-index: 9;
    margin: 18px 11px;
}

html { scroll-behavior: smooth; }
.mobile{display: none;}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    
}
a,button{transition: 0.4s;}
.main-a::before {
    content: '';
    position: absolute;
    left: -160%;
    bottom: 0;
    width: 200px;
    height: calc(100% + 0px);
    z-index: -2;
    transition: 0.8s;
    background: #6085c8;
    clip-path: polygon(53% 0%, 100% 0%, 62% 101%, 12% 100%);
}
.main-a::after {
    content: '';
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: 0.8s;
}
.main-a span {
    position: relative;
    z-index: 2;
    color: #fff;
}
.main-a :hover {
    background: transparent;
    clip-path: polygon(0px 0, 100% 0, 100% calc(100% - 0px), calc(100% - 20px) 100%, 0 100%, 0 0px);
}
.main-a {
    border-radius: 3px;
    color: #000;
    text-decoration: none;
    transition: 0.3s;
    margin: 15px 0px;
    display: block;
    width: fit-content;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    background-color: var(--color-accent);
    padding: 12px 30px;
    padding-left: 60px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    overflow: hidden;
    max-height: fit-content;
}

.main-a:hover i {color:#fff;}

.main-a:hover span {
    color: #fff;
}
.main-a:hover::before {
    left: 100%;
}

.main-a i {
    position: absolute;
    left: 21px;
    top: calc(50% - 8px);
    z-index: 2;
    color: #fff;
}
.main-a input {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 100%;
    height: 100%;
    opacity: 0;
    /* Поверх подписи: у .main-a span z-index 2, иначе клик ловит текст,
       а прозрачное поле под ним форму не отправляет. */
    z-index: 3;
    cursor: pointer;
}

/* Спиннер CF7 стоит сразу за input и иначе попадает под правило ниже. */
.main-a .wpcf7-spinner {
    position: absolute;
    left: auto;
    right: 14px;
    top: calc(50% - 12px);
    z-index: 4;
    background: rgba(255, 255, 255, .35);
    transform: none;
}
.main-a input ~ span {
    position: absolute;
    left: -54px;
    top: 0px;
    z-index: 9;
    background: #2b2b2b;
    display: block;
    opacity: 1;
    transform: scale(1.2);
}

/* Обводка снаружи срезалась бы clip-path, поэтому подсвечиваем внутрь.
   focus-within нужен для кнопок, где фокус получает вложенный input. */
.main-a:focus-visible,
.main-a:focus-within {
    outline: 2px solid #fff;
    outline-offset: -6px;
}



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

a { color: var(--color-accent); text-decoration: none; }
p, a {
    font-size: 1.2em;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 5vw, 3.25rem); }
h2 {
    font-size: clamp(32px, 3vw, 2.25rem);
}
a {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}
ul.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Было width: var(--container) — на узких экранах меню вылезало за край. */
    width: 100%;
    max-width: var(--container);
    padding: 8px 0px;
    margin: 0;
}
ul.menu li a {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
}


.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s ease;
}
.button:hover { background: var(--color-accent-dark); text-decoration: none; }

/* ---------- Шапка ---------- */
.site-header {
    position: fixed;
    top: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb29;
    width: 100%;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.site-header__logo img {
    width: 200px;
    filter: brightness(0)invert(1);
    transition: 0.4s;
}
.site-title { font-weight: 700; font-size: 1.25rem; color: var(--color-text); }

.site-nav .menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav .menu a { color: var(--color-text); font-weight: 500; }
.site-nav .menu a:hover { color: var(--color-accent); text-decoration: none; }

/* Бургер (скрыт на десктопе) */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.site-header__burger span {
    display: block;
    height: 2px;
    width: 24px;
    margin-inline: auto;
    background: var(--color-text);
    transition: transform .25s ease, opacity .25s ease;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Мобильная шапка и меню ---------- */

/* Ширину, фон и показ .mobile задаёт медиазапрос ниже по файлу —
   здесь только выравнивание и слой поверх выезжающего меню. */
.mobile {
    top: 0;
    left: 0;
    z-index: 130;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
    box-shadow: 0 2px 12px rgba(15, 35, 108, .1);
}

/* Кнопка: полоски разной длины и пунктирное кольцо, которое медленно крутится. */
.menu-button {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    border: none;
    border-radius: 50%;
    background: #0f236c;
    cursor: pointer;
}

/* Пунктирное кольцо вокруг кнопки, медленно вращается. */
.menu-button::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(15, 35, 108, .35);
    border-radius: 50%;
    animation: menu-ring 12s linear infinite;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: width .35s ease, transform .35s cubic-bezier(.65, 0, .35, 1), opacity .2s ease;
}

.menu-button span:nth-child(2) { width: 13px; }
.menu-button span:nth-child(3) { width: 17px; }

.menu-button:hover span,
.menu-button:focus-visible span { width: 22px; }

/* Открыто: полоски складываются в крест, кольцо становится сплошным и ускоряется. */
.menu-button.is-open span { width: 22px; }
.menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-button.is-open::before {
    border-style: solid;
    border-color: rgba(15, 35, 108, .9);
    animation-duration: 4s;
}

@keyframes menu-ring {
    to { transform: rotate(360deg); }
}

/* Выезжающее меню — это сама .site-header: на узких экранах она уводится
   за левый край (см. медиазапрос ниже) и возвращается по клику на кнопку. */
@media (max-width: 1200px) {
    .site-header.is-open {
        left: 0;
    }

    /* Внутри узкой колонки пункты идут столбиком и не растягиваются по ширине. */
    .site-header ul.menu {
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 60px;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .site-header ul.menu li a {
        letter-spacing: 2px;
    }

.site-header__logo img {
    width: 160px;
    display: none;
}

    /* Затемнение под меню: закрывает страницу и ловит клик «мимо». */
    html.is-menu-open body::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 99;
        background: rgba(9, 14, 30, .55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-button::before { animation: none; }
    .site-header { transition: none; }
}

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section:nth-child(even) { background: #f8f9fb; }

/* Шапка зафиксирована — иначе якорь из меню прячет начало секции под ней.
   Запас по её реальной высоте: 93 px на десктопе, до 154 px на телефоне. */
#hero,
#products,
#contact {
    scroll-margin-top: 110px;
}

@media (max-width: 1200px) {
    /* Мобильная полоса с логотипом и кнопкой — около 74 px. */
    #hero,
    #products,
    #contact {
        scroll-margin-top: 95px;
    }
}

.hero {
    padding: 179px 0;
    padding-bottom: 80px;
    background: linear-gradient(45deg, #0f236c, rgb(26 46 119 / 69%)), url(/wp-content/uploads/2026/07/pexels-jw-medicare-pvt-ltd-2157283432-34642915.webp);
    background-position: center;
    background-attachment: fixed;
}
.hero__subtitle {
    font-size: 2.2rem;
    color: #fff;
    max-width: 640px;
    margin: 0;
    text-align: left;
    margin-bottom: 26px;
}
.hero h1 {
    color: #fff;
    margin: 0;
    font-size: 6em;
    text-align: left;
}
/* Сетка карточек */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.card {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

/* Плавное появление секций */
section { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
section.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    section { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Контакты ---------- */

.contacts__intro {
    margin: 0 0 28px;
    color: var(--color-muted);
}

.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contacts__link {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

a.contacts__link:hover {
    box-shadow: 0 6px 20px rgba(15, 35, 108, .12);
    transform: translateY(-2px);
}

/* Адрес ссылкой не бывает — не притворяемся кликабельным. */
.contacts__link--static {
    cursor: default;
}

.contacts__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef1f8;
    color: #0f236c;
    font-size: 19px;
}

.contacts__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contacts__label {
    color: var(--color-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contacts__value {
    font-size: 1.05rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Фирменные цвета мессенджеров — иконка сразу узнаётся. */
.contacts__item--whatsapp .contacts__icon { background: #e7f7ec; color: #25d366; }
.contacts__item--telegram .contacts__icon { background: #e6f4fb; color: #229ed9; }
.contacts__item--viber .contacts__icon { background: #f0eaf9; color: #7360f2; }
.contacts__item--instagram .contacts__icon { background: #fceaf1; color: #d62976; }
.contacts__item--facebook .contacts__icon { background: #e8effb; color: #1877f2; }

/* ---------- Переключатель языков ---------- */

.menu__lang {
    display: flex;
    align-items: center;
}

.esco-lang-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

/* Перебиваем ul.menu li a: там uppercase и большие межбуквенные интервалы. */
.site-header .esco-lang-switcher__item {
    display: block;
    height: auto;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}

.site-header .esco-lang-switcher__item.is-active {
    background: #fff;
    color: #0f236c;
}

.site-header.is-scrolled .esco-lang-switcher {
    background: rgba(15, 35, 108, .1);
}

.site-header.is-scrolled .esco-lang-switcher__item {
    color: #111;
}

.site-header.is-scrolled .esco-lang-switcher__item.is-active {
    background: #2b6cb0;
    color: #fff;
}

/* ---------- Кнопка «наверх» ---------- */

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    /* Кольцо — сектор конического градиента по проценту прокрутки. */
    background: conic-gradient(#0f236c calc(var(--scroll-progress, 0) * 1%), rgba(15, 35, 108, .18) 0);
    box-shadow: 0 6px 18px rgba(15, 35, 108, .22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.to-top::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    transition: background .25s ease;
}

.to-top i {
    position: relative;
    color: #0f236c;
    font-size: 16px;
    transition: transform .25s ease, color .25s ease;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.to-top:hover::before { background: #0f236c; }
.to-top:hover i { color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
    .to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .to-top,
    .to-top i,
    .to-top::before { transition: none; }
}

/* ---------- Подвал ---------- */
.site-footer {
    padding: 48px 0;
    background: #1a1a1a;
    color: #cbd5e1;
}
.site-footer__inner { text-align: center; }
.site-footer__nav .menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0 0 16px;
    padding: 0;
}
.site-footer__nav a { color: #cbd5e1; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy { margin: 0; color: #94a3b8; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    /* Старый бургер внутри шапки не используется — меню открывает .menu-button. */
    .site-header__burger { display: none; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .site-nav.is-open { max-height: 80vh; }
    .site-nav .menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 20px;
    }
    .site-nav .menu li { border-bottom: 1px solid var(--color-border); }
    .site-nav .menu a { display: block; padding: 14px 0; }
}

/* =========================================================
   Прелоадер: две створки разъезжаются вверх и вниз
   ========================================================= */

/* Пока экран показан, страницу под ним не листаем. */


.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.preloader.is-hidden {
    display: none;
}

.preloader__half {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: var(--color-bg);
    transition: transform .9s cubic-bezier(.76, 0, .24, 1) .15s;
    will-change: transform;
}

/* Нижней створке добавляем 1px вверх: на экранах с дробной высотой
   иначе по линии стыка проступает светлая щель. */
.preloader__half--top {
    top: 0;
    height: 50%;
}

.preloader__half--bottom {
    bottom: 0;
    height: calc(50% + 1px);
}

/* Внутренний слой высотой во весь экран. Логотип в нём центрируется,
   поэтому в обеих створках он оказывается ровно на линии разреза
   и вместе они складываются в одну картинку. */
.preloader__inner {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__half--top .preloader__inner { top: 0; }
.preloader__half--bottom .preloader__inner { bottom: 0; }

.preloader__logo {
    display: block;
    width: min(300px, 62vw);
    height: auto;
}

.preloader__word {
    font-size: clamp(46px, 11vw, 128px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--color-text);
}

/* Полоска прогресса — под логотипом, внутри нижней створки.
   На самом стыке она перечёркивала бы логотип. */
.preloader__bar {
    position: absolute;
    top: calc(50% + 86px);
    left: 50%;
    width: min(220px, 44vw);
    height: 2px;
    transform: translateX(-50%);
    background: rgba(43, 108, 176, .16);
    border-radius: 2px;
    overflow: hidden;
    transition: opacity .25s ease;
}

/* Заполнением управляет скрипт через --preloader-progress: фиксированная
   анимация не успевала добежать до конца, и створки разъезжались раньше. */
.preloader__bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(var(--preloader-progress, 0));
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.35, .6, .2, 1);
}

/* Финал: полоска гаснет, следом разъезжаются створки. */
.preloader.is-done .preloader__bar {
    opacity: 0;
}

.preloader.is-done .preloader__half--top {
    transform: translateY(-100%);
}

.preloader.is-done .preloader__half--bottom {
    transform: translateY(100%);
}

/* Заставку уже показывали — она остаётся в разметке, но не мешает. */
html.preloader-skip .preloader {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .preloader__half { transition: none; }
    .preloader__bar { transition: none; }
    .preloader__bar span { transition: none; }
}

/* =========================================================
   Шапка после прокрутки (класс is-scrolled ставит script.js)
   ========================================================= */

.site-header {
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.site-header__inner {
    transition: min-height .35s ease;
}

.site-header.is-scrolled {
    background: rgb(255 255 255);
}
.site-header.is-scrolled ul.menu a{color:#111;}
.site-header.is-scrolled .site-header__logo img{filter: brightness(1) invert(0);}



@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header__inner,
    .site-header__logo img {
        transition: none;
    }
}

/* =========================================================
   Каталог на главной: карточка, слайдер галереи, аккордеон
   ========================================================= */

.products__grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 28px;
    margin-top: 36px;
}

/* Верхний ряд — галерея и краткие данные, под ними во всю ширину описание. */
.product-card {
    display: grid;
    grid-template-columns: 50% 50%;
    /* gap: 15px; */
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

/* Галерея обычно выше — выравниваем данные по её середине. */
.product-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px;
}

.product-card__details {
    grid-column: 1 / -1;
    padding: 0 22px 22px;
}

.product-card__title {
    margin: 0 0 8px;
    font-size: clamp(32px, 3vw, 2.25rem);
}

.product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 4px 0 20px;
}

.product-card__price-label {
    color: var(--color-muted);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-card__price-value {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Кнопки карточки: базовый .button + иконка. */
/* Кнопки карточки — общий шаблон .main-a, здесь только раскладка в ряд. */
.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* У .main-a свой вертикальный отступ — в ряду он лишний. */
.product-card__actions .main-a {
    margin: 0;
}

.product-card__excerpt {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 1rem;
    margin-top: 14px;
}

/* Нижний отступ даёт сам блок описания. */
.product-card__details > *:last-child {
    margin-bottom: 0;
}

.product-card__link {
    margin-top: auto;
}

/* На узких экранах галерея и данные идут друг под другом. */
@media (max-width: 780px) {
    .product-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card__body {
        padding-bottom: 0;
    }

    .product-card__details {
        padding-top: 4px;
    }
}

/* ---------- Слайдер галереи ---------- */

.product-slider {
    position: relative;
    height: fit-content;
}

.product-slider__viewport {
    overflow: hidden;
}

.product-slider__track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Слайд — кнопка: клик открывает фото в попапе.
   Без фиксированной пропорции: высоту диктует само фото, кадр не режется.
   Слайды — flex-элементы, поэтому все тянутся до самого высокого и трек
   не прыгает при листании. */
.product-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}

/* Фото целиком: по ширине — колонка, по высоте — окно.
   contain оставляет поля вместо обрезки, если сработал max-height. */
.product-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 620px);
    object-fit: contain;
}

/* Подсказка «фото открывается» — сама по себе не кликается. */
.product-slider__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 35, 108, .72);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.product-slider:hover .product-slider__zoom,
.product-slider:focus-within .product-slider__zoom {
    opacity: 1;
}

@media (hover: none) {
    .product-slider__zoom { opacity: 1; }
}

/* Стрелки появляются при наведении, на тач-экранах видны всегда. */
.product-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #0f236c;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .25s ease, background .25s ease;
}

.product-slider:hover .product-slider__nav,
.product-slider__nav:focus-visible {
    opacity: 1;
}

.product-slider__nav:hover {
    background: #fff;
}

.product-slider__nav[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

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

.product-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.product-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(15, 35, 108, .18);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.product-slider__dot.is-active {
    background: #fff;
    transform: scale(1.35);
}

.product-slider__counter {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 35, 108, .72);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
}

@media (hover: none) {
    .product-slider__nav { opacity: 1; }
}

/* ---------- Попап просмотра фото ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 56px 16px 16px;
    cursor: zoom-out;   /* клик мимо фото закрывает попап */
}

/* У попапа собственный display — обычный [hidden] его не перебьёт. */
.lightbox[hidden] { display: none; }

html.is-lightbox-open,
html.is-modal-open,
html.is-menu-open {
    overflow: hidden;
    padding-right: var(--scrollbar-gap, 0px);
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(9, 14, 30, .92);
    animation: lightbox-fade .25s ease;
}

/* Фото занимает всё свободное место, подпись — строкой под ним. */
.lightbox__figure {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0;
    min-height: 0;
}

.lightbox__image {
    max-width: min(100%, 1200px);
    max-height: 100%;
    margin: auto;
    border-radius: 6px;
    object-fit: contain;
    cursor: default;
    animation: lightbox-zoom .25s ease;
    transition: opacity .2s ease;
}

.lightbox__image.is-loading { opacity: .35; }

/* Вытянутое фото не ужимаем в экран — читаем прокруткой.
   Строки по содержимому, иначе фото вылезает поверх подписи. */
.lightbox__figure.is-tall {
    grid-template-rows: auto auto;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.lightbox__figure.is-tall .lightbox__image {
    max-height: none;
    width: min(100%, 760px);
    margin-inline: auto;
}

.lightbox__caption {
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    text-align: center;
}

.lightbox__caption[hidden] { display: none; }

.lightbox__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, .24);
}

.lightbox__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #0f236c;
    font-size: 16px;
    cursor: pointer;
}

.lightbox__nav:hover { background: #fff; }

.lightbox__nav[hidden] { display: none; }

.lightbox__nav[disabled] {
    opacity: 0;
    pointer-events: none;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__counter {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.lightbox__counter[hidden] { display: none; }

/* Лента миниатюр под фото — второй способ листать. */
.lightbox__thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 14px;
    padding-bottom: 4px;
    overflow-x: auto;
    cursor: default;
    scrollbar-width: thin;
}

.lightbox__thumbs[hidden] { display: none; }

.lightbox__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    opacity: .55;
}

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

.lightbox__thumb:hover { opacity: .85; }

.lightbox__thumb.is-active {
    border-color: #fff;
    opacity: 1;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-zoom {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
    .lightbox { padding: 52px 8px 10px; }
    .lightbox__nav { width: 38px; height: 38px; }
    .lightbox__nav--prev { left: 6px; }
    .lightbox__nav--next { right: 6px; }
    .lightbox__thumb { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox__backdrop,
    .lightbox__image { animation: none; }
}

/* ---------- Попап с формой заказа ---------- */

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.order-modal[hidden] { display: none; }

.order-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 30, .78);
    cursor: pointer;
    animation: lightbox-fade .25s ease;
}

.order-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 32px 32px 36px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 60px rgba(9, 14, 30, .35);
    animation: lightbox-zoom .25s ease;
}

.order-modal__title {
    margin: 0 0 20px;
    padding-right: 40px;
    font-size: 1.6rem;
}

.order-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f2f6;
    color: #0f236c;
    font-size: 16px;
    cursor: pointer;
}

.order-modal__close:hover {
    background: #e2e6ee;
}

/* Форма Contact Form 7 внутри попапа */
.order-modal label {
    display: block;
    margin-bottom: 14px;
    color: #45505f;
    font-size: .95rem;
}

.order-modal input[type="text"],
.order-modal input[type="email"],
.order-modal input[type="tel"],
.order-modal select,
.order-modal textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

/* CF7 отдаёт textarea с rows=10 — в попапе это половина экрана. */
.order-modal textarea {
    height: 110px;
    min-height: 110px;
    resize: vertical;
}

.order-modal input:focus,
.order-modal select:focus,
.order-modal textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

/* Кнопка отправки собрана по шаблону .main-a: вид даёт обёртка,
   а сам input прозрачный и накрывает её целиком — клик уходит в форму. */
.order-modal .main-a {
    margin: 6px 0 0;
}

.order-modal .main-a input[type="submit"] {
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* Сообщения и подсказки CF7 */
.order-modal .wpcf7-not-valid-tip {
    margin-top: 4px;
    color: #b32d2e;
    font-size: .85rem;
}

.order-modal .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: .95rem;
}

.order-modal .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}

@media (max-width: 560px) {
    .order-modal { padding: 16px 10px; }
    .order-modal__dialog { padding: 26px 20px 30px; }
    .order-modal__title { font-size: 1.35rem; }
}

/* ---------- Аккордеон с описанием ---------- */

.accordion {
    margin: 0 0 18px;
    border-top: 1px solid var(--color-border);
}

.accordion__head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    border: none;
    background: none;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.accordion__icon {
    color: var(--color-accent);
}

.accordion__label {
    flex: 1;
}

.accordion__arrow {
    color: var(--color-muted);
    font-size: .85em;
    transition: transform .3s ease;
}

.accordion.is-open .accordion__arrow {
    transform: rotate(180deg);
}

.accordion.is-open .accordion__icon {
    color: var(--color-accent-dark);
}

/* Раскрытие без магических чисел: 0fr -> 1fr. */
.accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
    max-height: 0px;
    opacity: 0;
    transition: 0.4s;
    position: relative;
}
.accordion.is-open .accordion__panel {
    grid-template-rows: 1fr;
    max-height: 5000px;
    opacity: 1;
}
.accordion.is-open .accordion__panel {
    grid-template-rows: 1fr;
}

.accordion__inner {
    overflow: hidden;
}

.accordion__inner > *:first-child { margin-top: 0; }
.accordion__inner > *:last-child { margin-bottom: 0; }

.accordion.is-open .accordion__inner {
    padding-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .product-slider__track,
    .accordion__panel,
    .accordion__arrow {
        transition: none;
    }
}

/* Краткое описание поддерживает разметку — гасим отступы вложенных абзацев
   и наследование глобального p{font-size:1.2em}. */
.product-card__excerpt > *:first-child { margin-top: 0; }
.product-card__excerpt > *:last-child { margin-bottom: 0; }

.product-card__excerpt p {
    margin: 0 0 .6em;
    font-size: inherit;
}

.product-card__excerpt ul,
.product-card__excerpt ol {
    margin: 0 0 .6em;
    padding-left: 1.2em;
}

.product-card__excerpt li {
    margin-bottom: .2em;
}

.product-card__excerpt a {
    font-size: inherit;
    text-decoration: underline;
}

/* Медиа из описаний (шорткоды [video], [embed], картинки) приходят с инлайновой
   шириной вроде 1920px — иначе карточка расползается. */
.product-card__excerpt .wp-video,
.product-card__excerpt video,
.product-card__excerpt iframe,
.accordion__inner .wp-video,
.accordion__inner video,
.accordion__inner iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

.product-card__excerpt img,
.accordion__inner img {
    max-width: 100%;
    height: auto;
}

.product-card__excerpt table,
.accordion__inner table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Грид-элемент по умолчанию не сжимается уже своего min-content, а видео 1920px
   раздувает его — сетка схлопывалась в одну колонку. */
.product-card,
.product-card__body,
.product-card__excerpt,
.accordion,
.accordion__panel,
.accordion__inner {
    min-width: 0;
}

.product-card__excerpt .mejs-container,
.accordion__inner .mejs-container {
    width: 100% !important;
    max-width: 100% !important;
}


.joie:hover g circle {
    animation: rotate_alogo .5s linear infinite
}

a.joie svg {
    width: 115px;
    height: auto;
    margin: -14px 7px
}

.joie:hover g>:nth-child(2n) circle {
    animation: rotate_alogo .4s linear infinite
}

@keyframes rotate_alogo {
    0% {
        transform: rotate(0) translate(8px) rotate(0)
    }

    to {
        transform: rotate(360deg) translate(8px) rotate(-360deg)
    }
}
a.joie {
    text-align: center;
    display: block;
    background: transparent;
    letter-spacing: 1px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: -moz-fit-content;
    width: fit-content;
    color: #ffffff;
    font-weight: 300;
}
.footer_line {
    display: flex;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
}

@media(max-width: 1200px) {
    .site-footer,
.container {
    padding: 25px 5%;
}
ul.menu {
    display: grid;
    margin: 0;
    left: 0;
    gap: 24px;
}
.site-header {
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgb(0 0 0 / 81%);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb29;
    width: 320px;
    padding: 35px;
    min-height: 100vh;
    max-height: 100vh;
    left: -320px;
    transition: .35s ease;
}
.mobile {
    display: flex;
    position: fixed;
    justify-content: space-between;
    background: #fff;
    width: 100%;
}
.mobile img {
    width: 150px;
    margin: 10px;
}
.section {
    padding: 15px 0;
}
}

@media(max-width: 650px) {
.footer_line {
    display: block;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}
a.joie {
    margin: 21px auto;
}
}