/* ==========================================================================
   Белорусская община города Сочи — фирменные стили
   Палитра: тёмно-синий фон, золото, белорусский красный и зелёный
   Шрифты: Merriweather (заголовки) + PT Sans (текст)
   ========================================================================== */

:root {
  --bg: #0a1626;
  --bg-panel: #0f2038;
  --bg-panel-2: #132846;
  --gold: #c9a24c;
  --gold-light: #e6c877;
  --red: #c8102e;
  --green: #007a3e;
  --cream: #f3eee0;
  --text: #e9e4d6;
  --text-dim: #a9b3c4;
  --line: rgba(201, 162, 76, 0.16);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 18px rgba(2, 6, 14, 0.35);
  --shadow-md: 0 14px 40px rgba(2, 6, 14, 0.4);
  --shadow-lg: 0 24px 70px rgba(2, 6, 14, 0.5);
  --container: 1180px;
  --font-display: "Merriweather", Georgia, serif;
  --font-body: "PT Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Единый аккуратный золотой фокус вместо разнородной браузерной рамки */
a, button {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 2px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

.lead { color: var(--text); font-size: 1.08rem; }

/* -------------------- Орнамент (сигнатурный элемент) -------------------- */
/* Стилизованный белорусский геометрический узор-рушник, используется как
   тонкий разделитель между смысловыми блоками страницы. */
.ornament {
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-position: 0 0, 7px 7px;
  background-size: 14px 14px;
  opacity: 0.9;
}
.ornament.thin { height: 6px; background-size: 8px 8px; background-position: 0 0, 4px 4px; }

/* -------------------------- Верхняя панель / шапка ----------------------- */
.topbar {
  background: #061020;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 46px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}
.brand-emblem svg { width: 100%; height: 100%; }

.brand-text { line-height: 1.25; }
.brand-text .t1 {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.brand-text .t2 {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

nav.mainnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.mainnav a {
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

nav.mainnav a:hover,
nav.mainnav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.icon-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color .15s, color .15s;
}
.icon-link:hover { border-color: var(--gold); color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn-gold {
  background: var(--gold);
  color: #1a1305;
  box-shadow: 0 8px 24px rgba(201,162,76,0.28);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,76,0.4); }

.btn-outline {
  border-color: rgba(201,162,76,0.5);
  color: var(--gold-light);
  background: rgba(201,162,76,0.06);
}
.btn-outline:hover { background: rgba(201,162,76,0.14); border-color: var(--gold); transform: translateY(-2px); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

/* ------------------------------- Hero ------------------------------------ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-slide.active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,16,32,0.95) 0%, rgba(6,16,32,0.85) 30%, rgba(6,16,32,0.5) 56%, rgba(6,16,32,0.15) 78%, rgba(6,16,32,0.35) 100%),
    linear-gradient(0deg, rgba(6,16,32,0.45) 0%, transparent 42%);
}

@media (max-width: 900px) {
  .hero-scrim { background: linear-gradient(0deg, rgba(6,16,32,0.97) 0%, rgba(6,16,32,0.6) 45%, rgba(6,16,32,0.3) 100%); }
}

/* Decorative woven-ornament borders framing the hero — традиционный белорусский
   геометрический мотив "ромб з крукамі" (парны ромб з кручкамі), в технике вышивки крестом */
.hero-border {
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  z-index: 3;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='44' viewBox='0 0 36 44'><rect width='36' height='44' fill='white'/><rect x='16' y='0' width='4' height='4' fill='%23c8102e'/><rect x='12' y='4' width='4' height='4' fill='%23c8102e'/><rect x='16' y='4' width='4' height='4' fill='%23c8102e'/><rect x='20' y='4' width='4' height='4' fill='%23c8102e'/><rect x='8' y='8' width='4' height='4' fill='%23c8102e'/><rect x='24' y='8' width='4' height='4' fill='%23c8102e'/><rect x='4' y='12' width='4' height='4' fill='%23c8102e'/><rect x='8' y='12' width='4' height='4' fill='%23c8102e'/><rect x='24' y='12' width='4' height='4' fill='%23c8102e'/><rect x='28' y='12' width='4' height='4' fill='%23c8102e'/><rect x='0' y='16' width='4' height='4' fill='%23c8102e'/><rect x='16' y='16' width='4' height='4' fill='%23c8102e'/><rect x='32' y='16' width='4' height='4' fill='%23c8102e'/><rect x='0' y='20' width='4' height='4' fill='%23c8102e'/><rect x='8' y='20' width='4' height='4' fill='%23c8102e'/><rect x='24' y='20' width='4' height='4' fill='%23c8102e'/><rect x='32' y='20' width='4' height='4' fill='%23c8102e'/><rect x='0' y='24' width='4' height='4' fill='%23c8102e'/><rect x='16' y='24' width='4' height='4' fill='%23c8102e'/><rect x='32' y='24' width='4' height='4' fill='%23c8102e'/><rect x='4' y='28' width='4' height='4' fill='%23c8102e'/><rect x='8' y='28' width='4' height='4' fill='%23c8102e'/><rect x='24' y='28' width='4' height='4' fill='%23c8102e'/><rect x='28' y='28' width='4' height='4' fill='%23c8102e'/><rect x='8' y='32' width='4' height='4' fill='%23c8102e'/><rect x='24' y='32' width='4' height='4' fill='%23c8102e'/><rect x='12' y='36' width='4' height='4' fill='%23c8102e'/><rect x='16' y='36' width='4' height='4' fill='%23c8102e'/><rect x='20' y='36' width='4' height='4' fill='%23c8102e'/><rect x='16' y='40' width='4' height='4' fill='%23c8102e'/></svg>");
  background-repeat: repeat;
  background-size: 36px 44px;
  box-shadow: inset -2px 0 0 rgba(201,162,76,0.55), inset 2px 0 0 rgba(201,162,76,0.55);
}
.hero-border.left { left: 0; }
.hero-border.right { right: 0; }
@media (max-width: 900px) { .hero-border { display: none; } }

.hero-inner { position: relative; z-index: 2; padding: 64px 60px; width: 100%; }
.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.hero h1 span { color: var(--gold-light); }
.hero-copy .lead { color: #fff; }
.hero-copy p:not(.lead) { color: #d8d4c6; }

.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-name-card {
  position: absolute;
  right: 60px;
  bottom: 60px;
  z-index: 3;
  background: rgba(15, 32, 56, 0.78);
  border-radius: var(--radius);
  padding: 18px 24px;
  max-width: 280px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.hero-name-card .name { font-family: var(--font-display); color: #fff; font-weight: 700; }
.hero-name-card .role { color: var(--gold-light); font-size: 0.85rem; margin-top: 2px; }

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { padding: 36px 20px 8px; order: 1; }
  .hero-name-card {
    position: static;
    order: 2;
    margin: 22px 20px 28px;
    max-width: none;
    width: auto;
  }
}
@media (max-width: 480px) {
  .hero-inner { padding: 28px 16px 6px; }
  .hero-name-card { margin: 18px 16px 22px; padding: 12px 16px; }
}

/* ------------------------------ Stats bar --------------------------------- */
.stats {
  background: transparent;
  border-bottom: none;
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -36px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.7rem;
}
.stat span { font-size: 0.86rem; color: var(--text-dim); }

.stats-grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 38px 24px;
}
.stats-grid-6 .stat { padding: 0 18px; min-width: 0; overflow-wrap: break-word; }
.stat-ico { display: block; width: 26px; height: 26px; margin: 0 auto 8px; color: var(--gold-light); }
@media (max-width: 900px) {
  .stats { margin-top: 0; }
  .stats-grid-6 { grid-template-columns: repeat(3, 1fr); row-gap: 30px; padding: 32px 20px; }
}
@media (max-width: 480px) {
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); }
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-emblem { width: 34px; height: 40px; flex-shrink: 0; }
.footer-emblem svg { width: 100%; height: 100%; }
.footer-brand h4 { text-transform: none; letter-spacing: 0; font-size: 1rem; color: #fff; font-family: var(--font-display); }

/* ------------------------------- Sections --------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-panel); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 8px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.two-col .photo-wrap { position: relative; }
.two-col .photo-wrap::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(201,162,76,0.22), transparent 70%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(4px);
}
.two-col img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Activities / cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 > *, .grid-4 > *, .news-grid > *, .gallery-grid > *, .footer-grid > *, .holiday-highlight > * { min-width: 0; }

.card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .card-photo { aspect-ratio: 4/3; overflow: hidden; }
.card .card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-photo img { transform: scale(1.06); }

/* Портретные фото (лица людей) — сдвигаем видимую область вверх, чтобы не обрезать голову
   при вписывании в горизонтальные рамки карточек 4:3 */
img[src*="sport-kubok.jpg"],
img[src*="vstrecha-batyushka.jpg"],
img[src*="semya-kostyumy.jpg"] { object-position: center 12%; }
.card .card-body { padding: 20px 22px 24px; }
.card .card-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(201,162,76,0.14);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { font-size: 0.93rem; margin-bottom: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: var(--bg-panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .np { aspect-ratio: 4/3; overflow: hidden; }
.news-card .np img { width: 100%; height: 100%; object-fit: cover; }
.news-card .nb { padding: 18px 20px 22px; }
.news-date { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.03em; margin-bottom: 6px; display:block;}
.news-card h3 { font-size: 1rem; margin-bottom: 0; }

.center-cta { text-align: center; margin-top: 36px; }

/* Timeline (events page) */
.timeline { border-left: 2px solid var(--line); margin-left: 10px; }
.timeline-item { position: relative; padding: 0 0 40px 30px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-tag {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--bg);
  background: var(--gold-light);
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(201,162,76,0.14);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { margin: 0 0 4px; color: #fff; font-family: var(--font-body); font-size: 0.95rem; }
.contact-item p { margin: 0; font-size: 0.95rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

.note-box {
  border-left: 3px solid var(--red);
  background: rgba(200,16,46,0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 18px;
}

/* Page header (inner pages) */
.page-header {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #08111f, var(--bg));
}
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* Footer */
footer {
  background: #061020;
  border-top: 1px solid var(--line);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid p { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.social-row { display: flex; gap: 10px; margin-top: 6px; }

/* Responsive */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  nav.mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #061020;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 24px 16px;
  }
  nav.mainnav a { padding: 13px 4px; font-size: 1rem; }
  nav.mainnav.open { display: flex; }
  .menu-toggle { display: block; }
  .topbar-inner { position: relative; }
  .grid-3, .grid-4, .news-grid { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text .t1 { font-size: 0.9rem; }

  /* больше воздуха и удобные тач-зоны на телефоне */
  .btn { padding: 13px 20px; min-height: 46px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .card-body { padding: 18px 20px 24px; }
  .center-cta { margin-top: 28px; }
  .section-head { margin-bottom: 28px; }
  .two-col { gap: 32px; }
  .icon-link, .hero-bg-prev, .hero-bg-next, .lb-prev, .lb-next, .lb-close { min-width: 40px; min-height: 40px; }
}

/* --------------------------- Лайтбокс (просмотр фото) --------------------- */
.card-photo, .np, .gallery-grid a { display: block; position: relative; overflow: hidden; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 20, 0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(15,32,56,0.7);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: #1a1305; }
.lb-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 1.4rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.6rem; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
@media (max-width: 620px) {
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 1.3rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ------------------------------- FAQ -------------------------------------- */
.faq {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.faq-item {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 26px;
  margin-bottom: 0;
  transition: box-shadow .2s ease;
}
@media (max-width: 780px) {
  .faq { grid-template-columns: 1fr; }
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 16px;
  color: var(--gold-light);
  font-size: 1.3rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* --------------------------- Праздничный календарь ------------------------- */
.holiday-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.holiday-chip {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.holiday-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.holiday-chip .hc-date { color: var(--gold-light); font-size: 0.82rem; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
.holiday-chip h4 { margin: 0 0 4px; color: #fff; font-family: var(--font-display); font-size: 1rem; }
.holiday-chip p { margin: 0; font-size: 0.86rem; }

.holiday-month { margin-bottom: 30px; }
.holiday-month h3 {
  color: var(--gold-light);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.holiday-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.holiday-row:last-child { border-bottom: none; }
.holiday-row .hd-date { color: var(--gold-light); font-size: 0.88rem; font-weight: 700; }
.holiday-row .hd-body h4 { margin: 0 0 4px; color: #fff; font-family: var(--font-body); font-size: 0.98rem; }
.holiday-row .hd-body p { margin: 0; font-size: 0.9rem; }
.holiday-tag-by { color: var(--red); }
.holiday-tag-ru { color: #4f8fd6; }
.holiday-tag-both { color: var(--gold-light); }
@media (max-width: 620px) {
  .holiday-row { grid-template-columns: 1fr; gap: 4px; }
}

/* --------------------------- Доп. мобильные правки -------------------------- */
@media (max-width: 680px) {
  .topbar-inner { padding: 12px 16px; flex-wrap: wrap; row-gap: 10px; }
  .brand-emblem { width: 38px; height: 44px; }
  .brand-text .t2 { font-size: 0.7rem; }
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  h1 { font-size: 1.9rem; }
  .icon-link { display: none; }
  .btn-shrink { display: none; }
  .topbar-actions .btn { padding: 10px 14px; }
}
@media (max-width: 400px) {
  .topbar-actions { gap: 8px; }
  .brand-text .t1 { font-size: 0.82rem; }
}

/* --------------------- Плавное появление блоков при скролле ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.21,.6,.35,1), transform 0.7s cubic-bezier(.21,.6,.35,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.21,.6,.35,1), transform 0.6s cubic-bezier(.21,.6,.35,1);
}
.reveal-group.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-group.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.in-view > *:nth-child(2) { transition-delay: .07s; }
.reveal-group.in-view > *:nth-child(3) { transition-delay: .14s; }
.reveal-group.in-view > *:nth-child(4) { transition-delay: .21s; }
.reveal-group.in-view > *:nth-child(5) { transition-delay: .28s; }
.reveal-group.in-view > *:nth-child(6) { transition-delay: .35s; }
.reveal-group.in-view > *:nth-child(7) { transition-delay: .42s; }
.reveal-group.in-view > *:nth-child(8) { transition-delay: .49s; }
.reveal-group.in-view > *:nth-child(n+9) { transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ------------------------------ Cookie-баннер ----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: #061020;
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(2, 6, 14, 0.4);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 640px;
}
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.86rem; }
@media (max-width: 620px) {
  .cookie-banner-inner { padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
