/* =========================================================================
   БЕЗ ПРОБКИ — magazine theme (Newspaper-style, own build)
   ========================================================================= */

:root {
    --paper:      #faf8f5;
    --card:       #ffffff;
    --ink:        #1c1517;
    --muted:      #8a7a6e;
    --line:       #e7ddd2;

    --wine:       #7b1e3b;
    --wine-deep:  #5e1830;
    --wine-bright:#a11d40;

    --bar:        #17100f;   /* dark nav / footer */
    --bar-2:      #211715;

    --thumb-a:    #7b1e3b;
    --thumb-b:    #340d1c;

    --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --wrap: 1068px;   /* Newspaper .td-container */
    --gutter: 48px;   /* Newspaper column gutter (2 x 24px) */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-bright); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0; }
/* Newspaper stepped container widths (content width, side padding only on mobile) */
@media (max-width: 1140px) { .wrap { max-width: 980px; } }
@media (max-width: 1018px) { .wrap { max-width: 740px; } }
@media (max-width: 767px)  { .wrap { max-width: 100%; padding: 0 20px; } }

/* ---- Display headings ------------------------------------------------- */
h1, h2, h3, .display {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: .2px;
    margin: 0;
}

/* =========================================================================
   Masthead (light) + nav bar (dark)
   ========================================================================= */
.masthead {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
}
.masthead__logo img { height: 74px; width: auto; }
.masthead__tagline {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: var(--muted);
}
.masthead__search {
    border: 1px solid var(--line);
    background: var(--paper);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--wine);
    cursor: pointer;
}
.masthead__search svg { width: 18px; height: 18px; }
.masthead__auth { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.masthead__auth b { color: var(--wine); font-weight: 600; }
.masthead__auth a { color: var(--wine); }
.masthead__auth--in { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.masthead__auth--in:hover { border-color: var(--wine); }

/* Login launcher modal */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(20,10,14,.55); }
.auth-modal__card { position: relative; z-index: 1; width: 100%; max-width: 380px; background: var(--paper);
    border: 1px solid var(--line); border-radius: 14px; padding: 34px 30px 30px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.auth-modal__x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.auth-modal__x:hover { color: var(--wine); }
.auth-modal__logo { height: 54px; width: auto; margin: 0 auto 14px; display: block; }
.auth-modal__title { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin: 0 0 6px; }
.auth-modal__sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.auth-modal__primary { display: block; background: var(--wine); color: #fff; font-family: var(--display);
    text-transform: uppercase; letter-spacing: .03em; font-size: 15px; padding: 15px; border-radius: 8px; }
.auth-modal__primary:hover { background: var(--wine-deep); color: #fff; }
.auth-modal__primary[disabled], .auth-modal__primary.is-loading { opacity: .6; cursor: default; }
/* Auth tabs (Вход / Регистрация). */
.auth-tabs { display: flex; gap: 6px; margin: 14px 0 16px; background: var(--card); padding: 4px; border-radius: 10px; }
.auth-tabs__tab { flex: 1; border: 0; background: transparent; cursor: pointer; padding: 9px; border-radius: 7px;
    font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--muted); }
.auth-tabs__tab.is-active { background: #fff; color: var(--wine); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
/* Login form (modal + /login page). */
.auth-form { text-align: left; margin-top: 6px; }
.auth-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-form__hint { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.auth-form__field { display: block; margin-bottom: 12px; }
.auth-form__field span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); margin-bottom: 5px; }
.auth-form__field input { width: 100%; box-sizing: border-box; padding: 12px 13px; font-size: 15px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.auth-form__field input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123,30,59,.12); }
.auth-form__error { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.35); color: #a5281c;
    font-size: 13px; padding: 9px 12px; border-radius: 7px; margin-bottom: 12px; }
