/*
 * Nekst — лише ваги, які є в цьому макеті (woff2).
 * Figma «Medium / Semi Bold» = font-weight, не font-style.
 */
@font-face {
    font-family: "Nekst";
    src:
        local("Nekst"),
        local("Nekst-Regular"),
        url("https://safely.com.ua/wp-content/themes/safely/assets/fonts/Nekst/Nekst-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.reviews-home {
    background: #f3f5f5;
    padding: clamp(48px, 7vw, 88px) 0;
}

.reviews-home__head {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    align-items: end;
    gap: 24px;
    margin-bottom: 30px;
    min-width: 0;
}

.reviews-home__brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.reviews-home__brand-arrow {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(5, 38, 45, 0.35);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f3f5f5;
}

.reviews-home__brand-arrow img {
    width: 20px;
    height: 20px;
    display: block;
}

.reviews-home__brand-name {
    font-family: Nekst, sans-serif;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #05262d;
}

.reviews-home__title {
    margin: 0;
    margin-left: 340px;
    justify-self: center;
    max-width: 430px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #05262d;
    text-align: left;
}

.reviews-home__nav {
    display: inline-flex;
    gap: 8px;
}

.reviews-home__nav-btn {
    width: 48px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #111;
}

.reviews-home__nav-btn svg {
    display: block;
}

.reviews-home__nav-btn img,
.hero-feature__arrow img {
    display: block;
    width: 16px;
    height: 16px;
}

.reviews-home__viewport {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.reviews-home__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.reviews-home__viewport.is-dragging .reviews-home__track {
    transition: none;
}

.reviews-home__track {
    display: flex;
    gap: 8px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.reviews-home__card,
.reviews-home__cta-card {
    flex: 0 0 calc((100% - 24px) / 4);
    min-height: 328px;
    border-radius: 10px;
    padding: 32px;
    box-sizing: border-box;
}

.reviews-home__card {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.reviews-home__stars {
    margin: 0 0 14px;
    color: #ffbb00;
    display: inline-flex;
    align-items: center;
    /* gap: 2px; */
}

.reviews-home__stars img {
    display: block;
    width: 20px;
    height: 20px;
}

.reviews-home__text {
    margin: 0 0 22px;
    color: #05262d;
    line-height: 1.45;
}

.reviews-home__person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.reviews-home__avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 32px;
}

.reviews-home__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f3;
    object-fit: none;
}

.reviews-home__avatar--placeholder img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.85;
}

.reviews-home__person-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviews-home__author {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    margin-bottom: 8px;
    color: #05262d;
}

.reviews-home__company {
    margin: 0;
    color: rgba(5, 38, 45, 0.7);   
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;

}

.reviews-home__cta-card {
    background: #ffbb00;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviews-home__cta-title {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    color: #05262d;
    max-width: 280px;
}

.reviews-home__cta-card,
.reviews-home__cta-btn {
    pointer-events: auto;
}

.reviews-home__cta-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #05262d;
    color: #fff;
    border-radius: 8px;
    padding: 17px 32px;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;

}


@font-face {
    font-family: "Nekst";
    src:
        local("Nekst Medium"),
        local("Nekst-Medium"),
        url("https://safely.com.ua/wp-content/themes/safely/assets/fonts/Nekst/Nekst-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nekst";
    src:
        local("Nekst Semi Bold"),
        local("Nekst-SemiBold"),
        url("https://safely.com.ua/wp-content/themes/safely/assets/fonts/Nekst/Nekst-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nekst";
    src:
        local("Nekst Bold"),
        local("Nekst-Bold"),
        url("https://safely.com.ua/wp-content/themes/safely/assets/fonts/Nekst/Nekst-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-page: #F3F5F5;
    --color-ink: #05262d;
    --color-orange: #ffbb00;
    --color-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-blur: 20px;
    --radius: 8px;
    --radius-lg: 10px;
    --radius-pill: 999px;
    --header-h: 41px;
    /* Відступ контенту під fixed .site-header--dark (= padding 30+30 + висота лого 41) */
    --header-dark-offset: calc(30px + var(--header-h) + 30px);
    --page-pad: 30px;
    --max-w: 1440px;
    --color-trust-bg: #f3f5f5;
    --color-trust-card: #fafafa;
    --color-trust-muted: rgba(5, 38, 45, 0.6);
    --color-projects-bg: #f2f5f5;
    --color-projects-footer: #fafafa;
    --color-process-panel: #eaeced;
    --color-process-tile: #fafafa;
    --process-row-h: 169px;
}

p {
    margin: 0;
  
}

a, button {
    all: unset;
    cursor: pointer;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Nekst, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--color-ink);
    background-color: var(--color-page);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    margin: 0;
    font-weight: 400;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Promo bar (усередині .site-header над рядом .header) */
.site-header {
    position: relative;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 14px);
    width: 100%;
    flex-shrink: 0;
}

.hero__content .promo {
    margin: 0;
}

.promo {
    flex-shrink: 0;

    transition: margin 0.25s ease, opacity 0.25s ease;
    position: relative;
    z-index: 1;
    margin: 10px 30px;
    margin-bottom: 0px;
}

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

.promo__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6px 12px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: var(--color-ink);
    color: rgba(250, 251, 252, 0.95);
    border-radius: 11px;
}

.promo__body {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row;
}

.promo__text {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0;
}

.promo__collapse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0px;
    background: transparent;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    line-height: 0.85;
    letter-spacing: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.promo__close-ic {
    opacity: 0.9;
}

.promo__go {
    width: 38px;
    height: 18px;
    border-radius: 8.63px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 1);
    color: rgba(250, 251, 252, 0.95);
    border: .5px solid rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease;
}

.promo__go:hover {
    background: rgba(255, 255, 255, 0.25);
}

.promo__go img {
    width: 14px;
    height: 14px;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Герой: промо + фон + контент у межах висоти вікна */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-color: #0a1214;
    overflow: hidden;
}

main[data-page="home"] > .hero.hero--home {
    min-height: 100vh;
    min-height: 100svh;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.21);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding:
        max(18px, env(safe-area-inset-top))
        max(var(--page-pad), env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(var(--page-pad), env(safe-area-inset-left));
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    /* auto + overscroll:contain ловили wheel і блокували прокрутку сторінки, коли контент героя не переповнений */
}

/* Головна (Figma «Головна сторінка»): сітка інтро + картка */
.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(438px, 38vw);
    grid-template-rows: auto auto auto;
    gap: 28px 40px;
    align-items: end;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 50px;
}

/* Лише головна (PHP index): layout колонки інтро — по main[data-page="home"], щоб не чіпати інші сторінки */
main[data-page="home"] .hero__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(20px, 3.5vh, 40px);
    min-height: min(52vh, 520px);
    height: 100%;
    align-items: flex-start;
    grid-column: 1;
    grid-row: 1;
}

main[data-page="home"] .hero__panel {
    display: contents;
}

main[data-page="home"] .hero__panel .hero__stack {
    display: contents;
}

/* Нижній лівий блок: «100+» одразу над кнопкою дзвінка (один грід-елемент на два ряди) */
main[data-page="home"] .hero__foot {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    min-width: 0;
}

main[data-page="home"] .hero__panel .hero__dock--call-only .cta-card--dock {
    max-width: none;
    width: fit-content;
}

main[data-page="home"] .hero__panel .hero-feature {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: end;
    justify-self: end;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero__dock {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
}

.hero__dock--call-only {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0;
}

.hero__dock--call-only .cta-card--dock {
    max-width: none;
    width: 100%;
}

.hero__social {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hero__avatars {
    display: flex;
    align-items: center;
    padding-left: 2px;
}

.hero__avatar {
    width: 32px;
    height: 32px;
    margin-left: -11px;
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.hero__avatar:first-child {
    margin-left: 0;
}

main[data-page="home"] .hero__avatars .hero__avatar {
    padding: 0;
}

main[data-page="home"] .hero__avatar img {
    width: 32px;
    height: 32px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
}

.hero__social-text {
    margin: 0;
    max-width: 100px;
    font-family: Nekst;
    font-weight: 400;
    font-style: Semi Bold;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 90%;
    letter-spacing: 0%;
    
    color: rgba(255, 255, 255, 0.98);
}

.cta-card--dock {
    max-width: 291px;
}

.hero-feature {
    position: relative;
    width: 100%;
    max-width: 438px;
    padding: 18px 18px 14px;
    border-radius: 10px;
    justify-self: end;
    color: #fff;
    /* glass--strong вже дає фон; додаткова рамка як у макеті */
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.hero-feature__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-feature__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    max-width: min(290px, 62%);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-feature__viewport {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-feature__track--stack {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 398 / 202;
}

.hero-feature__track--stack .hero-feature__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-feature__track--stack .hero-feature__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-feature__slide .hero-feature__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-height: none;
}

.hero-feature__slider-nav {
    position: static;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.hero-feature__arrow {
    display: grid;
    place-items: center;
    width: 45px;
    height: 32px;
    padding: 0;
    border-radius: 24px;
    border: 0.75px solid rgba(0, 0, 0, 0.28);
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.hero-feature__arrow:hover {
    background: #f3f4f6;
}

.hero-feature__arrow:active {
    transform: scale(0.98);
}

.hero-feature__more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 2px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
}

.hero-feature__more--overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    /* background: rgba(5, 38, 45, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px); */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-feature__more:hover {
    text-decoration: underline;
}

.hero-feature__more--overlay:hover {
    text-decoration: none;
    filter: brightness(1.06);
}

.intro__region-ic {
    flex-shrink: 0;
    display: block;
    color: rgba(255, 255, 255, 0.95);
}

.intro__region--home-plain.intro__region--icon {
    gap: 8px;
    padding: 0;
    margin: 0 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.95);
}

.intro__region--home-plain .intro__region-ic {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.intro--home {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.intro__title--home {
    max-width: 560px;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.intro__lead--home {
    max-width: 360px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.intro--home .btn-primary {
    margin-bottom: 0;
}

.nav-glass__inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-glass__pill {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    transition: border-color 0.28s ease;
    cursor: pointer;
    text-decoration: none;
}

button.nav-glass__pill {
    margin: 0;
    appearance: none;
}

.nav-glass__pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(360deg, rgba(250, 250, 250, 0.16) 0%, rgba(255, 255, 255, 0.0496) 100%);
    -webkit-backdrop-filter: blur(19.56px);
    backdrop-filter: blur(19.56px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-glass__chev {
    flex-shrink: 0;
    display: block;
    width: 10px;
    height: 6px;
    opacity: 0.92;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nav-glass__grid-btn {
    width: 41px;
    height: 41px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0;
    outline: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #fff;
    color: #05262d;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(19px);
    backdrop-filter: blur(19px);
    transition: background 0.15s ease, transform 0.1s ease;
}

.nav-glass__grid-btn:hover {
    background: #f8fafc;
}

.nav-glass__grid-btn:active {
    transform: translateY(1px);
}

/* Checkout / thank-you: без плаваючого кошика */
.page-checkout .header__cart-slot,
.page-checkout-thank .header__cart-slot {
    display: none !important;
}

/* Кошик: absolute під рядом хедера (relative на .header), не ламає сітку */
.hero .site-header:not(.site-header--dark) .header__cart-slot {
    display: none;
}

.site-header--dark .header {
    overflow: visible;
}

/* Кошик — right: 0 відносно блоку кнопок (Зателефонувати + кабінет) */
.site-header--dark .header__actions {
    position: relative;
    overflow: visible;
}

.site-header--dark .header__actions > .btn-call,
.site-header--dark .header__actions > .icon-btn {
    position: relative;
    z-index: 2;
}

.site-header--dark .header__cart-slot {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.site-header--dark .header__cart-slot .cart-float {
    position: relative;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3a6436;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(5, 38, 45, 0.18);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.site-header--dark .cart-float:hover {
    filter: brightness(1.06);
}

.site-header--dark .cart-float:active {
    transform: translateY(1px);
}

.site-header--dark .cart-float__icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.site-header--dark .cart-float__badge {
    position: absolute;
    top: 10px;
    right: 11px;
    min-width: 16px;
    height: 12px;
    padding: 0 3px;
    border-radius: 2px;
    background: #ffbb00;
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

.site-header--dark .cart-float__badge:empty {
    display: none;
}

.nav-glass--home-row .nav-glass__bar {
    flex-wrap: nowrap;
    max-width: min(960px, 96vw);
}

.nav-glass--home-row .nav-glass__links {
    flex-wrap: nowrap;
    gap: 6px 10px;
}

.nav-glass--home-row .nav-glass__links a {
    padding: 8px 10px;
    font-size: 13px;
}

.nav-glass--home-row .nav-glass__pill {
    padding: 8px 12px;
    font-size: 13px;
}

/* Десктоп: випадаючі меню (прозорий міст до панелі: 12px = hover + 6px нижче) */
.nav-glass__has-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    z-index: 30;
}

.nav-glass__has-dropdown:hover,
.nav-glass__has-dropdown:focus-within {
    z-index: 400;
}

/* Hover/active для pill — 1:1 як у .nav-glass__links a */
.nav-glass__has-dropdown:hover .nav-glass__pill,
.nav-glass__has-dropdown:focus-within .nav-glass__pill {
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-glass__has-dropdown:hover .nav-glass__pill::before,
.nav-glass__has-dropdown:focus-within .nav-glass__pill::before {
    opacity: 1;
}

.nav-glass__has-dropdown:hover .nav-glass__chev,
.nav-glass__has-dropdown:focus-within .nav-glass__chev {
    transform: rotate(180deg);
}

.nav-glass__dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 5000;
    padding-top: 12px;
    min-width: 620px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-glass__has-dropdown:hover .nav-glass__dropdown,
.nav-glass__has-dropdown:focus-within .nav-glass__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-glass__dropdown-panel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 620px;
    padding: 24px 32px;
    box-sizing: border-box;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(5, 38, 45, 0.14);
}

/* «Обслуговування та ремонт» — ширша панель */
.nav-glass__dropdown--service {
    min-width: 700px;
}

.nav-glass__dropdown-panel--service {
    width: 700px;
}

/* «Проєктування» — панель з макету 394×170 */
.nav-glass__dropdown--process {
    min-width: 439px;
}

.nav-glass__dropdown-panel--process {
    width: 439px;
}

.nav-glass__dropdown--catalog {
    min-width: 0;
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
}

.nav-glass__dropdown-panel--catalog {
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    padding: 20px 24px;
    gap: 20px 28px;
}

.nav-glass__dropdown-panel--catalog .nav-glass__dropdown-col {
    flex: 0 0 auto;
    width: auto;
}

.nav-glass__dropdown-panel--catalog .nav-glass__dropdown-link {
    white-space: nowrap;
}

.nav-glass__dropdown-col {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.nav-glass__dropdown-link {
    display: block;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0;
    color: rgba(5, 38, 45, 0.7);
    text-decoration: none;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

.nav-glass__dropdown-link:hover,
.nav-glass__dropdown-link:focus-visible {
    font-weight: 700;
    color: var(--color-ink);
}

.nav-glass__dropdown-link:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Кнопка-сітка: дропдаун Бренди / Блог / Контакти */
.nav-glass__has-dropdown--grid {
    position: relative;
    flex-shrink: 0;
}

.nav-glass__has-dropdown--grid:hover,
.nav-glass__has-dropdown--grid:focus-within {
    z-index: 400;
}

.nav-glass__dropdown--grid {
    left: 0;
    right: auto;
    min-width: 0;
}

.nav-glass__dropdown-panel--grid {
    width: 111px;
    min-width: 111px;
    max-width: 111px;
    padding: 16px 20px;
    flex-direction: column;
    box-sizing: border-box;
}

.nav-glass__dropdown--grid .nav-glass__dropdown-col {
    gap: 10px;
}

/* Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    /* border: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; */
}

.glass--strong {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass--dark {
    background: rgba(255, 255, 255, 0.16);
    /* border-image-source: linear-gradient(258.35deg, rgba(102, 102, 102, 0) 17.67%, rgba(0, 0, 0, 0.05) 84.56%);
    backdrop-filter: blur(18px); */
    -webkit-backdrop-filter: blur(18px);
}

/* Header: крайні колонки фіксовані, центр займає решту — меню по центру екрана */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px 16px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.header__brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    flex: none;
    color: var(--color-white);
}

.header__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header__shield {
    position: relative;
    width: 34px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.header__shield svg {
    display: block;
}

.header__mono {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1;
}

.header__name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-ink);
}

.nav-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    grid-column: 2;
    gap: 4px;
    min-width: 0;
    width: max-content;
    max-width: min(720px, 92vw);
}

.nav-glass__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    row-gap: 6px;
    min-height: var(--header-h);
    padding: 3px 4px;
    border-radius: 8px;
    max-width: min(720px, 92vw);
}

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

.nav-glass__links a {
    position: relative;
    color: var(--color-white);
    padding: 10px 14px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.28s ease;
}

.nav-glass__links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(360deg, rgba(250, 250, 250, 0.16) 0%, rgba(255, 255, 255, 0.0496) 100%);
    -webkit-backdrop-filter: blur(19.56px);
    backdrop-filter: blur(19.56px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-glass__links a:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-glass__links a:hover::before {
    opacity: 1;
}

.icon-btn {
    width: 41px;
    height: 41px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    flex-shrink: 0;
}

a.icon-btn {
    text-decoration: none;
    color: inherit;
}

.icon-btn img,
.icon-btn__icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Бургер — лише на мобільному (показ у media.css) */
.header__burger {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    grid-column: 3;
    gap: 6px;
    flex: none;
    flex-shrink: 0;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    min-height: 41px;
    border-radius: 8px;

    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.btn-call:hover {
    background: #fff;
}

.btn-call__icon {
    display: grid;
    place-items: center;
}

/* Основний блок: текст + нижній CTA */
.hero__main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: clamp(8px, 2vh, 28px);
    align-items: flex-end;
}

.intro {
    color: var(--color-white);
    /* max-width: 38rem; */
}

.intro__tagline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 225px;
}

/* Keyframes: легкий пульс — вузька «аура», без великого розмаху */
@keyframes intro-dot-glow {
    0% {
        box-shadow:
            0 0 0 2px rgba(255, 187, 0, 0.28),
            0 0 5px rgba(255, 187, 0, 0.1);
        transform: scale(1);
    }
    25% {
        box-shadow:
            0 0 0 3px rgba(255, 187, 0, 0.2),
            0 0 7px rgba(255, 187, 0, 0.14);
        transform: scale(1.02);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(255, 187, 0, 0.14),
            0 0 9px rgba(255, 187, 0, 0.18);
        transform: scale(1.04);
    }
    75% {
        box-shadow:
            0 0 0 3px rgba(255, 187, 0, 0.2),
            0 0 7px rgba(255, 187, 0, 0.14);
        transform: scale(1.02);
    }
    100% {
        box-shadow:
            0 0 0 2px rgba(255, 187, 0, 0.28),
            0 0 5px rgba(255, 187, 0, 0.1);
        transform: scale(1);
    }
}

.intro__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 187, 0, 0.22);
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: intro-dot-glow 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform, box-shadow;
    margin-top: 5px;
}

.intro__region {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 21px;
    padding: 10px 16px;
    width: fit-content;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

.intro__region.glass--dark {
    border-color: rgba(255, 255, 255, 0.14);
}

.intro__dot--in-badge {
    box-shadow: none;
    width: 7px;
    height: 7px;
    animation: none;
    transform: none;
    margin-top: 0;
}

.intro__title {
    margin-bottom: 16px;
    max-width: 685px;
    font-family: Nekst, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 64px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.intro__lead {
    margin: 0 0 24px;
    font-family: Nekst;
    font-weight: 400;
    font-style: Medium;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -3%;
    
    max-width: 330px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0px 32px;
    height: 52px;
    border-radius: 8px;
    background-color: var(--color-orange);
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: filter 0.15s ease, transform 0.15s ease;
    width: fit-content;
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary__ic {
    display: grid;
    place-items: center;
}

.btn-primary__ic img {
    width: 20px;
}

/* Нижній CTA усередині hero__main */
.hero__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 16px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: var(--radius-lg);
    max-width: 291px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cta-card.glass--dark:hover {
    background: rgba(0, 0, 0, 0.55);
}

.cta-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--color-orange);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cta-card__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 500;
    font-style: Semi Bold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -3%;
    color: rgba(255, 255, 255, 1);
    max-width: 205px;
}

/* Друга секція після hero: цитата + партнери (Figma) */
.trust {
    background-color: var(--color-trust-bg);
    color: var(--color-ink);
}

.trust__upper {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 24px clamp(24px, 4vw, 80px);
    align-items: start;
    margin-bottom: clamp(40px, 6vw, 60px);
}

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

.trust__back {
    width: 81px;
    height: 82px;
    border-radius: 16px;
    border: 0.5px solid rgba(5, 38, 45, 0.4);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--color-ink);
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.trust__back:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(5, 38, 45, 0.55);
}

.trust__back-icon {
    display: block;
}

.trust__brand-name {
    font-family: Nekst, sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.trust__manifest {
    max-width: 701px;
    justify-self: end;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trust__quote {
    margin: 0;
}

.trust__quote p {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: rgba(94, 116, 120, 1);
}

.trust__quote-char {
    color: rgba(94, 116, 120, 1);
    transition: color 0.22s ease;
}

.trust__quote-char.is-filled {
    color: rgba(5, 38, 45, 1);
}

.trust__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust__author-photo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8ecec 0%, #dfe6e6 100%);
    box-shadow: inset 0 0 0 1px rgba(5, 38, 45, 0.06);
}

.trust__author-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.trust__author-name {
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    
}

.trust__author-role {
    font-family: Nekst;
    font-weight: 400;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    
    color: var(--color-trust-muted);
}

.trust__lower {
    display: grid;
    grid-template-columns: minmax(0, 684px) minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
}

.trust__partners-panel {
    background: var(--color-trust-card);
    border-radius: 20px;
    min-height: 320px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.trust__partners-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.trust__partners-title {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    max-width: 220px;
}

.trust__partners-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    line-height: 0;
}

.trust__partners-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.trust__partners-arrow img {
    display: block;
    width: 40px;
    height: 40px;
    transition: filter 0.2s ease;
}

.trust__partners-arrow--prev img {
    transform: scaleX(-1);
}

.trust__partners-arrow:hover img,
.trust__partners-arrow:focus-visible img {
    filter: brightness(0.55);
}

.trust__partners-arrow:active {
    transform: scale(0.94);
}

.trust__partners-lead {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    max-width: 270px;
}

/* Партнери: безкінечна смуга логотипів (як why__cards-marquee + script.js) */
.trust__logos-wrap {
    min-width: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.trust__logos-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 2px 0;
}

.trust__logos-marquee::before,
.trust__logos-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(48px, 11vw);
    z-index: 2;
    pointer-events: none;
}

.trust__logos-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-trust-bg) 0%, transparent 100%);
}

.trust__logos-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-trust-bg) 0%, transparent 100%);
}

.trust__logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.3s ease;
}

.trust__logos-marquee.is-marquee-active .trust__logos {
    transform: translateZ(0);
}

.trust__logos-marquee.is-marquee-active .trust__logo-name {
    font-family: Nekst;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: -0.03em;
    vertical-align: middle;
    text-transform: uppercase;
}

.trust__logos > li {
    flex: 0 0 auto;
}

.trust__logos > li.trust__logo-card {
    position: relative;
    z-index: 1;
    background: var(--color-trust-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    box-sizing: border-box;
    min-height: 320px;
    width: 215px;
    min-width: 215px;
    flex: 0 0 215px;
    transition: background-color 0.25s ease;
}

@media (hover: hover) {
    .trust__logos > li.trust__logo-card:hover {
        z-index: 2;
        background-color: var(--color-orange);
    }
}

.trust__logo-name {
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 26px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -3%;
    vertical-align: middle;
    text-transform: uppercase;
    
}

.trust {
    padding: 100px 0;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
}

/* Головна: B2C / акцент / B2B (після trust) */
.home-segments {
    --home-segments-bg: rgb(242, 245, 245);
    background: var(--home-segments-bg);
    padding: clamp(48px, 6vw, 88px) 0 0;
}

.home-segments__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 32px;
    margin-bottom: clamp(28px, 3.5vw, 40px);
}

.home-segments__title {
    margin: 0;
    max-width: min(600px, 100%);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 42px;
    line-height: 85%;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.home-segments__badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: var(--color-ink);
}

.home-segments__badge-ic {
    display: grid;
    place-items: center;
    width: 19px;
    height: 20px;
    line-height: 0;
}

.home-segments__badge-ic img {
    display: block;
    width: 19px;
    height: 20px;
    object-fit: contain;
}

.home-segments__badge-text {
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.6);
}

