@charset "UTF-8";
/* ==========================================================================
   brand.css — дизайн-шар «Кривоозерська пекарня»
   Підключається ОСТАННІМ у <head>, тому виграє за каскадом у style.css.
   Вендорні style.css / default.css не редагуються — відкат = прибрати цей файл.
   ========================================================================== */

/* ==========================================================================
   1. Токени
   ========================================================================== */
:root {
    --crust: #1f1e17;
    --crumb: #2c2c2c;
    --gold: #eece38;
    --gold-deep: #d9ad1f;
    --cream: #f8f6ef;
    --paper: #fff;
    --ink: #1f1e17;
    --ink-muted: #6b675c;
    --line: #e7e2d6;
    --line-dark: rgba(255, 255, 255, .12);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --sh-1: 0 2px 8px rgba(31, 30, 23, .06), 0 1px 2px rgba(31, 30, 23, .04);
    --sh-2: 0 14px 34px rgba(31, 30, 23, .12), 0 4px 10px rgba(31, 30, 23, .06);

    /* головний важіль компактності: було 130–190px хардкодом у шаблоні */
    --sec-y: clamp(48px, 6vw, 88px);

    --header-h: 72px;
    --header-h-stuck: 60px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. База
   ========================================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
a, p, span, li, button, input, select, textarea, label {
    font-family: 'Montserrat', sans-serif;
}

img {
    max-width: 100%;
}

/* корисно для sticky-шапки: якір не ховається під нею */
html {
    scroll-padding-top: calc(var(--header-h) + 12px);
}

.k-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. Примітиви
   ========================================================================== */
.k-section {
    position: relative;
    padding: var(--sec-y) 0;
    background: var(--paper);
}

.k-section--cream {
    background: var(--cream);
}

.k-section--dark {
    background: var(--crust);
    color: #f4f1e8;
}

    .k-section--dark h1,
    .k-section--dark h2,
    .k-section--dark h3,
    .k-section--dark h4,
    .k-section--dark p,
    .k-section--dark li {
        color: #f4f1e8;
    }

.k-section--tight {
    padding: calc(var(--sec-y) * .6) 0;
}

.k-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -- надзаголовок ---------------------------------------------------------- */
.k-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

    .k-eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        background: var(--gold);
        border-radius: 2px;
    }

.k-section--dark .k-eyebrow {
    color: var(--gold);
}

/* -- заголовки секцій ------------------------------------------------------ */
.k-head {
    max-width: 720px;
    margin: 0 0 clamp(24px, 3vw, 40px);
}

.k-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.k-head h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
}

.k-head p {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.65;
}

.k-section--dark .k-head p {
    color: rgba(244, 241, 232, .72);
}

/* -- кнопки ---------------------------------------------------------------- */
.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

    .k-btn:hover {
        text-decoration: none;
        transform: translateY(-2px);
    }

    .k-btn:active {
        transform: translateY(0);
    }

    .k-btn:focus-visible {
        outline: 3px solid rgba(238, 206, 56, .55);
        outline-offset: 2px;
    }

.k-btn--gold {
    background: var(--gold);
    color: var(--crust);
    box-shadow: 0 6px 16px rgba(238, 206, 56, .32);
}

    .k-btn--gold:hover {
        background: var(--gold-deep);
        color: var(--crust);
        box-shadow: 0 10px 22px rgba(217, 173, 31, .38);
    }

.k-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(31, 30, 23, .22);
}

    .k-btn--ghost:hover {
        background: var(--ink);
        color: var(--paper);
        border-color: var(--ink);
    }

.k-btn--ghost-light {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
}

    .k-btn--ghost-light:hover {
        background: #fff;
        color: var(--crust);
        border-color: #fff;
    }

.k-btn--sm {
    padding: 9px 18px;
    font-size: 13px;
}

.k-btn--block {
    width: 100%;
}

.k-btn[disabled],
.k-btn[aria-busy="true"] {
    pointer-events: none;
    opacity: .68;
}

/* -- медіа-обгортка (лікує різновисокі картки) ----------------------------- */
.k-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r);
    background: #efeade;
}

    .k-media::before {
        content: "";
        display: block;
        padding-top: 75%; /* 4:3 за замовчуванням */
    }

.k-media--16x9::before {
    padding-top: 56.25%;
}

.k-media--1x1::before {
    padding-top: 100%;
}

.k-media--3x2::before {
    padding-top: 66.66%;
}

.k-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}