.auth-form .auth-modal__primary { width: 100%; border: 0; cursor: pointer; margin-top: 4px; }
/* Standalone /login page (deep-link fallback). */
.auth-page { display: flex; justify-content: center; padding: 40px 16px 60px; }
.auth-page__card { max-width: 420px; width: 100%; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,.08);
    border: 1px solid var(--line); border-radius: 14px; padding: 34px 30px; }
.auth-modal__secondary { display: block; margin-top: 10px; border: 1px solid var(--wine); color: var(--wine); font-family: var(--display);
    text-transform: uppercase; letter-spacing: .03em; font-size: 15px; padding: 14px; border-radius: 8px; }
.auth-modal__secondary:hover { background: var(--wine); color: #fff; }
.auth-modal__or { position: relative; margin: 22px 0 16px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.auth-modal__or::before, .auth-modal__or::after { content: ""; position: absolute; top: 50%; width: 18%; height: 1px; background: var(--line); }
.auth-modal__or::before { left: 0; }
.auth-modal__or::after { right: 0; }
.auth-modal__social { display: flex; gap: 8px; }
.auth-modal__soc { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px; font-size: 13px; color: var(--muted); }
.auth-modal__soc.is-soon { opacity: .5; cursor: not-allowed; }

.nav {
    background: var(--bar);
    position: sticky; top: 0; z-index: 50;
}
.nav__bar { display: flex; align-items: stretch; }
.nav__burger { display: none; }   /* shown on mobile only */
.nav__inner { display: flex; flex: 1; min-width: 0; align-items: stretch; gap: 2px; }
.nav__inner > * { flex: 0 0 auto; }   /* keep natural width so overflow is real (priority nav) */
.nav a {
    color: #f2e9e2;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .6px;
    padding: 15px 16px;
    display: inline-flex; align-items: center; gap: 6px;
    position: relative;
    white-space: nowrap;
}
.nav a:hover { background: var(--bar-2); color: #fff; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; background: var(--wine-bright);
}
.nav__item { position: relative; }
.nav__item:hover > .nav__drop { display: block; }
.nav__drop {
    display: none;
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--bar-2); padding: 6px 0; z-index: 60;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.nav__drop a { display: block; padding: 9px 16px; font-size: 13px; }
.nav__spacer { flex: 1; }

/* "Ещё" overflow menu (priority nav) */
.nav__more[hidden] { display: none; }
.nav__caret { font-size: 11px; }
.nav__more > .nav__drop { left: auto; right: 0; min-width: 210px; }
[data-nav-more-list] > a,
[data-nav-more-list] > .nav__item > a { display: block; padding: 9px 16px; font-size: 13px; color: #f2e9e2; }
[data-nav-more-list] > a:hover,
[data-nav-more-list] > .nav__item > a:hover { background: rgba(255,255,255,.06); color: #fff; }
[data-nav-more-list] .nav__drop { position: static; display: block; background: transparent; box-shadow: none; padding: 0; }
[data-nav-more-list] .nav__drop a { padding: 6px 16px 6px 30px; font-size: 12px; color: #c9b8ae; }
[data-nav-more-list] .nav__drop a:hover { color: #fff; }

/* Burger button (mobile) */
.nav__burger { background: none; border: 0; cursor: pointer; padding: 0 18px; align-items: center; }
.nav__burger-box { position: relative; display: block; width: 24px; height: 16px; }
.nav__burger-box span { position: absolute; left: 0; width: 100%; height: 2px; background: #f2e9e2; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav__burger-box span:nth-child(1) { top: 0; }
.nav__burger-box span:nth-child(2) { top: 7px; }
.nav__burger-box span:nth-child(3) { top: 14px; }
.nav.is-open .nav__burger-box span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav.is-open .nav__burger-box span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger-box span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* =========================================================================
   Category label
   ========================================================================= */
.label {
    display: inline-block;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    color: #fff;
    background: var(--wine-bright);
    padding: 4px 9px;
    line-height: 1;
}
.label--news    { background: #a11d40; }
.label--article { background: #1f6f6b; }
.c0 { background:#a11d40; } .c1 { background:#1f6f6b; } .c2 { background:#b8860b; }
.c3 { background:#6a4c93; } .c4 { background:#4a7c59; } .c5 { background:#c05621; }

/* =========================================================================
   Thumbnails (gradient placeholders — no real images yet)
   ========================================================================= */
.thumb {
    display: block;
    width: 100%;
    position: relative;
    aspect-ratio: 324 / 235;   /* Newspaper medium crop (324x235) */
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), transparent 55%),
        linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
    overflow: hidden;
}
.thumb--tall { aspect-ratio: 3 / 4; }
.thumb--cover { background-size: cover; background-position: center; }
.thumb--fill { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.thumb__ico {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: rgba(255,255,255,.14); font-size: 64px;
}

/* =========================================================================
   Section headings ("block titles" like Newspaper)
   ========================================================================= */
.block { margin: 34px 0; }
.block__head {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 18px;
}
.block__title {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 18px; letter-spacing: .5px;
    background: var(--ink); color: #fff;
    padding: 8px 14px; margin-bottom: -2px;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 22px 0; }
.feature { position: relative; display: block; color: #fff; overflow: hidden; }
.feature--hero .thumb { aspect-ratio: 536 / 399; }   /* Newspaper big_grid tile */
.feature__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    background: linear-gradient(to top, rgba(10,4,7,.86), rgba(10,4,7,.15) 70%, transparent);
}
.feature__title {
    font-family: var(--display);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    font-size: 30px;   /* Newspaper flex_2 overlay ~25-34px */
    line-height: 1.1;
}
.feature__meta { color: rgba(255,255,255,.75); font-size: 12px; margin: 0; }
.feature:hover .feature__title { color: #ffd9e2; }

/* =========================================================================
   Trending strip
   ========================================================================= */
.trending {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--line); background: var(--card);
    padding: 10px 12px; margin: 18px 0;
}
.trending__tag {
    font-family: var(--display); text-transform: uppercase; letter-spacing: .5px;
    background: var(--ink); color: #fff; padding: 5px 10px; font-size: 12px; white-space: nowrap;
}
.trending__viewport {
    position: relative; flex: 1; height: 22px; overflow: hidden;
}
.trending__item {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    color: var(--ink); font-weight: 600; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(6px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
.trending__item.is-active {
    opacity: 1; transform: none; pointer-events: auto;
}
.trending__item:hover { color: var(--wine-bright); }
.trending__nav { display: flex; gap: 4px; }
.trending__btn {
    width: 26px; height: 26px; border: 1px solid var(--line); background: var(--paper);
    color: var(--ink); cursor: pointer; line-height: 1; font-size: 16px;
    display: grid; place-items: center;
}
.trending__btn:hover { background: var(--ink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .trending__item { transition: none; transform: none; }
}

/* =========================================================================
   Layout columns
   ========================================================================= */
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }

/* Sticky sidebar: follows the scroll down the long main column, releases at the
   bottom of .columns (near the footer). Offset clears the sticky nav bar. */
.sidebar {
    position: sticky;
    top: 66px;
    align-self: start;
}

/* =========================================================================
   Cards
   ========================================================================= */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: var(--card); }
.card__body { padding: 12px 2px; }
.card .label { position: absolute; top: 10px; left: 10px; }
.card__thumb { display: block; position: relative; }
.card__title {
    font-family: var(--display); text-transform: uppercase;
    font-size: 18px; margin: 10px 0 6px;
}
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--wine-bright); }
.card__meta { color: var(--muted); font-size: 12px; }
.card__excerpt { color: #4a3f39; font-size: 14px; margin: 8px 0 0; }

/* full-width 3-column module (Newspaper td_block_5, span4 x3) */
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.block__more { margin-left: auto; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--wine); }
.home-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 900px) { .home-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-products { grid-template-columns: 1fr; } }

/* big post (Newspaper td_block_23 / td_module_18): 16:9 image, text below */
.bigpost { display: block; margin-bottom: 30px; }
.bigpost:last-child { margin-bottom: 0; }
.bigpost__thumb { display: block; position: relative; margin-bottom: 12px; }
.bigpost__thumb .thumb { aspect-ratio: 696 / 385; }   /* Newspaper big crop (696x385) */
.bigpost__thumb .label { position: absolute; top: 12px; left: 12px; }
.bigpost__title { font-family: var(--display); text-transform: uppercase; font-size: 26px; line-height: 1.08; margin: 4px 0 8px; }
.bigpost__title a { color: var(--ink); }
.bigpost__title a:hover { color: var(--wine-bright); }
.bigpost__excerpt { color: #4a3f39; font-size: 15px; margin: 8px 0 0; }

/* horizontal list post (Newspaper td_block_12 / td_module_11): image left, text right */
.hrow { display: grid; grid-template-columns: 34% 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hrow:first-child { padding-top: 0; }
.hrow:last-child { border-bottom: 0; }
.hrow__thumb { display: block; position: relative; }
.hrow__thumb .label { position: absolute; top: 8px; left: 8px; }
.hrow__title { font-family: var(--display); text-transform: uppercase; font-size: 17px; line-height: 1.14; margin: 0 0 6px; }
.hrow__title a { color: var(--ink); }
.hrow__title a:hover { color: var(--wine-bright); }
.hrow__meta { color: var(--muted); font-size: 12px; }
.hrow__excerpt { color: #4a3f39; font-size: 13.5px; margin-top: 7px; }

/* list row (compact) */
.row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__thumb { flex: 0 0 104px; }
.row__thumb .thumb { aspect-ratio: 1 / 1; }
.row__title { font-family: var(--display); text-transform: uppercase; font-size: 15px; margin: 2px 0 5px; }
.row__title a { color: var(--ink); }
.row__meta { color: var(--muted); font-size: 12px; }

/* =========================================================================
   Sidebar widgets
   ========================================================================= */
.widget { margin-bottom: 30px; }
.widget__head {
    font-family: var(--display); text-transform: uppercase; font-size: 15px;
    background: var(--ink); color: #fff; padding: 8px 12px; margin-bottom: 14px;
}
.newsletter {
    background: var(--wine); color: #fff; padding: 22px;
}
.newsletter h3 { color:#fff; text-transform: uppercase; font-size: 20px; }
.newsletter p { color: rgba(255,255,255,.85); font-size: 14px; }
.newsletter input {
    width: 100%; padding: 11px 12px; border: 0; margin: 6px 0; font-size: 14px;
}
.newsletter button {
    width: 100%; padding: 11px; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; font-family: var(--display);
    text-transform: uppercase; letter-spacing: .5px;
}

/* =========================================================================
   Article (single)
   ========================================================================= */
.article { max-width: 760px; margin: 8px auto 0; }
.article__title { font-size: 40px; text-transform: uppercase; margin: 12px 0; }
.article__meta { color: var(--muted); font-size: 13px; display: flex; gap: 12px; align-items: center; }
.article__cover .thumb { aspect-ratio: 16 / 8; margin: 18px 0; }
.article__body { font-size: 17px; line-height: 1.75; }
.article__body p { margin: 0 0 1.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
    display: inline-block; padding: 5px 11px; border-radius: 999px;
    background: #f0e6da; color: var(--wine-deep); font-size: 13px;
}
.chip:hover { background: var(--wine); color: #fff; }

/* =========================================================================
   Single post (Newspaper single_template_2): full-width header + 8/4 columns
   ========================================================================= */
.post__header { margin: 24px 0 26px; }
.post__crumbs {
    font-family: var(--display); text-transform: uppercase; letter-spacing: .4px;
    font-size: 12px; color: var(--muted); margin-bottom: 14px;
}
.post__crumbs a { color: var(--muted); }
.post__crumbs a:hover { color: var(--wine-bright); }
.post__crumbs .sep { margin: 0 8px; opacity: .6; }
.post__cats { margin-bottom: 12px; }
.post__title { font-family: var(--display); text-transform: uppercase; font-size: 42px; line-height: 1.05; margin: 0 0 14px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 13px; }
.post__meta strong { color: var(--ink); font-weight: 600; }
.post__meta .dot { opacity: .5; }

.post__cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.post__cover .thumb { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.post__body { font-size: 17px; line-height: 1.8; }
.post__body p { margin: 0 0 1.15em; }

.post__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.post__tags-label { font-family: var(--display); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; color: var(--muted); margin-right: 4px; }
.post__related { margin-top: 36px; }

/* section tree */
.tree ul { list-style: none; padding-left: 20px; margin: 6px 0; }
.tree > ul { padding-left: 0; }
.tree li { padding: 5px 0; }
.tree .name { font-family: var(--display); text-transform: uppercase; font-size: 15px; }
.tree .slug { color: var(--muted); font-size: 12px; margin-left: 6px; }

.page-title { font-size: 34px; text-transform: uppercase; margin: 26px 0 4px; }
.crumb { color: var(--muted); font-size: 13px; margin: 20px 0 0; }

/* =========================================================================
   Catalog (SimpleWine-style listing, recoloured)
   ========================================================================= */
.cat-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--wine-deep), var(--wine) 55%, #3a0f1e);
    color: #fff; border-radius: 8px; padding: 40px 44px; margin: 22px 0 22px;
}
.cat-hero__title { font-family: var(--display); text-transform: uppercase; font-size: 50px; line-height: 1; margin: 0 0 12px; }
.cat-hero__text { max-width: 64ch; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.7; margin: 0; }
.cat-hero__glass { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font-size: 130px; opacity: .16; pointer-events: none; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cat-chip { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); background: var(--card); }
.cat-chip:hover { border-color: var(--wine); color: var(--wine); }
.cat-chip.is-on { background: var(--wine); border-color: var(--wine); color: #fff; }

/* --- Events (grouped by day, SimpleWine-style) --- */
.event-badge { display: inline-block; background: var(--wine); color: #fff; font-family: var(--display);
    text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 5px 12px; }

.ev-strip { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ev-strip__month { align-self: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em;
    font-size: 13px; color: var(--wine); padding: 0 12px 0 4px; white-space: nowrap; }
.ev-strip__day { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0; border-radius: 8px; color: var(--muted); }
.ev-strip__num { font-family: var(--display); font-size: 18px; line-height: 1; }
.ev-strip__wd { font-size: 10px; text-transform: uppercase; }
.ev-strip__day.is-weekend { color: var(--wine-bright); }
.ev-strip__day.is-active { color: var(--ink); }
.ev-strip__day.is-active.is-weekend { color: var(--wine); }
.ev-strip__day.is-active:hover { background: var(--wine); color: #fff; }

.ev-day { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink);
    padding-bottom: 8px; margin: 34px 0 18px; scroll-margin-top: 90px; }
.ev-day__date { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; }
.ev-day__weekday { color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }

.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.evc__img { position: relative; display: grid; place-items: center; aspect-ratio: 3/2; background: var(--paper);
    border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.evc__img img { width: 100%; height: 100%; object-fit: cover; }
.evc__img > span:not(.evc__tag) { font-size: 52px; opacity: .25; }
.evc__tag { position: absolute; bottom: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--wine);
    font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 11px; padding: 4px 11px; border-radius: 20px; }
.evc__title { font-family: var(--display); font-size: 21px; line-height: 1.15; margin: 0 0 8px; }
.evc__title a { color: var(--ink); }
.evc__title a:hover { color: var(--wine-bright); }
.evc__price { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.evc__when, .evc__place { color: var(--muted); font-size: 13px; line-height: 1.5; }

.ev-hero { border-radius: 12px; padding: 62px 24px; margin: 6px 0 26px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--wine-deep), #241016); background-size: cover; background-position: center; }
.ev-hero__inner { max-width: 720px; margin: 0 auto; }
.ev-hero__meta { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; opacity: .85; margin-bottom: 18px; }
.ev-hero__title { font-family: var(--display); font-size: 46px; line-height: 1.05; margin: 0 0 16px; }
.ev-hero__note { opacity: .85; font-size: 15px; margin: 0 auto 26px; max-width: 560px; }
.ev-hero__cta { display: inline-flex; align-items: stretch; background: #fff; color: var(--ink); border-radius: 8px; overflow: hidden; font-family: var(--display); }
.ev-hero__cta-label { padding: 15px 24px; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; display: flex; align-items: center; }
.ev-hero__cta-price { padding: 15px 24px; font-size: 18px; background: rgba(0,0,0,.06); display: flex; align-items: center; }
.ev-hero__cta:hover { color: var(--wine); }
.ev-hero__paynote { opacity: .7; font-size: 12px; margin: 14px 0 0; }
.ev-cols { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.ev-venue__place { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.ev-venue__phone { font-family: var(--display); font-size: 18px; }
.ev-block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; }
.ev-block__head { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; margin: 0 0 14px; }
.ev-block__note { color: var(--muted); font-size: 13px; margin: -6px 0 16px; }

/* --- Reports --- */
.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.rcard__img { position: relative; display: grid; place-items: center; aspect-ratio: 3/2; background: var(--paper); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__img > span { font-size: 48px; opacity: .25; }
.rcard__count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.rcard__date { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.rcard__title { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 0; }
.rcard__title a { color: var(--ink); }
.rcard__title a:hover { color: var(--wine-bright); }
.rep-cover { margin: 0 0 24px; }
.rep-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; }
.rep-video { position: relative; max-width: 760px; aspect-ratio: 16/9; margin: 0 0 24px; }
.rep-video iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.rep-block { margin: 30px 0; }
.rep-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rep-gallery__item { aspect-ratio: 1; overflow: hidden; border-radius: 6px; display: block; }
.rep-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.rep-gallery__item:hover img { transform: scale(1.05); }
.rep-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rep-link { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; color: var(--ink); font-size: 14px; }
.rep-link:hover { border-color: var(--wine); color: var(--wine); }
.rep-link__tag { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 10px; color: #fff; background: var(--wine); padding: 3px 8px; border-radius: 4px; }
@media (max-width: 900px) { .rep-grid { grid-template-columns: repeat(2, 1fr); } .rep-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rep-grid { grid-template-columns: 1fr; } .rep-gallery { grid-template-columns: repeat(2, 1fr); } }
.ev-block__place { font-size: 16px; margin-bottom: 6px; }
.ev-block__phone { font-family: var(--display); font-size: 18px; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ev-hero { padding: 42px 18px; } .ev-hero__title { font-size: 32px; } .ev-cols { grid-template-columns: 1fr; gap: 26px; } }

.cat-toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* --- Faceted filtering (catalog) --- */
.cat-unavailable { padding: 44px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.cat-empty { padding: 30px 0; color: var(--muted); }

.cat-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.cat-active__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px;
    background: var(--wine); color: #fff; border-radius: 20px; }
.cat-active__chip span { opacity: .7; font-size: 11px; }
.cat-active__chip:hover { background: var(--wine-deep); color: #fff; }
.cat-active__reset { font-size: 13px; color: var(--muted); margin-left: 4px; }

.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.cat-filters { position: sticky; top: 16px; }
.cat-filters__head { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em;
    font-size: 16px; color: var(--ink); border-bottom: 2px solid var(--wine); padding-bottom: 8px; margin-bottom: 4px; }
.cat-facet { border-bottom: 1px solid var(--line); }
.cat-facet__head { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 13px;
    color: var(--ink); padding: 12px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cat-facet__head::-webkit-details-marker { display: none; }
.cat-facet__head::after { content: '▾'; color: var(--muted); font-size: 11px; transition: transform .15s; }
.cat-facet[open] .cat-facet__head::after { transform: rotate(180deg); }
.cat-facet__list { max-height: 240px; overflow-y: auto; padding: 2px 2px 12px; display: flex; flex-direction: column; gap: 1px; }
.cat-opt { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 5px; color: var(--ink); font-size: 14px; }
.cat-opt:hover { background: var(--paper); color: var(--ink); }
.cat-opt__box { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; position: relative; }
.cat-opt.is-on .cat-opt__box { background: var(--wine); border-color: var(--wine); }
.cat-opt.is-on .cat-opt__box::after { content: '✓'; color: #fff; font-size: 11px; line-height: 1; position: absolute; top: 1px; left: 2px; }
.cat-opt__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-opt.is-on .cat-opt__label { color: var(--wine); font-weight: 600; }
.cat-opt__count { flex: none; color: var(--muted); font-size: 12px; }
@media (max-width: 767px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-filters { position: static; }
}

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat-grid--compact .pcard { padding: 14px 14px 16px; }
.cat-grid--compact .pcard__img { height: 190px; }
.cat-grid--compact .pcard__img img { max-height: 190px; }
/* Section editorial intro (image + prose) shown above assigned content. */
.sec-intro { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start;
    margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-intro--text { grid-template-columns: 1fr; }
.sec-intro__media img { width: 100%; border-radius: 4px; display: block; }
.sec-intro__body { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.sec-intro__body p { margin: 0 0 .9em; }
.sec-intro__body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .sec-intro { grid-template-columns: 1fr; gap: 16px; } }

.sec-block { margin: 4px 0 30px; }
.sec-block__head { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em;
    font-size: 15px; color: var(--wine); border-bottom: 2px solid var(--wine); padding-bottom: 7px; margin: 0 0 16px; }
.sec-block__more { display: inline-block; margin-top: 14px; font-family: var(--display);
    text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--wine); }
.sec-events { display: flex; flex-direction: column; gap: 1px; }
.sec-event { display: grid; grid-template-columns: 130px 100px 1fr auto; align-items: center; gap: 12px;
    padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.sec-event:hover { background: var(--card); color: var(--ink); }
.sec-event__date { font-family: var(--display); color: var(--wine); white-space: nowrap; }
.sec-event__type { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sec-event__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-event__price { font-family: var(--display); white-space: nowrap; color: var(--ink); }
@media (max-width: 600px) { .sec-event { grid-template-columns: 1fr auto; } .sec-event__type { display: none; } }
.pcard { background: var(--card); border: 1px solid var(--line); padding: 18px 18px 20px; display: flex; flex-direction: column; }
.pcard__top { display: flex; justify-content: space-between; align-items: baseline; }
.pcard__id { font-size: 11px; color: #bcae9f; }
.pcard__rating { font-family: var(--display); font-size: 15px; color: var(--wine); }
.pcard__img { height: 250px; display: grid; place-items: center; margin: 8px 0 12px; }
.pcard__img img { max-height: 250px; max-width: 72%; width: auto; object-fit: contain; }
.pcard__name { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.pcard__name a { color: var(--ink); }
.pcard__name a:hover { color: var(--wine-bright); }
.pcard__meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pcard__spacer { flex: 1; min-height: 12px; }
.pcard__price { font-family: var(--display); font-size: 23px; text-align: center; margin: 10px 0 12px; }
.pcard__price small { font-size: 15px; }
.pcard__more {
    display: block; text-align: center; padding: 11px; border: 1px solid var(--wine); color: var(--wine);
    font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 13px;
}
.pcard__more:hover { background: var(--wine); color: #fff; }

.cat-pager { display: flex; justify-content: center; gap: 6px; margin: 30px 0 4px; flex-wrap: wrap; }
.cat-pager a, .cat-pager span {
    min-width: 38px; text-align: center; padding: 8px 10px; border: 1px solid var(--line);
    font-family: var(--display); font-size: 14px; color: var(--ink);
}
.cat-pager a:hover { border-color: var(--wine); color: var(--wine); }
.cat-pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-pager .is-disabled { color: #cbbdb0; }

/* Product detail */
.product { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; margin-top: 8px; }
.product__media { background: var(--card); border: 1px solid var(--line); padding: 26px; display: grid; place-items: center; position: sticky; top: 66px; }
.product__media img { max-width: 100%; max-height: 460px; object-fit: contain; }
.product__title { font-family: var(--display); text-transform: uppercase; font-size: 32px; line-height: 1.08; margin: 0 0 14px; }
.product__price { font-family: var(--display); font-size: 30px; margin: 4px 0 18px; }
.product__vintages { margin: 0 0 22px; }
.product__vintages-head { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em;
    font-size: 13px; color: var(--wine); margin: 0 0 8px; }
.product__vintages table { width: 100%; border-collapse: collapse; }
.product__vintages th { text-align: left; font-weight: 400; font-size: 12px; text-transform: uppercase;
    letter-spacing: .03em; color: var(--muted); padding: 6px 10px; border-bottom: 2px solid var(--wine); }
.product__vintages td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.product__vintages tbody tr:hover { background: var(--card); }
.product__vintages td:last-child { font-family: var(--display); white-space: nowrap; }
.vol-select { margin: 0 0 22px; }
.vol-select__label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.vol-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vol-chip { font-family: var(--display); font-size: 16px; line-height: 1; padding: 11px 20px;
    border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink);
    cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s; }
.vol-chip:hover { border-color: var(--wine); }
.vol-chip.is-active { border-color: var(--wine); color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.vol-chip.is-disabled { opacity: .3; pointer-events: none; }
.vintage-row { cursor: pointer; }
.product__vintages tbody tr.is-active { background: var(--wine); }
.product__vintages tbody tr.is-active td { color: #fff; border-bottom-color: var(--wine); }
.product__specs { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.product__specs th, .product__specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.product__specs th { color: var(--muted); font-weight: 400; width: 40%; }
.product__desc { font-size: 15px; line-height: 1.75; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--bar); color: #cbb8ac; margin-top: 50px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 42px 20px; }
.footer h4 {
    font-family: var(--display); text-transform: uppercase; color: #fff;
    font-size: 15px; margin: 0 0 14px; letter-spacing: .5px;
}
.footer a { color: #cbb8ac; }
.footer a:hover { color: #fff; }
.footer__brand img { height: 92px; filter: brightness(1.9) saturate(1.2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px; font-size: 12px; color: #8a7266; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 767px) {
    .hero { grid-template-columns: 1fr; }
    .columns { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }
    .grid { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr; }
    .hrow { grid-template-columns: 40% 1fr; }
    .post__cols { grid-template-columns: 1fr; }
    .post__title { font-size: 30px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-hero__title { font-size: 34px; }
    .cat-hero__glass { display: none; }
    .product { grid-template-columns: 1fr; }
    .product__media { position: static; }
    .footer__inner { grid-template-columns: 1fr; }
    .feature__title { font-size: 24px; }

    /* Burger menu */
    .nav__bar { min-height: 54px; align-items: center; }
    .nav__burger { display: flex; padding: 15px 18px; }
    .nav__inner {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bar-2);
        box-shadow: 0 14px 30px rgba(0,0,0,.4);
        display: none; z-index: 60;
    }
    .nav.is-open .nav__inner { display: flex; }
    .nav__inner > * { width: 100%; }
    .nav__inner > a, .nav__inner > .nav__item > a { padding: 13px 22px; }
    .nav__item .nav__drop { position: static; display: block; background: transparent; box-shadow: none; padding: 0; }
    .nav__item .nav__drop a { padding: 9px 22px 9px 42px; font-size: 13px; opacity: .85; }
    .nav__more { display: none; }   /* mobile shows everything, no "Ещё" */
}