.home-segments__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 0.6vw, 12px);
    align-items: stretch;
}

.home-segments__card {
    min-height: clamp(380px, 42vw, 500px);
    border-radius: 20px;
    box-sizing: border-box;
}

.home-segments__card--media {
    position: relative;
    display: grid;
    grid-template: 1fr / 1fr;
    overflow: hidden;
    background: #f4f4f4;
}

.home-segments__visual,
.home-segments__scrim,
.home-segments__foot {
    grid-area: 1 / 1;
}

.home-segments__visual {
    z-index: 0;
}

.home-segments__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-segments__scrim {
    z-index: 1;
    pointer-events: none;
    /* background: linear-gradient(180deg, rgba(5, 38, 45, 0) 42%, rgba(5, 38, 45, 0.82) 100%); */
}

.home-segments__foot {
    z-index: 2;
    align-self: end;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-segments__foot-title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 32px;
    line-height: 80%;
    letter-spacing: -0.02em;
    color: #fff;
}

.home-segments__foot-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.72);
}

.home-segments__card--accent {
    background: var(--color-orange);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.home-segments__accent-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.home-segments__accent-title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 32px;
    line-height: 80%;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.home-segments__accent-lede {
    margin: auto 0 0;
    max-width: 320px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.home-segments__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding: 0 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    background: var(--color-ink);
    -webkit-backdrop-filter: blur(19.56px);
    backdrop-filter: blur(19.56px);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.home-segments__cta:hover {
    filter: brightness(1.06);
}

.home-segments__cta:active {
    transform: translateY(1px);
}

.home-segments__cta:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}

.home-segments__cta-ic {
    display: grid;
    place-items: center;
    line-height: 0;
}

.home-segments__cta-ic img {
    display: block;
    filter: brightness(0) invert(1);
}

/* Реалізовані об'єкти: слайдер на висоту вікна + нижній ряд */
.projects {
    background-color: var(--color-projects-bg);
    padding-bottom: clamp(32px, 5vw, 48px);
    padding-bottom: 15px;
}

.projects__slider {
    position: relative;
    width: 100%;
    /* margin-top: 20px; */
    margin-bottom: 20px;
    height: calc(100vh - 40px);
    height: calc(100svh - 40px);
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    background: #dbdbdb;
    /* Індекс слайду (0…2) — лише CSS-анімація transform, без інлайну на треку */
    --projects-slide-index: 0;
}

.projects__slide-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.projects__slide-track {
    display: flex;
    height: 100%;
    width: calc(var(--projects-slide-count, 3) * 100%);
    will-change: transform;
    transform: translate3d(
        calc(-100% / var(--projects-slide-count, 3) * var(--projects-slide-index, 0)),
        0,
        0
    );
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects__slide-img {
    flex: 0 0 calc(100% / var(--projects-slide-count, 3));
    width: calc(100% / var(--projects-slide-count, 3));
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.projects__panel {
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: min(459px, calc(100% - 24px));
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 50px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: #fff;
    z-index: 1;
}

.projects__title {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    max-width: 330px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
}

.projects__meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
}

.projects__subtitle {
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
}

.projects__desc {
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16.1px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -3%;
    
}

.projects__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 20px;
}

.projects__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 50px;
    border-radius: 24px;
    background: #fff;
    color: #000;
    box-shadow: inset 0 0 0 0.75px rgba(0, 0, 0, 0.3);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.projects__nav-btn:hover {
    filter: brightness(0.97);
}

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

.projects__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    margin-top: 19px;
    padding: 24px 32px;
    background: var(--color-projects-footer);
    border-radius: 20px;
}

.projects__footer-text {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -2%;
    max-width: 467px;
    color: rgba(5, 38, 45, 0.7);
}

.projects__footer-cta {
    flex-shrink: 0;
}

/* Інженерні системи: шапка + сітка карток (Figma) */
.systems {
    background-color: var(--color-trust-bg);
    padding: clamp(60px, 8vw, 100px) 0;
}

.systems__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.systems__title {
    max-width: 421px;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: var(--color-ink);
}

.systems__intro {
    flex: 0 1 266px;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -3%;
    
    color: rgba(5, 38, 45, 0.7);
    text-align: left;
}

.systems__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.systems-card {
    min-width: 0;
}

.systems-card__link {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 456 / 350;
    min-height: 200px;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.systems-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 38, 45, 0.12);
}

.systems-card__link:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}

.systems-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        244.42deg,
        rgba(0, 0, 0, 0) 32.23%,
        rgba(0, 0, 0, 0.5) 95.59%
    );
    pointer-events: none;
    z-index: 1;
}

.systems-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.systems-card__img--1 {
    object-position: 42% 38%;
}

.systems-card__img--2 {
    object-position: 58% 55%;
}

.systems-card__img--3 {
    object-position: 35% 62%;
}

.systems-card__img--4 {
    object-position: 50% 40%;
}

.systems-card__img--5 {
    object-position: 65% 45%;
}

.systems-card__img--6 {
    object-position: 48% 52%;
}

.systems-card__label {
    position: absolute;
    left: 35px;
    right: clamp(16px, 2.5vw, 28px);
    bottom: 32px;
    z-index: 2;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -2%;
    color: #fff;    
}

/* Як проходить робота над проєктом */
.process {
    background-color: var(--color-trust-bg);
    padding: clamp(48px, 7vw, 80px) 0;
    padding-top: 0;
}

.process__panel {
    background: var(--color-process-panel);
    border-radius: 20px;
    padding: 70px 30px;
    max-width: 100%;
    overflow-x: clip;
}

.process__title {
    margin: 0 0 clamp(28px, 4vw, 40px);
    max-width: 480px;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: var(--color-ink);
}

.process__lede {
    margin: -8px 0 clamp(24px, 3vw, 32px);
    max-width: 420px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.85);
}

.process--cooperation .process__panel {
    padding-top: clamp(26px, 3vw, 34px);
}

.process-tile-strip--static .process-tile--strip {
    transition: none !important;
}

.process__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(12px, 2vw, 21px);
    min-width: 0;
    max-width: 100%;
}

.process__track {
    display: flex;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: var(--process-row-h);
}

.process-tile-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.process-tile {
    background: var(--color-process-tile);
    border-radius: 16px;
}

.process-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.process-tile__stage {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: var(--color-ink);
}

.process-tile__ic {
    display: grid;
    place-items: center;
    color: var(--color-ink);
    flex-shrink: 0;
}

.process-tile__ic--sm {
    margin-top: 4px;
}

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

.process-tile__ic-img--sm {
    width: 20px;
    height: 20px;
}

.process-tile__text {
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16.12px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
    max-width: 18em;
}

.process-tile__stack {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    isolation: isolate;
    overflow: hidden;
}

.process-tile__face--compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px 8px;
    box-sizing: border-box;
}

.process-tile__face--full {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 32px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.process-tile--strip .process-tile__ic {
    margin-bottom: auto;
}

.process-tile__vlabel {
    margin-top: auto;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -0.03em;

    color: var(--color-ink);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* ПК: акордеон 1–5 — активний етап задає клас .is-active (JS при mouseenter); після зняття курсора залишається останній обраний */
.process-tile--strip {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    align-self: stretch;
}

/* Desktop: смуга етапів і hover — у media.css (min-width: 769px); до 768px — акордеон у media.css */
.process__cta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex: 0 1 min(660px, 38%);
    min-width: 0;
    max-width: 660px;
    height: var(--process-row-h);
    min-height: var(--process-row-h);
    max-height: var(--process-row-h);
    padding: 16px 20px;
    box-sizing: border-box;
    border-radius: 16px;
    background: var(--color-ink);
    color: #fff;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.process__cta:hover {
    filter: brightness(1.06);
}

.process__cta:active {
    transform: translateY(1px);
}

.process__cta:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}

.process__cta-label {
    margin-top: auto;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -3%;
    
    max-width: 270px;
}

.process__cta-label__mobile {
    display: none;
}

.process__cta-badge {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--color-orange);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ——— Чому Safely: темна панель, світіння, скляні картки (макет 100:1024) ——— */
.why {
    padding: clamp(48px, 8vw, 100px) 0;
    background: #f3f5f5;
    padding-top: 0;
}

.why__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    min-height: min(850px, 92vh);
    isolation: isolate;
}

.why__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.why__bg-solid {
    position: absolute;
    inset: 0;
    background: #010101;
    border-radius: inherit;
}

.why__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 22% 45%;
    border-radius: inherit;
    pointer-events: none;
}

