/* ==========================================================================
   antimonopol.org — site stylesheet
   Дизайн система: палитрата идва от логото (виолетово → синьо → тюркоазено).
   Шрифтове: Geologica (заглавия) + Golos Text (текст), Google Fonts.
   ========================================================================== */

:root {
  --violet: #5D1DC9;
  --violet-deep: #4614A0;
  --blue: #3E6CBE;
  --teal: #1BC9B3;
  --teal-deep: #0E9E8B;
  --grad: linear-gradient(135deg, #5D1DC9 0%, #3E6CBE 50%, #1BC9B3 100%);

  --ink: #1B1838;
  --ink-2: #4A4869;
  --ink-3: #7D7C99;
  --paper: #FFFFFF;
  --mist: #F4F5FB;
  --mist-2: #E9EBF6;
  --line: #E1E3F0;
  --link: #3A2BB0;

  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 8px;

  --shadow-pop: 0 30px 70px -30px rgba(27, 24, 56, 0.45);
  --shadow-brand: 0 24px 60px -28px rgba(93, 29, 201, 0.45);

  --font-display: "Geologica", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }

p { margin: 0; }
p + p { margin-top: 1em; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

/* Section heading block: small label + title, left aligned */
.section-head { max-width: 42rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--violet);
}
.section-label::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}
.section-head p { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--violet); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist-2); color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 0.875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--mist-2);
  color: var(--ink-2);
}
/* Категории на новините (стойностите идват от базата данни) */
.chip--обучение { background: #EDE7FF; color: #4B1BA6; }
.chip--проект   { background: #E4EDFF; color: #2450A8; }
.chip--кампания { background: #DDF7F2; color: #0B6E62; }
.chip--събитие  { background: #FFF0DA; color: #8A4B00; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 11px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-switch:hover { color: var(--ink); background: var(--mist); }
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.yt-link:hover { border-color: var(--ink); color: var(--ink); }
.yt-link svg { width: 20px; height: 20px; color: #E11D2E; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.menu-btn svg { width: 22px; height: 22px; }

/* Mobile sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 40px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.mobile-nav nav { display: flex; flex-direction: column; margin-top: 28px; }
.mobile-nav nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.mobile-nav__actions .btn { flex: 1 1 auto; justify-content: center; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 24px; max-width: 12ch; }
.hero__lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Плочката: същият градиент като логото, снимката е вложена вътре */
.hero__tile {
  position: relative;
  padding: clamp(14px, 1.8vw, 22px);
  border-radius: var(--r-xl);
  background: var(--grad);
  box-shadow: var(--shadow-brand);
}
.hero__tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 12px);
}
.hero__tile::after {
  /* мек светлинен акцент в горния десен ъгъл, като на логото */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 50% at 100% 0%, rgba(255,255,255,0.22), transparent 70%);
  pointer-events: none;
}

/* Една оркестрирана поява при зареждане */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__tile { opacity: 0; transform: scale(.97) translateY(10px); animation: rise .9s cubic-bezier(.2,.7,.2,1) .12s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: none; }
  .hero__tile { max-width: 640px; }
}

/* --------------------------------------------------------------------------
   Impact band (числата)
   -------------------------------------------------------------------------- */
.impact {
  position: relative;
  color: #fff;
  background: var(--grad);
  padding-block: clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.impact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(0,0,0,0.12), transparent 70%);
  pointer-events: none;
}
.impact .container { position: relative; }
.impact .section-label { color: #fff; }
.impact .section-label::before { background: #fff; opacity: .9; }
.impact h2 { color: #fff; }
.impact .section-head { margin-bottom: clamp(32px, 4vw, 48px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.35);
}
.stats li {
  padding: 28px 24px 8px 0;
  border-right: 1px solid rgba(255,255,255,0.28);
}
.stats li + li { padding-left: 24px; }
.stats li:last-child { border-right: 0; }
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.stats span { display: block; font-size: 0.98rem; color: rgba(255,255,255,0.88); max-width: 20ch; }

@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(3) { padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.28); }
}

/* --------------------------------------------------------------------------
   Two-column feature (Нови хоризонти)
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature__copy { padding-left: 24px; border-left: 3px solid var(--teal); }
.feature__copy h2 { margin-bottom: 18px; }
.feature__copy p { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-l); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__copy { order: 2; }
  .feature__media { order: 1; }
}

/* --------------------------------------------------------------------------
   Gallery slider
   -------------------------------------------------------------------------- */
.gallery { position: relative; }
.gallery__viewport { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--mist-2); }
.gallery__track { display: flex; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.gallery__slide { position: relative; min-width: 100%; }
.gallery__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 28px 26px;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 16, 48, 0.82), rgba(20, 16, 48, 0));
}
.gallery__caption h3 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.gallery__caption p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(27,24,56,.5);
  transition: background-color .15s ease;
}
.gallery__btn:hover { background: #fff; }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__btn--prev { left: 16px; }
.gallery__btn--next { right: 16px; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.gallery__thumb {
  padding: 0;
  border: 0;
  border-radius: var(--r-s);
  overflow: hidden;
  background: none;
  opacity: .55;
  outline-offset: 2px;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.gallery__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--violet); }

@media (max-width: 640px) {
  .gallery__caption { padding: 48px 18px 18px; }
  .gallery__caption h3 { font-size: 1.1rem; }
  .gallery__btn { width: 40px; height: 40px; }
  .gallery__thumbs { gap: 8px; }
}

/* --------------------------------------------------------------------------
   Cards: news & projects
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .2s ease;
}
.card__media { position: relative; background: var(--mist-2); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__media .badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-3); }
.card__body h3 { font-size: 1.2rem; }
.card__body p { color: var(--ink-2); font-size: 0.97rem; }
.card__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--link); }

.news-card { cursor: pointer; }
.news-card:hover { border-color: var(--violet); }
.news-card .card__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-l);
  text-align: center;
  color: var(--ink-3);
}
.section__cta { margin-top: clamp(32px, 4vw, 48px); }

/* Проекти */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); }
.filter {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.project .card__body h3 { font-size: 1.15rem; }
.project.is-hidden { display: none; }
.project.is-collapsed { display: none; }
.projects-more { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 40px); }