/* фолбек, коли фото не завантажилось: brand.js вішає .is-empty */
.k-media.is-empty::after {
    content: "🥖";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    opacity: .35;
}

.k-media.is-empty > img {
    display: none;
}

/* -- картка ---------------------------------------------------------------- */
.k-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    .k-card > .k-media {
        border-radius: 0;
        flex: none;
    }

.k-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1 1 auto;
}

.k-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

    .k-card__title a {
        color: var(--ink);
        text-decoration: none;
    }

        .k-card__title a:hover {
            color: var(--gold-deep);
        }

.k-card__meta {
    margin: 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.k-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-2);
    border-color: rgba(238, 206, 56, .55);
}

    .k-card:hover .k-media > img {
        transform: scale(1.05);
    }

/* повнокарткове посилання — клікабельна вся картка, без вкладених <a> */
.k-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* -- чипси ----------------------------------------------------------------- */
.k-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s var(--ease);
}

    .k-chip:hover {
        border-color: var(--gold);
        background: #fffdf2;
        color: var(--ink);
        text-decoration: none;
    }

    .k-chip.is-active {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--crust);
        font-weight: 700;
    }

    .k-chip:focus-visible {
        outline: 3px solid rgba(238, 206, 56, .5);
        outline-offset: 2px;
    }

/* -- бейджі ---------------------------------------------------------------- */
.k-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.k-badge--gold {
    background: rgba(238, 206, 56, .2);
    color: #7a6205;
}

.k-badge--muted {
    background: rgba(31, 30, 23, .07);
    color: var(--ink-muted);
}

.k-badge--out {
    background: rgba(31, 30, 23, .78);
    color: #fff;
    backdrop-filter: blur(2px);
}

/* -- порожній стан / повідомлення ------------------------------------------ */
.k-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    background: var(--cream);
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
}

    .k-empty__icon {
        font-size: 34px;
        line-height: 1;
        margin-bottom: 12px;
    }

    .k-empty h3 {
        margin: 0 0 8px;
        font-size: 19px;
        font-weight: 700;
    }

    .k-empty p {
        margin: 0 0 18px;
        color: var(--ink-muted);
        font-size: 14px;
    }

.k-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: var(--r-sm);
    border: 1px solid #f0c7a8;
    background: #fdf3ea;
    color: #8a4b16;
    font-size: 14px;
    line-height: 1.5;
}

    .k-alert i {
        margin-top: 2px;
    }

/* -- сітки ----------------------------------------------------------------- */
.k-grid {
    display: grid;
    gap: 24px;
}

.k-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.k-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1099px) {
    .k-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .k-grid--4,
    .k-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .k-grid {
        gap: 16px;
    }

    .k-grid--4,
    .k-grid--3,
    .k-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. Шапка
   ========================================================================== */
/* УВАГА: backdrop-filter НЕ можна вішати на сам .k-header.
   Елемент із backdrop-filter стає containing block для position:fixed
   нащадків — мобільна шухляда .k-nav тоді позиціонується відносно шапки
   (висота ~72px) замість вікна, і список меню вивалюється назовні.
   Тому фон і розмиття малює ::before, у якого нащадків немає. */
.k-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: transparent;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease);
}

    .k-header::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(255, 255, 255, .92);
        backdrop-filter: saturate(180%) blur(10px);
    }

    .k-header.is-stuck {
        box-shadow: 0 6px 20px rgba(31, 30, 23, .08);
    }

.k-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--header-h);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    transition: height .25s var(--ease);
}

.k-header.is-stuck .k-header__inner {
    height: var(--header-h-stuck);
}

.k-brand {
    flex: none;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

    .k-brand img {
        height: 42px;
        width: auto;
        transition: height .25s var(--ease);
    }

.k-header.is-stuck .k-brand img {
    height: 34px;
}

/* -- меню ------------------------------------------------------------------ */
.k-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.k-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-nav__item {
    position: relative;
    list-style: none;
}

.k-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .18s var(--ease), color .18s var(--ease);
}

    .k-nav__link:hover,
    .k-nav__link:focus-visible {
        background: rgba(238, 206, 56, .16);
        color: var(--ink);
        text-decoration: none;
    }

    .k-nav__link.is-active {
        color: var(--crust);
        font-weight: 700;
        background: rgba(238, 206, 56, .3);
    }

    .k-nav__link[aria-expanded] .k-nav__caret {
        font-size: 11px;
        transition: transform .2s var(--ease);
    }

    .k-nav__link[aria-expanded="true"] .k-nav__caret {
        transform: rotate(180deg);
    }