.why__bg-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            ellipse 55% 45% at 78% 22%,
            rgba(11, 66, 82, 0.45) 0%,
            transparent 62%
        ),
        radial-gradient(ellipse 80% 50% at 18% 72%, rgba(255, 187, 0, 0.05) 0%, transparent 55%),
        linear-gradient(
            105deg,
            rgba(1, 1, 1, 0.2) 0%,
            transparent 42%,
            rgba(1, 1, 1, 0.35) 100%
        );
    mix-blend-mode: normal;
    pointer-events: none;
}

.why__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 40px);
    min-width: 0;
    min-height: min(850px, 92vh);
    padding: 70px 0px 30px 0px;
}

.why__intro {
    width: min(451px, 100%);
    margin-left: auto;
    text-align: left;
    margin-right: 20%;;
}

.why__title {
    margin: 0;
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4.2vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #fff;
}

.why__lede {
    margin: 16px 0 0;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.why__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    min-height: 52px;
    padding: 14px 20px 14px 32px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255, 187, 0, 0.96);
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    -webkit-backdrop-filter: blur(19px);
    backdrop-filter: blur(19px);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.why__cta:hover {
    filter: brightness(1.05);
}

.why__cta:active {
    transform: translateY(1px);
}

.why__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.why__cta-label {
    flex: 1 1 auto;
    min-width: 0;
}

.why__cta-ic {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: var(--color-ink);
}

.why__cards-wrap {
    margin-top: auto;
    width: calc(100% + 2 * clamp(20px, 4vw, 62px));
    margin-left: calc(-1 * clamp(20px, 4vw, 62px));
    margin-right: calc(-1 * clamp(20px, 4vw, 62px));
    min-width: 0;
    padding: 4px 0 8px;
}

/* Вікно рядка; рух на ul.why__cards (анімація на самому списку) */
.why__cards-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2px 0;
    /* щоб translate3d не обрізався батьківським min-height:0 */
    min-height: 0;
}

.why__cards-marquee::before,
.why__cards-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(56px, 12vw);
    z-index: 2;
    pointer-events: none;
}

.why__cards-marquee::before {
    left: 0;
    /* зліва в темний фон панелі (#010101), без «світлої» кайми на склі */
    background: linear-gradient(90deg, #010101 0%, transparent 100%);
}

.why__cards-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #010101 0%, transparent 100%);
}

/* Рух рядка: assets/js/script.js (whyMarquee) задає transform по пікселях — без стрибків */
.why__cards {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    backface-visibility: hidden;
    will-change: transform;
}

.why__cards-marquee.is-marquee-active .why__cards {
    transform: translateZ(0);
}

.why__cards > li {
    display: flex;
    flex: 0 0 clamp(260px, 28vw, 320px);
    width: clamp(260px, 28vw, 320px);
    max-width: 320px;
}

.why-card {
    /* однакова ширина карток для безшовного циклу на ul */
    width: 100%;
    height: 100%;
    min-height: 280px;
    box-sizing: border-box;
    padding: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
}

.why-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--color-orange);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-bottom: 24px;
}

.why-card__icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.why-card__title {
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    margin-bottom: 15px;
    color: #fff;
}

.why-card__text {
    margin: 0;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16.1px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -3%;
    
    color: rgba(255, 255, 255, 0.7);
}

/* ——— Сервісне обслуговування (макет 100:1102) ——— */
.service {
    padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 100px);
    background: #f3f5f5;
}

.service__header {
    max-width: 525px;
    margin: 0 auto clamp(40px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.service__title {
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.service__lede {
    max-width: 399px;
    margin: 0;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.service__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.service__note {
    margin: 40px auto 0;
    max-width: 313px;
    font-family: Nekst;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--color-ink);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 350px;
    min-height: 510px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-ink);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    isolation: auto;
    height: -webkit-fill-available;
}

.service-card-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.service-card__badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 226px;
    height: 37px;
    padding: 11px 20px;
    border-radius: 8px;
    margin-bottom: -7px;
    background: rgba(255, 187, 0, 1);
    color: rgba(5, 38, 45, 1);
    font-family: Nekst;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    z-index: 0;
}

.service-card__badge--dark {
    width: 257px;
    background: rgba(5, 38, 45, 1);
    color: rgba(255, 255, 255, 1);
}

.service-card-stack--with-badge {
    padding-top: 0;
}

.service-card--premium {
    background: linear-gradient(145deg, #304d52 0%, #05262d 72%);
    box-shadow:
        0 12px 34px rgba(5, 38, 45, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
}

.service-card__tier {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
    color: #fff;
}

.service-card__desc {
    margin: -22px 0 0;
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.78);
}

.service-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.service-card__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.7);
}

.service-card__check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.service-card__check img,
.service-card__check svg {
    display: block;
    width: 16px;
    height: 16px;
}

.service-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.service-card__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.service-card__price-main {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    color: #fff;
}

.service-card__price-from {
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.service-card__price-value {
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.service-card__period {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.service-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    box-sizing: border-box;
    border-radius: var(--radius);
    background: rgba(255, 187, 0, 0.96);
    color: var(--color-ink);
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    
    text-decoration: none;
    -webkit-backdrop-filter: blur(19.5px);
    backdrop-filter: blur(19.5px);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.service-card__btn:hover {
    filter: brightness(1.04);
}

.service-card__btn:active {
    transform: translateY(1px);
}

.service-card__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.service-card__btn-ic {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ——— Форма заявки: консультація інженера (макет 100:1200) ——— */
.lead-form {
    padding: clamp(40px, 6vw, 52px) 0;
    background: #f3f5f5;
}

.lead-form__panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
}

.lead-form__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: #010101;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/form/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lead-form__inner {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 8vw, 70px) clamp(20px, 4vw, 48px) clamp(52px, 8vw, 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lead-form__intro {
    text-align: center;
    max-width: 618px;
    margin: 0 auto clamp(28px, 4vw, 29px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lead-form__title {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 52px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    text-align: center;
    
    color: #fff;
}

.lead-form__lede {
    margin: 0 auto;
    max-width: 453px;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.lead-form__form {
    position: relative;
    width: 100%;
    max-width: 518px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.lead-form__field {
    display: block;
}

.lead-form__vh {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lead-form__field input,
.lead-form__field textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: #fafafa;
    color: var(--color-ink);
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding: 18px 30px;
    min-height: 60px;
}

.lead-form__field textarea {
    min-height: 134px;
    resize: vertical;
}

.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder {
    color: rgba(5, 38, 45, 0.7);
    opacity: 1;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
    outline: 2px solid rgba(255, 187, 0, 0.95);
    outline-offset: 0;
}

.lead-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    box-sizing: border-box;
    border-radius: var(--radius);
    border: none;
    background: rgba(255, 187, 0, 0.96);
    color: var(--color-ink);
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    
    cursor: pointer;
    -webkit-backdrop-filter: blur(19.5px);
    backdrop-filter: blur(19.5px);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.lead-form__submit:hover {
    filter: brightness(1.04);
}

.lead-form__submit:active {
    transform: translateY(1px);
}

.lead-form__submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lead-form__submit-ic {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    max-width: none;
}

/* ——— Підвал (макет 100:1224) ——— */
.site-footer {
    padding: clamp(16px, 3vw, 20px) 0 clamp(32px, 5vw, 48px);
    background: #f3f5f5;
    padding-bottom: 12px;
}

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

.site-footer__main {
    border-radius: 10px;
    overflow: visible;
    background: #000;
}

.site-footer__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
    padding: 50px 32px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
}

.site-footer__logo {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 50px;
    max-width: 100%;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(40px, 8vw, 100px);
}

.site-footer__col {
    min-width: min(202px, 100%);
}

.site-footer__col-title {
    margin: 0 0 23px;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 21px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -3%;
    
    color: #fff;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-footer__list a {
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -3%;
    
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.site-footer__list a:hover {
    opacity: 0.85;
}

.site-footer__item {
    position: static;
}

.site-footer__dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: left;
    transition: opacity 0.15s ease;
}

.site-footer__dropdown-trigger:hover {
    opacity: 0.85;
}

.site-footer__chev {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.site-footer__has-dropdown.is-open .site-footer__chev {
    transform: rotate(180deg);
}

.site-footer__dropdown {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: max-height 0.35s ease;
}

.site-footer__has-dropdown.is-open .site-footer__dropdown {
    margin-top: 10px;
}

.site-footer__dropdown .nav-glass__dropdown-panel--footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 24px;
    box-sizing: border-box;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(5, 38, 45, 0.14);
}

.site-footer__dropdown .nav-glass__dropdown-link {
    color: rgba(5, 38, 45, 0.7);
    font-size: 14px;
    line-height: 1.2;
    opacity: 1;
}

.site-footer__dropdown .nav-glass__dropdown-link:hover,
.site-footer__dropdown .nav-glass__dropdown-link:focus-visible {
    color: var(--color-ink);
    font-weight: 700;
    opacity: 1;
}

.site-footer__to-top {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-orange);
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.site-footer__to-top:hover {
    filter: brightness(1.06);
}

.site-footer__to-top:active {
    transform: translateY(1px);
}

.site-footer__to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.site-footer__to-top img {
    max-width: 16px;
    max-height: 16px;
}

.site-footer__mid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 24px;
    padding: 0 clamp(20px, 4vw, 48px) clamp(20px, 3vw, 28px);
}

.site-footer__copy {
    justify-self: start;
    text-align: left;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.site-footer__copy-brand {
    margin-right: 16px;
    font-weight: 500;
}

.site-footer__copy-rest {
    font-weight: 400;
    opacity: 0.95;
}

.site-footer__tagline {
    justify-self: center;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
}

.site-footer__tagline-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
}

.site-footer__credit {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    text-decoration: none;
    color: inherit;
}

.site-footer__credit-logo {
    display: block;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
}

.site-footer__credit-text {
    max-width: min(200px, 28vw);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.6);
    max-width: 100px;
}

.site-footer__credit:hover .site-footer__credit-text {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__bar {
    border-radius: 10px;
    padding: 14px clamp(20px, 4vw, 48px);
    background: #fff;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.site-footer__bar-text {
    margin: 0;
    text-align: center;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
    
    color: #000;
}

/* ——— Модалка «Забронюйте дзвінок» ——— */
.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;
}

button.cta-card {
    font: inherit;
    color: inherit;
    text-align: left;
    border: none;
    appearance: none;
    -webkit-appearance: none;
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Закрито: підкладка opacity 0; visibility лише на панелі — щоб backdrop міг плавно зникати */
.site-modal--hidden {
    pointer-events: none;
}

.site-modal--hidden .site-modal__backdrop {
    opacity: 0;
}

.site-modal--hidden .site-modal__panel {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    visibility: hidden;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0s linear 0.28s;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 38, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 1;
    transition: opacity 0.35s ease;
}

.site-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 511px;
    overflow: hidden;
    border-radius: 10px;
    background: #eaeced;
    box-shadow: 0 24px 48px rgba(5, 38, 45, 0.2);
    flex-shrink: 0;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition:
        opacity 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.site-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    /* width: 40px;
    height: 40px; */
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #05262d;
    cursor: pointer;
    transition: background 0.15s ease;
}

.site-modal__close:hover {
    /* background: rgba(5, 38, 45, 0.08); */
}

.site-modal__body {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.site-modal__title {
    margin: 0;
    max-width: 411px;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    text-align: center;
    color: #05262d;
}

.site-modal__lead {
    margin: 0;
    max-width: 411px;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 125%;
    letter-spacing: -3%;
    text-align: center;
    
    text-align: center;
    color: #05262d;
    margin-top: -16px;
}

.site-modal__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 411px;
    margin: 0 auto;
}

.site-modal__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    background: #fafafa;
    font-family: Nekst, system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #05262d;
}

.site-modal__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.site-modal__input:focus {
    outline: 2px solid rgba(5, 38, 45, 0.35);
    outline-offset: 0;
}

.site-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 0;
    padding: 0px 24px;
    border: none;
    border-radius: 8px;
    background: #ffbb00;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    color: #05262d;
    cursor: pointer;
    margin-top: 10px;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.site-modal__submit:hover {
    filter: brightness(1.03);
}

.site-modal__submit:active {
    transform: scale(0.99);
}

.site-modal__submit:disabled,
.lead-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
    transform: none;
}

/* Honeypot: приховано від людей, не display:none (деякі боти це перевіряють) */
.site-modal__panel--review {
    max-width: 499px;
    background: #05262d;
    color: #fff;
}

.site-modal__close--on-dark {
    top: 21px;
    right: 20px;
}

.site-modal__body--review {
    padding: 60px 50px;
    gap: 32px;
}

.review-modal__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.review-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

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

.review-modal__field {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 19px 30px;
    border: none;
    border-radius: 10px;
    background: #fafafa;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #05262d;
}

.review-modal__field::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.review-modal__field:focus {
    outline: 2px solid rgba(255, 187, 0, 0.65);
    outline-offset: 0;
}

.review-modal__field--textarea {
    min-height: 134px;
    resize: vertical;
}

.review-modal__field:not(.review-modal__field--textarea) {
    min-height: 60px;
}

.review-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: -webkit-fill-available;
    /* min-height: 52px; */
    margin: 0;
    padding: 16px 32px;
    border: 0;
    border-radius: 8px;
    background: #ffbb00;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.review-modal__submit:hover {
    filter: brightness(1.03);
}

.review-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
}

.review-modal__step[hidden] {
    display: none !important;
}

.review-modal__step--form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.review-modal__step--success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

#modal-review.is-review-success .site-modal__body--review {
    gap: 0;
}

.review-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.review-modal__success-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 4px;
}

.review-modal__check-svg {
    display: block;
    width: 72px;
    height: 72px;
}

.review-modal__check-circle {
    stroke: #ffbb00;
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.review-modal__check-mark {
    stroke: #ffbb00;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.review-modal__success.is-animating .review-modal__check-circle {
    animation: reviewCheckCircle 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.review-modal__success.is-animating .review-modal__check-mark {
    animation: reviewCheckMark 0.4s 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.review-modal__success.is-animating .review-modal__success-icon {
    animation: reviewCheckPop 0.5s 0.15s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.review-modal__success.is-animating .review-modal__success-title {
    animation: reviewSuccessFade 0.45s 0.75s ease forwards;
}

.review-modal__success.is-animating .review-modal__success-text {
    animation: reviewSuccessFade 0.45s 0.9s ease forwards;
}

.review-modal__success.is-animating .review-modal__success-btn {
    animation: reviewSuccessFade 0.45s 1.05s ease forwards;
}

.review-modal__success-title,
.review-modal__success-text,
.review-modal__success-btn {
    opacity: 0;
    transform: translateY(8px);
}

.review-modal__success.is-animating .review-modal__success-title,
.review-modal__success.is-animating .review-modal__success-text,
.review-modal__success.is-animating .review-modal__success-btn {
    opacity: 0;
}

.review-modal__success:not(.is-animating) .review-modal__success-title,
.review-modal__success:not(.is-animating) .review-modal__success-text,
.review-modal__success:not(.is-animating) .review-modal__success-btn {
    opacity: 1;
    transform: none;
}

@keyframes reviewCheckCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes reviewCheckMark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes reviewCheckPop {
    from {
        opacity: 0;
        transform: scale(0.55);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes reviewSuccessFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal__success-title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.review-modal__success-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
}

.review-modal__success-btn {
    margin-top: 8px;
    width: 100%;
}

.site-modal__body--review:has([data-review-step="success"]:not([hidden])) {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* ——— Модалка кошика (Figma S-1) ——— */
.site-modal__panel--cart {
    max-width: min(1069px, 96vw);
    background: #fff;
}

.cart-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(18px, 3.4vw, 36px);
    max-height: min(697px, calc(100vh - 48px));
    box-sizing: border-box;
}

.cart-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cart-modal__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #05262d;
}

.cart-modal__close {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #05262d;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cart-modal__close:hover {
    background: #ebebeb;
}

[data-cart-modal-dynamic] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.cart-modal__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
}

.cart-modal__empty {
    margin: 0;
    padding: 24px 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(5, 38, 45, 0.7);
    text-align: center;
}

.cart-modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-modal__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.cart-modal__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    pointer-events: none;
}

.cart-modal__card.is-loading .cart-modal__card-overlay {
    display: flex;
}

.cart-modal__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(5, 38, 45, 0.12);
    border-top-color: #3a6436;
    border-radius: 50%;
    animation: cart-modal-spin 0.65s linear infinite;
}

@keyframes cart-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-modal__spinner {
        animation: none;
        border-top-color: #3a6436;
        opacity: 0.85;
    }
}