/* YouTube „лек“ плейър — iframe се зарежда чак при клик */
.yt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.yt:hover img { transform: scale(1.03); }
.yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt__play span {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--violet);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  transition: transform .2s ease, background-color .2s ease;
}
.yt:hover .yt__play span { transform: scale(1.06); background: #fff; }
.yt__play svg { width: 24px; height: 24px; margin-left: 3px; }
.yt.is-playing img, .yt.is-playing .yt__play { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Малка карусела за проекти със снимки */
.carousel { position: relative; overflow: hidden; background: var(--mist-2); }
.carousel__track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.carousel__track img { min-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(27,24,56,.5);
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transition: width .2s ease, background-color .2s ease;
}
.carousel__dots button[aria-current="true"] { width: 22px; background: #fff; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-l);
  margin-bottom: 18px;
}
.member h3 { font-size: 1.3rem; margin-bottom: 8px; }
.member .chip { margin-bottom: 10px; }
.member p { color: var(--ink-2); }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .member img { aspect-ratio: 4 / 4; } }

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partners a {
  display: grid;
  place-items: center;
  height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  transition: border-color .15s ease;
}
.partners a:hover { border-color: var(--violet); }
.partners img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(2, 1fr); } .partners a { height: 104px; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--mist);
}
.contact-panel .section-head { margin-bottom: 0; }
.contact-list { display: grid; gap: 14px; align-content: center; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease;
}
.contact-item:hover { border-color: var(--violet); color: var(--ink); }
.contact-item__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--violet);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__icon--yt { color: #E11D2E; }
.contact-item h4 { font-size: 0.9rem; color: var(--ink-3); font-weight: 500; font-family: var(--font-body); margin-bottom: 2px; }
.contact-item strong { font-size: 1.1rem; font-weight: 600; }
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.78);
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; font-size: 0.95rem; }
.footer-bottom { padding-top: 24px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   Modal (новина)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(27, 24, 56, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__dialog {
  position: relative;
  width: min(100%, 860px);
  margin: auto;
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(27,24,56,.6);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__media { position: relative; background: var(--mist-2); }
.modal__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal__body { padding: clamp(22px, 3vw, 36px); }
.modal__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 6px; }
.modal__date { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 20px; }
.modal__content p { color: var(--ink-2); }
.modal__video { margin-top: 24px; border-radius: var(--r-m); overflow: hidden; }
.modal__video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.modal__footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
.hidden { display: none !important; }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-pop);
}

/* --------------------------------------------------------------------------
   Inner pages (news.html, news-view.html)
   -------------------------------------------------------------------------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-head p { font-size: 1.15rem; color: var(--ink-2); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(32px, 4vw, 48px); }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; color: var(--ink-2);
}
.pagination button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: default; }

.article { width: min(100% - 2 * var(--gutter), 800px); margin-inline: auto; padding: clamp(32px, 5vw, 64px) 0; }
.article__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 28px; text-decoration: none; }
.article__back svg { width: 18px; height: 18px; }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.9rem; margin-bottom: 16px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; }
.article__actions { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); }
.article__content { margin-top: 28px; font-size: 1.08rem; }
.article__content p { color: var(--ink-2); }
.article__video { margin-top: 28px; border-radius: var(--r-l); overflow: hidden; }
.article__video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.article__gallery { position: relative; }
.article__gallery .gallery__thumbs { grid-template-columns: repeat(6, 1fr); }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