/* підменю (адмінська гілка) */
.k-subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.k-nav__item:hover > .k-subnav,
.k-nav__item:focus-within > .k-subnav,
.k-subnav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.k-subnav a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 13.5px;
    text-decoration: none;
    transition: background-color .15s var(--ease);
}

    .k-subnav a:hover {
        background: var(--cream);
        color: var(--ink);
        text-decoration: none;
    }

/* -- дії справа ------------------------------------------------------------ */
.k-header__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.k-header__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .k-header__tel i {
        color: var(--gold-deep);
    }

    .k-header__tel:hover {
        color: var(--gold-deep);
        text-decoration: none;
    }

/* -- бургер ---------------------------------------------------------------- */
.k-burger {
    display: none;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

    .k-burger span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform .22s var(--ease), opacity .22s var(--ease);
    }

    .k-burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .k-burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .k-burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.k-scrim {
    position: fixed;
    inset: 0;
    z-index: 890;
    background: rgba(31, 30, 23, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
}

    .k-scrim.is-open {
        opacity: 1;
        visibility: visible;
    }

/* -- мобільна шухляда ------------------------------------------------------ */
@media (max-width: 1099px) {
    .k-burger {
        display: inline-flex;
    }

    .k-header__tel span {
        display: none;
    }

    /* Шухляда закрита = display:none. Це навмисно, а не задля вигляду:
       position:fixed-елемент, зсунутий за правий край, додає ~320px
       горизонтального скролу сторінці, а overflow-x:hidden на <html>
       полагодити це не може — воно ламає sticky-шапку.
       brand.js монтує (.is-mounted) шухляду перед відкриттям і демонтує
       після анімації, тож слайд лишається. */
    .k-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 901;
        width: min(330px, 88vw);
        display: none;
        flex-direction: column;
        padding: 0;
        background: var(--paper);
        box-shadow: -18px 0 40px rgba(31, 30, 23, .18);
        overflow: hidden;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
    }

        .k-nav.is-mounted {
            display: flex;
        }

        .k-nav.is-open {
            transform: translateX(0);
        }

    /* шапка шухляди */
    .k-nav__head {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .k-nav__logo {
        height: 40px;
        width: auto;
    }

    /* підвал шухляди */
    .k-nav__foot {
        flex: none;
        display: grid;
        gap: 12px;
        padding: 16px;
        background: var(--cream);
        border-top: 1px solid var(--line);
    }

    .k-nav__tel {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
    }

        .k-nav__tel i {
            color: var(--gold-deep);
        }

        .k-nav__tel:hover {
            color: var(--gold-deep);
            text-decoration: none;
        }

    .k-nav__list {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        margin: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Пункт — рядок на всю ширину, без роздільників:
       ритм тримають відступи, а не лінії. */
    .k-nav__link {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 13px 14px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 12px;
    }

        .k-nav__link.is-active {
            background: var(--gold);
            color: var(--crust);
            font-weight: 700;
            box-shadow: 0 6px 16px rgba(238, 206, 56, .3);
        }

        .k-nav__link:active {
            background: rgba(31, 30, 23, .06);
        }

        .k-nav__link.is-active:active {
            background: var(--gold-deep);
        }

    .k-subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin: 2px 0 6px 14px;
        padding: 0 0 0 8px;
        display: none;
    }

        .k-subnav.is-open {
            display: block;
        }

    .k-nav__close {
        flex: none;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--cream);
        border: 0;
        border-radius: 50%;
        font-size: 17px;
        color: var(--ink);
        cursor: pointer;
        transition: background-color .18s var(--ease);
    }

        .k-nav__close:hover {
            background: #eee7d6;
        }
}

@media (min-width: 1100px) {
    .k-nav__head,
    .k-nav__foot {
        display: none;
    }
}

@media (max-width: 700px) {
    .k-header__actions .k-btn {
        display: none;
    }

    .k-header__tel {
        font-size: 0;
    }

        .k-header__tel i {
            font-size: 17px;
        }
}

/* ==========================================================================
   5. Футер
   ========================================================================== */
.k-footer {
    background: var(--crust);
    color: rgba(255, 250, 240, .78);
    font-size: 14px;
    line-height: 1.6;
}

.k-footer__main {
    display: grid;
    grid-template-columns: 1.25fr 2fr 1fr;
    gap: 40px;
    padding: clamp(40px, 5vw, 64px) 0 36px;
}