.cart-modal.is-cart-busy .cart-modal__checkout {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-modal__total.is-animating {
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.cart-modal__card-main {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.cart-modal__thumb {
    flex-shrink: 0;
    width: 96px;
    height: 91px;
    object-fit: contain;
}

.cart-modal__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cart-modal__name {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
    color: #000;
}

.cart-modal__brand {
    margin: 0;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -4%;
    
    color: #b2b2b2;
}

.cart-modal__card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.cart-modal__price {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    
    color: #000;
    white-space: nowrap;
}

.cart-modal__price-old {
    font-size: 16px;
    line-height: 1.1;
    color: rgba(5, 38, 45, 0.55);
    text-decoration: line-through;
}

.cart-modal__price-new {
    line-height: 1;
}

.cart-modal__discounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cart-modal__discount-line {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(5, 38, 45, 0.75);
}

.cart-modal__discount-line strong {
    font-weight: 600;
    color: #3a6436;
}

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

.cart-modal__icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #05262d;
    cursor: pointer;
}

.cart-modal__icon-btn:hover {
    background: #f4f4f4;
}

.cart-modal__qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 168px;
    height: 47px;
    padding: 0 24px;
    border-radius: 12px;
    background: #f3f5f5;
    box-sizing: border-box;
}

.cart-modal__qty-btn {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #05262d;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.cart-modal__qty-value {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #05262d;
}

.cart-modal__extras {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.cart-modal__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cart-modal__checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cart-modal__checkbox-box {
    position: relative;
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    border: 2px solid #000;
    border-radius: 13px;
    box-sizing: border-box;
}

.cart-modal__checkbox input:checked + .cart-modal__checkbox-box::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #000;
}

.cart-modal__checkbox-label {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    
    color: #000;
}

.cart-modal__benefits {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 20px;
    border-radius: 8px;
    background: #f3f5f5;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 11.3px;
    line-height: 1.3;
    color: #000;
}

.cart-modal__benefits-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffbb00;
    flex-shrink: 0;
}

.cart-modal__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 56px;
}

.cart-modal__pricing {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(5, 38, 45, 0.08);
}

.cart-modal__pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 2px 0;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #05262d;
}

.cart-modal__pricing-row--discount .cart-modal__pricing-value {
    color: #3a6436;
    font-weight: 600;
}

.cart-modal__total-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.cart-modal__total {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -5%;
    text-transform: uppercase;
    
    color: #3a6436;
}

.cart-modal__total-label {
    margin: 0;
    max-width: 105px;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -4%;
    
    color: #000;
}

.cart-modal__checkout {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 280px;
    min-width: min(100%, 462px);
    max-width: 462px;
    margin-left: auto;
    min-height: 55px;
    padding: 0 27px;
    border: 0;
    border-radius: 12px;
    background: #05262d;
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.cart-modal__checkout:hover {
    filter: brightness(1.06);
}

.cart-modal__checkout-icon {
    flex-shrink: 0;
}

.cart-modal__continue {
    flex: 1 0 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    color: #b2b2b2;
    text-align: left;
    cursor: pointer;
}

.cart-modal__continue:hover {
    color: #05262d;
}

.form-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Toast після відправки форми — темне «скло» в стилі сайту */
.site-toast {
    position: fixed;
    z-index: 2147483200;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(calc(100% + 32px));
    max-width: min(440px, calc(100vw - 40px));
    padding: 16px 20px 16px 18px;
    border-radius: 14px;
    font-family: Nekst, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: rgba(250, 251, 252, 0.96);
    text-align: left;
    background: rgba(5, 38, 45, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid rgba(255, 187, 0, 0.85);
    box-shadow:
        0 4px 0 rgba(255, 187, 0, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.site-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.site-toast--ok {
    border-left-color: #ffbb00;
    box-shadow:
        0 4px 0 rgba(255, 187, 0, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-toast--err {
    border-left-color: #ff7a67;
    box-shadow:
        0 4px 0 rgba(255, 122, 103, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ——— Burger navigation overlay ——— */
.burger-nav {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    width: 100%;
    height: 100svh;
    background: var(--color-ink);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* closed state */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.burger-nav:not(.is-open):not(.is-closing) {
    overflow: hidden;
}

.burger-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;
}

.burger-nav.is-closing {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.42s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.3s ease;
}

.burger-nav__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 12px;
    gap: 12px;
}

.burger-nav__brand {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.burger-nav__brand img {
    display: block;
    width: auto;
}

.burger-nav__close {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 8px;
    border: none;
    background: #fff;
    -webkit-backdrop-filter: blur(19px);
    backdrop-filter: blur(19px);
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.15s ease;
}

.burger-nav__close:hover {
    filter: brightness(0.95);
}

.burger-nav__body {
    flex: 0 0 auto;
    overflow: visible;
}

.burger-nav__scroll {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100svh - 72px);
    padding: 8px 12px 0;
    box-sizing: border-box;
}

.burger-nav__menu {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 8px 0 16px;
    overflow: visible;
}

.burger-nav__item--dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: visible;
}

.burger-nav__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: none;
    background: none;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.burger-nav__trigger:hover {
    opacity: 0.75;
}

.burger-nav__chev {
    flex-shrink: 0;
    margin-top: 1px;
    transition: transform 0.25s ease;
    filter: brightness(0) invert(1);
}

.burger-nav__item--dropdown.is-open .burger-nav__chev {
    transform: rotate(180deg);
}

.burger-nav__dropdown {
    width: 100%;
    overflow: visible;
    max-height: none;
}

.burger-nav__dropdown[hidden] {
    display: none;
}

.burger-nav__dropdown-panel {
    background: #fafafa;
    border-radius: 8px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    align-items: start;
    overflow: visible;
    max-height: none;
    height: auto;
}

.burger-nav__dropdown-col {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.burger-nav__dropdown-link {
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.burger-nav__dropdown-link:hover {
    opacity: 1;
}

.burger-nav__dropdown-link--lead {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    opacity: 1;
}

.burger-nav__link {
    display: block;
    width: 100%;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.burger-nav__link:hover {
    opacity: 0.65;
}

.burger-nav__actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: auto 0 0;
    padding: 24px 0 max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.burger-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 41px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 8px;
    border: none;
    background: #fff;
    -webkit-backdrop-filter: blur(19px);
    backdrop-filter: blur(19px);
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.burger-nav__btn img {
    display: block;
    flex-shrink: 0;
}

.burger-nav__btn:hover {
    filter: brightness(0.96);
}

.home-parallax {
    padding: 24px 0 0;
    background: #f3f5f5;
    max-width: 100%;
}

.home-parallax__sticky {
    height: 300vh;
    position: relative;
}

.home-parallax__sticky-content {
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 20px 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-parallax__window {
    width: 100%;
    height: 100%;
    background: #051417;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/paralax/bg.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}



.home-parallax__blocks {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    will-change: transform;
    z-index: 5;
}

.home-parallax__item {
    position: absolute;
    z-index: 10;
}

.home-parallax__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.home-parallax__title {
    color: #fff;
    font-family: Nekst, sans-serif;
    font-size: clamp(36px, 4.1vw, 52px);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.home-parallax__badge {
    background: #ffbb00;
    color: #05262d;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.home-parallax__badge:hover {
    opacity: 0.9;
}

.home-parallax__badge svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #05262d;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-parallax__card {
    width: 320px;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-parallax__icon-box {
    width: 44px;
    height: 44px;
    background: #ffbb00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-parallax__icon-box img {
    width: 24px;
    height: 24px;
    display: block;
}

.home-parallax__card-title {
    color: #fff;
    font-family: Nekst, sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 14px;
    line-height: 1.3;
}

.home-parallax__card-text {
    color: rgba(255, 255, 255, 0.65);
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.home-parallax__card--service { top: 50px; left: 55%; }
.home-parallax__card--reliability { top: 250px; left: 6%; }
.home-parallax__header--center { top: 430px; left: 50%; transform: translateX(-50%); width: min(92%, 480px); }
.home-parallax__card--terms { top: 570px; right: 6%; }
.home-parallax__card--price { top: 750px; left: 30%; }
.home-parallax__card--communication { top: 1000px; left: 6%; }
.home-parallax__card--docs { top: 1150px; left: 55%; }

/* ============================================================
   Блок «Розрахуємо вартість ваших систем» (home-cost)
   ============================================================ */
.cost {
    background: #f3f5f5;
    padding: clamp(48px, 6vw, 88px) 0;
}

/* Сітка з 3 колонок: інтро | поля | submit.
   .cost__grid — це <form>; display: contents у дочірніх hidden inputs
   все одно лишає їх невидимими, а grid бачить .cost__intro / .cost__fields / .cost__submit. */
.cost__grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 422px) minmax(280px, 380px);
    gap: 24px;
    align-items: stretch;
}

.cost__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    /* padding: clamp(16px, 2vw, 32px) clamp(8px, 1vw, 24px) clamp(16px, 2vw, 32px) 0; */
}

.cost__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 90%;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    max-width: 18ch;
}

.cost__lede {
    font-family: Nekst;
    font-weight: 400;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -3%;
    color: rgba(5, 38, 45, 0.7);
    max-width: 270px;
}

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

.cost__field {
    display: block;
}

.cost__input {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 30px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    transition: border-color 0.15s ease;
    outline: none;
}

.cost__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.cost__input:focus-visible {
    border-color: var(--color-orange);
}

.cost__textarea {
    height: auto;
    min-height: 134px;
    padding: 20px 30px;
    resize: vertical;
}

.cost__submit {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 32px;
    background: var(--color-orange);
    color: var(--color-ink);
    border-radius: 10px;
    /* min-height: 266px; */
    text-align: left;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.cost__submit:hover {
    filter: brightness(0.96);
}

.cost__submit:active {
    transform: translateY(1px);
}

.cost__submit-ic {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-ink);
    border-radius: 4px;
}

.cost__submit-ic img {
    width: 20px;
    height: 20px;
}

.cost__submit-label {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 105%;
    letter-spacing: -2%;
    
}

/* Планшет: інтро на всю ширину, форма + кнопка — 2 колонки. */
/* Мобільний: усе в одну колонку. */
/* ============================================================
   Блок-квіз «Розрахуйте інженерне рішення» (home-quiz) — 5 кроків
   Фото: assets/image/test/ (кроки 1–2)
   ============================================================ */
.quiz {
    background: #f3f5f5;
    padding: 0 0 clamp(48px, 6vw, 80px);
    padding-bottom: 0;
}

/* ---------- Маркі-стрічка зверху (data-quiz-marquee + script.js) ---------- */
.quiz__marquee {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
    color: var(--color-ink);
    contain: layout style;
    margin-bottom: 140px;
}

.quiz__marquee::before,
.quiz__marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(64px, 12vw);
    z-index: 2;
    pointer-events: none;
}

.quiz__marquee::before {
    left: 0;
    background: linear-gradient(90deg, #f3f5f5 0%, transparent 100%);
}

.quiz__marquee::after {
    right: 0;
    background: linear-gradient(270deg, #f3f5f5 0%, transparent 100%);
}

.quiz__marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    backface-visibility: hidden;
    will-change: transform;
}

.quiz__marquee.is-marquee-active .quiz__marquee-track {
    transform: translateZ(0);
}

.quiz__marquee-group {
    display: flex;
    align-items: center;
    gap: 45px;
    flex-shrink: 0;
    padding-inline-end: 45px;
}

.quiz__marquee-text {
    flex-shrink: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 56px);
    line-height: 0.8;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.quiz__marquee-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 16px 32px;
    background: var(--color-ink);
    color: #fff;
    border-radius: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.quiz__marquee-cta img {
    filter: brightness(0) invert(1);
}

/* ---------- Внутрішня панель ---------- */
.quiz__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 444px) minmax(0, 1fr);
    gap: 96px;
    padding: 56px 62px;
    background: #eaecec;
    border-radius: 20px;
}

.quiz__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.quiz__title {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
}

.quiz__lede {
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: -3%;
    
    color: rgba(5, 38, 45, 0.7);
    max-width: 32ch;
}

/* ---------- Форма / Крок ---------- */
.quiz__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    container-type: inline-size;
    container-name: quiz-form;
}

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

.quiz__progress-seg {
    height: 4px;
    border-radius: 10px;
    background: #ccd0d0;
}

.quiz__progress-seg--done {
    background: var(--color-ink);
}

.quiz__steps {
    display: grid;
}

/* Однакова висота контенту на всіх кроках (без стрибків при «Далі») */
.quiz__step-body {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    /* розмір одного квадрата кроків 1–2 (3 колонки) */
    --quiz-card-size: calc((100cqw - 12px) / 3);
    --quiz-step-content-h: calc(var(--quiz-card-size) * 2 + 6px);
}

.quiz__step-body:has(.quiz__grid--photo) {
    min-height: var(--quiz-step-content-h);
}

.quiz__step-body--form {
    gap: 16px;
    justify-content: flex-start;
}

@media (min-width: 761px) {
    .quiz__step-body:has(.quiz__grid--dark),
    .quiz__step-body--form {
        min-height: var(--quiz-step-content-h);
    }
}

.quiz__step-body .quiz__grid {
    flex: 1;
    align-content: start;
    width: 100%;
}

.quiz__step {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 27px;
    animation: quiz-step-in 0.28s ease;
}

.quiz__step[hidden] {
    display: none !important;
}

@keyframes quiz-step-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.quiz__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--color-orange);
    color: var(--color-ink);
    border-radius: 4px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.quiz__badge-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-ink);
    opacity: 0.7;
}

.quiz__badge-text,
.quiz__badge-num {
    opacity: 0.7;
}

.quiz__question {
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
    color: var(--color-ink);
}

/* ---------- Сітка опцій (фото 3×2, темні 2×2) ---------- */
.quiz__grid {
    display: grid;
    gap: 6px;
}

.quiz__grid--photo {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.quiz__grid--photo > .quiz__opt {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
}

.quiz__opt {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f4f4f4;
    transition:
        outline-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        background-color 0.15s ease;
    outline: 3px solid transparent;
    outline-offset: 2px;
}

.quiz__opt-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.quiz__opt-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.quiz__opt-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Темна напівпрозора підкладка під текстом (внизу картки) */
.quiz__opt-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.quiz__opt-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1;
    color: #f3f5f5;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@media (min-width: 761px) {
    .quiz__opt-label-br--mobile {
        display: none;
    }
}

.quiz__opt:hover:not(:has(.quiz__opt-input:checked)) {
    transform: translateY(-2px);
}

.quiz__opt:has(.quiz__opt-input:checked) {
    outline-color: var(--color-orange);
    outline-offset: 0;
    box-shadow: 0 0 0 1px var(--color-orange);
    z-index: 1;
}

.quiz__opt:has(.quiz__opt-input:checked)::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--color-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7L5.5 10L11.5 4' stroke='%2305262d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.quiz__opt--photo:has(.quiz__opt-input:checked) .quiz__opt-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 187, 0, 0.28);
    pointer-events: none;
}

.quiz__opt:has(.quiz__opt-input:focus-visible) {
    outline-color: var(--color-orange);
}

/* Крок 1 — фото: assets/image/test/ */
.quiz__opt--lighting .quiz__opt-media {
    background-color: #5a4a32;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/osvitlennia.jpg");
}
.quiz__opt--cctv .quiz__opt-media {
    background-color: #2d3e49;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/videosposterezhennia.png");
}
.quiz__opt--alarm .quiz__opt-media {
    background-color: #5a2a26;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/syhnalizatsiia.png");
}
.quiz__opt--climate .quiz__opt-media {
    background-color: #3a5f6f;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/klimat-kontrol.png");
}
.quiz__opt--other .quiz__opt-media {
    background-color: #5a6062;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Інше.png");
}
.quiz__opt--full .quiz__opt-media {
    background-color: var(--color-ink);
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/povnyi-kompleks.png");
}

/* Крок 2 — тип обʼєкта */
.quiz__opt--apartment .quiz__opt-media {
    background-color: #3d4548;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Квартира.png");
}
.quiz__opt--house .quiz__opt-media {
    background-color: #3a4a52;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Приватний будинок.png");
}
.quiz__opt--office .quiz__opt-media {
    background-color: #2f3f48;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Офіс.png");
}
.quiz__opt--commercial .quiz__opt-media {
    background-color: #2a3540;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Комерційне приміщення.png");
}
.quiz__opt--warehouse .quiz__opt-media {
    background-color: #353c40;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/Склад виробництво.png");
}
.quiz__opt--object-other .quiz__opt-media {
    background-color: #353c40;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/test/inshe-etap-2.png");
}

/* Кроки 3–4 — темні картки, сітка 2×2 (прямокутники, не квадрати) */
.quiz__grid--dark {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.quiz__grid--dark > .quiz__opt {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

@media (min-width: 761px) {
    .quiz__grid--dark {
        grid-template-rows: repeat(2, var(--quiz-card-size, 158px));
    }

    .quiz__grid--dark > .quiz__opt {
        height: 100%;
        min-height: var(--quiz-card-size, 158px);
    }
}

.quiz__opt--dark {
    box-sizing: border-box;
    padding: 14px 16px;
    background: var(--color-ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
}

.quiz__opt--dark:has(.quiz__opt-input:checked) {
    background: #0f4a57;
    box-shadow:
        inset 0 0 0 2px var(--color-orange),
        0 0 0 2px var(--color-orange);
    outline-color: var(--color-orange);
}

.quiz__opt--dark:has(.quiz__opt-input:checked) .quiz__opt-icon {
    background: rgba(255, 187, 0, 0.2);
}

.quiz__opt--dark .quiz__opt-shade,
.quiz__opt--dark .quiz__opt-label {
    display: none;
}

.quiz__opt--dark .quiz__opt-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.quiz__opt--dark .quiz__opt-icon img {
    display: block;
}

.quiz__opt--dark .quiz__opt-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #f3f5f5;
}

.quiz__opt-title {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.quiz__opt-sub {
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgba(243, 245, 245, 0.75);
}

/* Крок 5 — контакти */
.quiz__finish-lead {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
    max-width: 607px;
    color: var(--color-ink);
}

.quiz__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz__field {
    display: block;
}

.quiz__input {
    display: block;
    width: 100%;
    min-height: 53px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fafafa;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.quiz__textarea {
    min-height: 100px;
    padding: 16px 24px;
    resize: vertical;
}

.quiz__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.quiz__input:focus-visible {
    border-color: var(--color-orange);
}

/* ---------- Навігація ---------- */
.quiz__actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.quiz__actions--start {
    grid-template-columns: minmax(0, 250px);
    justify-content: end;
    justify-items: end;
}

.quiz__actions--mid,
.quiz__actions--finish {
    grid-template-columns: auto auto;
    justify-content: end;
    justify-items: end;
}

.quiz__actions--mid .quiz__next,
.quiz__actions--finish .quiz__submit {
    width: auto;
    min-width: 140px;
    max-width: 250px;
}

[data-quiz-back][hidden],
[data-quiz-next][hidden],
[data-quiz-submit][hidden] {
    display: none !important;
}

.quiz__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 140px;
    max-width: 210px;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.quiz__back:hover { filter: brightness(1.06); }
.quiz__back:active { transform: translateY(1px); }

.quiz__back-ic {
    flex-shrink: 0;
}

.quiz__next,
.quiz__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: -webkit-fill-available;
    min-width: 0;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.quiz__next {
    background: var(--color-orange);
    color: var(--color-ink);
}

.quiz__submit {
    background: var(--color-orange);
    color: var(--color-ink);
}

.quiz__next:hover,
.quiz__submit:hover {
    filter: brightness(0.96);
}

.quiz__next:active,
.quiz__submit:active {
    transform: translateY(1px);
}

.quiz__next-ic,
.quiz__submit-ic {
    flex-shrink: 0;
}

.quiz__submit-ic {
    flex-shrink: 0;
}

/* ---------- Адаптив ---------- */
/* ============================================================
   «Обладнання перевірене часом» (ownership-verified-over-time)
   ============================================================ */
.ownership-verified {
    padding: 0;
    background: #f3f5f5;
}

.ownership-verified__panel {
    position: relative;
    min-height: clamp(520px, 58vw, 834px);
    border-radius: 20px;
    overflow: hidden;
    background-color: #010101;
    background-image: var(--ownership-verified-bg-desktop, url("https://safely.com.ua/wp-content/themes/safely/assets/image/ownership-verified-over-time/bg.png"));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.ownership-verified__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: inherit;
    padding: clamp(40px, 5vw, 70px) clamp(24px, 4vw, 62px) clamp(32px, 4vw, 48px);
}

.ownership-verified__intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 516px;
}

.ownership-verified__title {
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 52px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: #fff;
}

.ownership-verified__lede {
    font-family: Nekst;
    font-weight: 400;
    font-style: Medium;
    font-size: 16.1px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -3%;
    max-width: 410px;    
    color: #fff;
}

/* Декстоп: декоративне фото між текстом і кнопками не показуємо (лише mobile у media.css) */
.ownership-verified__bg-element {
    display: none;
}

.ownership-verified__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
    align-self: flex-end;
    width: 100%;
    max-width: 380px;
}

.ownership-verified__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 0 1 380px;
    width: min(100%, 380px);
    max-height: 105px;
    padding: 16px 24px 24px;
    border-radius: 10px;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.ownership-verified__card:hover {
    filter: brightness(0.97);
    transform: translateY(-2px);
}

.ownership-verified__card-ic {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-ink);
    border-radius: 4px;
}

.ownership-verified__card-label {
    /* padding-right: 52px; */
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 105%;
    letter-spacing: -2%;
    
}

.ownership-verified__card--light {
    background: #fafafa;
    color: var(--color-ink);
}

.ownership-verified__card--accent {
    background: var(--color-orange);
    color: var(--color-ink);
}

/* ——— Каталог брендів ——— */
.page-catalog {
    background: var(--color-page);
    color: var(--color-ink);
}

.page-catalog main {
    background: var(--color-page);
}

.page-about-stub .page-stub {
    padding: 48px 0 120px;
}

.page-stub__inner {
    max-width: 640px;
}

.page-stub__title {
    margin: 0 0 16px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.page-stub__text {
    margin: 0 0 28px;
    font-family: Nekst, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

.page-stub__link {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    background: #05262d;
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.page-stub__link:hover {
    opacity: 0.9;
}

/* Темний fixed-хедер: каталог, бренди, товар, категорія */
main:has(> .site-header--dark) {
    padding-top: var(--header-dark-offset);
}

/* Thank-you: без плаваючого кошика */
.page-checkout-thank main:has(> .site-header--dark) {
    padding-top: calc(30px + var(--header-h) + 30px + 16px);
}

/*
 * Головна: без горизонтального скролу на рівні секцій.
 * .home-parallax не чіпаємо — там position: sticky; overflow на предках його ламає.
 */
main[data-page="home"] > :not(.home-parallax):not(.hero) {
    overflow-x: clip;
    max-width: 100%;
}

@supports not (overflow: clip) {
    main[data-page="home"] > :not(.home-parallax):not(.hero) {
        overflow-x: hidden;
    }
}

@media (max-width: 1100px) {
    main[data-page="home"] .reviews-home__head {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    }

    main[data-page="home"] .reviews-home__head > * {
        min-width: 0;
    }
}

/* Головна: після hero — fixed dark header, відступ для першої секції */
.trust {
    transition: padding-top 0.5s ease, padding-bottom 0.5s ease;
}

html.home-header-pinned .trust {
    padding-top: calc(100px + 102px);
}

/*
 * Fixed-хедер у hero: z-index 1000 лише всередині .hero__content (z-index: 1),
 * тому фейди слайдера .trust (пізніше в DOM) малюються поверх.
 * Піднімаємо stacking context hero над рештою main (головна + about).
 */
html.home-header-pinned main[data-page="home"] > .hero,
html.home-header-pinned main[data-page="about"] > .hero,
html.home-header-pinned main[data-page="service-page"] > .hero {
    position: relative;
    z-index: 1000;
}

html.home-header-pinned main[data-page="home"] > *:not(.hero):not(.site-modal):not(.site-toast):not(.burger-nav),
html.home-header-pinned main[data-page="about"] > *:not(.hero):not(.site-modal):not(.site-toast):not(.burger-nav),
html.home-header-pinned main[data-page="service-page"] > *:not(.hero):not(.site-modal):not(.site-toast):not(.burger-nav) {
    position: relative;
    z-index: 1;
}

/* Модалки / бургер — не перекривати position: fixed (інакше кошик не відкривається) */
html.home-header-pinned main[data-page="home"] > .site-modal,
html.home-header-pinned main[data-page="home"] > .burger-nav,
html.home-header-pinned main[data-page="about"] > .site-modal,
html.home-header-pinned main[data-page="about"] > .burger-nav,
html.home-header-pinned main[data-page="service-page"] > .site-modal,
html.home-header-pinned main[data-page="service-page"] > .burger-nav {
    position: fixed;
}

.catalog-page {
    padding-bottom: clamp(48px, 6vw, 88px);
}

.catalog-page__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.catalog-breadcrumbs {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--color-ink);
}

.catalog-breadcrumbs a,
.catalog-breadcrumbs [aria-current="page"] {
    display: inline;
    color: inherit;
    text-decoration: none;
}

.catalog-breadcrumbs a:hover {
    text-decoration: underline;
}

.catalog-breadcrumbs__sep {
    display: inline;
    margin: 0 8px;
    font-size: 10px;
    line-height: 1;
    vertical-align: 0.05em;
    color: #05262d;
}

.catalog-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-hero__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: var(--color-ink);
}

.catalog-hero__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -2%;
    
    color: rgba(5, 38, 45, 0.7);
}

.catalog-hero__hint-icon {
    flex-shrink: 0;
    display: block;
    color: var(--color-ink);
}

.catalog-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-alpha__btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
    color: var(--color-ink);
    background: #fafbfb;
    border: 1px solid rgba(178, 178, 178, 0.2);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-alpha__btn:hover:not(.catalog-alpha__btn--empty):not(.catalog-alpha__btn--active) {
    border-color: rgba(5, 38, 45, 0.25);
    background: #fff;
}

.catalog-alpha__btn--active {
    color: var(--color-white);
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.catalog-alpha__btn--empty {
    opacity: 0.35;
    pointer-events: none;
}

.catalog-brands {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.catalog-brands__row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.catalog-brands__letter {
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--color-white);
    background: var(--color-ink);
}

.catalog-brands__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 217px));
    gap: 15px 8px;
    flex: 1;
    min-width: 0;
}

