/* ========================================================
   BurgasMedia — Editorial Redesign
   Design tokens, base, layout, components
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* Paper / surface — cool light grays (Bloomberg / Reuters direction) */
  --paper:        #F5F7FA;       /* light cool gray — page bg */
  --paper-2:      #FAFBFC;       /* almost white — cards */
  --paper-3:      #E8EDF2;       /* deeper cool gray — wells, hover */

  /* Ink / text — deep cool navy */
  --ink:          #0F1E3D;       /* primary text, headings */
  --ink-2:        #3C4A60;       /* secondary text */
  --ink-3:        #7A8699;       /* tertiary, meta, labels */

  /* Accent — teal/cyan, echoes the sea without going red */
  --accent:       #0891B2;       /* cyan-700 */
  --accent-deep:  #155E75;       /* cyan-900 */
  --accent-soft:  #ECFEFF;       /* cyan-50 */

  /* Logo red — preserved from Bulgarian flag, NEVER tied to --accent */
  --logo-red:     #DC2626;
  --logo-green:   #16A34A;

  /* Sea — Burgas Bay, used for dark surfaces */
  --sea:          #0F1E3D;       /* deep navy (same as ink, intentional) */
  --sea-2:        #1E3A5F;       /* mid navy */
  --sea-3:        #2E5482;       /* lighter navy */
  --sand:         #A8B4C4;       /* cool silver, replaces warm sand */

  /* Misc */
  --rule:         #D8DFE7;
  --rule-2:       #E8EDF2;
  --shadow-1:     0 1px 2px rgba(15,30,61,.05), 0 4px 16px rgba(15,30,61,.04);
  --shadow-2:     0 8px 30px rgba(15,30,61,.10);
  --shadow-3:     0 20px 60px rgba(15,30,61,.18);

  /* Type */
  --serif:        'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans:         'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;

  /* Sizes */
  --container:    1320px;
  --gap:          28px;

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

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

html{ scroll-behavior:smooth; }

html,body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* Clean, flat cool surface — no warm paper grain in the cold modern look */
html{ overflow-x:hidden; }
body{
  background-image: none;
  overflow-x:hidden;
  max-width:100%;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; transition:color .2s var(--ease); }
button{ font-family:inherit; cursor:pointer; }

/* Selection */
::selection{ background:var(--ink); color:var(--paper); }

/* Container */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}
@media (max-width:780px){ .container{ padding:0 20px; } }

/* =========================================================
   LOGO — translated from user's Tailwind markup
   ========================================================= */
.bm-logo{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--sans); font-weight:700; font-size:24px;
  letter-spacing:-.02em; color:var(--ink);
}
.bm-mark{
  position:relative; width:40px; height:40px;
  border-radius:8px; overflow:hidden;
  box-shadow:0 4px 12px rgba(15,30,61,.20), inset 0 0 0 1px rgba(15,30,61,.10);
  flex-shrink:0;
}
.bm-mark .s1,.bm-mark .s2,.bm-mark .s3{ height:33.34%; }
.bm-mark .s1{ background:#FFFFFF; }
.bm-mark .s2{ background:#16A34A; }   /* tailwind green-600 */
.bm-mark .s3{ background:#DC2626; }   /* tailwind red-600 */
.bm-mark .b-letter{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
}
.bm-mark .b-letter::before{
  content:""; width:24px; height:24px; border-radius:50%;
  background:rgba(15,23,42,.30);  /* surface-900 @ 30% */
  position:absolute;
}
.bm-mark .b-letter span{
  position:relative; color:#fff; font-family:var(--sans);
  font-weight:800; font-size:24px; line-height:1;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.bm-mark .m-tag{
  position:absolute; right:-4px; bottom:-4px;
  width:20px; height:20px; border-radius:6px;
  background:var(--logo-red);
  box-shadow:0 3px 8px rgba(220,38,38,.4);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:var(--sans); font-weight:800; font-size:12px;
}
.bm-logo .wordmark{ display:inline-flex; line-height:1; }
.bm-logo .wordmark .lo-a{ color:var(--ink); }
.bm-logo .wordmark .lo-b{ color:var(--logo-red); }
.bm-logo.is-light .wordmark .lo-a{ color:var(--paper); }
.bm-logo.is-light .wordmark .lo-b{ color:var(--paper); }
.bm-logo.is-light .wordmark .lo-a{ color:var(--paper); }
.bm-logo.is-light .wordmark .lo-b{ color:var(--accent); }
.bm-logo.is-small{ font-size:18px; }
.bm-logo.is-small .bm-mark{ width:32px; height:32px; border-radius:7px; }
.bm-logo.is-small .bm-mark .b-letter::before{ width:18px; height:18px; }
.bm-logo.is-small .bm-mark .b-letter span{ font-size:18px; }
.bm-logo.is-small .bm-mark .m-tag{ width:16px; height:16px; font-size:10px; border-radius:5px; right:-3px; bottom:-3px; }

/* =========================================================
   TOP BAR — utility strip with date / weather / lang
   ========================================================= */
.utility-bar{
  background:var(--ink);
  color:var(--paper);
  font-size:12px; letter-spacing:.04em;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.utility-bar .container{
  display:flex; align-items:center; justify-content:space-between;
  height:36px;
}
.utility-bar a:hover{ color:var(--sand); }
.utility-bar .util-left,.utility-bar .util-right{
  display:flex; align-items:center; gap:22px;
}
.utility-bar .dot{
  width:6px; height:6px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 0 4px rgba(8,145,178,.22);
  display:inline-block; margin-right:8px;
  animation:pulse 2s var(--ease) infinite;
}
@keyframes pulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.25); opacity:.7; }
}
.util-link{ font-family:var(--mono); text-transform:uppercase; font-size:11px; }
@media (max-width:780px){
  .utility-bar{ display:none; }
}

/* =========================================================
   HEADER  — masthead
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:var(--paper);
  /* ВАЖНО: НЕ использовать backdrop-filter/will-change/filter здесь —
     они делают site-header containing-block для position:fixed потомков
     (мобильный drawer) и ломают его. Оставляем сплошной фон. */
  box-shadow:0 1px 0 var(--rule);
  /* Инерционная кривая (expo-out) — мягкое плавное замедление */
  transition:transform .55s cubic-bezier(.16,1,.3,1),
             box-shadow .4s ease;
}
/* Скрытие при прокрутке вниз — плавный уход вверх */
body.is-hidden .site-header{ transform:translateY(-100%); }
/* Пока drawer открыт — никакого transform на обёртке, иначе
   fixed-потомок (меню) спозиционируется относительно неё, а не окна */
body.nav-open .site-header{ transform:none !important; }
.mast-spacer{ height:0; }            /* JS держит = высоте site-header */
html{ scroll-padding-top:120px; }     /* якоря не прячутся под фикс-шапкой */
body{ overflow-anchor:none; }         /* отключаем scroll-anchoring → нет дрожания */
.masthead{
  background:var(--paper);
  border-bottom:1px solid var(--rule);
}
.masthead .container.mast-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:32px;
  padding-top:18px; padding-bottom:18px;
}
/* Навигация — отдельная строка во всю ширину (газетный масштаб) */
.primary-nav-wrap{
  border-top:1px solid var(--rule);
  background:var(--paper);
  position:relative; z-index:40;
}
.drawer-head{ display:none; }
.primary-nav-wrap .container{
  overflow:visible;
}
.primary-nav{
  display:flex; align-items:center; gap:1px;
  justify-content:center; flex-wrap:wrap;
  margin:0 auto;
}
.nav-item{ position:relative; flex:none; }
.primary-nav a{
  display:inline-flex; align-items:center; gap:6px;
  font-size:14px; font-weight:600; letter-spacing:.01em;
  padding:14px 16px; border-radius:8px; position:relative;
  color:var(--ink-2); white-space:nowrap;
}
.primary-nav a:hover{ color:var(--ink); background:var(--paper-3); }
.primary-nav a.is-active{ color:var(--accent); }
.primary-nav a.is-active::after{
  content:""; position:absolute; bottom:0; left:16px; right:16px;
  height:2px; background:var(--accent);
}
.primary-nav .caret{ opacity:.5; transition:transform .25s var(--ease); }
.nav-item.has-children:hover .caret,
.nav-item.has-children:focus-within .caret{ transform:rotate(180deg); opacity:.9; }

/* Каскадное выпадающее меню (2-й этаж) — ТОЛЬКО десктоп ≥901px.
   На мобиле dropdown статичный (правила в @media max-width:900px). */
@media (min-width:901px){
  .nav-drop{
    position:absolute; top:calc(100% - 2px); left:50%;
    transform:translateX(-50%) translateY(8px);
    min-width:230px; max-width:320px;
    background:var(--paper-2);
    border:1px solid var(--rule);
    border-radius:14px;
    box-shadow:var(--shadow-3, 0 24px 60px rgba(15,30,61,.18));
    padding:8px;
    display:flex; flex-direction:column; gap:1px;
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index:60;
  }
  .nav-item.has-children:hover .nav-drop,
  .nav-item.has-children:focus-within .nav-drop{
    opacity:1; visibility:visible; pointer-events:auto;
    transform:translateX(-50%) translateY(0);
  }
  .nav-drop::before{
    content:""; position:absolute; top:-7px; left:50%; transform:translateX(-50%) rotate(45deg);
    width:12px; height:12px; background:var(--paper-2);
    border-left:1px solid var(--rule); border-top:1px solid var(--rule);
  }
  .nav-drop a{
    font-size:14px; font-weight:500; color:var(--ink-2);
    padding:10px 14px; border-radius:9px; white-space:nowrap;
  }
  .nav-drop a:hover{ background:var(--paper-3); color:var(--ink); }
  .nav-drop a.is-active{ color:var(--accent); background:var(--accent-soft); }
  .nav-drop .nav-drop-all{
    font-family:var(--mono); font-size:10.5px; letter-spacing:.08em;
    text-transform:uppercase; color:var(--ink-3);
    border-bottom:1px solid var(--rule); border-radius:0;
    margin-bottom:5px; padding-bottom:11px;
  }
  .nav-drop .nav-drop-all:hover{ background:transparent; color:var(--accent); }
}
.head-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.icon-btn{
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--rule); background:transparent;
  color:var(--ink); display:inline-flex; align-items:center; justify-content:center;
  transition:.2s var(--ease);
}
.icon-btn:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--ink); color:var(--paper);
  padding:11px 18px; border-radius:999px;
  font-weight:600; font-size:13.5px; letter-spacing:.02em;
  border:0; transition:.2s var(--ease);
}
.btn:hover{ background:var(--accent); }
.btn.is-ghost{ background:transparent; color:var(--ink); border:1px solid var(--ink); }
.btn.is-ghost:hover{ background:var(--ink); color:var(--paper); }
.btn.is-accent{ background:var(--accent); }
.btn.is-accent:hover{ background:var(--accent-deep); }
.btn.is-light{ background:var(--paper); color:var(--ink); }

/* Бургер-кнопка */
.mobile-toggle{
  display:none; width:44px; height:44px; border:0; background:transparent;
  color:var(--ink); align-items:center; justify-content:center; cursor:pointer;
  border-radius:10px;
}
.mobile-toggle:hover{ background:var(--paper-3); }
.mt-bars{ display:block; width:22px; height:16px; position:relative; }
.mt-bars span{
  position:absolute; left:0; right:0; height:2px; border-radius:2px;
  background:var(--ink); transition:.28s var(--ease);
}
.mt-bars span:nth-child(1){ top:0; }
.mt-bars span:nth-child(2){ top:7px; }
.mt-bars span:nth-child(3){ top:14px; }
.nav-open .mt-bars span:nth-child(1){ top:7px; transform:rotate(45deg); }
.nav-open .mt-bars span:nth-child(2){ opacity:0; }
.nav-open .mt-bars span:nth-child(3){ top:7px; transform:rotate(-45deg); }

@media (max-width:1200px){
  .primary-nav a{ padding:13px 13px; font-size:13.5px; }
}

/* Sub-nav of sections */
.section-bar{
  background:var(--paper);
  border-bottom:1px solid var(--rule);
  font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
}
.section-bar .container{
  display:flex; align-items:center; gap:24px;
  height:42px; overflow-x:auto; scrollbar-width:none;
}
.section-bar .container::-webkit-scrollbar{ display:none; }
.section-bar a{ color:var(--ink-3); white-space:nowrap; padding:14px 0; position:relative; }
.section-bar a:hover{ color:var(--ink); }
.section-bar a.is-active{ color:var(--ink); }
.section-bar a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--ink);
}