.k-footer__brand img {
    height: 54px;
    width: auto;
    margin-bottom: 18px;
}

.k-footer__about {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: rgba(255, 250, 240, .68);
    max-width: 42ch;
}

.k-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .k-footer__contacts li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        list-style: none;
        color: rgba(255, 250, 240, .78);
    }

    .k-footer__contacts i {
        margin-top: 3px;
        color: var(--gold);
        font-size: 15px;
        flex: none;
    }

    .k-footer__contacts a {
        color: rgba(255, 250, 240, .88);
        text-decoration: none;
    }

        .k-footer__contacts a:hover {
            color: var(--gold);
            text-decoration: none;
        }

.k-footer__title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fffaf0;
}

.k-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-footer__links--single {
    grid-template-columns: 1fr;
}

.k-footer__links li {
    list-style: none;
}

.k-footer__links a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: rgba(255, 250, 240, .72);
    text-decoration: none;
    transition: color .18s var(--ease), padding-left .18s var(--ease);
}

    .k-footer__links a:hover {
        color: var(--gold);
        padding-left: 5px;
        text-decoration: none;
    }

.k-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 22px;
    border-top: 1px solid var(--line-dark);
    font-size: 12.5px;
    color: rgba(255, 250, 240, .6);
}

    .k-footer__bottom p {
        margin: 0;
        font-size: 12.5px;
        color: rgba(255, 250, 240, .6);
    }

    .k-footer__bottom a {
        color: rgba(255, 250, 240, .8);
        text-decoration: none;
    }

        .k-footer__bottom a:hover {
            color: var(--gold);
            text-decoration: none;
        }

/* -- бейдж «Створено OptionFlow» ------------------------------------------- */
.k-madeby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px 7px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .05);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

    .k-madeby:hover {
        background: rgba(255, 255, 255, .09);
        border-color: rgba(94, 80, 226, .55);
        transform: translateY(-1px);
        text-decoration: none;
    }

    .k-madeby:focus-visible {
        outline: 3px solid rgba(94, 80, 226, .55);
        outline-offset: 2px;
    }

.k-madeby__by {
    color: rgba(255, 250, 240, .55);
}

.k-madeby__mark {
    height: 18px;
    width: auto; /* viewBox 226×234.3 — не квадрат, тож ширину не фіксуємо */
    flex: none;
    display: block;
}

.k-madeby__name {
    font-weight: 700;
    color: #fffaf0;
    letter-spacing: -.01em;
}

.k-madeby__sep {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, .2);
}

.k-madeby__url {
    color: #9d92f0;
    font-weight: 600;
    transition: color .18s var(--ease);
}

.k-madeby:hover .k-madeby__url {
    color: #b9b1f7;
}

@media (max-width: 950px) {
    .k-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

        .k-footer__main > :first-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 620px) {
    .k-footer__main {
        grid-template-columns: 1fr;
    }

    .k-footer__links {
        grid-template-columns: 1fr;
    }

    .k-footer__bottom {
        justify-content: center;
        text-align: center;
    }
}

/* «нагору» — прибираємо різкий вигляд шаблону */
.back-to-top {
    z-index: 880;
}

/* ==========================================================================
   6. Банер сторінки (компактна заміна .page-banner: було padding 190px 0)
   ========================================================================== */
.k-banner {
    position: relative;
    z-index: 1;
    padding: clamp(52px, 7vw, 86px) 0;
    background-color: var(--crust);
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}

    .k-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(100deg, rgba(20, 19, 14, .88) 0%, rgba(20, 19, 14, .66) 48%, rgba(20, 19, 14, .38) 100%);
    }

/* тонкий варіант — коли заголовком сторінки є назва товару нижче */
.k-banner--slim {
    padding: clamp(26px, 3.4vw, 40px) 0;
}

.k-banner h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.015em;
    color: #fff;
}

.k-banner p {
    margin: 12px 0 0;
    max-width: 56ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
}

.k-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: rgba(255, 255, 255, .68);
}

    .k-crumbs li {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .k-crumbs li + li::before {
            content: "/";
            opacity: .5;
        }

    .k-crumbs a {
        color: rgba(255, 255, 255, .78);
        text-decoration: none;
    }

        .k-crumbs a:hover {
            color: var(--gold);
            text-decoration: none;
        }

    .k-crumbs .is-current {
        color: var(--gold);
    }

/* ==========================================================================
   7. Головна
   ========================================================================== */
/* -- герой ----------------------------------------------------------------- */
.k-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(70vh, 640px);
    padding: clamp(56px, 8vw, 96px) 0;
    background-color: var(--crust);
    background-size: cover;
    background-position: center;
    isolation: isolate;
    overflow: hidden;
}

    .k-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(96deg, rgba(18, 17, 12, .92) 0%, rgba(24, 22, 15, .74) 42%, rgba(60, 47, 15, .34) 100%);
    }