.catalog-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 132px;
    padding: 16px 20px;
    border-radius: 16px;
    box-sizing: border-box;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    color: var(--color-ink);
    background: #fff;
    text-transform: uppercase;
    overflow-wrap: break-word;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.catalog-brand-card--split {
    flex-direction: column;
    gap: 0.12em;
    overflow-wrap: normal;
}

.catalog-brand-card--split .catalog-brand-card__line {
    display: block;
    max-width: 100%;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.catalog-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.page-catalog .site-footer,
.page-brand .site-footer,
.page-product .site-footer,
.page-checkout-thank .site-footer {
    margin-top: 0;
}

/* ——— Сторінка бренду (товари) ——— */
.page-brand {
    background: var(--color-page);
    color: var(--color-ink);
}

.brand-page {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.brand-page__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 40px);
}

.brand-page__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 64px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -2%;
    
    color: var(--color-ink);
    margin-top: -16px;
    margin-bottom: 10px;
}

.brand-page__empty {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(5, 38, 45, 0.72);
}

.safely-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: clamp(24px, 3vw, 36px) 8px;
    color: rgba(5, 38, 45, 0.72);
}

.safely-empty-state__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    color: rgba(5, 38, 45, 0.45);
}

.safely-empty-state__icon svg {
    width: 100%;
    height: 100%;
}

.safely-empty-state__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
}

.brand-products__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-products__item {
    min-width: 0;
}

.brand-product-card {
    position: relative;
    height: 100%;
    min-height: 368px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.brand-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 368px;
    padding-bottom: 52px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

.brand-product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 180px;
    padding: clamp(32px, 4vw, 50px) 20px 0;
    box-sizing: border-box;
}

.brand-product-card__media img {
    display: block;
    max-width: 100%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.brand-product-card__media:has(img.catalog-product-img.is-missing) {
    background: #eef1f1;
}

img.catalog-product-img.is-missing {
    max-width: 72px;
    max-height: 72px;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.brand-product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-in-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 4px 8px 4px 6px;
    border-radius: 4px;
    background: #3a6436;
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.1;
}

.catalog-in-stock__icon {
    display: block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.brand-product-card__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -3%;
    
    color: rgba(5, 38, 45, 0.7);
}

.brand-product-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.brand-product-card__price {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1;
    color: var(--color-ink);
}

.brand-product-card__price-old {
    font-family: Nekst;
    font-weight: 400;
    font-style: Regular;
    font-size: 16.04px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    text-decoration: line-through;
    
    color: rgba(5, 38, 45, 0.7);
    text-decoration: line-through;
}

.brand-product-card__personal-note {
    margin: 4px 0 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    color: #3a6436;
}

.brand-product-card__cart {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 41px;
    height: 40px;
    border: 0;
    padding: 0;
    border-radius: 6px;
    background: var(--color-ink);
    cursor: pointer;
}

.catalog-cart {
    display: block;
    width: 32px;
    height: 32px;
}

.brand-page__more-wrap[hidden],
.catalog-category__more-wrap[hidden] {
    display: none !important;
}

.brand-page__more-wrap {
    display: flex;
    justify-content: center;
    padding-top: clamp(8px, 2vw, 16px);
}

.brand-page__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 32px;
    border: 0;
    border-radius: 8px;
    background: #ffbb00;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.brand-page__more:hover {
    filter: brightness(1.03);
}

.brand-page__more:active {
    transform: translateY(1px);
}

/* ——— Каталог: категорія + фільтри ——— */
.catalog-category {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.catalog-category__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    overflow: visible;
}

.catalog-category {
    overflow: visible;
}

.catalog-category__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.catalog-category__masthead {
    margin-bottom: 0;
    overflow: visible;
}

.catalog-category__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px clamp(24px, 4vw, 48px);
}

.catalog-category__title-row .catalog-category__title {
    flex: 1 1 auto;
    min-width: 0;
}

.catalog-category__hint {
    flex: 0 0 auto;
    align-items: flex-start;
    max-width: 249px;
    margin: clamp(8px, 1.5vw, 12px) 0 0;
}

.catalog-category__hint-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.catalog-types {
    --catalog-types-pad-l: max(var(--page-pad), env(safe-area-inset-left));
    --catalog-types-pad-r: max(var(--page-pad), env(safe-area-inset-right));
    width: calc(100% + var(--catalog-types-pad-l) + var(--catalog-types-pad-r));
    max-width: none;
    margin-top: clamp(20px, 2.5vw, 32px);
    margin-bottom: clamp(24px, 3vw, 40px);
    margin-left: calc(-1 * var(--catalog-types-pad-l));
    margin-right: calc(-1 * var(--catalog-types-pad-r));
    padding-left: var(--catalog-types-pad-l);
    padding-right: var(--catalog-types-pad-r);
    overflow: visible;
    box-sizing: border-box;
}

.catalog-types__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.catalog-types__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.1;
    color: var(--color-ink);
}

.catalog-types__nav {
    display: flex;
    gap: 6px;
}

.catalog-types__nav.is-hidden {
    display: none;
}

.catalog-types__arrow {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: var(--color-ink);
    color: #fff;
    cursor: pointer;
}

.catalog-types__arrow--prev svg {
    transform: rotate(-90deg);
}

.catalog-types__arrow--next svg {
    transform: rotate(90deg);
}

.catalog-types__track-wrap {
    overflow: visible;
    width: 100%;
}

.catalog-types__track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.catalog-types__track::-webkit-scrollbar {
    display: none;
}

a.catalog-type-card {
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    width: min(228px, 72vw);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.catalog-type-card__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 199px;
    height: 100%;
    padding: 32px;
    box-sizing: border-box;
    background: #fafafa;
    border-radius: 10px;
    border: 2px solid transparent;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-type-card.is-active .catalog-type-card__inner,
.catalog-type-card:hover .catalog-type-card__inner {
    border-color: rgba(5, 38, 45, 0.12);
    box-shadow: 0 8px 24px rgba(5, 38, 45, 0.08);
}

.catalog-type-card__media {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 96px;
}

.catalog-type-card__media img {
    display: block;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
}

.catalog-type-card__label {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: var(--color-ink);
}

.catalog-type-card--text-only .catalog-type-card__inner {
    justify-content: center;
    align-items: center;
}

.catalog-type-card--text-only .catalog-type-card__label {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-category__layout {
    display: grid;
    grid-template-columns: minmax(0, 247px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 24px);
    align-items: start;
}

.catalog-filters-drawer__backdrop,
.catalog-filters-toggle {
    display: none;
}

.catalog-filters-drawer__sheet {
    display: contents;
}

.catalog-filters-drawer__footer {
    display: none;
}

.catalog-filters-toggle {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin: 0 0 clamp(16px, 3vw, 24px);
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #fafafa;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.catalog-filters-toggle:hover {
    filter: brightness(0.98);
}

.catalog-filters-toggle__icon {
    flex-shrink: 0;
    display: block;
}

.catalog-filters-drawer__backdrop {
    display: none;
}

.catalog-filters-drawer__footer {
    flex-shrink: 0;
    padding: 16px 20px 24px;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

.catalog-filters-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--color-ink);
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.catalog-filters-drawer__close:hover {
    filter: brightness(1.08);
}

.catalog-filters {
    padding: 32px;
    background: #fafafa;
    border-radius: 10px;
    box-sizing: border-box;
}

.catalog-filters__title {
    margin: 0 0 6px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-ink);
}

.catalog-filters__count {
    margin: 0 0 24px;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(5, 38, 45, 0.7);
}

.catalog-filters__group {
    margin: 0 0 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid #e8e8e8;
}

.catalog-filters__group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.catalog-filters__group-title {
    margin: 0 0 12px;
    font-family: Nekst, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.5);
    list-style: none;
    cursor: pointer;
}