/* =========================================================
   KICKERS / META / SECTION HEADINGS
   ========================================================= */
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); text-transform:uppercase;
  font-size:11px; letter-spacing:.14em;
  color:var(--accent);
}
.kicker.is-sea{ color:var(--sea-2); }
.kicker.is-ink{ color:var(--ink); }
.kicker.is-light{ color:var(--paper); }
.kicker::before{
  content:""; width:24px; height:1px; background:currentColor; opacity:.5;
}
.kicker.no-line::before{ display:none; }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  border-bottom:1px solid var(--ink); padding-bottom:14px; margin-bottom:32px;
  gap:20px; flex-wrap:wrap;
}
.section-head h2{
  font-family:var(--serif); font-weight:600; font-style:italic;
  font-size:clamp(28px, 4vw, 44px); margin:0; letter-spacing:-.02em;
  font-variation-settings:"opsz" 144;
}
.section-head h2 .num{
  font-family:var(--mono); font-style:normal; font-weight:500;
  font-size:.5em; color:var(--ink-3); margin-right:10px; letter-spacing:.04em;
  vertical-align:middle;
}
.section-head .see-all{
  font-family:var(--mono); font-size:12px; text-transform:uppercase;
  letter-spacing:.05em; color:var(--accent); font-weight:600;
  white-space:nowrap; padding-bottom:3px;
}
.section-head .see-all:hover{ color:var(--accent-deep); }
/* отступ между повторяющимися блоками рубрик на главной */
.main-col .story-grid + .section-head,
.main-col .sec-feature + .section-head,
.main-col .sec-river + .section-head,
.main-col .sec-compact + .section-head{ margin-top:56px; }

/* === Асимметричные секции главной === */
/* feature: крупный лид + список справа */
.sec-feature{
  display:grid; grid-template-columns:1.4fr 1fr; gap:36px;
  align-items:start; margin-bottom:8px;
}
.sec-feature .feat-lead .feat-media{
  display:block; aspect-ratio:16/9; border-radius:14px;
  overflow:hidden; margin-bottom:18px;
}
.sec-feature .feat-lead .feat-media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease);
}
.sec-feature .feat-lead .feat-media:hover img{ transform:scale(1.04); }
.sec-feature .feat-lead h3{
  font-family:var(--serif); font-weight:600; font-size:30px;
  line-height:1.18; letter-spacing:-.02em; margin:0 0 12px;
}
.sec-feature .feat-lead h3 a{ color:var(--ink); }
.sec-feature .feat-lead h3 a:hover{ color:var(--accent); }
.sec-feature .feat-lead .excerpt{
  color:var(--ink-2); font-size:16px; line-height:1.6; margin:0 0 14px;
}
.sec-feature .feat-list{
  display:flex; flex-direction:column; gap:18px;
  border-left:1px solid var(--rule); padding-left:28px;
}
@media (max-width:900px){
  .sec-feature{ grid-template-columns:1fr; gap:28px; }
  .sec-feature .feat-list{ border-left:0; padding-left:0;
    border-top:1px solid var(--rule); padding-top:22px; }
  .sec-feature .feat-lead h3{ font-size:24px; }
}

/* river: широкие карточки в столбик */
.sec-river{ display:flex; flex-direction:column; gap:22px; }

/* compact: плотный список */
.sec-compact{
  display:grid; grid-template-columns:1fr 1fr; gap:18px 36px;
}
@media (max-width:760px){ .sec-compact{ grid-template-columns:1fr; } }

/* grid4 */
.story-grid.is-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:1100px){ .story-grid.is-4{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:820px){ .story-grid.is-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .story-grid.is-4{ grid-template-columns:1fr; } }
.section-head .more{
  font-size:13px; font-weight:600; font-family:var(--sans);
  color:var(--ink-2); display:inline-flex; align-items:center; gap:6px;
}
.section-head .more:hover{ color:var(--accent); }

.tag{
  display:inline-block; font-family:var(--mono);
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  padding:5px 10px; border:1px solid var(--rule); border-radius:999px;
  color:var(--ink-2); background:var(--paper-2);
}
.tag.is-accent{ background:var(--accent); color:#fff; border-color:transparent; }
.tag.is-sea{ background:var(--sea); color:#fff; border-color:transparent; }
.tag.is-sand{ background:var(--sand); color:var(--ink); border-color:transparent; }
.tag.is-ink{ background:var(--ink); color:var(--paper); border-color:transparent; }

.meta{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  font-size:13px; color:var(--ink-3);
}
.meta .by{ color:var(--ink-2); font-weight:600; }
.meta .dot{ width:3px; height:3px; border-radius:50%; background:var(--ink-3); display:inline-block; }

/* =========================================================
   HERO — main editorial split
   ========================================================= */
.hero{
  padding:48px 0 56px;
  border-bottom:1px solid var(--rule);
}
.hero-grid{
  display:grid; grid-template-columns:1.12fr 1fr; gap:44px;
  align-items:stretch;
}
.hero-lead{
  display:flex; flex-direction:column; gap:24px;
}
.hero-lead .media{
  position:relative; aspect-ratio:16/10; overflow:hidden; border-radius:6px;
}
.hero-lead .media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .8s var(--ease);
}
.hero-lead .media:hover img{ transform:scale(1.03); }
.hero-lead .media .tag-abs{ position:absolute; top:18px; left:18px; }
.hero-lead h1{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(36px,4.6vw,60px); line-height:1.02;
  letter-spacing:-.025em; margin:0;
  font-variation-settings:"opsz" 144;
}
.hero-lead h1 em{ font-style:italic; font-weight:400; color:var(--accent); }
.hero-lead .dek{
  font-family:var(--serif); font-weight:300; font-style:italic;
  font-size:20px; line-height:1.45; color:var(--ink-2); max-width:62ch;
  font-variation-settings:"opsz" 72;
}
.hero-side{
  display:flex; flex-direction:column; gap:22px;
  border-left:1px solid var(--rule); padding-left:32px;
}
.hero-side-item{
  display:grid; grid-template-columns:128px 1fr; gap:18px;
  padding-bottom:22px; border-bottom:1px dashed var(--rule);
  align-items:start;
}
.hero-side-item:last-child{ border-bottom:0; padding-bottom:0; }
.hero-side-item .hsi-media{
  display:block; width:128px; aspect-ratio:1/1;
  border-radius:12px; overflow:hidden; flex:none;
}
.hero-side-item .hsi-media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease);
}
.hero-side-item .hsi-media:hover img{ transform:scale(1.05); }
.hero-side-item h3{
  font-family:var(--serif); font-weight:500;
  font-size:20px; line-height:1.25; margin:6px 0 10px;
  letter-spacing:-.015em;
}
.hero-side-item h3 a:hover{ color:var(--accent); }
.hero-side-item .thumb{
  aspect-ratio:1; border-radius:4px; overflow:hidden;
}
.hero-side-item .thumb img{ width:100%; height:100%; object-fit:cover; }

@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-side{ border-left:0; border-top:1px solid var(--rule); padding-left:0; padding-top:32px; }
  .hero-lead h1{ font-size:38px; }
}

/* =========================================================
   TICKER — running headlines
   ========================================================= */
.ticker{
  background:var(--accent); color:#fff; overflow:hidden;
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.ticker .container{ display:flex; align-items:stretch; height:44px; position:relative; }
.ticker .label{
  flex-shrink:0; padding-right:18px; margin-right:18px;
  border-right:1px solid rgba(255,255,255,.25);
  font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  display:flex; align-items:center; gap:8px;
  background:var(--accent); position:relative; z-index:3;
  /* Заливаем фоном акцента 100vw влево — гарантия, что ни один символ
     ленты не может «выехать» левее метки ни при каком положении. */
  box-shadow:-100vw 0 0 var(--accent);
}
.ticker .label::before{
  content:""; width:8px; height:8px; border-radius:50%; background:#fff;
  animation:pulse 1.6s var(--ease) infinite; flex:none;
}
/* Окно прокрутки — обрезает бегущую ленту */
.ticker .ticker-vp{
  flex:1; min-width:0; overflow:hidden;
  display:flex; align-items:center; position:relative; z-index:1;
}
/* Плавное затухание у правого края — премиальный штрих */
.ticker .ticker-vp::after{
  content:""; position:absolute; right:0; top:0; bottom:0; width:64px;
  background:linear-gradient(90deg, transparent, var(--accent));
  pointer-events:none; z-index:2;
}
.ticker .track{
  display:flex; align-items:center; gap:36px;
  white-space:nowrap; width:max-content;
  animation:scroll 60s linear infinite;
  font-size:14px; font-weight:500;
  will-change:transform;
}
.ticker .track span{ display:inline-flex; align-items:center; gap:36px; }
.ticker .track span::after{
  content:"◆"; opacity:.5; font-size:8px;
}
.ticker:hover .track{ animation-play-state:paused; }
@media (prefers-reduced-motion:reduce){
  .ticker .track{ animation:none; }
}
@keyframes scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* =========================================================
   CARDS — story cards
   ========================================================= */
.story-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap);
}
@media (max-width:1024px){ .story-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .story-grid{ grid-template-columns:1fr; } }

.story{
  display:flex; flex-direction:column; gap:14px;
  position:relative;
}
.story .media{
  aspect-ratio:4/3; overflow:hidden; border-radius:4px;
  position:relative;
}
.story .media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .7s var(--ease);
}
.story:hover .media img{ transform:scale(1.04); }
.story .media .tag-abs{ position:absolute; top:12px; left:12px; }
.story h3{
  font-family:var(--serif); font-weight:500;
  font-size:20px; line-height:1.22; letter-spacing:-.015em;
  margin:4px 0 0;
}
.story h3 a:hover{ color:var(--accent); }
.story .excerpt{
  font-size:14px; line-height:1.5; color:var(--ink-2); margin:0;
}
.story .meta{ margin-top:auto; font-size:12px; }

/* Wide story card (2-col) */
.story.is-wide{ grid-column:span 2; }
.story.is-wide .media{ aspect-ratio:16/9; }
.story.is-wide h3{ font-size:28px; }

/* Headline-only (no image) */
.story.is-text{ padding:18px 0; border-top:1px solid var(--rule); }
.story.is-text h3{ font-size:22px; }

/* =========================================================
   SECTION — Bourgas (asymmetric)
   ========================================================= */
section.s-block{ padding:64px 0; border-bottom:1px solid var(--rule); }
section.s-block.is-sea{
  background:var(--sea); color:var(--paper);
  border-bottom:0;
}
section.s-block.is-sea .section-head{ border-bottom-color:var(--paper); }
section.s-block.is-sea .section-head h2{ color:var(--paper); }
section.s-block.is-sea .section-head .more{ color:var(--paper); }
section.s-block.is-sea .story h3{ color:var(--paper); }
section.s-block.is-sea .story .excerpt{ color:rgba(255,255,255,.72); }
section.s-block.is-sea .story .meta{ color:rgba(255,255,255,.62); }
section.s-block.is-sea .tag{ background:transparent; color:var(--paper); border-color:rgba(255,255,255,.3); }
section.s-block.is-ink{ background:var(--ink); color:var(--paper); }
section.s-block.is-ink .section-head{ border-bottom-color:var(--paper); }
section.s-block.is-ink .section-head h2,
section.s-block.is-ink .section-head .more,
section.s-block.is-ink .story h3{ color:var(--paper); }
section.s-block.is-ink .story .excerpt{ color:rgba(255,255,255,.72); }
section.s-block.is-ink .story .meta{ color:rgba(255,255,255,.55); }
section.s-block.is-ink .tag{ color:var(--paper); border-color:rgba(255,255,255,.25); background:transparent; }

.asym{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:32px; }
@media (max-width:1024px){ .asym{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .asym{ grid-template-columns:1fr; } }

.asym .feature{
  grid-row:span 2; display:flex; flex-direction:column; gap:18px;
}
.asym .feature .media{ aspect-ratio:4/5; overflow:hidden; border-radius:6px; }
.asym .feature .media img{ width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease); }
.asym .feature:hover .media img{ transform:scale(1.04); }
.asym .feature h3{ font-family:var(--serif); font-size:34px; font-weight:500; line-height:1.1; letter-spacing:-.02em; margin:8px 0 0; }
.asym .feature .dek{ font-family:var(--serif); font-style:italic; color:var(--ink-2); font-size:17px; line-height:1.4; }

@media (max-width:1024px){
  .asym .feature{ grid-row:auto; grid-column:span 2; }
  .asym .feature .media{ aspect-ratio:16/9; }
}

/* =========================================================
   MEGA HERO — full-bleed image with overlay
   ========================================================= */
.mega-hero{
  position:relative; min-height:540px;
  display:flex; align-items:flex-end;
  color:var(--paper); overflow:hidden;
  border-bottom:1px solid var(--rule);
}
.mega-hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(15,30,61,.15) 0%, rgba(15,30,61,.88) 80%);
  z-index:1;
}
.mega-hero .bg{
  position:absolute; inset:0;
}
.mega-hero .bg img{ width:100%; height:100%; object-fit:cover; }
.mega-hero .container{ position:relative; z-index:2; padding-top:80px; padding-bottom:60px; }
.mega-hero h2{
  font-family:var(--serif); font-weight:400; font-style:italic;
  font-size:clamp(40px,6vw,84px); line-height:1; margin:18px 0 24px;
  letter-spacing:-.025em; max-width:18ch;
  font-variation-settings:"opsz" 144;
}
.mega-hero .dek{
  font-family:var(--serif); font-weight:300; font-size:22px; line-height:1.4;
  max-width:60ch; color:rgba(255,255,255,.92);
}

/* =========================================================
   AFISHA / EVENTS — calendar-style
   ========================================================= */