@media (min-width: 768px) {
    .k-hero {
        min-height: 520px;
    }
}

.k-hero__inner {
    max-width: 640px;
}

.k-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5.2vw, 60px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.02em;
    color: #fff;
}

.k-hero__lead {
    margin: 18px 0 0;
    max-width: 52ch;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.k-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* -- смуга фактів ---------------------------------------------------------- */
.k-facts {
    background: var(--crust);
    padding: clamp(34px, 4vw, 52px) 0;
}

.k-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.k-fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .k-fact i {
        flex: none;
        font-size: 30px;
        line-height: 1;
        color: var(--gold);
    }

.k-fact__value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.k-fact__label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 250, 240, .62);
}

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

@media (max-width: 520px) {
    .k-facts__grid {
        grid-template-columns: 1fr;
    }
}

/* -- про нас --------------------------------------------------------------- */
.k-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

    .k-about p {
        margin: 0 0 14px;
        font-size: 15px;
        line-height: 1.7;
        color: var(--ink-muted);
    }

.k-about__media img {
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    display: block;
}

@media (max-width: 820px) {
    .k-about {
        grid-template-columns: 1fr;
    }

    .k-about__media {
        order: -1;
    }
}

/* -- CTA-смуга ------------------------------------------------------------- */
.k-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

    .k-cta h2 {
        margin: 0;
        font-size: clamp(22px, 2.8vw, 34px);
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
    }

    .k-cta p {
        margin: 10px 0 0;
        max-width: 56ch;
        font-size: 15px;
        color: rgba(244, 241, 232, .72);
    }

.k-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   8. Продукція (Store)
   ========================================================================== */
.k-filters {
    position: relative;
    z-index: 40;
    padding: 18px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

@media (min-width: 992px) {
    .k-filters {
        position: sticky;
        top: var(--header-h-stuck);
    }
}

.k-filters__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* -- категорії ------------------------------------------------------------- */
.k-cats {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.k-cats__toggle {
    display: none; /* на десктопі не потрібен — чипси видно одразу */
}

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

/* -- пошук ----------------------------------------------------------------- */
.k-search {
    position: relative;
    flex: none;
    width: min(320px, 100%);
}

.k-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

    .k-search__field:focus-within {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(238, 206, 56, .22);
        background: var(--paper);
    }

    .k-search__field i {
        color: var(--ink-muted);
        font-size: 14px;
        flex: none;
    }

.k-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
}

    .k-search input::placeholder {
        color: var(--ink-muted);
        opacity: .8;
    }

.k-search__spinner {
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(31, 30, 23, .18);
    border-top-color: var(--gold-deep);
    border-radius: 50%;
    animation: k-spin .7s linear infinite;
    display: none;
}

.k-search.is-busy .k-search__spinner {
    display: block;
}

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

.k-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-2);
    display: none;
}

    .k-search__results.is-open {
        display: block;
    }

    .k-search__results li {
        list-style: none;
    }

    .k-search__results a {
        display: block;
        padding: 10px 12px;
        border-radius: var(--r-sm);
        color: var(--ink);
        font-size: 14px;
        text-decoration: none;
    }

        .k-search__results a:hover,
        .k-search__results a.is-highlighted {
            background: var(--gold);
            color: var(--crust);
            text-decoration: none;
        }

.k-search__none {
    padding: 14px 12px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-muted);
}