.catalog-filters__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-filters__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-ink);
    cursor: pointer;
}

.catalog-filters__label input {
    margin-top: 2px;
    accent-color: #3a6436;
}

.catalog-filters__price-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.catalog-filters__price-field {
    min-width: 0;
}

.catalog-filters__price-input {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 6px 12px;
    border: 1px solid #b0afaf;
    border-radius: 4px;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--color-ink);
    background: #fff;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: none;
}

.catalog-filters__price-input:focus {
    outline: 2px solid rgba(5, 38, 45, 0.2);
    outline-offset: 0;
    border-color: var(--color-ink);
}

.catalog-filters__price-sep {
    flex-shrink: 0;
    color: var(--color-ink);
}

.catalog-filters__range {
    margin-top: 10px;
    padding: 0 2px;
}

.catalog-filters__range-track {
    position: relative;
    height: 28px;
}

.catalog-filters__range-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-radius: 2px;
    background: #d8d8d8;
    pointer-events: none;
}

.catalog-filters__range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 4px;
    background: var(--color-ink);
    pointer-events: none;
    left: 0;
    width: 0;
}

.catalog-filters__range-input {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.catalog-filters__range-input--max {
    z-index: 2;
}

.catalog-filters__range-input--min {
    z-index: 1;
}

.catalog-filters__range-input::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
    border: 0;
}

.catalog-filters__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 20px;
    height: 20px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--color-ink);
    box-shadow: 0 1px 4px rgba(5, 38, 45, 0.25);
    cursor: pointer;
}

.catalog-filters__range-input::-moz-range-track {
    height: 2px;
    background: transparent;
    border: 0;
}

.catalog-filters__range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--color-ink);
    box-shadow: 0 1px 4px rgba(5, 38, 45, 0.25);
    cursor: pointer;
}

.catalog-category__results {
    min-width: 0;
}

.catalog-category__grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-category__empty p {
    margin: 0;
}

.catalog-category__more-wrap {
    display: flex;
    justify-content: center;
    padding-top: clamp(8px, 2vw, 16px);
}

.catalog-category__more-wrap[hidden] {
    display: none !important;
}

.catalog-landing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-landing__card {
    width: 100%;
}

@media (max-width: 1100px) {
    .catalog-category__layout {
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    }

    .catalog-category__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-category__title-row {
        flex-direction: column;
    }

    .catalog-category__hint {
        max-width: none;
    }

    .catalog-category__layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .catalog-category__results {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
    }

    .catalog-filters-toggle {
        display: flex;
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
        box-sizing: border-box;
    }

    .catalog-filters-drawer__sheet {
        display: flex;
    }

    .catalog-filters-drawer {
        position: fixed;
        inset: 0;
        z-index: 2147483001;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: stretch;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 0s linear 0.32s;
    }

    .catalog-filters-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
        transition: visibility 0s linear 0s;
    }

    .catalog-filters-drawer__backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        background: rgba(5, 38, 45, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        opacity: 0;
        transition: opacity 0.28s ease;
        pointer-events: none;
    }

    .catalog-filters-drawer.is-open .catalog-filters-drawer__backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .catalog-filters-drawer__sheet {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: min(330px, 100vw);
        max-width: 330px;
        height: 100%;
        max-height: 100%;
        background: #f8f8f8;
        box-shadow: 4px 0 32px rgba(5, 38, 45, 0.12);
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .catalog-filters-drawer.is-open .catalog-filters-drawer__sheet {
        transform: translateX(0);
    }

    .catalog-filters-drawer .catalog-filters {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: #f8f8f8;
        overflow: hidden;
    }

    .catalog-filters-drawer .catalog-filters__head {
        flex-shrink: 0;
        padding: 60px 32px 32px;
    }

    .catalog-filters-drawer .catalog-filters__title {
        margin: 0 0 8px;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        color: var(--color-ink);
    }

    .catalog-filters-drawer .catalog-filters__count {
        margin: 0;
        font-size: 14px;
        line-height: 1.3;
        color: rgba(5, 38, 45, 0.55);
    }

    .catalog-filters-drawer .catalog-filters__form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0 32px 8px;
    }

    .catalog-filters-drawer .catalog-filters__group {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .catalog-filters-drawer .catalog-filters__group:last-child {
        border-bottom: 0;
    }

    .catalog-filters-drawer .catalog-filters__group-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 16px 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        color: rgba(5, 38, 45, 0.45);
        list-style: none;
    }

    .catalog-filters-drawer .catalog-filters__group-title::-webkit-details-marker {
        display: none;
    }

    .catalog-filters-drawer .catalog-filters__group-title::marker {
        content: "";
    }

    .catalog-filters-drawer .catalog-filters__group-title::after {
        content: "";
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid rgba(5, 38, 45, 0.35);
        border-bottom: 1.5px solid rgba(5, 38, 45, 0.35);
        transform: rotate(-135deg);
        transition: transform 0.2s ease;
    }

    .catalog-filters-drawer details[open] > .catalog-filters__group-title::after {
        transform: rotate(45deg);
    }

    .catalog-filters-drawer .catalog-filters__group--price .catalog-filters__group-title {
        display: block;
        padding: 16px 0 12px;
    }

    .catalog-filters-drawer .catalog-filters__group--price .catalog-filters__group-title::after {
        display: none;
    }

    .catalog-filters-drawer .catalog-filters__options {
        gap: 12px;
        padding-bottom: 16px;
    }

    .catalog-filters-drawer .catalog-filters__label {
        align-items: center;
        gap: 10px;
        font-size: 14px;
        line-height: 1.25;
    }

    .catalog-filters-drawer .catalog-filters__label input[type="checkbox"] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin: 0;
        border: 1px solid #c8c8c8;
        border-radius: 3px;
        background: #fff;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

    .catalog-filters-drawer .catalog-filters__label input[type="checkbox"]:checked {
        border-color: #3a6436;
        background-color: #3a6436;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 12px 12px;
    }

    .catalog-filters-drawer .catalog-filters__label input[type="checkbox"]:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .catalog-filters-drawer .catalog-filters__price-input {
        height: 36px;
        border-color: #e0e0e0;
        border-radius: 4px;
        background: #fff;
    }

    .catalog-filters-drawer .catalog-filters__range {
        margin-top: 14px;
        padding: 0 4px 8px;
    }

    .catalog-filters-drawer__footer {
        display: block;
        flex-shrink: 0;
        margin-top: 0;
        padding: 16px 32px max(32px, env(safe-area-inset-bottom));
        background: #f8f8f8;
        border-top: 1px solid #e8e8e8;
    }

    .catalog-filters-drawer__close {
        width: 100%;
        width: -webkit-fill-available;
        min-height: 48px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    body.catalog-filters-open {
        overflow: hidden;
    }

    .catalog-category__layout .brand-products__grid,
    .catalog-category__layout .catalog-category__grid {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-category__layout .brand-products__item {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
    }

    .catalog-category__layout .brand-product-card,
    .catalog-category__layout .brand-product-card__link {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
        box-sizing: border-box;
    }

    .catalog-category__more-wrap {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
    }

    .catalog-category__more {
        width: 100%;
        width: -webkit-fill-available;
        max-width: 100%;
        box-sizing: border-box;
    }

    .catalog-types__nav {
        display: none;
    }
}

/* ——— Сторінка товару ——— */
.page-product {
    background: var(--color-page);
    color: var(--color-ink);
}

.product-page {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.product-page__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 32px);
}

.product-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 689fr) minmax(0, 660fr);
    gap: 32px;
    align-items: start;
}

.product-page__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    /* max-width: 689px; */
}

.product-page__gallery {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.product-page__gallery-stage {
    width: 100%;
    min-height: 624px;
    padding: clamp(40px, 5vw, 90px) clamp(24px, 4vw, 40px);
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
}

.product-page__gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 444px;
}

.product-page__image {
    display: block;
    max-width: 100%;
    max-height: 444px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-page__gallery-main:has(img.catalog-product-img.is-missing) {
    background: #f3f5f5;
    border-radius: 12px;
}

.product-page__image.catalog-product-img.is-missing {
    max-width: min(160px, 50%);
    max-height: min(160px, 50%);
    width: 160px;
    height: 160px;
}

.product-page__thumb:has(img.catalog-product-img.is-missing) {
    background: #f3f5f5;
}

.product-page__thumb-img.catalog-product-img.is-missing {
    max-width: 48px;
    max-height: 48px;
    width: 48px;
    height: 48px;
}

.product-page__gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-page__gallery-thumbs-item {
    flex: 0 0 auto;
}

.product-page__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    padding: 18px 22px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-page__thumb.is-active {
    border-color: var(--color-ink);
}

.product-page__thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.product-page__aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.product-page__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-page__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: var(--color-ink);
}

.product-page__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-page__sku {
    margin-left: auto;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.5);
}

.product-page__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.product-page__price-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-page__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.product-page__price {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 32px);
    line-height: 1;
    color: var(--color-ink);
}

.product-page__price-old {
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: rgba(5, 38, 45, 0.7);
    text-decoration: line-through;
}

.product-page__personal-note {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.25;
    color: #3a6436;
}

.product-page__buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px 32px;
    border: 0;
    border-radius: 8px;
    background: #ffbb00;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.product-page__buy-btn:hover {
    filter: brightness(1.03);
}

.catalog-product-cart {
    display: block;
    width: 20px;
    height: 20px;
}

.product-page__blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-accordion {
    border-top: 1px solid #e8e8e8;
}

.product-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 0;
    list-style: none;
    cursor: pointer;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--color-ink);
}

.product-accordion__summary::-webkit-details-marker {
    display: none;
}

.catalog-product-list {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.product-accordion[open] .catalog-product-list {
    transform: rotate(180deg);
}

.product-accordion__body {
    padding: 20px 0 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(5, 38, 45, 0.7);
}

.product-delivery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-delivery__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    min-height: 40px;
}

.product-delivery__icon {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-delivery__title {
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-ink);
}

.product-delivery__price {
    font-family: Nekst;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    
    color: var(--color-ink);
    white-space: nowrap;
}

.product-delivery__price--green {
    color: #3a6436;
}

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

.product-payment__tag {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: var(--color-ink);
}

.product-payment__note {
    margin: 12px 0 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(5, 38, 45, 0.7);
}

.product-warranty {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-ink);
}

.product-warranty__icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    object-fit: contain;
}

.product-page__tabs-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.product-tabs__btn {
    display: inline-flex;
    align-items: center;
    /* min-height: 37px; */
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.product-tabs__btn.is-active {
    background: #ffbb00;
    border-color: #e8e8e8;
}

.product-tabs__panel {
    display: none;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
}

.product-tabs__panel.is-active {
    display: block;
}

.product-tabs__placeholder,
.product-tabs__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(5, 38, 45, 0.7);
}

.product-tabs__panel--reviews {
    padding: 24px;
}

.product-reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-reviews__head {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.product-reviews__head-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.product-reviews__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--color-ink);
}

.product-reviews__rating {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-reviews__stars {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    margin: 0;
}

.product-reviews__stars img {
    display: block;
    width: 20px;
    height: 20px;
}

.product-reviews__rating-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.product-reviews__rating-label {
    color: rgba(5, 38, 45, 0.7);
}

.product-reviews__rating-value {
    color: var(--color-ink);
}

.product-reviews__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    width: auto;
    /* min-height: 52px; */
    padding: 16px 32px;
    border: 0;
    border-radius: 8px;
    background: #ffbb00;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.product-reviews__cta:hover {
    filter: brightness(1.03);
}

.catalog-product-pen {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.product-reviews__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.product-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-reviews__item--hidden {
    display: none;
}

.product-reviews.is-expanded .product-reviews__item--hidden {
    display: block;
}

.product-reviews__card {
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.product-reviews__card-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.product-reviews__author {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--color-ink);
}

.product-reviews__card-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.product-reviews__card-stars img {
    display: block;
    width: 20px;
    height: 20px;
}

.product-reviews__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-ink);
}

.product-reviews__more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.product-reviews__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.catalog-product-more-reviews {
    display: block;
    flex-shrink: 0;
    width: 13px;
    height: 14px;
}

.product-reviews.is-expanded .product-reviews__more-wrap {
    display: none;
}

@media (min-width: 768px) {
    .product-reviews {
        gap: 32px;
    }

    .product-reviews__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-reviews__card {
        height: 100%;
        box-sizing: border-box;
    }
}

.product-specs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-specs__row {
    display: grid;
    grid-template-columns: auto minmax(16px, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    margin: 0;
}

.product-specs__row dt {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(5, 38, 45, 0.55);
}

.product-specs__leader {
    margin: 0;
    min-width: 20px;
    border-bottom: 1px dotted #e8e8e8;
    transform: translateY(-2px);
}

.product-specs__value {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-ink);
    text-align: right;
}

.site-header--dark {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
}

/* Головна: fade 0 → 1 → 0 при появленні/зникненні fixed-хедера */
.hero .site-header.site-header--dark {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.hero .site-header.site-header--dark.site-header--dark-fade {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .hero .site-header.site-header--dark {
        transition: 0.5s ease;
    }

    .trust {
        transition: none;
    }
}

.hero .site-header--dark .header {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline:
        max(var(--page-pad), env(safe-area-inset-left))
        max(var(--page-pad), env(safe-area-inset-right));
    box-sizing: border-box;
}

/* WP admin bar: fixed-хедер не наїжджає на панель зверху */
.admin-bar .site-header--dark {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header--dark {
        top: 46px;
    }
}

/* Закріплений хедер на головній — лише ряд меню, без promo-плашки */
.hero .site-header.site-header--dark .promo {
    display: none;
}

.site-header--dark .header__brand img {
    content: url("https://safely.com.ua/wp-content/themes/safely/assets/image/logo-dark.svg");
}

.site-header--dark .glass--dark {
    background-color: #05262D;
}

.site-header--dark .nav-glass__grid-btn {
    background-color: #05262D;
}

.site-header--dark .nav-glass__grid-btn {
    color: #fff;   
}

.site-header--dark .btn-call {
    background-color: #05262D;
    color: #fff;
}

.site-header--dark .icon-btn {
    background-color: #05262D;
    color: #fff;
}

.site-header--dark .header__burger {
    color: #fff;
}

/* ——— Оформлення замовлення ——— */
.page-checkout .checkout-page {
    padding-bottom: clamp(48px, 6vw, 88px);
}

.checkout-page__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 32px);
}

.checkout-page__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 64px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -2%;
    
    color: #05262d;
}

.checkout-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 587px);
    gap: 21px;
    align-items: start;
}

.checkout-page__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.checkout-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 32px 22px;
    border-radius: 10px;
    background: #fff;
}

.checkout-promo__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #ffbb00;
}

.checkout-promo__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    color: #05262d;
}

.checkout-promo__text strong {
    font-weight: 700;
}

.checkout-promo__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-promo__link:hover {
    color: var(--color-orange);
}

.checkout-form__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    border-radius: 10px;
    background: #fff;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.checkout-step__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-step__num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #05262d;
    color: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
}

.checkout-step__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    color: #05262d;
}

.checkout-step__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-recent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.checkout-recent__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #05262d;
}

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

.checkout-recent__btn {
    padding: 8px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: #05262d;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checkout-recent__btn:hover {
    border-color: #05262d;
    background: #f7f9fa;
}

.checkout-field {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 8px 27px;
    align-items: center;
}

.checkout-field--stack {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.checkout-field--stack .checkout-field__label {
    padding-top: 0;
}

.checkout-field__label {
    margin: 0;
    /* padding-top: 16px; */
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: #05262d;
}

.checkout-field__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 53px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #fafafa;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: #05262d;
}

.checkout-field__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.checkout-field__input:focus {
    outline: 2px solid rgba(5, 38, 45, 0.2);
    outline-offset: 0;
}

.checkout-field__select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='5' viewBox='0 0 11 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 4L10 1' stroke='%2305262D' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.checkout-field__input--phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 0;
}

.checkout-field__input--phone input {
    flex: 1;
    min-width: 0;
    min-height: 51px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

.checkout-field__input--phone input:focus {
    outline: none;
}

.checkout-field__phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 24px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #05262d;
}