.afisha-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media (max-width:980px){ .afisha-grid{ grid-template-columns:1fr; } }
.event{
  display:grid; grid-template-columns:96px 1fr; gap:20px;
  padding:24px; background:var(--paper-2);
  border:1px solid var(--rule); border-radius:6px;
  transition:.25s var(--ease);
}
.event:hover{ background:var(--paper-3); transform:translateY(-2px); box-shadow:var(--shadow-2); }
.event .date{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; border-right:1px solid var(--rule); padding-right:20px;
}
.event .date .day{
  font-family:var(--serif); font-weight:300; font-size:48px; line-height:1;
  color:var(--ink); letter-spacing:-.03em;
}
.event .date .month{
  font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-3); margin-top:6px;
}
.event .info h4{
  font-family:var(--serif); font-size:20px; font-weight:500; line-height:1.2; margin:0 0 8px;
}
.event .info .place{
  font-size:13px; color:var(--ink-3); display:flex; align-items:center; gap:6px;
}
.event .info .place::before{
  content:"◉"; color:var(--accent); font-size:10px;
}

/* =========================================================
   OPINIONS — magazine column
   ========================================================= */
.opinions-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:32px;
}
@media (max-width:980px){ .opinions-grid{ grid-template-columns:1fr; } }
.opinion-card{
  display:flex; flex-direction:column; gap:18px;
  padding:32px; background:var(--paper-2);
  border:1px solid var(--rule); border-radius:6px;
  position:relative;
}
.opinion-card::before{
  content:"“"; position:absolute; top:-8px; left:18px;
  font-family:var(--serif); font-size:120px; line-height:1;
  color:var(--accent); font-weight:300;
}
.opinion-card .author{
  display:flex; align-items:center; gap:14px;
  margin-top:20px;
}
.opinion-card .author .avatar{
  width:48px; height:48px; border-radius:50%; overflow:hidden;
  background:var(--paper-3);
}
.opinion-card .author .avatar img{ width:100%; height:100%; object-fit:cover; }
.opinion-card .author .name{
  font-weight:700; font-size:14px;
}
.opinion-card .author .role{
  font-size:12px; color:var(--ink-3); margin-top:2px;
}
.opinion-card h3{
  font-family:var(--serif); font-weight:500; font-size:22px; line-height:1.25;
  letter-spacing:-.015em; margin:0;
}
.opinion-card .excerpt{
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:16px; line-height:1.5; color:var(--ink-2);
}

/* =========================================================
   SIDEBAR widgets
   ========================================================= */
.with-sidebar{
  display:grid; grid-template-columns:1fr 340px; gap:48px;
  align-items:start;
}
@media (max-width:1024px){ .with-sidebar{ grid-template-columns:1fr; } }

.widget{
  background:var(--paper-2);
  border:1px solid var(--rule); border-radius:6px;
  padding:24px; margin-bottom:24px;
}
.widget h4{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:22px; margin:0 0 18px; padding-bottom:12px;
  border-bottom:1px solid var(--rule);
  font-variation-settings:"opsz" 96;
}
.widget .list{ list-style:none; padding:0; margin:0; }
.widget .list li{
  padding:14px 0; border-bottom:1px dashed var(--rule);
  display:grid; grid-template-columns:32px 1fr; gap:14px; align-items:flex-start;
}
.widget .list li:last-child{ border-bottom:0; }
.widget .list .num{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:24px; line-height:1; color:var(--accent); letter-spacing:-.02em;
}
.widget .list a{
  font-weight:600; font-size:14px; line-height:1.35;
  color:var(--ink); display:block;
}
.widget .list a:hover{ color:var(--accent); }
.widget .list .time{
  font-family:var(--mono); font-size:11px; letter-spacing:.06em;
  color:var(--ink-3); margin-top:6px;
}

.weather{
  background:linear-gradient(135deg, var(--sea) 0%, var(--sea-2) 100%);
  color:var(--paper); border:0;
}
.weather h4{ color:var(--paper); border-color:rgba(255,255,255,.15); }
.weather .temp{
  font-family:var(--serif); font-weight:300; font-size:76px; line-height:1;
  letter-spacing:-.04em; display:flex; align-items:flex-start; gap:6px;
}
.weather .temp .deg{ font-size:36px; padding-top:8px; opacity:.8; }
.weather .place{ font-size:14px; opacity:.8; margin-top:8px; }
.weather .stats{
  margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:14px;
  padding-top:18px; border-top:1px solid rgba(255,255,255,.15);
}
.weather .stat .k{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; opacity:.7; }
.weather .stat .v{ font-family:var(--serif); font-size:22px; margin-top:4px; }

.horoscope .signs{
  display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px;
}
.horoscope .sign{
  font-family:var(--mono); font-size:11px; padding:6px 10px;
  border:1px solid var(--rule); border-radius:999px;
  letter-spacing:.05em; cursor:pointer; transition:.2s var(--ease);
}
.horoscope .sign:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.horoscope .sign.is-active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.horoscope p{ font-family:var(--serif); font-style:italic; line-height:1.5; color:var(--ink-2); margin:0 0 14px; }
.horoscope .bars{ display:grid; gap:10px; }
.horoscope .bar{
  display:grid; grid-template-columns:60px 1fr 30px; gap:10px; align-items:center;
  font-size:12px; font-family:var(--mono); letter-spacing:.04em;
}
.horoscope .bar .track{
  height:6px; background:var(--paper-3); border-radius:99px; overflow:hidden;
}
.horoscope .bar .fill{
  height:100%; background:var(--accent); border-radius:99px;
}

/* =========================================================
   NEWSLETTER  — premium editorial
   ========================================================= */
.newsletter{
  background:var(--ink); color:var(--paper);
  padding:96px 0; position:relative; overflow:hidden;
}
.newsletter::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 80% 20%, rgba(8,145,178,.22), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(46,84,130,.28), transparent 40%);
}
.newsletter .container{ position:relative; z-index:1; }
.newsletter-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
@media (max-width:900px){ .newsletter-grid{ grid-template-columns:1fr; } }
.newsletter h2{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(36px, 5vw, 56px); line-height:1.05; margin:0 0 16px;
  letter-spacing:-.025em;
}
.newsletter p{ font-family:var(--serif); font-weight:300; font-size:19px; line-height:1.45; opacity:.85; }
.newsletter form{
  display:flex; gap:10px; padding:6px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16); border-radius:999px;
  backdrop-filter:blur(10px);
}
.newsletter input{
  flex:1; background:transparent; border:0; outline:none;
  color:var(--paper); padding:14px 20px; font-size:15px; font-family:inherit;
}
.newsletter input::placeholder{ color:rgba(255,255,255,.5); }
.newsletter button{
  background:var(--accent); color:var(--paper); padding:14px 28px;
  border-radius:999px; border:0; font-weight:600; transition:.2s var(--ease);
}
.newsletter button:hover{ background:var(--accent-deep); }
.newsletter .check{
  display:flex; gap:24px; margin-top:18px; font-size:13px; opacity:.65;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background:var(--paper);
  border-top:1px solid var(--rule);
  padding:64px 0 32px;
  font-size:14px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:48px; border-bottom:1px solid var(--rule);
}
@media (max-width:980px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer h5{
  font-family:var(--mono); font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink-3); margin:0 0 18px; font-weight:500;
}
.footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer ul a{ color:var(--ink-2); }
.footer ul a:hover{ color:var(--accent); }
.footer .about p{ color:var(--ink-2); line-height:1.6; margin:18px 0 24px; }
.footer .socials{ display:flex; gap:8px; }
.footer .socials a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--rule);
  display:inline-flex; align-items:center; justify-content:center; color:var(--ink-2);
}
.footer .socials a:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.foot-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:24px; color:var(--ink-3); font-size:12px;
  flex-wrap:wrap; gap:14px;
}
.foot-bottom nav a{ margin-left:18px; }
.foot-bottom nav a:hover{ color:var(--accent); }

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-wrap{
  display:flex; align-items:center; gap:10px;
  background:var(--paper-3); border-radius:999px; padding:6px 6px 6px 18px;
  border:1px solid transparent; transition:.2s var(--ease);
  max-width:340px; width:100%;
}
.search-wrap:focus-within{ border-color:var(--ink); background:var(--paper-2); }
.search-wrap input{
  flex:1; background:transparent; border:0; outline:none; font-size:14px;
  font-family:inherit; color:var(--ink);
}
.search-wrap input::placeholder{ color:var(--ink-3); }
.search-wrap button{
  width:34px; height:34px; border-radius:50%; background:var(--ink); color:var(--paper);
  border:0; display:inline-flex; align-items:center; justify-content:center;
}

/* =========================================================
   BREADCRUMB & PAGE HEAD
   ========================================================= */
.breadcrumb{
  font-family:var(--mono); font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3); margin:32px 0 20px;
}
.breadcrumb a{ color:var(--ink-3); }
.breadcrumb a:hover{ color:var(--accent); }
.breadcrumb .sep{ margin:0 10px; opacity:.4; }

.page-head{
  padding:24px 0 56px; border-bottom:1px solid var(--rule); margin-bottom:48px;
}
.page-head h1{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(48px, 7vw, 92px); line-height:1; letter-spacing:-.03em;
  margin:0 0 18px;
  font-variation-settings:"opsz" 144;
}
.page-head h1 em{ font-style:italic; font-weight:400; color:var(--accent); }
.page-head p{
  font-family:var(--serif); font-weight:300; font-size:20px; line-height:1.5;
  color:var(--ink-2); max-width:65ch;
}

/* =========================================================
   ARTICLE  — long-form reading
   ========================================================= */
.article-wrap{ padding:48px 0 96px; }
.article-head{
  max-width:780px; margin:0 auto; text-align:center;
  padding:40px 0 56px;
}
.article-head .kicker{ margin-bottom:18px; }
.article-head h1{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(40px, 5.4vw, 68px); line-height:1.05;
  letter-spacing:-.025em; margin:0 0 28px;
  font-variation-settings:"opsz" 144;
}
.article-head h1 em{ font-style:italic; color:var(--accent); }
.article-head .dek{
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:22px; line-height:1.45; color:var(--ink-2); max-width:60ch; margin:0 auto 32px;
}
.article-head .byline{
  display:inline-flex; align-items:center; gap:14px;
  font-size:14px;
}
.article-head .byline .avatar{
  width:42px; height:42px; border-radius:50%; overflow:hidden; background:var(--paper-3);
}
.article-head .byline .avatar img{ width:100%; height:100%; object-fit:cover; }
.article-head .byline .name{ font-weight:700; }
.article-head .byline .meta{ color:var(--ink-3); margin-top:2px; font-size:12px; }

.article-hero{
  margin:0 auto 48px; max-width:1100px;
}
.article-hero img{
  display:block; width:100%; aspect-ratio:16/9;
  object-fit:cover; border-radius:6px;
}
.article-hero img{ width:100%; height:100%; object-fit:cover; }
.article-hero + figcaption,
figure.cap figcaption{
  font-size:13px; color:var(--ink-3); font-style:italic;
  text-align:center; margin-top:12px; max-width:680px; margin-left:auto; margin-right:auto;
  font-family:var(--serif);
}

.article-body{
  max-width:680px; margin:0 auto;
  font-family:var(--serif); font-size:19px; line-height:1.7; color:var(--ink);
  font-variation-settings:"opsz" 72;
}
.article-body p{ margin:0 0 22px; }
.article-body p:first-of-type::first-letter{
  font-family:var(--serif); font-weight:500;
  font-size:96px; line-height:.85; float:left;
  padding:8px 14px 0 0; color:var(--accent); font-style:italic;
  font-variation-settings:"opsz" 144;
}
.article-body h2{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:32px; line-height:1.2; margin:48px 0 18px;
  letter-spacing:-.015em;
}
.article-body h3{ font-family:var(--serif); font-weight:600; font-size:24px; margin:36px 0 12px; }
.article-body blockquote{
  border:0; margin:48px -40px; padding:0;
  font-family:var(--serif); font-weight:300; font-style:italic;
  font-size:30px; line-height:1.35; color:var(--ink);
  text-align:center; position:relative;
}
.article-body blockquote::before{
  content:"❝"; display:block; color:var(--accent);
  font-size:48px; margin-bottom:14px; line-height:1;
}
.article-body blockquote cite{
  display:block; font-style:normal; font-family:var(--sans); font-size:13px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); margin-top:18px;
}
.article-body a{ color:var(--accent); border-bottom:1px solid var(--accent); }
.article-body a:hover{ background:var(--accent); color:var(--paper); border-bottom-color:transparent; }
.article-body ul{ padding-left:1.2em; margin:0 0 24px; }
.article-body li{ margin-bottom:10px; }
.article-body figure{ margin:36px -40px; }
.article-body figure img{ border-radius:4px; }

.article-tags{
  max-width:680px; margin:48px auto; padding-top:32px;
  border-top:1px solid var(--rule);
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
.article-tags .lbl{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-right:8px; }

.share-rail{
  position:sticky; top:140px; display:flex; flex-direction:column; gap:8px;
  align-items:center;
}
.share-rail a{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-2); transition:.2s var(--ease);
}
.share-rail a:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.share-rail .lbl{
  writing-mode:vertical-rl; transform:rotate(180deg);
  font-family:var(--mono); font-size:10px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink-3); margin-bottom:6px;
}