@media (max-width: 991px) {
    .k-filters__row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .k-search {
        width: 100%;
        order: -1;
    }

    /* Мобільний вигляд категорій: замість горизонтальної стрічки, де довгі
       назви обрізаються і не видно, що вона взагалі скролиться, —
       зрозумілий список, який розгортається, з поточною категорією в кнопці. */
    .k-cats__toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        font-family: inherit;
        text-align: left;
        cursor: pointer;
    }

    .k-cats__label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

    .k-cats__toggle strong {
        display: block;
        margin-top: 2px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
    }

    .k-cats__toggle i {
        flex: none;
        color: var(--ink-muted);
        transition: transform .2s var(--ease);
    }

    .k-cats.is-open .k-cats__toggle {
        border-color: var(--gold);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

        .k-cats.is-open .k-cats__toggle i {
            transform: rotate(180deg);
        }

    .k-cats__list {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border: 1px solid var(--gold);
        border-top: 0;
        border-radius: 0 0 var(--r-sm) var(--r-sm);
        overflow: hidden;
    }

    .k-cats.is-open .k-cats__list {
        display: flex;
    }

    .k-cats__list .k-chip {
        justify-content: space-between;
        padding: 13px 16px;
        border: 0;
        border-radius: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.4;
    }

        .k-cats__list .k-chip + .k-chip {
            border-top: 1px solid var(--line);
        }

        .k-cats__list .k-chip.is-active {
            background: rgba(238, 206, 56, .22);
            color: var(--ink);
        }

            .k-cats__list .k-chip.is-active::after {
                content: "✓";
                flex: none;
                margin-left: 10px;
                color: var(--gold-deep);
                font-weight: 700;
            }
}

/* -- картка товару --------------------------------------------------------- */
.k-product .k-media {
    background: var(--cream);
}

.k-product--out {
    opacity: .82;
}

    .k-product--out .k-media > img {
        filter: grayscale(72%);
    }

    .k-product--out:hover {
        transform: none;
        border-color: var(--line);
        box-shadow: var(--sh-1);
    }

        .k-product--out:hover .k-media > img {
            transform: none;
        }

.k-product__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.k-count {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--ink-muted);
}

/* ==========================================================================
   9. Блог
   ========================================================================== */
.k-post__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1 1 auto;
}

    .k-post__body h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.32;
    }

        .k-post__body h3 a {
            color: var(--ink);
            text-decoration: none;
        }

            .k-post__body h3 a:hover {
                color: var(--gold-deep);
                text-decoration: none;
            }

    .k-post__body p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: var(--ink-muted);
    }

.k-post__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 12.5px;
    color: var(--ink-muted);
}

    .k-post__date i {
        color: var(--gold-deep);
    }

/* -- пагінація X.PagedList -------------------------------------------------- */
.k-pager {
    margin-top: clamp(28px, 4vw, 48px);
}

    .k-pager .pagination,
    .k-pager ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .k-pager li {
        list-style: none;
    }

    .k-pager a,
    .k-pager span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--paper);
        color: var(--ink);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all .18s var(--ease);
    }

        .k-pager a:hover {
            border-color: var(--gold);
            background: rgba(238, 206, 56, .18);
            color: var(--ink);
            text-decoration: none;
        }

    .k-pager .active a,
    .k-pager .active span {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--crust);
    }

    .k-pager .disabled a,
    .k-pager .disabled span {
        opacity: .45;
        pointer-events: none;
    }

/* ==========================================================================
   10. Форма співпраці
   ========================================================================== */
.k-coop {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}

/* -- ліва панель ----------------------------------------------------------- */
.k-coop__aside {
    padding: clamp(28px, 3vw, 38px);
    background: var(--crust);
    border-radius: var(--r-lg);
    color: rgba(255, 250, 240, .8);
}

@media (min-width: 992px) {
    .k-coop__aside {
        position: sticky;
        top: calc(var(--header-h-stuck) + 20px);
    }
}

.k-coop__aside h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.k-coop__points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

    .k-coop__points li {
        display: flex;
        gap: 12px;
        list-style: none;
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 250, 240, .78);
    }

    .k-coop__points i {
        flex: none;
        margin-top: 3px;
        color: var(--gold);
    }

    .k-coop__points strong {
        display: block;
        color: #fff;
        font-weight: 600;
        margin-bottom: 2px;
    }

.k-coop__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
}

    .k-coop__contacts li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        list-style: none;
        font-size: 14px;
    }

    .k-coop__contacts i {
        flex: none;
        margin-top: 3px;
        color: var(--gold);
    }

    .k-coop__contacts a {
        color: rgba(255, 250, 240, .88);
        text-decoration: none;
    }

        .k-coop__contacts a:hover {
            color: var(--gold);
            text-decoration: none;
        }

/* -- картка форми ---------------------------------------------------------- */
.k-formcard {
    padding: clamp(24px, 3vw, 40px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

    .k-formcard > h2 {
        margin: 0 0 6px;
        font-size: clamp(22px, 2.6vw, 28px);
        font-weight: 700;
        line-height: 1.25;
    }

.k-formcard__hint {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--ink-muted);
}

.k-fieldset {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

    .k-fieldset:last-of-type {
        margin-bottom: 18px;
    }

.k-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

    .k-legend::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background: var(--line);
    }

.k-legend__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--gold);
    color: var(--crust);
    font-size: 11px;
    font-weight: 700;
}