.checkout-field__flag {
    width: 28px;
    height: 21px;
    border-radius: 2px;
    background: linear-gradient(180deg, #005bbb 50%, #ffd500 50%);
}

.checkout-field__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    grid-column: 2;
}

.checkout-field--stack .checkout-field__row {
    grid-column: 1;
}

.checkout-field__input--center {
    text-align: center;
}

.checkout-field > .checkout-field__input,
.checkout-field > .checkout-field__row {
    grid-column: 2;
}

.checkout-field--stack > .checkout-field__input {
    grid-column: 1;
}

.checkout-person {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.checkout-check {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
}

.checkout-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkout-check__box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #05262d;
    border-radius: 5px;
    box-sizing: border-box;
}

.checkout-check__box--accent {
    border-radius: 13px;
    background: #ffbb00;
    border-color: #05262d;
}

.checkout-check input:checked + .checkout-check__box {
    background: #05262d;
    box-shadow: inset 0 0 0 3px #fff;
}

.checkout-check input:checked + .checkout-check__box--accent {
    background: #ffbb00;
    box-shadow: inset 0 0 0 4px #05262d;
}

.checkout-check__label {
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    color: #05262d;
}

.checkout-check--payment {
    grid-column: 1 / -1;
    padding: 4px 0;
}

.checkout-payment-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-left: 44px;
    padding-bottom: 8px;
}

.checkout-payment-card.is-hidden {
    display: none;
}

.checkout-field--legal.is-hidden {
    display: none;
}

.checkout-summary {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    border-radius: 10px;
    background: #fff;
}

.checkout-summary__title {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -4%;
    
    color: #05262d;
}

.checkout-summary__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-summary__item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.checkout-summary__item-main {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.checkout-summary__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.checkout-summary__info {
    min-width: 0;
}

.checkout-summary__name {
    margin: 0 0 7px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.15;
    color: #05262d;
}

.checkout-summary__meta {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.7);
}

.checkout-summary__meta-qty {
    color: #05262d;
}

.checkout-summary__price {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #05262d;
    white-space: nowrap;
}

.checkout-summary__price-old {
    font-size: 13px;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.6);
    text-decoration: line-through;
}

.checkout-summary__price-new {
    line-height: 1.2;
}

.checkout-summary__discounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    margin-top: 3px;
}

.checkout-summary__discount-line {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.72);
}

.checkout-summary__discount-line strong {
    font-weight: 600;
    color: #3a6436;
}

.checkout-summary__totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.checkout-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #63615f;
}

.checkout-summary__row--discount .checkout-summary__value {
    color: #3A6436;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    text-align: right;

}

.checkout-summary__value {
    color: #05262d;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    text-align: right;
}

.checkout-summary__row--total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    font-size: 16px;
    color: #05262d;

    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;

}

.checkout-summary__row--total .checkout-summary__value {
    font-size: 28px;
    font-weight: 600;
    color: #3a6436;
}

.checkout-summary__delivery {
    text-align: right;
    color: #05262D;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    text-align: right;

}

.checkout-summary__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: -webkit-fill-available;
    min-height: 55px;
    margin: 0;
    padding: 0 20px 0 24px;
    border: 0;
    border-radius: 12px;
    background: #ffbb00;
    color: #05262d;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.checkout-summary__submit:hover:not(:disabled) {
    filter: brightness(1.03);
}

.checkout-summary__submit:disabled,
.checkout-summary__submit.is-loading {
    cursor: wait;
    opacity: 0.92;
}

.checkout-summary__submit-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.checkout-summary__submit-icon {
    display: block;
    width: 20px;
    height: 20px;
    transition: opacity 0.15s ease;
}

.checkout-summary__submit-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(5, 38, 45, 0.14);
    border-top-color: #3a6436;
    border-radius: 50%;
    opacity: 0;
    animation: cart-modal-spin 0.65s linear infinite;
    pointer-events: none;
}

.checkout-summary__submit.is-loading .checkout-summary__submit-icon {
    opacity: 0;
}

.checkout-summary__submit.is-loading .checkout-summary__submit-spinner {
    opacity: 1;
}

.checkout-form.is-checkout-busy {
    pointer-events: none;
}

.checkout-form.is-checkout-busy .checkout-field__input,
.checkout-form.is-checkout-busy .checkout-field__select,
.checkout-form.is-checkout-busy .checkout-check {
    opacity: 0.72;
}

.checkout-field.is-invalid .checkout-field__input,
.checkout-field.is-invalid .checkout-field__select {
    border-color: #c0392b;
}

.checkout-field__error,
.checkout-summary__error {
    margin: 6px 0 0;
    color: #c0392b;
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.checkout-check__hint {
    display: block;
    margin-top: 4px;
    color: rgba(5, 38, 45, 0.62);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.checkout-payment-note {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(58, 100, 54, 0.08);
    color: rgba(5, 38, 45, 0.78);
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.checkout-payment-note[hidden] {
    display: none;
}

.checkout-summary__error[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-summary__submit-spinner {
        animation: none;
        border-top-color: #3a6436;
    }
}

/* a.cart-modal__checkout {
    text-decoration: none;
    color: inherit;
} */

.order-thank-page__inner {
    display: flex;
    flex-direction: column;
}

.order-thank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(520px, 62vw, 834px);
    padding: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 48px);
    border-radius: 20px;
    background-color: #010101;
    background-image: url("https://safely.com.ua/wp-content/themes/safely/assets/image/thank-u/bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
    color: #fff;
}

.order-thank-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.order-thank-card__logo {
    display: inline-flex;
    margin: 0 0 clamp(32px, 5vw, 56px);
}

.order-thank-card__logo-img {
    display: block;
    width: 125px;
    height: auto;
}

.order-thank-card__title {
    margin: 0 0 clamp(20px, 3vw, 32px);
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 80%;
    letter-spacing: -2%;
    text-align: center;
    vertical-align: bottom;
    
    color: #fff;
}

.order-thank-card__order {
    margin: 0 0 clamp(20px, 3vw, 32px);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
}

.order-thank-card__cabinet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.7);
}

.page-checkout-thank .order-thank-card__cabinet-link {
    display: inline;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s ease;
}

.page-checkout-thank .order-thank-card__cabinet-link:hover {
    opacity: 0.85;
}

.page-checkout-thank .order-thank-card__cabinet-btn {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffbb00;
    transition: filter 0.15s ease;
    margin-left: 10px;
}

.page-checkout-thank .order-thank-card__cabinet-btn:hover {
    filter: brightness(1.05);
}

.page-checkout-thank .order-thank-card__cabinet-btn img {
    display: block;
    width: 15px;
    height: 15px;
}

.order-thank-card__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding-top: 24px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.85);
}

.order-thank-card__foot-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffbb00;
    flex-shrink: 0;
}

/* ============================================================
   Сторінка контактів (/contacts)
   ============================================================ */
.contacts-page {
    padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 88px);
    padding-bottom: 30px;
}

.contacts-page__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-page__head {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 32px);
}

.contacts-page__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.contacts-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 300px;
    padding: 32px;
    background: #fafafa;
    border-radius: 20px;
}

.contacts-card__label {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

.contacts-card__value {
    margin: 0;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: -2%;
    
    color: var(--color-ink);
}

.contacts-card__value--link {
    display: inline-block;
    text-decoration: none;
    color: var(--color-ink);
    transition: color 0.15s ease;
}

.contacts-card__value--link:hover {
    color: var(--color-orange);
}

.contacts-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts-card__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 55px;
    padding: 0 20px;
    background: var(--color-ink);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.contacts-card__telegram:hover {
    filter: brightness(1.08);
}

.contacts-card__telegram:active {
    transform: translateY(1px);
}

.contacts-card__telegram-text {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contacts-card__telegram-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contacts-card__socials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contacts-social {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    background: var(--color-ink);
    border-radius: 8px;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.contacts-social:hover {
    filter: brightness(1.08);
}

.contacts-social:active {
    transform: translateY(1px);
}

.contacts-social img {
    width: 24px;
    height: 24px;
}

.contacts-lead {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 422px) minmax(280px, 380px);
    gap: 24px;
    align-items: stretch;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
    background: var(--color-ink);
    border-radius: 20px;
}

.contacts-lead__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.contacts-lead__title {
    margin: 0;
    max-width: 12ch;
    font-family: Nekst;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 42px;
    leading-trim: NONE;
    line-height: 85%;
    letter-spacing: -3%;
    
    color: #fff;
}

.contacts-lead__lede {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.7);
}

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

.contacts-lead__field {
    display: block;
}

.contacts-lead__input {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 30px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    transition: border-color 0.15s ease;
    outline: none;
}

.contacts-lead__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.contacts-lead__input:focus-visible {
    border-color: var(--color-orange);
}

.contacts-lead__textarea {
    height: auto;
    min-height: 134px;
    padding: 20px 30px;
    resize: vertical;
}

.page-contacts .site-footer {
    margin-top: 0;
}

/* ============================================================
   Політики / юридичні сторінки
   ============================================================ */
.policy-page {
    padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 88px);
}

.policy-page__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 50px);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.policy-page__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.policy-page__title {
    margin: 0;
    width: 100%;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    text-align: center;
}

.policy-page__intro {
    margin: 0;
    width: 100%;
    max-width: 800px;
    padding: 0;
    align-self: flex-start;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
    text-align: left;
}

/* ——— SEO-сторінки послуг (/poslugi/{slug}/) — hero: service-page.css ——— */
.service-page-body {
    padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
    background: #fff;
}

.service-page-body__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
}

.service-page-body__sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-page-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(28px, 4vw, 48px);
    background: #fafafa;
    border-radius: 10px;
}

.service-page-section__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.service-page-section__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

/* ——— 404 ——— */
.page-not-found main {
    background: var(--color-page);
}

.not-found-page {
    padding: clamp(56px, 10vw, 120px) 0 clamp(72px, 12vw, 140px);
    background: transparent;
}

.not-found-page__inner {
    display: flex;
    justify-content: center;
}

.not-found-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 560px;
    padding: 0;
    text-align: center;
    background: transparent;
}

.not-found-card__code {
    margin: 0 0 clamp(8px, 2vw, 16px);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(64px, 12vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--color-ink);
}

.not-found-card__title {
    margin: 0 0 clamp(12px, 2vw, 16px);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.not-found-card__text {
    margin: 0 0 clamp(28px, 4vw, 36px);
    max-width: 440px;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.not-found-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.not-found-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 52px;
    padding: 0 28px;
    border-radius: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.not-found-card__btn--primary {
    background: var(--color-orange);
    color: var(--color-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.not-found-card__btn--primary:hover {
    filter: brightness(1.04);
}

.not-found-card__btn--secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-ink);
    box-shadow: inset 0 0 0 2px rgba(5, 38, 45, 0.22);
}

.not-found-card__btn--secondary:hover {
    background: rgba(5, 38, 45, 0.04);
}

.not-found-card__btn:active {
    transform: translateY(1px);
}

.policy-page__sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(32px, 4vw, 50px);
    background: #fafafa;
    border-radius: 10px;
}

.policy-section__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.policy-section__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.policy-section__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-section__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: Nekst, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.policy-section__contact-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.policy-section__contact-list a:hover {
    color: var(--color-orange);
}

.policy-section__contact-label {
    color: var(--color-ink);
    font-weight: 500;
}

.page-policy .site-footer {
    margin-top: 0;
}

/* ============================================================
   Особистий кабінет (/account)
   ============================================================ */
.account-page {
    padding: clamp(16px, 2vw, 24px) 0 clamp(48px, 6vw, 88px);
}

.account-page__inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.account-nav {
    position: sticky;
    top: 118px;
}

.account-nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

.account-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    padding: 4px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #141414;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-nav__item:hover {
    background: rgba(243, 246, 246, 0.65);
}

.account-nav__item.is-active {
    background: #f3f5f521;
    border: 1px solid #e8e8e8;
    color: #3a6436;
}

.account-nav__item.is-active .account-nav__icon {
    color: #3a6436;
}

.account-nav__item.is-active .account-nav__icon img {
    filter: brightness(0) saturate(100%) invert(33%) sepia(18%) saturate(827%) hue-rotate(86deg) brightness(95%) contrast(91%);
}

.account-nav__icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    color: #141414;
}

.account-nav__icon img {
    width: 20px;
    height: 20px;
}

.account-nav__label {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.account-main {
    min-width: 0;
    padding: clamp(32px, 4vw, 50px);
    background: #fff;
    border-radius: 10px;
}

.account-panel[hidden] {
    display: none !important;
}

.account-panel__title {
    margin: 0 0 clamp(28px, 3vw, 40px);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.account-panel__stub {
    margin: 0;
    max-width: 42ch;
    font-family: Nekst, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

.account-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: stretch;
    max-width: 966px;
}

.account-profile__col {
    display: flex;
    min-width: 0;
}

.account-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    gap: 12px;
}

.account-form__heading {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 2px;
}

.account-form__link {
    padding: 0;
    border: 0;
    background: none;
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    color: rgba(5, 38, 45, 0.7);
    text-decoration: none;
    cursor: pointer;
}

a.account-form__link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.account-form__link:hover {
    color: var(--color-ink);
}

.account-form__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-field {
    display: block;
}

.account-field--password {
    position: relative;
}

.account-field__input {
    display: block;
    width: 100%;
    height: 53px;
    padding: 0 48px 0 24px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.account-field__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.account-field__input:focus-visible {
    border-color: var(--color-orange);
}

.account-field__select {
    appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='5' viewBox='0 0 11 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 4L10 1' stroke='%2305262D' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    cursor: pointer;
}

.account-field__select:invalid {
    color: rgba(5, 38, 45, 0.7);
}

.account-field__input--phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 0;
}

.account-field__input--phone input {
    flex: 1;
    min-width: 0;
    min-height: 51px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    outline: none;
}

.account-field__input--phone input:focus {
    outline: none;
}

.account-field__phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-ink);
}

.account-field__toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
    cursor: pointer;
}

.account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: -webkit-fill-available;
    min-height: 55px;
    margin-top: auto;
    padding: 0 24px;
    background: var(--color-ink);
    border: 0;
    border-radius: 12px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.account-btn:hover {
    filter: brightness(1.06);
}

.account-btn:active {
    transform: translateY(1px);
}

.account-btn--with-loader {
    position: relative;
    gap: 8px;
}

.account-btn--with-loader .account-btn__label {
    transition: opacity 0.15s ease;
}

.account-btn__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cart-modal-spin 0.65s linear infinite;
}

.account-btn.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.94;
}

.account-btn.is-loading .account-btn__label {
    opacity: 0;
}

.account-btn.is-loading .account-btn__spinner {
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
}

.account-nav__logout.account-btn--with-loader {
    position: relative;
}

.account-nav__logout.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.85;
}

.account-nav__logout.is-loading .account-btn__label {
    opacity: 0;
}

.account-nav__logout.is-loading .account-btn__spinner {
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
    border-top-color: #3a6436;
    border-color: rgba(5, 38, 45, 0.14);
}

.account-auth__form.is-busy,
.account-form.is-busy {
    pointer-events: none;
}

.account-auth__form.is-busy .account-field__input,
.account-form.is-busy .account-field__input:not([readonly]) {
    opacity: 0.72;
}

.account-auth__tabs.is-busy {
    pointer-events: none;
    opacity: 0.65;
}

.page-account .site-footer {
    margin-top: 0;
}

.account-page__inner--guest {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
}

.account-main--auth {
    width: 100%;
}

.account-nav__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: -webkit-fill-available;
    width: fill-available;
    min-height: 43px;
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgba(5, 38, 45, 0.75);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-nav__logout:hover {
    background: #fafafa;
    color: var(--color-ink);
    border-color: #d8d8d8;
}

.account-auth {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #fafafa;
    border-radius: 12px;
}

.account-auth__tab {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-auth__tab.is-active {
    background: #fff;
    border-color: #e8e8e8;
    color: #3a6436;
}

.account-auth__panel[hidden] {
    display: none !important;
}

.account-auth__lead {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(5, 38, 45, 0.7);
}

.account-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    color: rgba(5, 38, 45, 0.75);
    cursor: pointer;
}

.account-auth__remember input {
    width: 16px;
    height: 16px;
    accent-color: #3a6436;
}

.account-auth__switch {
    margin: 4px 0 0;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(5, 38, 45, 0.7);
}

.account-auth__switch-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #3a6436;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.account-auth__switch-btn:hover {
    color: var(--color-ink);
}

.account-field.is-invalid .account-field__input {
    border-color: #c0392b;
}

.account-field__error {
    margin: 6px 0 0;
    padding: 0 4px;
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: #c0392b;
}

.account-field__input:read-only {
    opacity: 0.85;
    cursor: default;
}

/* ——— Кабінет: персональний бонус ——— */
.account-bonus {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 966px;
}