/* Article layout with sidebar */
.article-layout{
  display:grid;
  grid-template-columns:60px 1fr 280px;
  gap:48px; max-width:1200px; margin:0 auto;
  align-items:start;
}
@media (max-width:1024px){
  .article-layout{ grid-template-columns:1fr; }
  .share-rail{ position:static; flex-direction:row; }
  .share-rail .lbl{ writing-mode:initial; transform:none; margin:0; }
}

/* Related */
.related{
  padding:64px 0; background:var(--paper-2);
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}

/* =========================================================
   CATEGORY  — list view
   ========================================================= */
.cat-filters{
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px;
}
.cat-filters .chip{
  font-family:var(--mono); font-size:12px; letter-spacing:.06em;
  padding:8px 14px; border:1px solid var(--rule); border-radius:999px;
  color:var(--ink-2); background:transparent; cursor:pointer; transition:.2s var(--ease);
}
.cat-filters .chip:hover{ border-color:var(--ink); color:var(--ink); }
.cat-filters .chip.is-active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

.cat-list{
  display:flex; flex-direction:column;
}
.cat-list .row{
  display:grid; grid-template-columns:200px 1fr 280px; gap:32px;
  padding:32px 0; border-bottom:1px solid var(--rule);
  align-items:start;
}
.cat-list .row:hover h3{ color:var(--accent); }
.cat-list .row .media{ aspect-ratio:4/3; overflow:hidden; border-radius:4px; }
.cat-list .row .media img{ width:100%; height:100%; object-fit:cover; transition:.6s var(--ease); }
.cat-list .row:hover .media img{ transform:scale(1.04); }
.cat-list .row h3{ font-family:var(--serif); font-weight:500; font-size:28px; line-height:1.2; letter-spacing:-.015em; margin:0 0 12px; transition:.2s var(--ease); }
.cat-list .row .excerpt{ font-size:15px; line-height:1.55; color:var(--ink-2); margin:0; }
.cat-list .row .side{ font-size:13px; color:var(--ink-3); }
.cat-list .row .side .date-stamp{
  font-family:var(--serif); font-style:italic; font-size:20px; color:var(--ink-2); margin-bottom:14px;
}
@media (max-width:980px){
  .cat-list .row{ grid-template-columns:1fr; }
  .cat-list .row .media{ aspect-ratio:16/9; }
}

/* Pagination */
.pagination{
  display:flex; justify-content:center; gap:8px; margin:48px 0;
}
.pagination a,.pagination span{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--rule);
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:13px; color:var(--ink-2);
}
.pagination a:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.pagination .is-active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

/* =========================================================
   ABOUT — editorial bio page
   ========================================================= */
.about-hero{
  padding:80px 0; border-bottom:1px solid var(--rule);
}
.about-hero h1{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(56px, 9vw, 120px); line-height:.95; letter-spacing:-.04em;
  margin:0; max-width:14ch;
}
.about-hero h1 em{ font-style:normal; color:var(--accent); }
.about-hero .lede{
  margin-top:32px; font-family:var(--serif); font-weight:300; font-size:24px;
  line-height:1.45; color:var(--ink-2); max-width:60ch;
}

.about-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:32px;
  padding:64px 0; border-bottom:1px solid var(--rule);
}
@media (max-width:780px){ .about-stats{ grid-template-columns:repeat(2,1fr); } }
.stat-card .num{
  font-family:var(--serif); font-weight:300; font-size:84px; line-height:1;
  letter-spacing:-.04em; color:var(--ink);
}
.stat-card .num em{ font-style:italic; color:var(--accent); font-weight:400; }
.stat-card .lbl{
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-3); margin-top:12px;
}

.team{
  padding:64px 0; border-bottom:1px solid var(--rule);
}
.team-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media (max-width:980px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }
.team-card{
  display:flex; flex-direction:column; gap:12px;
}
.team-card .photo{
  aspect-ratio:4/5; overflow:hidden; border-radius:4px; background:var(--paper-3);
  filter:grayscale(.6) contrast(1.05); transition:.4s var(--ease);
}
.team-card:hover .photo{ filter:grayscale(0); }
.team-card .photo img{ width:100%; height:100%; object-fit:cover; transition:.6s var(--ease); }
.team-card:hover .photo img{ transform:scale(1.04); }
.team-card .name{ font-family:var(--serif); font-size:22px; font-weight:500; }
.team-card .role{ font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }

/* =========================================================
   ANIMATIONS — reveal on load
   ========================================================= */
.reveal{ animation:reveal .8s var(--ease) both; }
.reveal-1{ animation-delay:.06s; }
.reveal-2{ animation-delay:.12s; }
.reveal-3{ animation-delay:.18s; }
.reveal-4{ animation-delay:.24s; }
@keyframes reveal{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:none; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.hide-mob{ display:initial; }
.show-mob{ display:none; }
@media (max-width:780px){
  .hide-mob{ display:none; }
  .show-mob{ display:initial; }
}

.divider{ height:1px; background:var(--rule); margin:48px 0; border:0; }

/* Search icon */
.icn{ width:18px; height:18px; }
.icn-sm{ width:14px; height:14px; }

/* Live reading bar (for article) */
.read-bar{
  position:fixed; top:0; left:0; right:0; height:3px;
  background:var(--accent); transform-origin:left; transform:scaleX(0);
  z-index:100;
}

/* =========================================================
   ENGINE SUPPLEMENT — классы, используемые PHP-движком beta
   (в единой холодной палитре дизайн-системы)
   ========================================================= */

.with-sidebar{ display:grid; grid-template-columns:1fr 340px; gap:56px; align-items:start; }
.main-col{ min-width:0; }
@media (max-width:1000px){ .with-sidebar{ grid-template-columns:1fr; gap:40px; } }

.story-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
@media (max-width:1000px){ .story-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .story-grid{ grid-template-columns:1fr; } }

.story{ display:flex; flex-direction:column; background:var(--paper-2);
  border:1px solid var(--rule); border-radius:14px; overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease); }
.story:hover{ transform:translateY(-4px); box-shadow:var(--shadow-2); }
.story-media{ display:block; position:relative; aspect-ratio:16/10; overflow:hidden; }
.story-media img{ width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease); }
.story:hover .story-media img{ transform:scale(1.05); }
.story-body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.story-body h3{ font-family:var(--serif); font-weight:600; font-size:21px;
  line-height:1.25; margin:0; letter-spacing:-.015em; }
.story-body h3 a{ color:var(--ink); }
.story-body h3 a:hover{ color:var(--accent); }
.story .excerpt{ color:var(--ink-2); font-size:14.5px; line-height:1.55; margin:0; flex:1; }
.story .meta{ display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:11.5px; text-transform:uppercase;
  letter-spacing:.04em; color:var(--ink-3); margin-top:auto; }
.story .meta .by{ color:var(--ink-2); font-weight:600; }
.story .meta .dot{ width:3px; height:3px; border-radius:50%; background:var(--ink-3); }
.story.is-compact{ flex-direction:row; background:none; border:none; border-radius:0;
  border-bottom:1px solid var(--rule); padding-bottom:18px; }
.story.is-compact:hover{ transform:none; box-shadow:none; }
.story.is-compact .story-media{ width:120px; flex:none; aspect-ratio:1; border-radius:10px; }
.story.is-compact .story-body{ padding:0 0 0 18px; }
.story.is-compact h3{ font-size:17px; }
.story.is-wide{ flex-direction:row; }
.story.is-wide .story-media{ width:42%; flex:none; aspect-ratio:4/3; }
@media (max-width:640px){ .story.is-wide{ flex-direction:column; }
  .story.is-wide .story-media{ width:100%; } }
.tag-abs{ position:absolute; left:14px; top:14px; z-index:2; }

.cat-header{ padding:8px 0 40px; border-bottom:1px solid var(--rule); margin-bottom:44px; }
.cat-header h1{ font-family:var(--serif); font-weight:600;
  font-size:clamp(34px,5vw,56px); letter-spacing:-.025em; margin:.2em 0 0; }
.cat-header .dek{ color:var(--ink-2); font-size:18px; max-width:60ch; margin:14px 0 0; }

.pagination{ display:flex; gap:8px; justify-content:center; margin:48px 0 0; flex-wrap:wrap; }
.pagination a, .pagination span{ min-width:42px; height:42px; display:flex;
  align-items:center; justify-content:center; border:1px solid var(--rule);
  border-radius:10px; font-family:var(--mono); font-size:13px; color:var(--ink-2);
  background:var(--paper-2); transition:.2s var(--ease); }
.pagination a:hover{ border-color:var(--accent); color:var(--accent); }
.pagination .is-active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.empty{ padding:60px 0; text-align:center; color:var(--ink-3);
  font-family:var(--mono); font-size:14px; }
.results-title{ font-family:var(--serif); font-weight:600; font-size:24px;
  margin:0 0 28px; }
.search-form{ display:flex; gap:12px; margin-top:18px; max-width:620px; }
.search-form input{ flex:1; padding:15px 20px; border:1px solid var(--rule);
  border-radius:12px; font-family:var(--sans); font-size:16px;
  background:var(--paper-2); color:var(--ink); }
.search-form input:focus{ outline:none; border-color:var(--accent); }
.search-form button{ padding:15px 28px; background:var(--ink); color:#fff;
  border:none; border-radius:12px; font-family:var(--sans); font-weight:700;
  font-size:15px; cursor:pointer; transition:.2s var(--ease); }
.search-form button:hover{ background:var(--accent); }

/* Sidebar widgets */
.sidebar{ display:flex; flex-direction:column; gap:32px; position:sticky; top:24px; }
.widget{ background:var(--paper-2); border:1px solid var(--rule);
  border-radius:14px; padding:24px; }
.widget-head{ border-bottom:2px solid var(--ink); padding-bottom:12px; margin-bottom:18px; }
.widget-head h4{ font-family:var(--mono); text-transform:uppercase;
  font-size:12px; letter-spacing:.08em; margin:0; color:var(--ink); }
.popular-list{ list-style:none; margin:0; padding:0; counter-reset:p;
  display:flex; flex-direction:column; gap:16px; }
.popular-list li{ display:flex; gap:14px; align-items:flex-start; }
.popular-list .rank{ font-family:var(--serif); font-weight:700; font-size:24px;
  color:var(--accent); line-height:1; flex:none; width:28px; }
.popular-list a{ font-family:var(--serif); font-size:15.5px; line-height:1.35;
  color:var(--ink); font-weight:500; }
.popular-list a:hover{ color:var(--accent); }
.horo-list{ display:flex; flex-direction:column; gap:14px; }
.horo-row{ display:flex; flex-direction:column; gap:3px; padding-bottom:12px;
  border-bottom:1px solid var(--rule-2); }