.k-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.k-field--full {
    grid-column: 1 / -1;
}

@media (max-width: 620px) {
    .k-fields {
        grid-template-columns: 1fr;
    }
}

/* -- поле з плаваючою підписою --------------------------------------------- */
.k-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .k-field > input.form-control,
    .k-field > select.form-control,
    .k-field > textarea.form-control {
        width: 100%;
        padding: 22px 14px 8px;
        border: 1.5px solid var(--line);
        border-radius: var(--r-sm);
        background: var(--cream);
        color: var(--ink);
        font-size: 15px;
        line-height: 1.35;
        outline: 0;
        box-shadow: none;
        transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
        -webkit-appearance: none;
        appearance: none;
    }

    .k-field > textarea.form-control {
        min-height: 120px;
        padding-top: 26px;
        resize: vertical;
    }

    .k-field > select.form-control {
        cursor: pointer;
        padding-right: 40px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%231f1e17' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 11px;
    }

    /* плаваюча підпис */
    .k-field > label {
        position: absolute;
        top: 13px;
        left: 15px;
        margin: 0;
        font-size: 14px;
        line-height: 1;
        color: var(--ink-muted);
        pointer-events: none;
        transform-origin: left top;
        transition: transform .16s var(--ease), color .16s var(--ease);
    }

    .k-field > input.form-control:focus + label,
    .k-field > select.form-control:focus + label,
    .k-field > textarea.form-control:focus + label,
    .k-field > input.form-control:not(:placeholder-shown) + label,
    .k-field > textarea.form-control:not(:placeholder-shown) + label,
    .k-field.is-filled > label {
        transform: translateY(-6px) scale(.78);
        color: var(--ink-muted);
    }

    .k-field > input.form-control:focus,
    .k-field > select.form-control:focus,
    .k-field > textarea.form-control:focus {
        border-color: var(--gold);
        background: var(--paper);
        box-shadow: 0 0 0 4px rgba(238, 206, 56, .24);
    }

        .k-field > input.form-control:focus + label,
        .k-field > select.form-control:focus + label,
        .k-field > textarea.form-control:focus + label {
            color: var(--gold-deep);
        }

/* обов'язковість */
.k-req {
    color: #c0392b;
    margin-left: 2px;
}

/* стани помилки: серверні (.input-validation-error), клієнтські (.is-invalid), нативні */
.k-field > .form-control.input-validation-error,
.k-field > .form-control.is-invalid,
.k-field > .form-control:user-invalid {
    border-color: #d94a3d;
    background: #fdf4f3;
}

    .k-field > .form-control.input-validation-error:focus,
    .k-field > .form-control.is-invalid:focus,
    .k-field > .form-control:user-invalid:focus {
        box-shadow: 0 0 0 4px rgba(217, 74, 61, .18);
    }

.k-field__err {
    display: block;
    min-height: 0;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #c0392b;
}

    .k-field__err:empty {
        display: none;
    }