.account-bonus__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 606px;
}

.account-bonus__card {
    padding: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.account-bonus__card-title {
    margin: 0 0 20px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-bonus__card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-bonus__card-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-bonus__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.account-bonus__notice-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #3a6436;
    font-family: Nekst, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: #fff;
}

.account-bonus__notice-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-bonus__notice-text strong {
    font-weight: 600;
}

.account-bonus__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-bonus__form-label {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-bonus__form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-bonus__field {
    display: block;
}

.account-bonus__input {
    display: block;
    width: 100%;
    height: 53px;
    padding: 0 24px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.account-bonus__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.account-bonus__input:focus-visible {
    border-color: var(--color-orange);
}

.account-bonus__field.is-invalid .account-bonus__input {
    border-color: #e53935;
}

.account-bonus__field .account-field__error {
    margin: 6px 0 0;
}

.account-bonus__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: -webkit-fill-available;
    min-height: 55px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--color-orange);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.account-bonus__submit:hover {
    filter: brightness(0.96);
}

.account-bonus__submit:active {
    transform: translateY(1px);
}

.account-bonus__tiers-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-bonus__tiers-heading {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-bonus__tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-bonus-tier {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 177px;
    max-width: 100%;
}

.account-bonus-tier__value {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(5, 38, 45, 0.06);
}

.account-bonus-tier__percent {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.account-bonus-tier__bubble {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.account-bonus-tier__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(5, 38, 45, 0.06);
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--color-ink);
}

.account-bonus-tier--active .account-bonus-tier__value,
.account-bonus-tier--active .account-bonus-tier__label {
    background: var(--color-ink);
    border-color: transparent;
    color: #fff;
}

.account-bonus-tier--active .account-bonus-tier__bubble {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ——— Кабінет: історія замовлень ——— */
.account-orders {
    width: 100%;
    max-width: none;
}

.account-orders__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.account-orders__empty-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.75);
}

.account-orders__empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.account-orders__empty-link:hover {
    filter: brightness(1.06);
}

.account-orders__table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-orders__head,
.account-orders__row {
    display: grid;
    grid-template-columns: 120px 80px minmax(280px, 1fr) 88px 100px;
    column-gap: 32px;
    align-items: start;
}

.account-orders__head {
    align-items: center;
    min-height: 26px;
    padding: 6px 24px;
    background: #f3f6f6;
    border-radius: 8px;
}

.account-orders__head-cell {
    font-family: Nekst, sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

.account-orders__head-spacer,
.account-orders__spacer {
    display: block;
}

.account-orders__head-cell--date,
.account-orders__head-cell--sum,
.account-orders__cell--date,
.account-orders__cell--sum {
    text-align: right;
}

.account-orders__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-orders__row {
    min-height: 120px;
    padding: 20px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.account-orders__cell--number {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.account-orders__number {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-orders__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    min-height: 20px;
    padding: 4px 8px 4px 6px;
    border-radius: 4px;
    background: #3a6436;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.account-orders__status-icon {
    flex-shrink: 0;
}

.account-orders__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: account-order-item;
}

.account-orders__list li {
    position: relative;
    padding-left: 1.35em;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-orders__list li + li {
    margin-top: 2px;
}

.account-orders__list li::before {
    content: counter(account-order-item) ".";
    counter-increment: account-order-item;
    position: absolute;
    left: 0;
    top: 0;
}

.account-orders__cell--date {
    padding-top: 4px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    white-space: nowrap;
}

.account-orders__cell--sum {
    padding-top: 2px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #3a6436;
    white-space: nowrap;
}

/* ——— Кабінет: підтримка ——— */
.account-support {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: none;
}

.account-support__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-support__heading {
    margin: 0;
    font-family: Nekst;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -1%;
    
    color: var(--color-ink);
}

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

.account-support__cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.account-support-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 213px;
    padding: 32px;
    background: #fafafa;
    border-radius: 20px;
}

.account-support-card__label {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(100, 98, 96, 0.85);
}

.account-support-card__value {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-decoration: none;
}

.account-support-card__value--text {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.account-support-card__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 55px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--color-orange);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.account-support-card__telegram:hover {
    filter: brightness(0.96);
}

.account-support-card__telegram:active {
    transform: translateY(1px);
}

.account-support-card__socials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.account-support-social {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    background: var(--color-ink);
    border-radius: 8px;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.account-support-social:hover {
    filter: brightness(1.08);
}

.account-support-social img {
    max-width: 25px;
    max-height: 26px;
}

.account-support__faq {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.account-support-faq__item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.account-support-faq__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    list-style: none;
    cursor: pointer;
    padding-bottom: 11px;
}

.account-support-faq__summary::-webkit-details-marker {
    display: none;
}

.account-support-faq__question {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.account-support-faq__toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.account-support-faq__icon {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.account-support-faq__item[open] .account-support-faq__icon {
    transform: rotate(45deg);
}

.account-support-faq__answer {
    padding: 0 24px 20px;
}

.account-support-faq__answer p {
    margin: 0;
    max-width: none;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

/* ——— Блог ——— */
.blog-page {
    padding: 0 0 80px;
}

.blog-page__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-page__breadcrumbs {
    margin: 0;
}

.blog-page__head {
    display: flex;
    justify-content: center;
}

.blog-page__title {
    margin: 0;
    max-width: 528px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--color-ink);
}

.blog-page__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.blog-page__filters-label {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.blog-page__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.blog-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    background: transparent;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.blog-tab--active {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
}

.blog-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: clamp(56px, 10vw, 120px) 24px;
    text-align: center;
}

.blog-page__empty[hidden] {
    display: none !important;
}

.blog-page__empty-icon {
    display: block;
    width: clamp(88px, 14vw, 120px);
    height: auto;
    margin: 0 0 clamp(20px, 3vw, 28px);
}

.blog-page__empty-title {
    margin: 0 0 12px;
    max-width: 28ch;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.blog-page__empty-text {
    margin: 0;
    max-width: 40ch;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: rgba(5, 38, 45, 0.7);
}

.blog-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 6px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 10px;
    background: #eaecec;
    overflow: hidden;
}

.blog-card--hidden,
.blog-card[hidden] {
    display: none;
}

.blog-card__media {
    display: block;
    overflow: hidden;
}

.blog-card__image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 24px 32px 32px;
}

.blog-card__copy {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-card__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.blog-card__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-orange);
}

.blog-card__excerpt {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.blog-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.blog-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-ink);
}

.blog-card__type {
    font-weight: 500;
}

.blog-card__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-ink);
    flex-shrink: 0;
}

.blog-card__date {
    color: rgba(5, 38, 45, 0.7);
}

.blog-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.blog-card__more:hover {
    background: #0a3540;
}

.blog-card__more-icon {
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 9px;
}

.blog-page__more-wrap {
    display: flex;
    justify-content: center;
}

.blog-page__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: 0;
    border-radius: 8px;
    background: var(--color-orange);
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-ink);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.blog-page__more:hover {
    filter: brightness(0.96);
}

.blog-page__more-icon {
    display: block;
    flex-shrink: 0;
    width: 13px;
    height: 14px;
}

.blog-page__more[hidden] {
    display: none;
}

/* Сторінка статті */
.blog-article {
    padding: 0 0 clamp(56px, 6vw, 88px);
}

.blog-article__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.blog-article__breadcrumbs {
    align-self: flex-start;
}

.blog-article__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1089px;
    margin: 0 auto;
    text-align: center;
}

.blog-article__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--color-orange);
    font-family: Nekst, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-ink);
}

.blog-article__badge-type {
    font-weight: 500;
}

.blog-article__badge-date {
    color: rgba(5, 38, 45, 0.7);
}

.blog-article__title {
    margin: 0;
    max-width: 1089px;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.blog-article__lede {
    margin: 0;
    max-width: 586px;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.blog-article__figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #eaecec;
}

.blog-article__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1380 / 500;
    max-height: 500px;
    object-fit: cover;
}

.blog-article__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.blog-article__body--legacy {
    gap: 0;
}

.blog-article__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-article__section-title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.blog-article__section-text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.blog-article__inline-figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eaecec;
}

.blog-article__inline-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 534;
    max-height: 534px;
    object-fit: cover;
}

/* Типографіка контенту статті (редактор WordPress: h1–h6, p, списки, зображення) */
.blog-article__content {
    --blog-content-ink: var(--color-ink);
    --blog-content-muted: rgba(5, 38, 45, 0.7);
    font-family: Nekst, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--blog-content-muted);
}

.blog-article__content > *:first-child {
    margin-top: 0 !important;
}

.blog-article__content > *:last-child {
    margin-bottom: 0 !important;
}

.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4,
.blog-article__content h5,
.blog-article__content h6 {
    font-family: Nekst, sans-serif;
    font-weight: 600;
    color: var(--blog-content-ink);
    letter-spacing: -0.03em;
}

.blog-article__content h1 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.1;
}

.blog-article__content h2 {
    margin: 40px 0 20px;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.15;
}

.blog-article__content h3 {
    margin: 32px 0 16px;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.2;
}

.blog-article__content h4 {
    margin: 28px 0 14px;
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-article__content h5 {
    margin: 24px 0 12px;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-article__content h6 {
    margin: 20px 0 10px;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--blog-content-muted);
}

.blog-article__content p {
    margin: 0 0 1.2em;
}

.blog-article__content p:last-child {
    margin-bottom: 0;
}

.blog-article__content strong,
.blog-article__content b {
    font-weight: 600;
    color: var(--blog-content-ink);
}

.blog-article__content em,
.blog-article__content i {
    font-style: italic;
}

.blog-article__content a {
    color: var(--blog-content-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.blog-article__content a:hover {
    color: var(--color-orange);
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 0 0 1.2em;
    padding-left: 1.35em;
}

.blog-article__content ul {
    list-style: disc;
}

.blog-article__content ol {
    list-style: decimal;
}

.blog-article__content li {
    margin-bottom: 0.5em;
}

.blog-article__content li:last-child {
    margin-bottom: 0;
}

.blog-article__content li::marker {
    color: var(--blog-content-ink);
}

.blog-article__content ul ul,
.blog-article__content ol ol,
.blog-article__content ul ol,
.blog-article__content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0;
}

.blog-article__content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--color-orange);
    border-radius: 0 10px 10px 0;
    background: #fafafa;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--blog-content-ink);
}

.blog-article__content blockquote p {
    margin: 0;
}

.blog-article__content blockquote p + p {
    margin-top: 0.75em;
}

.blog-article__content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid rgba(5, 38, 45, 0.12);
}

.blog-article__content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 10px;
}

.blog-article__content figure {
    margin: 32px 0;
}

.blog-article__content figure img {
    margin: 0;
}

.blog-article__content figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--blog-content-muted);
}

.blog-article__content .wp-block-image,
.blog-article__content .wp-block-gallery {
    margin: 32px 0;
}

.blog-article__content .wp-block-image img,
.blog-article__content .wp-block-gallery img {
    border-radius: 10px;
}

.blog-article__content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
    color: var(--blog-content-ink);
}

.blog-article__content th,
.blog-article__content td {
    padding: 12px 16px;
    border: 1px solid rgba(5, 38, 45, 0.12);
    text-align: left;
    vertical-align: top;
}

.blog-article__content th {
    font-weight: 600;
    background: #fafafa;
}

.blog-article__content pre,
.blog-article__content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

.blog-article__content pre {
    margin: 32px 0;
    padding: 20px 24px;
    overflow-x: auto;
    border-radius: 10px;
    background: #fafafa;
    color: var(--blog-content-ink);
}

.blog-article__content :not(pre) > code {
    padding: 0.15em 0.4em;
    border-radius: 4px;
    background: #fafafa;
    color: var(--blog-content-ink);
}

.blog-article-cta {
    width: 100%;
    padding: clamp(28px, 3vw, 40px);
    border-radius: 20px;
    background: var(--color-ink);
}

.blog-article-cta__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 422px) minmax(260px, 380px);
    gap: 24px;
    align-items: stretch;
}

/* hidden / honeypot — не займають колонки grid (як у .cost__grid) */
.blog-article-cta__grid > input[type="hidden"],
.blog-article-cta__grid > .form-hp {
    display: none;
}

.blog-article-cta__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 266px;
}

.blog-article-cta__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 14ch;
}

.blog-article-cta__lede {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.7);
}

.blog-article-cta__fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-article-cta__field {
    display: block;
}

.blog-article-cta__input {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 30px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Nekst, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-ink);
    transition: border-color 0.15s ease;
    outline: none;
}

.blog-article-cta__input::placeholder {
    color: rgba(5, 38, 45, 0.7);
}

.blog-article-cta__input:focus-visible {
    border-color: var(--color-orange);
}

.blog-article-cta__textarea {
    height: auto;
    min-height: 134px;
    padding: 20px 30px;
    resize: vertical;
}

.blog-article__foot {
    padding-top: 8px;
}

.blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-ink);
    text-decoration: none;
}

.blog-article__back:hover {
    color: var(--color-orange);
}

/* Спеціальні пропозиції (сторінка статті) */
.blog-offers {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.blog-offers__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.blog-offers__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 596px;
}

.blog-offers__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.blog-offers__lede {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.6);
}

.blog-offers__nav {
    display: inline-flex;
    flex-shrink: 0;
    gap: 6px;
}

.blog-offers__nav-btn {
    display: grid;
    place-items: center;
    width: 70px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.blog-offers__nav-btn:hover:not(:disabled) {
    border-color: rgba(5, 38, 45, 0.45);
}

.blog-offers__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.blog-offers__nav-btn img {
    display: block;
    width: 16px;
    height: 16px;
}

.blog-offers__viewport {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.blog-offers__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.blog-offers__viewport.is-dragging .blog-offers__track {
    transition: none;
}

.blog-offers__track {
    display: flex;
    gap: 12px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.blog-offers__slide {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
}

.blog-offers__slide .brand-product-card,
.blog-offers__slide .brand-product-card__link {
    min-height: 368px;
}

/* Сторінка проєкту (кейс) */
.page-blog-project .blog-article__inner {
    gap: clamp(32px, 4vw, 48px);
}

.blog-article--project .blog-article__hero {
    margin-bottom: 8px;
}

.blog-article--project .blog-article-cta__title {
    max-width: 22ch;
}

.blog-article--project .blog-article-cta__lede {
    color: rgba(255, 255, 255, 0.6);
}

.blog-project-gallery {
    width: min(1690px, 100%);
    max-width: 1690px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.blog-project-gallery__stage {
    position: relative;
    min-height: 453px;
    padding-bottom: 70px;
}

.blog-project-gallery__viewport {
    overflow: visible;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.blog-project-gallery__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.blog-project-gallery__viewport.is-dragging .blog-project-gallery__track {
    transition: none;
}

.blog-project-gallery__viewport.is-dragging .blog-project-gallery__slide {
    transition: none;
}

.blog-project-gallery__track {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
    min-height: 453px;
    width: max-content;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-project-gallery__slide {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #d9d9d9;
    flex-shrink: 0;
}

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

.blog-project-gallery__slide--side {
    width: min(496px, 36vw);
    height: 333px;
    margin-bottom: 60px;
}

.blog-project-gallery__slide--center {
    width: min(674px, 50vw);
    height: 453px;
    margin-bottom: 0;
}

.blog-project-gallery__nav {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    z-index: 2;
}

.blog-project-gallery__nav-btn {
    display: grid;
    place-items: center;
    width: 70px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.blog-project-gallery__nav-btn:hover {
    border-color: rgba(5, 38, 45, 0.45);
}

.blog-project-gallery__nav-btn img {
    display: block;
    width: 16px;
    height: 16px;
}

.blog-project-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.blog-project-point {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 32px;
    border-radius: 20px;
}

.blog-project-point--a {
    background: #fafafa;
}

.blog-project-point--b {
    background: var(--color-orange);
}

.blog-project-point__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-project-point__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--color-ink);
    font-family: Nekst, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

.blog-project-point__title {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.blog-project-point__text {
    margin: 0;
    font-family: Nekst, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(5, 38, 45, 0.7);
}

.fade-in-ready {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in-ready.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Базова типографіка SEO-текстів перед footer */
.seo-content h2,
.seo-content h3 {
    margin: 0 0 12px;
    color: var(--color-ink);
    line-height: 1.2;
}

.seo-content h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.seo-content h3 {
    font-size: clamp(20px, 2.2vw, 28px);
}

.seo-content p,
.seo-content li {
    font-size: 16px;
    line-height: 1.6;
}

.seo-content ul,
.seo-content ol {
    margin: 0 0 16px 22px;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.seo-content th,
.seo-content td {
    border: 1px solid rgba(5, 38, 45, 0.16);
    padding: 10px 12px;
    text-align: left;
}