.horo-row strong{ font-family:var(--mono); font-size:11px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--accent); }
.horo-row span{ font-size:13.5px; color:var(--ink-2); line-height:1.45; }
.widget-cta{ background:var(--ink); color:#fff; border-color:var(--ink); }
.widget-cta h4{ font-family:var(--serif); font-weight:600; font-size:22px; margin:0 0 10px; }
.widget-cta p{ font-size:14px; opacity:.8; margin:0 0 18px; line-height:1.5; }
.widget-cta .btn{ background:var(--accent); color:#fff; }

/* Article extras */
.article-tags{ display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  margin:40px 0; padding-top:28px; border-top:1px solid var(--rule); }
.article-tags span{ font-family:var(--mono); font-size:12px;
  text-transform:uppercase; color:var(--ink-3); }
.article-tags .tag{ background:var(--paper-3); color:var(--ink-2);
  padding:6px 14px; border-radius:20px; font-size:13px; }
.article-tags .tag:hover{ background:var(--accent); color:#fff; }
.author-box{ display:flex; gap:20px; align-items:flex-start;
  background:var(--paper-3); border-radius:16px; padding:28px; margin:36px 0; }
.author-box img{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex:none; }
.author-box strong{ font-family:var(--serif); font-size:18px; display:block; margin-bottom:6px; }
.author-box p{ color:var(--ink-2); font-size:14.5px; line-height:1.55; margin:0; }
.key-facts{ background:var(--sea); color:#fff; border-radius:16px;
  padding:28px 32px; margin:32px 0; }
.key-facts h4{ font-family:var(--mono); text-transform:uppercase; font-size:12px;
  letter-spacing:.08em; color:var(--sand); margin:0 0 16px; }
.key-facts ul{ list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:12px; }
.key-facts li{ font-size:15px; line-height:1.5; color:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(255,255,255,.12); padding-bottom:12px; }
.key-facts li:last-child{ border:none; padding:0; }
.key-facts a{ color:var(--sand); }
.article-hero figcaption{ font-family:var(--mono); font-size:11.5px;
  color:var(--ink-3); margin-top:10px; text-align:center; }
.article-hero figcaption .cap-label{ color:var(--accent); font-weight:600; }
.article-hero figcaption a{ color:var(--ink-2); border-bottom:1px solid var(--rule); }
.article-hero figcaption a:hover{ color:var(--accent); }
/* Инлайн-блок «Може да ви заинтересува» внутри текста статьи */
.inline-related{
  margin:36px 0; padding:24px 28px;
  background:var(--paper-2); border:1px solid var(--rule);
  border-left:3px solid var(--accent); border-radius:12px;
}
.inline-related h4{
  font-family:var(--mono); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent);
  margin:0 0 14px; font-weight:600;
}
.inline-related ul{ list-style:none; margin:0; padding:0; }
.inline-related li{
  margin:0; padding:10px 0; border-bottom:1px solid var(--rule-2);
}
.inline-related li:last-child{ border-bottom:0; padding-bottom:0; }
.inline-related li:first-child{ padding-top:0; }
.inline-related a{
  font-family:var(--serif); font-size:18px; font-weight:500;
  color:var(--ink); line-height:1.35; border:0;
  display:block; transition:color .2s var(--ease);
}
.inline-related a:hover{ color:var(--accent); background:none; }
@media (max-width:768px){
  .inline-related{ padding:20px; margin:28px 0; }
  .inline-related a{ font-size:16px; }
}

/* Comments */
.comments{ display:flex; flex-direction:column; gap:24px; max-width:780px; }
.comment{ border-bottom:1px solid var(--rule); padding-bottom:20px; }
.c-head{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.c-head strong{ font-family:var(--serif); font-size:16px; }
.c-head span{ font-family:var(--mono); font-size:11px; color:var(--ink-3); }
.comment p{ color:var(--ink-2); font-size:15px; line-height:1.6; margin:0; }
.c-children{ margin:18px 0 0 32px; padding-left:20px;
  border-left:2px solid var(--rule); display:flex; flex-direction:column; gap:18px; }

/* Afisha */
.afisha-hero{ background:var(--sea); color:#fff; padding:64px 0; }
.afisha-hero h1{ font-family:var(--serif); font-weight:600;
  font-size:clamp(36px,5vw,60px); letter-spacing:-.025em; margin:.2em 0 0; }
.afisha-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
@media (max-width:1000px){ .afisha-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .afisha-grid{ grid-template-columns:1fr; } }
.event-card{ background:var(--paper-2); border:1px solid var(--rule);
  border-radius:14px; overflow:hidden; transition:transform .35s var(--ease),
  box-shadow .35s var(--ease); }
.event-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-2); }
.event-media{ position:relative; display:block; aspect-ratio:16/10; overflow:hidden; }
.event-media img{ width:100%; height:100%; object-fit:cover; }
.event-date{ position:absolute; left:14px; bottom:14px; background:var(--accent);
  color:#fff; border-radius:10px; padding:8px 14px; text-align:center;
  display:flex; flex-direction:column; line-height:1; }
.event-date strong{ font-family:var(--serif); font-size:24px; }
.event-date span{ font-family:var(--mono); font-size:10px; margin-top:4px; }
.event-body{ padding:20px 22px 24px; }
.event-body h3{ font-family:var(--serif); font-weight:600; font-size:20px;
  margin:0 0 10px; line-height:1.25; }
.event-body h3 a{ color:var(--ink); }
.event-body h3 a:hover{ color:var(--accent); }
.event-loc{ font-size:13px; color:var(--ink-2); margin-bottom:6px; }
.event-body .meta{ font-family:var(--mono); font-size:11.5px;
  color:var(--ink-3); text-transform:uppercase; margin-bottom:10px; }
.event-body .excerpt{ color:var(--ink-2); font-size:14px; line-height:1.5; margin:0; }

/* Read progress */
.read-progress{ position:fixed; top:0; left:0; height:3px; width:0;
  background:var(--accent); z-index:200; transition:width .1s linear; }

/* Breadcrumb (fallback if not already styled) */
.breadcrumb{ display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-family:var(--mono); font-size:12px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.04em; padding:24px 0; }
.breadcrumb a{ color:var(--ink-2); }
.breadcrumb a:hover{ color:var(--accent); }
.breadcrumb .current{ color:var(--ink); }

/* =========================================================
   ПОЛНАЯ АДАПТИВНОСТЬ — единая система брейкпоинтов
   1200 / 1024 / 900 / 768 / 560 / 400
   ========================================================= */

/* --- Планшет: ужимаем контейнер и сетки --- */
@media (max-width:1024px){
  .container{ padding:0 24px; }
  .with-sidebar{ grid-template-columns:1fr; gap:40px; }
  .sidebar{ position:static; }
  .story-grid{ grid-template-columns:repeat(2,1fr); }
  .afisha-grid{ grid-template-columns:repeat(2,1fr); }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-lead .media{ aspect-ratio:16/9; }
}

/* --- Планшет/мобайл: бургер + выезжающее меню --- */
@media (max-width:900px){
  .mobile-toggle{ display:inline-flex; }
  .head-actions .btn.hide-mob{ display:none; }

  .primary-nav-wrap{
    position:fixed; top:0; right:0; bottom:0; left:auto;
    width:min(88vw,380px);
    background:var(--paper-2);
    border-top:0; border-left:1px solid var(--rule);
    box-shadow:-30px 0 80px rgba(15,30,61,.28);
    transform:translateX(100%);
    transition:transform .42s cubic-bezier(.16,1,.3,1);
    z-index:131; overflow:hidden;
    padding:0;
    display:flex; flex-direction:column;
  }
  .nav-open .primary-nav-wrap{ transform:translateX(0); }
  .drawer-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 22px; border-bottom:1px solid var(--rule);
    flex:none; background:var(--paper);
  }
  .drawer-head .dh-logo{
    font-family:var(--sans); font-weight:800; font-size:19px;
    color:var(--ink); letter-spacing:-.02em;
  }
  .drawer-head .dh-logo b{ color:var(--logo-red); }
  .drawer-close{
    width:38px; height:38px; border:0; background:var(--paper-3);
    border-radius:10px; color:var(--ink); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .drawer-close:hover{ background:var(--accent-soft); color:var(--accent); }
  .primary-nav-wrap .container{
    padding:0; flex:1; overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .primary-nav{
    flex-direction:column; align-items:stretch;
    flex-wrap:nowrap; gap:0; width:100%; margin:0;
  }
  .nav-item{ width:100%; border-bottom:1px solid var(--rule-2); }
  .primary-nav > .nav-item:last-child{ border-bottom:0; }
  .primary-nav a{
    width:100%; justify-content:space-between;
    padding:17px 24px; font-size:16px; border-radius:0;
    font-weight:600;
  }
  .primary-nav a.is-active::after{ display:none; }
  .primary-nav a.is-active{ background:var(--accent-soft); color:var(--accent); }

  /* Каскад на мобиле — дети раскрываются по тапу (JS-класс .open) */
  .nav-drop{
    position:static; transform:none; opacity:1; visibility:visible;
    pointer-events:auto; box-shadow:none; border:0; border-radius:0;
    background:var(--paper-3); padding:0; min-width:0; max-width:none;
    display:none;
  }
  .nav-item.has-children.open .nav-drop{ display:flex; flex-direction:column; }
  .nav-drop::before{ display:none; }
  .nav-drop a{ padding:14px 24px 14px 38px; font-size:15px; font-weight:500; }
  .nav-drop a:not(:last-child){ border-bottom:1px solid var(--rule-2); }
  .nav-drop .nav-drop-all{ padding-left:38px; }
  .nav-item.has-children.open > a .caret{ transform:rotate(180deg); }
  .nav-item.has-children > a .caret{ transition:transform .25s var(--ease); }
  .caret{ width:15px; height:15px; opacity:.6; }

  /* Затемнение под drawer */
  body.nav-open::after{
    content:""; position:fixed; inset:0; background:rgba(15,30,61,.45);
    z-index:110; animation:fadein .3s var(--ease);
  }
  @keyframes fadein{ from{ opacity:0; } to{ opacity:1; } }
  body.nav-open{ overflow:hidden; }
  /* КРИТично: masthead (sticky,z-index:50) создаёт stacking-context,
     поэтому drawer-потомок не мог всплыть над затемнением. Поднимаем
     весь masthead над оверлеем когда меню открыто. */
  body.nav-open .site-header{ z-index:130; }
  body.nav-open .masthead{ z-index:130; }
  .primary-nav-wrap{ z-index:131; }

  /* Сетки */
  .newsletter-grid{ grid-template-columns:1fr; gap:28px; }
  .footer-grid{ grid-template-columns:repeat(2,1fr); gap:32px; }
  .hero-side{ grid-template-columns:1fr; }
  .article-body{ font-size:17px; }
}

/* --- Телефон --- */
@media (max-width:768px){
  .container{ padding:0 18px; }
  .utility-bar{ display:none; }
  .masthead .container.mast-top{ padding-top:14px; padding-bottom:14px; }
  .bm-logo{ font-size:22px; }
  .bm-mark{ width:38px; height:38px; }
  .story-grid{ grid-template-columns:1fr; gap:28px; }
  .afisha-grid{ grid-template-columns:1fr; }
  .ticker .label span,
  .ticker .label{ font-size:10px; letter-spacing:.12em; }
  .ticker .track{ font-size:13px; }
  h1, .article-head h1{ font-size:clamp(28px,7vw,40px); }
  .hero-lead h1{ font-size:clamp(26px,7vw,38px); }
  .section-head h2{ font-size:26px; }
  .key-facts{ padding:22px; }
  .author-box{ flex-direction:column; gap:14px; }
  .comments{ max-width:100%; }
  .c-children{ margin-left:14px; padding-left:14px; }

  /* === Текст статьи: ничего не вылезает за экран === */
  .article-body{
    font-size:17px; max-width:100%;
    overflow-wrap:break-word; word-wrap:break-word;
  }
  .article-body *{ max-width:100%; }
  .article-body img{ height:auto; }
  /* убрать отрицательные поля (они выталкивали контент за вьюпорт) */
  .article-body blockquote,
  .article-body figure{ margin-left:0; margin-right:0; }
  .article-body blockquote{
    font-size:clamp(19px,5.4vw,26px); line-height:1.32;
    margin-top:32px; margin-bottom:32px;
  }
  .article-body blockquote::before{ font-size:38px; }
  .article-body h2{ font-size:clamp(22px,5.6vw,28px); margin:34px 0 14px; }
  .article-body h3{ font-size:clamp(19px,4.8vw,22px); }
  .article-body p:first-of-type::first-letter{
    font-size:62px; padding:6px 10px 0 0;
  }
  .article-body figure{ margin-top:26px; margin-bottom:26px; }
  .article-body pre, .article-body table{
    display:block; overflow-x:auto; max-width:100%;
  }
  /* заголовок поста и подзаголовок — переносы, без обрезки */
  .article-head h1, .article-head .dek, .hero-lead h1{
    overflow-wrap:break-word; word-wrap:break-word; hyphens:auto;
  }
}

/* --- Узкий телефон --- */
@media (max-width:400px){
  .container{ padding:0 14px; }
  .bm-logo .wordmark{ font-size:19px; }
  .bm-mark{ width:34px; height:34px; }
  .head-actions{ gap:6px; }
  .icon-btn{ width:38px; height:38px; }
  .ticker .label{ padding-right:12px; margin-right:12px; }
  .nav-drop a{ padding-left:34px; }
  .footer-grid{ grid-template-columns:1fr; }
}

/* Чуть крупнее тап-таргеты на тач-устройствах */
@media (hover:none){
  .primary-nav a, .nav-drop a, .section-bar a{ min-height:44px; }
}

/* =========================================================
   СЖИМАЮЩИЙСЯ ХЕДЕР ПРИ ПРОКРУТКЕ (премиальный)
   JS вешает .is-shrunk на <body> при скролле вниз
   ========================================================= */
.masthead .container.mast-top,
.bm-mark, .bm-logo .wordmark,
.head-actions .btn, .head-actions .icon-btn,
.primary-nav a, .utility-bar{
  transition:all .5s cubic-bezier(.16,1,.3,1);
}
/* Компактное состояние — эффектное «схлопывание» */
body.is-shrunk .site-header{
  box-shadow:0 10px 30px rgba(15,30,61,.14);
}
/* utility-bar полностью схлопывается */
body.is-shrunk .utility-bar{
  max-height:0; padding-top:0; padding-bottom:0;
  opacity:0; overflow:hidden; pointer-events:none;
}
.utility-bar{ max-height:60px; overflow:hidden; }
body.is-shrunk .masthead{
  border-bottom-color:transparent;
}
body.is-shrunk .masthead .container.mast-top{
  padding-top:5px; padding-bottom:5px;
}
body.is-shrunk .bm-mark{
  width:28px; height:28px; border-radius:6px;
}
body.is-shrunk .bm-logo .wordmark{ font-size:16px; letter-spacing:-.02em; }
body.is-shrunk .head-actions .btn{ padding-top:8px; padding-bottom:8px; font-size:12.5px; }
body.is-shrunk .head-actions .icon-btn{ width:36px; height:36px; }
body.is-shrunk .primary-nav a{ padding-top:6px; padding-bottom:6px; font-size:12.5px; }
body.is-shrunk .primary-nav-wrap{
  border-top-color:transparent; background:var(--paper-2);
}
.primary-nav-wrap{ transition:max-height .5s cubic-bezier(.16,1,.3,1), opacity .35s ease; }
/* На невысоких экранах (ноутбуки) при сжатии 2-й ряд меню сворачивается */
@media (min-width:901px) and (max-height:860px){
  body.is-shrunk .primary-nav-wrap{
    max-height:0; overflow:hidden; opacity:0; border-top-color:transparent;
  }
  .site-header:hover .primary-nav-wrap{
    max-height:130px; opacity:1;
  }
}

/* =========================================================
   УМНЫЙ STICKY-САЙДБАР (видно низ длинного блока)
   JS управляет позицией; CSS — базовые состояния
   ========================================================= */
.with-sidebar{ position:relative; }
.sidebar{
  /* по умолчанию обычный поток; JS включает sticky-логику на десктопе */
  align-self:start;
}
@media (min-width:1025px){
  .sidebar.sticky-init{ will-change:transform; }
}

/* Метрики просмотров в карточках */
.story .meta .v, .hero-side-item .meta .v{
  display:inline-flex; align-items:center; gap:4px;
}
.ic-eye{ opacity:.7; }

/* =========================================================
   БЛОК ЛАЙКОВ / ДИЗЛАЙКОВ (между постом и комментариями)
   ========================================================= */
.votes-block{ padding-top:8px; }
.vote-bar{
  display:flex; gap:16px; flex-wrap:wrap;
  padding:24px 0; border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule); max-width:780px;
}
.vote-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 22px; border-radius:999px;
  border:1px solid var(--rule); background:var(--paper-2);
  font-family:var(--sans);
}
.vote-pill .vc{ font-weight:800; font-size:18px; color:var(--ink); }
.vote-pill .vl{
  font-family:var(--mono); font-size:11px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-3);
}
.vote-pill.is-like{ color:var(--accent); }
.vote-pill.is-like:hover{ background:var(--accent-soft); border-color:var(--accent); }
.vote-pill.is-dislike{ color:var(--ink-3); }
.vote-pill.is-dislike:hover{ border-color:var(--ink-3); }