/* лічильник символів */
.k-counter {
    align-self: flex-end;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

    .k-counter.is-near {
        color: #c0392b;
    }

/* підвал форми */
.k-formcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.k-privacy {
    font-size: 13.5px;
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

    .k-privacy:hover {
        color: var(--gold-deep);
        text-decoration: none;
    }

/* зведення помилок валідації */
.k-coop .validation-summary-errors {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #eabfba;
    border-radius: var(--r-sm);
    background: #fdf4f3;
    color: #a03027;
    font-size: 13.5px;
}

    .k-coop .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

.k-coop .validation-summary-valid {
    display: none;
}

@media (max-width: 991px) {
    .k-coop {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   11. Карта
   ========================================================================== */
.k-mapgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

.k-mapcard {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    background: var(--cream);
}

.k-mapcard__canvas {
    width: 100%;
    height: 480px;
}

.k-mapcard__fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: var(--cream);
    color: var(--ink-muted);
    font-size: 14px;
}

.k-mapcard.is-failed .k-mapcard__fallback {
    display: flex;
}

.k-infocard {
    padding: clamp(24px, 3vw, 32px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

    .k-infocard h2 {
        margin: 0 0 18px;
        font-size: 21px;
        font-weight: 700;
    }

.k-deflist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

    .k-deflist li {
        display: flex;
        gap: 12px;
        list-style: none;
    }

    .k-deflist i {
        flex: none;
        margin-top: 4px;
        color: var(--gold-deep);
        font-size: 15px;
    }

    .k-deflist strong {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--ink-muted);
        margin-bottom: 3px;
    }

    .k-deflist a,
    .k-deflist span {
        font-size: 15px;
        color: var(--ink);
        text-decoration: none;
    }

    .k-deflist a:hover {
        color: var(--gold-deep);
        text-decoration: none;
    }

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

    .k-mapcard__canvas {
        height: 340px;
    }
}

/* ==========================================================================
   12. Сторінка товару
   ========================================================================== */
.k-product-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}

.k-gallery__main {
    border-radius: var(--r-lg);
    background: var(--cream);
    border: 1px solid var(--line);
}

.k-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.k-thumb {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--cream);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}

    .k-thumb::before {
        content: "";
        display: block;
        padding-top: 100%;
    }

    .k-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .k-thumb:hover {
        transform: translateY(-2px);
        border-color: rgba(238, 206, 56, .6);
    }

    .k-thumb.is-active {
        border-color: var(--gold);
    }

    .k-thumb:focus-visible {
        outline: 3px solid rgba(238, 206, 56, .5);
        outline-offset: 2px;
    }

.k-product-page h1 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.k-product__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.k-notice {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin: 22px 0;
    border-radius: var(--r);
    border: 1px solid rgba(238, 206, 56, .5);
    background: #fffaea;
}

    .k-notice i {
        flex: none;
        margin-top: 2px;
        color: var(--gold-deep);
        font-size: 16px;
    }

    .k-notice strong {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        font-weight: 700;
    }

    .k-notice p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: var(--ink-muted);
    }

.k-prose {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
}

    .k-prose > :first-child {
        margin-top: 0;
    }

    .k-prose > :last-child {
        margin-bottom: 0;
    }

    .k-prose h1,
    .k-prose h2,
    .k-prose h3,
    .k-prose h4 {
        margin: 1.6em 0 .5em;
        font-weight: 700;
        line-height: 1.3;
    }

    .k-prose h2 {
        font-size: 22px;
    }

    .k-prose h3 {
        font-size: 18px;
    }

    .k-prose p {
        margin: 0 0 1.1em;
    }

    .k-prose ul,
    .k-prose ol {
        margin: 0 0 1.1em;
        padding-left: 22px;
    }

    .k-prose li {
        margin-bottom: .4em;
        list-style: inherit;
    }

    .k-prose img {
        max-width: 100%;
        height: auto;
        border-radius: var(--r);
        margin: 1em 0;
    }

    .k-prose a {
        color: var(--gold-deep);
        text-decoration: underline;
    }

    .k-prose table {
        width: 100%;
        border-collapse: collapse;
        margin: 0 0 1.2em;
        font-size: 14px;
    }

    .k-prose th,
    .k-prose td {
        padding: 9px 12px;
        border: 1px solid var(--line);
        text-align: left;
    }

    .k-prose th {
        background: var(--cream);
        font-weight: 600;
    }

/* горизонтальний скрол лишається всередині таблиці, а не в body */
.k-prose-wrap {
    overflow-x: auto;
}

@media (max-width: 850px) {
    .k-product-page {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Стаття блогу
   ========================================================================== */
.k-article {
    max-width: 780px;
    margin: 0 auto;
}

.k-article__media {
    margin-bottom: clamp(20px, 3vw, 32px);
    border-radius: var(--r-lg);
}

.k-article h1 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}

.k-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-muted);
}

    .k-article__meta i {
        margin-right: 6px;
        color: var(--gold-deep);
    }

.k-article__body {
    max-width: 72ch;
    font-size: 16px;
    line-height: 1.8;
    color: #33312a;
    white-space: pre-line;
}

.k-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

    .k-back:hover {
        color: var(--gold-deep);
        text-decoration: none;
    }

/* ==========================================================================
   14. Перевизначення шаблону (те, що лишилось у вендорних файлах)
   ========================================================================== */
/* прелоадер шаблону не має перекривати новий контент після fadeOut */
.preloader {
    z-index: 9999;
}

/* nice-select усередині наших полів не потрібен — селект лишається нативним */
.k-field .nice-select {
    display: none !important;
}

/* ==========================================================================
   15. Доступність / рух
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