/* =========================================================
   РЕКЛАМНЫЕ / ИНТЕГРАЦИОННЫЕ ЗОНЫ (только десктоп)
   Все помечены data-ad-zone. По умолчанию — placeholder с
   подписью. Для интеграции: вставить контент внутрь, при
   необходимости убрать класс .ad-ph (placeholder-оформление).
   ========================================================= */
.ad-zone{ display:none; }                 /* по умолчанию скрыты */
.ad-ph{
  border:1px dashed var(--accent);
  background:repeating-linear-gradient(45deg,
     var(--accent-soft) 0 10px, transparent 10px 20px);
  color:var(--accent-deep);
  font-family:var(--mono); font-size:11px; letter-spacing:.06em;
  text-transform:uppercase;
  display:flex; align-items:center; justify-content:center;
  text-align:center; border-radius:10px;
}

@media (min-width:1280px){
  .ad-zone{ display:flex; }

  /* (A) FLOATING PANELS — фикс. относительно окна (внизу справа) */
  .ad-floating{
    position:fixed; right:24px; bottom:24px; z-index:80;
    width:300px; min-height:250px;
  }

  /* (B) SIDEBAR OVERLAYS — выезжающая поверх контента панель справа */
  .ad-overlay{
    position:fixed; top:0; right:0; bottom:0; z-index:130;
    width:340px; transform:translateX(105%);
    transition:transform .4s var(--ease);
    background:var(--paper-2); border-left:1px solid var(--rule);
    box-shadow:-30px 0 80px rgba(15,30,61,.22);
    flex-direction:column; padding:24px;
  }
  .ad-overlay.is-open{ transform:translateX(0); }

  /* (C) GUTTER WIDGETS — в свободных боковых полях («уши»)
     Появляются только если окну хватает места по бокам контейнера */
  .ad-gutter{
    position:fixed; top:140px; width:160px; min-height:600px;
    z-index:30;
  }
  .ad-gutter.left{  left:max(12px, calc((100vw - var(--container))/2 - 184px)); }
  .ad-gutter.right{ right:max(12px, calc((100vw - var(--container))/2 - 184px)); }
  @media (max-width:1640px){ .ad-gutter{ display:none; } }

  /* (D) STICKY RAILS — длинные узкие закреплённые полосы по бокам */
  .ad-rail{
    position:sticky; top:120px; width:100%;
    min-height:600px; align-self:start;
  }
}

/* =========================================================================
   BURGASMEDIA — ENGINE BRIDGE
   Всё, что нужно движку burgasmedia.com поверх дизайн-системы beta.
   Ничего из style.css выше НЕ переопределяется без причины.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. СОСУЩЕСТВОВАНИЕ С TAILWIND CDN
   Tailwind Play CDN вставляет свой <style> в конец <head> уже после того,
   как загрузился этот файл, поэтому его preflight (html/body/h1/a/ul…)
   выигрывает при равной специфичности. Поднимаем специфичность базовых
   правил через класс .bm-theme на <html> и <body> — этого достаточно,
   все остальные правила дизайн-системы классовые и так выигрывают.
   ------------------------------------------------------------------------- */
html.bm-theme{
  overflow-x:hidden;
  scroll-behavior:smooth;
  scroll-padding-top:120px;
  -webkit-text-size-adjust:100%;
}
body.bm-theme{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  overflow-x:hidden;
  max-width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-anchor:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body.bm-theme > main{ flex:1 0 auto; }
body.bm-theme img{ max-width:100%; display:block; }
body.bm-theme a{ color:inherit; text-decoration:none; transition:color .2s var(--ease); }
body.bm-theme button{ font-family:inherit; cursor:pointer; }
body.bm-theme h1,
body.bm-theme h2,
body.bm-theme h3,
body.bm-theme h4,
body.bm-theme h5{ margin:0; }

/* -------------------------------------------------------------------------
   2. ТЁМНАЯ ТЕМА
   Переключатель на сайте вешает класс dark (или data-theme="dark") на <html>.
   Меняем только токены — вся вёрстка перекрашивается автоматически.
   ------------------------------------------------------------------------- */
html.dark,
html[data-theme="dark"]{
  --paper:        #0B1524;
  --paper-2:      #111E31;
  --paper-3:      #1A2A42;

  --ink:          #E8EDF4;
  --ink-2:        #AFBCCE;
  --ink-3:        #7A8699;

  --accent:       #22B8DA;
  --accent-deep:  #0E7490;
  --accent-soft:  #102E3A;

  --sea:          #0A1220;
  --sea-2:        #14243B;
  --sea-3:        #24405F;
  --sand:         #8FA0B6;

  --rule:         #24344B;
  --rule-2:       #1B2A3E;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.32);
  --shadow-2: 0 8px 30px rgba(0,0,0,.5);
  --shadow-3: 0 20px 60px rgba(0,0,0,.62);
}
html.dark ::selection,
html[data-theme="dark"] ::selection{ background:var(--accent); color:#04121B; }
html.dark .bm-logo .wordmark .lo-a,
html[data-theme="dark"] .bm-logo .wordmark .lo-a{ color:var(--ink); }
html.dark .pagination .is-active,
html[data-theme="dark"] .pagination .is-active{ background:var(--accent); border-color:var(--accent); color:#04121B; }
html.dark .widget-cta,
html[data-theme="dark"] .widget-cta{ background:var(--paper-3); border-color:var(--rule); }
html.dark .section-head,
html[data-theme="dark"] .section-head{ border-bottom-color:var(--ink-3); }
html.dark .widget-head,
html[data-theme="dark"] .widget-head{ border-bottom-color:var(--accent); }
html.dark .ad-ph,
html[data-theme="dark"] .ad-ph{ background:var(--paper-2); }

/* -------------------------------------------------------------------------
   3. ВЕРХНЯЯ СЛУЖЕБНАЯ ПОЛОСА — дата, погода, курсы, язык, шрифт, тема, вход
   ------------------------------------------------------------------------- */
.utility-bar .container{ gap:18px; }
.utility-bar .util-left,
.utility-bar .util-right{ gap:16px; min-width:0; }
.utility-bar .util-left{ overflow:hidden; }
.util-chip{
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap; color:rgba(255,255,255,.82);
}
.util-chip img{ width:20px; height:20px; opacity:.9; }
.util-chip svg{ width:13px; height:13px; opacity:.75; }
.util-chip .muted{ opacity:.62; }
.util-sep{
  width:1px; height:14px; background:rgba(255,255,255,.18); flex:none;
}

/* Переключатель языка */
.util-langs{ display:inline-flex; align-items:center; gap:2px; }
.util-langs a{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.1em;
  padding:4px 7px; border-radius:6px; color:rgba(255,255,255,.65);
  transition:.2s var(--ease);
}
.util-langs a:hover{ background:rgba(255,255,255,.10); color:#fff; }
.util-langs a.is-active{ background:var(--accent); color:#fff; font-weight:700; }
.util-select{
  background:rgba(255,255,255,.08); color:#fff;
  border:1px solid rgba(255,255,255,.18); border-radius:7px;
  font-family:var(--mono); font-size:11px; padding:4px 8px; outline:none;
}
.util-select option{ color:#0F1E3D; background:#fff; }

/* Размер шрифта A- A A+ */
.util-fs{
  display:inline-flex; align-items:stretch;
  border:1px solid rgba(255,255,255,.18); border-radius:7px; overflow:hidden;
}
.util-fs button{
  background:transparent; border:0; color:rgba(255,255,255,.7);
  font-family:var(--mono); font-size:11px; padding:4px 8px; line-height:1;
  transition:.2s var(--ease);
}
.util-fs button + button{ border-left:1px solid rgba(255,255,255,.18); }
.util-fs button:hover{ background:rgba(255,255,255,.14); color:#fff; }

/* Кнопка темы */
.util-theme{
  width:26px; height:26px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.8);
  display:inline-flex; align-items:center; justify-content:center;
  transition:.2s var(--ease); flex:none;
}
.util-theme:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }
.util-theme svg{ width:14px; height:14px; }
.util-theme .i-moon{ display:none; }
html.dark .util-theme .i-sun,
html[data-theme="dark"] .util-theme .i-sun{ display:none; }
html.dark .util-theme .i-moon,
html[data-theme="dark"] .util-theme .i-moon{ display:block; }

/* Пользователь / вход */
.util-user{ display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.util-user img{ width:20px; height:20px; border-radius:50%; }
.util-user .name{ color:#fff; font-size:11.5px; }
.util-auth{ display:inline-flex; align-items:center; gap:10px; }
.util-auth a{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; color:rgba(255,255,255,.72);
}
.util-auth a:hover{ color:var(--accent); }
.util-auth a.is-out{ color:#F87171; }
.util-auth-icons{ display:none; gap:12px; }
.util-auth-icons a{ color:rgba(255,255,255,.75); font-size:13px; }

@media (max-width:1080px){
  .util-chip.is-weather .muted{ display:none; }
  .util-chip.is-rates{ display:none; }
}
@media (max-width:920px){
  .util-fs{ display:none; }
}

/* -------------------------------------------------------------------------
   4. ПОИСК В ШАПКЕ
   ------------------------------------------------------------------------- */
.mast-search{
  flex:1 1 auto; max-width:460px; min-width:0; position:relative;
}
.mast-search input{
  width:100%; height:42px; padding:0 44px 0 42px;
  border:1px solid var(--rule); border-radius:999px;
  background:var(--paper-2); color:var(--ink);
  font-family:var(--sans); font-size:14px; outline:none;
  transition:.2s var(--ease);
}
.mast-search input::placeholder{ color:var(--ink-3); }
.mast-search input:focus{
  border-color:var(--accent); background:var(--paper);
  box-shadow:0 0 0 3px rgba(8,145,178,.14);
}
.mast-search .s-icon{
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; color:var(--ink-3); pointer-events:none;
}
.mast-search button{
  position:absolute; right:5px; top:5px;
  width:32px; height:32px; border:0; border-radius:50%;
  background:var(--ink); color:var(--paper);
  display:flex; align-items:center; justify-content:center;
  transition:.2s var(--ease);
}
.mast-search button:hover{ background:var(--accent); }
.mast-search button svg{ width:14px; height:14px; }

/* Мобильный поиск — отдельной строкой под логотипом */
.mast-search-mobile{ display:none; padding:0 0 14px; }
.mast-search-mobile .mast-search{ max-width:none; }
@media (max-width:900px){
  .mast-search.is-desktop{ display:none; }
  .mast-search-mobile{ display:block; }
}
body.is-shrunk .mast-search input{ height:38px; }

/* -------------------------------------------------------------------------
   5. БЕГУЩАЯ СТРОКА — вариант «НОВО» как на рабочем сайте
   ------------------------------------------------------------------------- */
.ticker .label .lbl-txt{ white-space:nowrap; }
.ticker .track a{ color:inherit; }
.ticker .track a:hover{ text-decoration:underline; }

/* -------------------------------------------------------------------------
   6. ПОЛОСА ОФЕРТ burgas.media (widgets/bm_offers.php) — только обёртка
   Внутренние стили виджета (.bmw-*) не трогаем.
   ------------------------------------------------------------------------- */
.offers-bar{
  background:var(--paper-2);
  border-bottom:1px solid var(--rule);
}
.offers-bar .container{ padding-top:2px; padding-bottom:2px; }
body.is-shrunk .offers-bar{
  max-height:0; opacity:0; overflow:hidden; pointer-events:none;
  border-bottom-color:transparent;
}
.offers-bar{ max-height:80px; overflow:hidden; transition:max-height .5s cubic-bezier(.16,1,.3,1), opacity .35s ease; }
.widget.is-offers{ padding:0; background:transparent; border:0; }
.widget.is-plain{ padding:0; background:transparent; border:0; }

/* Рекламные зоны сайта */
.bmads:empty{ display:none; }
.widget .bmads{ margin:0 auto; }

/* -------------------------------------------------------------------------
   7. ВИДЖЕТ ПОГОДЫ (богатый, из home.php / post.php)
   ------------------------------------------------------------------------- */
.widget.weather{
  background:linear-gradient(135deg, var(--sea) 0%, var(--sea-2) 100%);
  color:var(--paper); border:1px solid var(--sea-3); overflow:hidden;
  padding:0;
}
.weather-top{ position:relative; }
.weather-top > img.cover{
  width:100%; height:132px; object-fit:cover; opacity:.55;
}
.weather-top .veil{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(10,18,32,.92), rgba(10,18,32,.15));
}
.weather-top .inner{
  position:absolute; inset:auto 0 0 0; padding:16px 20px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
}
.weather-city{
  font-family:var(--serif); font-weight:600; font-size:20px; line-height:1.1;
  color:#fff; margin:0;
}
.weather-time{
  font-family:var(--mono); font-size:11px; letter-spacing:.05em;
  color:rgba(255,255,255,.72); margin-top:5px;
}
.weather-now{
  display:flex; align-items:center; gap:4px;
  font-family:var(--serif); font-weight:300; font-size:38px; line-height:1;
  color:#fff; letter-spacing:-.03em;
}
.weather-now img{ width:40px; height:40px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.weather-desc{
  padding:10px 20px 0; text-align:center;
  font-family:var(--serif); font-style:italic; font-size:14px;
  color:rgba(255,255,255,.85); text-transform:lowercase;
}
.weather-desc::first-letter{ text-transform:uppercase; }
.weather-rows{ padding:12px 20px 6px; }
.weather-rows .row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:9px 0; border-bottom:1px solid rgba(255,255,255,.10);
  font-size:13.5px;
}
.weather-rows .row:last-of-type{ border-bottom:0; }
.weather-rows .k{ color:rgba(255,255,255,.62); }
.weather-rows .v{ font-family:var(--serif); font-size:17px; color:#fff; }
.weather-note{
  padding:8px 20px 16px; text-align:center;
  font-family:var(--mono); font-size:10px; letter-spacing:.06em;
  color:rgba(255,255,255,.42);
}
.weather-city-form{ margin:0; }
.weather-city-form select{
  background:rgba(255,255,255,.14); color:#fff;
  border:1px solid rgba(255,255,255,.22); border-radius:8px;
  font-family:var(--serif); font-weight:600; font-size:17px;
  padding:4px 10px; outline:none; backdrop-filter:blur(6px);
  max-width:190px;
}
.weather-city-form select option{ color:#0F1E3D; background:#fff; }

/* -------------------------------------------------------------------------
   8. ВИДЖЕТ ГОРОСКОПА
   ------------------------------------------------------------------------- */
.widget.horoscope .widget-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.horo-select{
  background:var(--paper); color:var(--ink);
  border:1px solid var(--rule); border-radius:8px;
  font-family:var(--sans); font-size:12.5px; padding:5px 8px; outline:none;
}
.horo-select:focus{ border-color:var(--accent); }
.horo-symbol{
  text-align:center; font-size:46px; line-height:1;
  color:var(--accent); margin-bottom:8px;
}
.horo-name{
  text-align:center; font-family:var(--serif); font-weight:600;
  font-size:19px; margin:0 0 12px;
}
.horoscope .bars{ margin-top:4px; }
.horo-date{
  margin-top:14px; text-align:right;
  font-family:var(--mono); font-size:10px; letter-spacing:.06em; color:var(--ink-3);
}

/* -------------------------------------------------------------------------
   9. ГЛАВНАЯ — блок подписки (оригинальные тексты сайта)
   ------------------------------------------------------------------------- */
.newsletter .nl-note{
  margin-top:14px; font-size:12px; opacity:.55;
}
.newsletter form button{ white-space:nowrap; }
@media (max-width:520px){
  .newsletter form{ flex-direction:column; border-radius:18px; }
  .newsletter button{ border-radius:14px; }
}

/* -------------------------------------------------------------------------
   10. СТРАНИЦА КАТЕГОРИИ — панель фильтров рабочего сайта
   ------------------------------------------------------------------------- */
.cat-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
  padding:14px 0; margin-bottom:36px;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}
.cat-count{
  font-family:var(--mono); font-size:12px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-3);
}
.cat-count b{ color:var(--ink); font-size:14px; }
.cat-selects{ display:flex; gap:10px; flex-wrap:wrap; }
.cat-selects select{
  background:var(--paper-2); color:var(--ink-2);
  border:1px solid var(--rule); border-radius:999px;
  font-family:var(--sans); font-size:13px; padding:8px 14px; outline:none;
  transition:.2s var(--ease);
}
.cat-selects select:focus{ border-color:var(--accent); color:var(--ink); }

/* Крупная первая карточка в сетке категории */
.story.is-lead{ grid-column:span 2; grid-row:span 2; }
.story.is-lead .story-media{ aspect-ratio:16/9; }
.story.is-lead .story-body{ padding:24px 26px 28px; }
.story.is-lead .story-body h3{ font-size:clamp(24px,2.6vw,32px); line-height:1.15; }
.story.is-lead .excerpt{ font-size:16px; }
@media (max-width:1000px){ .story.is-lead{ grid-column:span 2; grid-row:auto; } }
@media (max-width:640px){ .story.is-lead{ grid-column:span 1; } }

.pagination .gap{
  border:0; background:transparent; min-width:20px; color:var(--ink-3);
}
.pagination .is-disabled{ opacity:.35; }
.pagination svg{ width:15px; height:15px; }

/* -------------------------------------------------------------------------
   11. СТАТЬЯ — надстройки движка
   ------------------------------------------------------------------------- */
/* Шапка статьи выровнена по левому краю (как на рабочем сайте) */
.article-head.is-left{ text-align:left; margin:0 auto; }
.article-head.is-left .byline{ display:flex; }
.article-head .byline .avatar img{ display:block; }

/* Кнопка «Изслушай статията» */
.tts-btn{
  display:inline-flex; align-items:center; gap:9px;
  background:transparent; color:var(--accent);
  border:1px solid var(--accent); border-radius:999px;
  padding:9px 18px; font-size:13px; font-weight:600;
  margin-top:6px; transition:.2s var(--ease);
}
.tts-btn:hover{ background:var(--accent); color:#fff; }
.tts-btn svg{ width:15px; height:15px; }
.tts-btn.is-playing{ background:var(--accent); color:#fff; }

/* Главное изображение с размытым фоном по бокам */
.article-hero.is-fitted{
  position:relative; overflow:hidden; border-radius:6px;
  background:var(--paper-3);
}
.article-hero.is-fitted .bg{
  position:absolute; inset:0; z-index:0;
}
.article-hero.is-fitted .bg img{
  width:100%; height:100%; object-fit:cover;
  filter:blur(28px); transform:scale(1.14); opacity:.55;
}
.article-hero.is-fitted .fg{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:center;
  height:clamp(240px, 42vw, 460px);
}
.article-hero.is-fitted .fg img{
  height:100%; width:auto; max-width:100%; object-fit:contain;
  aspect-ratio:auto; border-radius:0;
}
.article-hero.is-fitted figcaption{
  position:absolute; right:0; bottom:0; z-index:2; margin:0;
  background:rgba(15,30,61,.72); color:#fff;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.04em;
  padding:5px 12px; border-top-left-radius:8px; text-align:right;
}
.article-hero.is-fitted figcaption a{ color:#fff; border-bottom:1px solid rgba(255,255,255,.4); }

/* Галерея миниатюр под главным фото */
.post-gallery{ max-width:1100px; margin:18px auto 0; }
.gallery-thumbs{
  display:flex; gap:12px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:thin;
}
.gallery-thumbs::-webkit-scrollbar{ height:6px; }
.gallery-thumbs::-webkit-scrollbar-thumb{ background:var(--rule); border-radius:99px; }
.gallery-thumb{
  flex:none; width:160px; height:112px; border-radius:10px;
  overflow:hidden; border:1px solid var(--rule); background:var(--paper-3);
}
.gallery-thumb img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease);
}
.gallery-thumb:hover img{ transform:scale(1.06); }
#gallery-more-btn{
  flex:none; width:160px; height:112px; border-radius:10px;
  background:var(--paper-3); color:var(--ink-2);
  border:1px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:22px; font-weight:600;
  transition:.2s var(--ease);
}
#gallery-more-btn:hover{ background:var(--ink); color:var(--paper); }
.gallery-thumb.is-hidden, #gallery-more-btn.is-hidden,
.gallery-hidden{ display:none !important; }

/* Лид-абзац (excerpt) над телом статьи */
.article-lead{
  max-width:680px; margin:0 auto 30px;
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:21px; line-height:1.5; color:var(--ink-2);
}
/* Если есть лид — буквицу в теле не рисуем (иначе спорит с лидом) */
.article-lead + .article-body p:first-of-type::first-letter{
  font-size:inherit; float:none; padding:0; color:inherit; font-style:inherit;
  line-height:inherit;
}

/* Ссылки-обёртки вокруг картинок в тексте (glightbox) */
.article-body a.glightbox{ border:0; display:block; }
.article-body a.glightbox:hover{ background:none; }
.article-body a.glightbox img{ border-radius:6px; }
.article-body iframe{ max-width:100%; border:0; border-radius:8px; }

/* Реклама внутри статьи */
.article-body .bmads,
.article-ad{ margin:32px auto; display:flex; justify-content:center; }

/* Детали места / события */
.key-facts dl{ margin:0; display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.key-facts dl > div.wide{ grid-column:1 / -1; }
.key-facts dt{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--sand); margin-bottom:4px;
}
.key-facts dd{ margin:0; font-size:15px; line-height:1.5; color:rgba(255,255,255,.94); }
.key-facts dd a{ color:var(--sand); border-bottom:1px solid rgba(255,255,255,.28); }
.key-facts dd.pre{ white-space:pre-wrap; }
@media (max-width:640px){ .key-facts dl{ grid-template-columns:1fr; } }
#map-placeholder{
  margin-top:14px; height:280px; border-radius:12px; overflow:hidden;
  background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.6); font-family:var(--mono); font-size:12px;
}
#map-placeholder .leaflet-container{ border-radius:12px; }

/* Голосование за статью — интерактивная версия beta-пилюль */
.vote-bar{ margin:0 auto; align-items:center; }
button.vote-pill{ cursor:pointer; transition:.2s var(--ease); }
button.vote-pill svg{ width:20px; height:20px; }
.vote-pill.is-like.is-chosen{
  background:var(--accent); border-color:var(--accent); color:#fff;
}
.vote-pill.is-like.is-chosen .vc,
.vote-pill.is-like.is-chosen .vl{ color:#fff; }
.vote-pill.is-dislike.is-chosen{
  background:var(--ink); border-color:var(--ink); color:var(--paper);
}
.vote-pill.is-dislike.is-chosen .vc,
.vote-pill.is-dislike.is-chosen .vl{ color:var(--paper); }
.vote-msg{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.05em;
  color:var(--accent); align-self:center;
}

/* Теги и «Сподели» одной строкой */
.article-foot{
  max-width:780px; margin:40px auto 0; padding-top:28px;
  border-top:1px solid var(--rule);
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:24px; flex-wrap:wrap;
}
.article-foot .article-tags{ margin:0; padding:0; border:0; flex:1 1 320px; }
.share{ flex:none; }
.share .lbl{
  display:block; font-family:var(--mono); font-size:11px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-3); margin-bottom:10px; text-align:right;
}
.share .links{ display:flex; gap:8px; justify-content:flex-end; }
.share .links a,
.share .links button{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--rule); background:var(--paper-2); color:var(--ink-2);
  display:inline-flex; align-items:center; justify-content:center;
  transition:.2s var(--ease);
}
.share .links a svg,
.share .links button svg{ width:15px; height:15px; }
.share .links a:hover,
.share .links button:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.share .links a.is-fb:hover{ background:#1877F2; border-color:#1877F2; color:#fff; }
.share .links a.is-x:hover{ background:#0F1419; border-color:#0F1419; color:#fff; }
.share .links a.is-in:hover{ background:#0A66C2; border-color:#0A66C2; color:#fff; }
@media (max-width:620px){
  .article-foot{ flex-direction:column; }
  .share .lbl, .share .links{ text-align:left; justify-content:flex-start; }
}

/* Блок редакции / автора */
.author-box.is-editorial img{ object-fit:cover; }
.author-box .role{
  display:block; font-family:var(--mono); font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-3); margin:2px 0 10px;
}
.author-box a strong:hover{ color:var(--accent); }
.author-box p a{ color:var(--accent); }

/* -------------------------------------------------------------------------
   12. КОММЕНТАРИИ — форма и дерево
   ------------------------------------------------------------------------- */
.comments-block{ max-width:780px; margin:0 auto; }
.comments-block .section-head{ margin-bottom:26px; }
.comment-form{
  background:var(--paper-2); border:1px solid var(--rule);
  border-radius:14px; padding:22px; margin-bottom:32px;
}
.comment-form .cf-row{ display:flex; gap:16px; }
.comment-form .cf-avatar{
  width:44px; height:44px; border-radius:50%; flex:none; object-fit:cover;
}
.comment-form .cf-fields{ flex:1; min-width:0; display:flex; flex-direction:column; gap:12px; }
.field{
  width:100%; padding:12px 14px;
  border:1px solid var(--rule); border-radius:10px;
  background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:15px; outline:none;
  transition:.2s var(--ease);
}
.field::placeholder{ color:var(--ink-3); }
.field:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(8,145,178,.13); }
textarea.field{ resize:vertical; min-height:96px; line-height:1.5; }
.comment-form .cf-actions{ display:flex; justify-content:flex-end; }
#replying_to_info{
  display:none; font-size:13px; color:var(--ink-2);
  background:var(--accent-soft); border:1px solid var(--rule);
  border-radius:9px; padding:9px 12px;
}
#replying_to_info strong{ color:var(--ink); }
#cancel_reply{
  background:transparent; border:0; color:#DC2626;
  font-size:12px; text-decoration:underline; margin-left:8px;
}

.comment .c-body{ display:flex; gap:14px; }
.comment .c-avatar{ width:40px; height:40px; border-radius:50%; flex:none; }
.comment .c-main{ flex:1; min-width:0; }
.c-head{ justify-content:space-between; flex-wrap:wrap; }
.c-actions{
  display:flex; align-items:center; gap:20px; margin-top:10px;
  font-family:var(--mono); font-size:11px; letter-spacing:.05em;
  text-transform:uppercase; color:var(--ink-3);
}
.c-actions button{
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:0; padding:0; color:inherit;
  font:inherit; transition:.2s var(--ease);
}
.c-actions button:hover{ color:var(--accent); }
.c-actions svg{ width:15px; height:15px; }
.c-votes{ display:inline-flex; align-items:center; gap:16px; }
.c-votes .comment-vote-btn.is-chosen{ color:var(--accent); font-weight:700; }
.c-votes .comment-vote-btn.is-chosen-down{ color:#DC2626; font-weight:700; }
.comments-more{
  text-align:center; padding-top:22px; margin-top:6px;
  border-top:1px solid var(--rule);
}
.link-more{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--mono); font-size:12px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--accent); font-weight:600;
  background:transparent; border:0;
}
.link-more:hover{ color:var(--accent-deep); }
.link-more svg{ width:14px; height:14px; }

/* -------------------------------------------------------------------------
   13. ФОРМЫ — вход, регистрация, отправка новости
   ------------------------------------------------------------------------- */
.form-panel{
  max-width:560px; margin:0 auto;
  background:var(--paper-2); border:1px solid var(--rule);
  border-radius:16px; padding:32px;
}
.form-panel.is-wide{ max-width:760px; }
.form-panel h1{
  font-family:var(--serif); font-weight:600; font-size:30px;
  letter-spacing:-.02em; margin:0 0 8px;
}
.form-panel .lead{ color:var(--ink-2); font-size:15px; line-height:1.6; margin:0 0 24px; }
.form-row{ margin-bottom:16px; }
.form-row label{
  display:block; font-family:var(--mono); font-size:11px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-3); margin-bottom:7px;
}
.form-row .req{ color:#DC2626; }
.form-row .hint{ font-size:12px; color:var(--ink-3); margin-top:6px; }
.form-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.form-foot{ text-align:center; margin-top:18px; font-size:14px; color:var(--ink-2); }
.form-foot a{ color:var(--accent); font-weight:600; }
input[type="file"].field{ padding:9px 12px; font-size:13.5px; }
input[type="file"].field::file-selector-button{
  margin-right:12px; padding:7px 14px; border:0; border-radius:999px;
  background:var(--accent-soft); color:var(--accent-deep);
  font-family:var(--sans); font-weight:600; font-size:13px; cursor:pointer;
}

.notice{
  border-radius:11px; padding:13px 16px; margin-bottom:18px;
  font-size:14px; line-height:1.5;
  border:1px solid var(--rule); background:var(--paper-3); color:var(--ink-2);
}
.notice.is-error{ border-color:#FCA5A5; background:#FEF2F2; color:#991B1B; }
.notice.is-success{ border-color:#86EFAC; background:#F0FDF4; color:#166534; }
.notice.is-warn{ border-color:#FCD34D; background:#FFFBEB; color:#92400E; }
html.dark .notice.is-error,
html[data-theme="dark"] .notice.is-error{ background:#2A1416; border-color:#7F2A2A; color:#FCA5A5; }
html.dark .notice.is-success,
html[data-theme="dark"] .notice.is-success{ background:#0F2418; border-color:#255C3A; color:#86EFAC; }
html.dark .notice.is-warn,
html[data-theme="dark"] .notice.is-warn{ background:#2A2110; border-color:#7A5B1E; color:#FCD34D; }

/* -------------------------------------------------------------------------
   14. СТРАНИЦЫ: автор, «За нас», статические, 404, спорт
   ------------------------------------------------------------------------- */
.page-wrap{ padding:40px 0 80px; }
.page-narrow{ max-width:820px; margin:0 auto; }

.author-hero{
  display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--rule);
}
.author-hero .ava{
  width:104px; height:104px; border-radius:50%; object-fit:cover;
  border:1px solid var(--rule); flex:none;
}
.author-hero h1{
  font-family:var(--serif); font-weight:600; font-size:clamp(28px,4vw,42px);
  letter-spacing:-.025em; margin:0;
}
.author-hero .soc{
  display:inline-flex; align-items:center; gap:7px; margin-top:10px;
  font-size:13.5px; color:var(--accent); font-weight:600;
}
.author-hero .soc svg{ width:15px; height:15px; }
.author-bio{
  font-family:var(--serif); font-size:17px; line-height:1.65; color:var(--ink-2);
  margin-bottom:36px;
}
.author-bio p{ margin:0 0 14px; }
.cat-list{ margin-bottom:34px; }
.cat-list h3{
  font-family:var(--serif); font-style:italic; font-weight:600; font-size:24px;
  margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--rule);
}
.link-list{ list-style:none; margin:0; padding:0; }
.link-list li{ padding:11px 0; border-bottom:1px solid var(--rule-2); }
.link-list li:last-child{ border-bottom:0; }
.link-list a{
  font-family:var(--serif); font-size:17px; line-height:1.35;
  color:var(--ink); font-weight:500;
}
.link-list a:hover{ color:var(--accent); }

.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media (max-width:700px){ .team-grid{ grid-template-columns:1fr; } }
.team-card{
  display:flex; align-items:center; gap:16px;
  background:var(--paper-2); border:1px solid var(--rule);
  border-radius:14px; padding:18px; transition:.25s var(--ease);
}
.team-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); border-color:var(--accent); }
.team-card img,
.team-card .ini{
  width:60px; height:60px; border-radius:50%; flex:none; object-fit:cover;
}
.team-card .ini{
  background:var(--paper-3); color:var(--ink-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:24px; font-weight:600;
}
.team-card .nm{ font-family:var(--serif); font-size:18px; font-weight:600; }
.team-card .bio{ font-size:13.5px; color:var(--ink-2); line-height:1.45; margin-top:4px; }

/* Статические страницы из таблицы pages */
.page-body{
  font-family:var(--serif); font-size:18px; line-height:1.7; color:var(--ink);
  max-width:720px; margin:0 auto;
}
.page-body h2{ font-family:var(--serif); font-style:italic; font-size:30px; margin:40px 0 14px; }
.page-body h3{ font-family:var(--serif); font-size:23px; margin:32px 0 10px; }
.page-body p{ margin:0 0 20px; }
.page-body ul, .page-body ol{ padding-left:1.3em; margin:0 0 22px; }
.page-body li{ margin-bottom:9px; }
.page-body a{ color:var(--accent); border-bottom:1px solid var(--accent); }
.page-body table{ width:100%; border-collapse:collapse; margin:0 0 24px; font-size:15px; }
.page-body th, .page-body td{ border:1px solid var(--rule); padding:10px 12px; text-align:left; }
.page-body th{ background:var(--paper-3); font-family:var(--sans); font-weight:700; }

/* Спорт */
.sport-toolbar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.sport-toolbar select{
  background:var(--paper-2); color:var(--ink-2);
  border:1px solid var(--rule); border-radius:999px;
  font-family:var(--sans); font-size:13px; padding:9px 16px; outline:none;
}
.fixture{
  background:var(--paper-2); border:1px solid var(--rule);
  border-radius:14px; padding:18px 22px; margin-bottom:14px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.fixture .lg{ font-family:var(--mono); font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-3); }
.fixture .lg b{ color:var(--ink-2); }
.fixture .tm{ display:flex; align-items:center; gap:14px; font-family:var(--serif); font-size:17px; }
.fixture .score{
  font-family:var(--serif); font-weight:700; font-size:22px;
  background:var(--paper-3); border-radius:9px; padding:4px 14px; color:var(--ink);
}
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.stat-card{
  background:var(--paper-2); border:1px solid var(--rule);
  border-radius:12px; padding:16px 18px;
}
.stat-card .k{ font-family:var(--mono); font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-3); }
.stat-card .v{ font-family:var(--serif); font-size:26px; font-weight:600; margin-top:5px; }

/* 404 */
.error-block .code{
  font-family:var(--serif); font-weight:300; font-size:clamp(90px,18vw,190px);
  line-height:1; color:var(--accent); letter-spacing:-.05em; margin:0;
}

/* -------------------------------------------------------------------------
   15. МЕЛОЧИ
   ------------------------------------------------------------------------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.s-block{ padding:56px 0; }
.s-block.is-tight{ padding:32px 0; }
.divider{ height:1px; background:var(--rule); border:0; margin:0; }
.footer-grid{ align-items:start; }
.footer .contacts{ list-style:none; margin:0; padding:0; }
.footer .contacts li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14px; line-height:1.5; margin-bottom:10px;
}
.footer .contacts i{ color:var(--accent); margin-top:3px; width:15px; text-align:center; }
.footer .contacts a:hover{ color:var(--accent); }
.foot-bottom .built{ opacity:.6; }

/* Печать */
@media print{
  .site-header,.mast-spacer,.ticker,.section-bar,.sidebar,.newsletter,
  .footer,.ad-zone,.share,.vote-bar,.comment-form,.offers-bar,.read-progress{ display:none !important; }
  .article-body{ max-width:none; font-size:12pt; }
}

/* =========================================================================
   16. ФИНАЛЬНЫЕ ПРАВКИ ПОД РАЗМЕТКУ ДВИЖКА
   ========================================================================= */

/* Подвал: у нас 4 колонки, а не 5 */
.footer-grid{ grid-template-columns:1.6fr 1fr 1fr 1.2fr; }
@media (max-width:980px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer .foot-bottom nav{ display:flex; flex-wrap:wrap; gap:0 18px; }
.footer .foot-bottom nav a{ margin-left:0; }

/* Пункт «Публикувай» — только в мобильном дровере */
.nav-item.show-mob-only{ display:none; }
@media (max-width:900px){
  .nav-item.show-mob-only{ display:block; }
  .nav-item.show-mob-only a{ color:var(--accent); }
}

/* Хлебные крошки: убираем двойной отступ (margin + padding) */
.breadcrumb{ margin:0 0 8px; padding:18px 0 10px; }

/* Ссылка-заголовок секции */
.section-head h2 a{ color:inherit; }
.section-head h2 a:hover{ color:var(--accent); }

/* Hero: медиа-обёртка теперь <a>, ей нужен block */
.hero-lead .media{ display:block; }

/* Шапка статьи внутри узкой колонки */
.article-head.is-left{ padding:28px 0 32px; max-width:780px; }
.article-head.is-left h1{ font-size:clamp(30px,3.6vw,50px); margin-bottom:20px; }
.article-head.is-left .byline{ margin-top:22px; }
.article-head.is-left .kicker{ margin-bottom:14px; }
.article-head.is-left .tts-btn{ margin-top:4px; }

/* Заголовок блока комментариев чуть скромнее заголовков рубрик */
.comments-block .section-head h2{ font-size:clamp(24px,3vw,32px); }

/* Пустое состояние с текстом внутри колонки */
.main-col .empty p{ margin:0 0 8px; }
.main-col .empty p:last-child{ margin:0; }

/* Плитка «lead» в сетке категории */
.story.is-lead .kicker{ margin-bottom:2px; }

/* Виджеты-обёртки без рамки не должны ломать отступы сайдбара */
.sidebar > .widget.is-plain:empty,
.sidebar > .widget.is-offers:empty{ display:none; }

/* Плавное появление секций (класс reveal используется на главной) */
@media (prefers-reduced-motion:no-preference){
  .reveal{ animation:bmReveal .7s var(--ease) both; }
  .reveal-2{ animation-delay:.08s; }
  .reveal-3{ animation-delay:.16s; }
  .reveal-4{ animation-delay:.24s; }
}
@keyframes bmReveal{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:none; }
}

/* Био на автора идва като готов HTML от CMS — обвиваме в div, не в <p> */
.author-box .bio-html{ color:var(--ink-2); font-size:14.5px; line-height:1.55; }
.author-box .bio-html p{ margin:0 0 10px; }
.author-box .bio-html p:last-child{ margin:0; }
.author-box .bio-html a{ color:var(--accent); }
