/* ============================================================
   BASHDRAM — PRO LAYER
   Премиальная проработка контента: афиша, карточки, меню,
   секции, кнопки. Подключается ПОСЛЕ styles.css.
   Если направление утвердят — вливается в основной styles.css.
   ============================================================ */

/* ---------- ТИПОГРАФИКА: антиква для заголовков (все варианты) ---------- */
body { --font-display: 'Playfair Display', Georgia, 'FreeSerif', serif; }
.section-header h2, .mood-section-title { font-family: var(--font-display); font-weight: 600; }
.afisha-tile-title, .news-card-title { font-family: var(--font-display); font-weight: 600; }
.hero-slide-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.atd-day { font-family: var(--font-display); font-weight: 700; }

/* ---------- КНОПКИ: плоские, собранные, без градиентов ---------- */
.btn {
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 32px; gap: 10px;
}
.btn-sm { padding: 11px 22px; font-size: 0.64rem; border-radius: 3px; }
.btn-gold { background: var(--gold); box-shadow: none; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(139,26,26,0.22); }
.btn-outline { border-color: rgba(26,26,26,0.22); }
.btn-outline:hover { background: transparent; }
.nav-buy-btn { border-radius: 4px; letter-spacing: 0.12em; }
.scroll-top-btn { background: var(--gold); }
.scroll-top-btn:hover { background: var(--gold-light); }

/* ---------- СОЦСЕТИ: настоящие иконки (VK, TG, MAX, OK, TikTok) ---------- */
.tb-socials { display: flex; gap: 6px; align-items: center; }
.tb-soc { width: 24px; height: 24px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  transition: background 0.2s, color 0.2s; }
.tb-soc svg { height: 12px; width: auto; fill: currentColor; display: block; }
.tb-soc:hover { background: rgba(255,255,255,0.24); color: #fff; }
.tb-access { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.tb-access svg { width: 15px; height: 15px; fill: currentColor; opacity: 0.85; flex-shrink: 0; }
.tb-access:hover svg { opacity: 1; }
.footer-social svg { height: 15px; width: auto; fill: currentColor; display: block; }
.mobile-menu-socials a { display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
.mobile-menu-socials svg { height: 20px; width: auto; fill: currentColor; display: block; }

/* защита от наездов названия и кнопки на средних ширинах */
@media (max-width: 1180px) {
  .nav-theater-title { font-size: 0.92rem; }
  .nav-theater-gafuri { font-size: 0.82rem; }
}
@media (max-width: 1040px) {
  .nav-theater-season { display: none; }
  .nav-theater-title { font-size: 0.84rem; }
}

/* ---------- МЕНЮ: больше воздуха и выразительности ---------- */
.nav-menu > li > a {
  font-size: 0.8rem; letter-spacing: 0.1em; padding: 11px 20px;
}
/* единый ховер: подчёркивание из центра, без прыгающих плашек */
.nav-menubar .nav-menu > li > a:hover { background: transparent; }
.nav-menubar .nav-menu > li > a::before {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 6px;
  height: 2px; background: currentColor;
  transition: left 0.22s ease, right 0.22s ease;
}
.nav-menubar .nav-menu > li > a:hover::before,
.nav-menubar .nav-menu > li > a.active::before { left: 18px; right: 18px; }
.nav-menubar .nav-menu > li > a.active { background: transparent; }
.nav-menubar .nav-menu > li > a.active::after { display: none; }

/* мега-меню: мягкое раскрытие, без мигания при пробеге курсора */
.mega-menu { padding: 38px var(--px) 44px; transform: translateY(-6px);
  transition: opacity 0.3s ease 0.14s, visibility 0.3s ease 0.14s, transform 0.3s ease 0.14s; }
.nav-item.has-mega:hover .mega-menu { transition-delay: 0.12s; }
.mega-menu-inner { gap: 2px 64px; }
/* заголовок раздела внутри мега-меню */
.mm-title { grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  font: 600 1.35rem var(--font-display, Georgia, serif); color: var(--text);
  padding-bottom: 14px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(26,26,26,0.1); }
.mm-title::before { content: ''; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
/* ссылки: тонкие линейки, ромб появляется при наведении */
.mega-link { position: relative; font-size: 0.96rem;
  padding: 12px 16px 12px 26px; border-left: none;
  border-bottom: 1px solid rgba(26,26,26,0.05); }
.mega-link::before { content: ''; position: absolute; left: 8px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; background: var(--gold);
  transform: rotate(45deg) scale(0); transition: transform 0.25s ease; }
.mega-link:hover::before { transform: rotate(45deg) scale(1); }
/* фикс дёргания: старый styles.css менял padding-left при ховере */
.mega-link:hover { padding-left: 26px; background: transparent; }

/* ---------- НАВБАР: сезон слева, касса справа (заполнение пустот) ---------- */
/* лого и сезон прижаты влево, правый блок — вправо (вместо space-between) */
.navbar { justify-content: flex-start; }
.nav-right { margin-left: auto; }
.nv-season { display: flex; flex-direction: column; justify-content: center;
  margin-left: 18px; padding-left: 18px;
  border-left: 1px solid rgba(26,26,26,0.14); line-height: 1.2; }
.nv-season b { font: italic 500 0.98rem var(--font-display, Georgia, serif);
  color: var(--gold); font-weight: 500; }
.nv-season span { font: 600 0.55rem var(--font-heading); letter-spacing: 0.18em;
  color: var(--text-dim); text-transform: uppercase; margin-top: 3px; }
.nv-phone { display: flex; flex-direction: column; align-items: flex-end;
  margin-right: 8px; text-decoration: none; line-height: 1.2; }
.nv-phone b { font: 700 0.92rem var(--font-heading); color: var(--text); letter-spacing: 0.02em; }
.nv-phone span { font: 600 0.54rem var(--font-heading); letter-spacing: 0.16em;
  color: var(--text-dim); text-transform: uppercase; margin-top: 2px; }
.nv-phone:hover b { color: var(--gold); }
/* сезон теперь слева — мелкий дубль под названием убираем */
.nav-theater-season { display: none; }
/* на средних ширинах не прячем кассу, а ужимаем композицию */
@media (max-width: 1420px) {
  .nav-theater-title { font-size: 0.95rem; }
  .nav-theater-gafuri { font-size: 0.85rem; }
  .nv-phone b { font-size: 0.84rem; }
  .nv-phone span { display: none; }
  .nv-season b { font-size: 0.9rem; }
}
@media (max-width: 1240px) { .nv-phone { display: none; } .nv-season { display: none; } }

/* ---------- ЗАГОЛОВКИ СЕКЦИЙ: типографика вместо коробок ---------- */
.section-header { margin-bottom: 44px; align-items: flex-end; }
.section-header h2 {
  color: var(--text);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700; line-height: 1.1;
}
.section-header h2::before {
  content: ''; display: block; width: 46px; height: 3px;
  background: var(--gold); margin-bottom: 18px;
}
.section-divider { display: none; }
.section-header .btn {
  background: none; border: none; border-radius: 0;
  padding: 0 0 7px; color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.16em;
  border-bottom: 1px solid rgba(139,26,26,0.45);
}
.section-header .btn:hover { color: var(--gold-dark); border-bottom-color: var(--gold-dark); transform: none; }

/* ---------- АФИША: постер вместо коробки ---------- */
.afisha-tile-grid { gap: 44px 32px; }
.afisha-tile {
  background: transparent; border: none; border-radius: 0;
  overflow: visible;
}
.afisha-tile:hover {
  transform: none; box-shadow: none; border-color: transparent;
}

/* постер — первым, с мягкой тенью и подъёмом на ховере */
.afisha-tile-img {
  order: -1;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(30,10,10,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.afisha-tile-img img { aspect-ratio: 16/10; }
.afisha-tile:hover .afisha-tile-img {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(30,10,10,0.2);
}
.afisha-tile-badge {
  font-size: 0.58rem; letter-spacing: 0.14em;
  padding: 6px 12px; border-radius: 2px; top: 12px; left: 12px;
}

/* дата — крупная типографика, а не серая плашка */
.afisha-tile-datebar {
  background: none; border: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 0;
  align-items: center;
  padding: 16px 2px 2px;
}
.atd-day {
  grid-row: 1 / 3;
  font-size: 2.3rem; font-weight: 800; color: var(--gold);
  line-height: 0.9;
}
.atd-month {
  grid-row: 1; grid-column: 2;
  font-size: 0.72rem; letter-spacing: 0.1em; align-self: end;
  color: var(--text);
}
.atd-weekday {
  grid-row: 2; grid-column: 2;
  border: none; padding: 0; align-self: start;
  font-size: 0.62rem; letter-spacing: 0.12em; color: var(--text-dim);
}
.atd-time {
  grid-row: 1 / 3; grid-column: 3;
  font-size: 0.78rem; letter-spacing: 0.1em;
}

/* текст карточки */
.afisha-tile-body { padding: 8px 2px 0; }
.afisha-tile-title {
  font-size: 1.18rem; line-height: 1.25;
  transition: color var(--transition);
}
.afisha-tile:hover .afisha-tile-title { color: var(--gold); }
.afisha-tile-author { font-size: 0.78rem; margin: 2px 0 8px; }
.afisha-tile-meta { font-size: 0.72rem; margin-bottom: 10px; }
.afisha-tile-meta svg { fill: #C9C0B8; }

/* теги — спокойная текстовая строка вместо цветных чипов */
.afisha-tile-tags { gap: 0; margin-bottom: 4px; }
.afisha-tile-tag {
  border: none; background: none; padding: 0;
  font-family: var(--font-heading);
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.afisha-tile-tag + .afisha-tile-tag::before {
  content: '·'; margin: 0 8px; color: rgba(26,26,26,0.3);
}
.afisha-tile-tags .afisha-tile-tag:first-child { color: var(--gold); }

/* нижний ряд: линия, билет, Пушкинская карта */
.afisha-tile-action {
  border-top: 1px solid rgba(26,26,26,0.1);
  margin-top: 12px; padding: 14px 2px 0;
}
.afisha-tile-pushkin img { height: 46px; }

/* «Показать ещё» */
.show-more-btn {
  background: transparent; border: 1px solid rgba(139,26,26,0.4);
  border-radius: 4px; color: var(--gold);
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 40px;
}
.show-more-btn:hover { background: rgba(139,26,26,0.06); border-color: var(--gold); }

/* ---------- НАСТРОЕНИЕ: сдержанные пилюли в одну строку ---------- */
.mood-section-title {
  font-size: 1.5rem; margin-bottom: 8px;
}
.mood-section-title::after {
  content: ''; display: block; width: 38px; height: 3px;
  background: var(--gold); margin: 14px auto 0;
}
.mood-chips { gap: 12px; margin-top: 22px; }
.mood-chip {
  flex-direction: row; gap: 10px;
  min-width: 0; padding: 12px 26px;
  border-radius: 999px;
  background: transparent; border: 1px solid rgba(26,26,26,0.16);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: none;
  color: var(--text-muted);
}
.mood-icon { width: 24px; height: 24px; opacity: 0.75; }
.mood-chip:hover {
  transform: none; box-shadow: none;
  border-color: rgba(139,26,26,0.55);
  background: rgba(139,26,26,0.04);
}
.mood-chip.active { border-color: var(--gold); box-shadow: none; }

/* ---------- НОВОСТИ: редакционные карточки без коробок ---------- */
.news-card {
  background: transparent; border: none; border-radius: 0; overflow: visible;
}
.news-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.news-card-image {
  height: 210px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(30,10,10,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover .news-card-image {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(30,10,10,0.2);
}
.news-card-cat {
  background: #fff; color: var(--gold);
  border: none; backdrop-filter: none; border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 6px 12px;
}
.news-card-body { padding: 16px 2px 0; }
.news-card-date {
  font-family: var(--font-heading); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.news-card-title { font-size: 1.14rem; line-height: 1.3; }
.news-card-excerpt { font-size: 0.86rem; }
.news-card-link {
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* новостная секция — без смены фона, ритм держит типографика */
#news { background: var(--bg) !important; }

/* ---------- HERO-СЛАЙДЕР: собранная подача ---------- */
.hero-slide-badge {
  background: transparent !important;
  color: #fff; border-left: 3px solid var(--gold-light);
  border-radius: 0; padding: 2px 0 2px 14px;
  font-size: 0.66rem; letter-spacing: 0.24em;
}
.hero-slide-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}
.hero-slide-meta {
  font-family: var(--font-heading);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-slide-meta svg { fill: rgba(255,255,255,0.55); }

/* ---------- ПОДВАЛ: мелкая полировка ---------- */
.footer-col-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.footer-links a { font-size: 0.84rem; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { padding-left: 5px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .afisha-tile-grid { gap: 32px 18px; }
  .atd-day { font-size: 1.9rem; }
  .mood-chip { padding: 10px 18px; font-size: 0.78rem; }
  .news-card-image { height: 190px; }
}
@media (max-width: 600px) {
  .afisha-tile-pushkin img { height: 34px; }
  .btn { padding: 13px 24px; }
}

/* ============================================================
   МОБИЛЬНАЯ ПОЛИРОВКА (v6)
   ============================================================ */
@media (max-width: 740px) {
  /* топбар: убираем телефон, почту и «версию для слабовидящих» — остаются соцсети и языки */
  .topbar-left .topbar-link { display: none !important; }
  .topbar-access { display: none !important; }
  .topbar-sep { display: none !important; }
  .topbar-inner { justify-content: space-between; }
}
@media (max-width: 760px) {
  /* центрированные заголовки театров в навбаре не влезают — возвращаем в поток */
  .navbar .nav-logo-text { position: static !important; transform: none !important;
    text-align: left !important; margin: 0 !important; }
  .nav-logo-name { font-size: 0.64rem !important; line-height: 1.3 !important;
    letter-spacing: 0.04em !important; white-space: normal !important;
    max-width: calc(100vw - 170px); }
  .nav-logo-sub { display: none !important; }
  .navbar { justify-content: space-between !important; }
  .nv-season, .nv-phone { display: none !important; }
}

@media (max-width: 760px) {
  /* центрированное название театра: ужимаем и разрешаем перенос */
  .nav-theater-title { font-size: 0.6rem !important; line-height: 1.3 !important;
    letter-spacing: 0.05em !important; white-space: normal !important;
    max-width: calc(100vw - 150px); display: block; text-align: center; margin: 0 auto; }
  .nav-theater-gafuri { font-size: 0.56rem !important; }
}


/* ============================================================
   МОБИЛЬНОЕ МЕНЮ — фирменная тёмная сцена (v7)
   ============================================================ */
.mobile-menu { background: linear-gradient(180deg, #260808 0%, #3B0D0D 100%) !important;
  backdrop-filter: none !important; gap: 6px; }
.mobile-menu::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px;
  height: 14px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'><g fill='%23FFFFFF' fill-opacity='0.45'><rect x='10.5' y='1.5' width='3' height='3'/><rect x='7.5' y='4.5' width='3' height='3'/><rect x='10.5' y='4.5' width='3' height='3'/><rect x='13.5' y='4.5' width='3' height='3'/><rect x='4.5' y='7.5' width='3' height='3'/><rect x='7.5' y='7.5' width='3' height='3'/><rect x='10.5' y='7.5' width='3' height='3'/><rect x='13.5' y='7.5' width='3' height='3'/><rect x='16.5' y='7.5' width='3' height='3'/><rect x='7.5' y='10.5' width='3' height='3'/><rect x='10.5' y='10.5' width='3' height='3'/><rect x='13.5' y='10.5' width='3' height='3'/><rect x='10.5' y='13.5' width='3' height='3'/><rect x='22.5' y='7.5' width='3' height='3'/></g></svg>") repeat-x center / auto 14px; opacity: 0.5;
  pointer-events: none; }
.mobile-menu > a { color: rgba(255,255,255,0.92) !important;
  font-family: 'Playfair Display', Georgia, 'FreeSerif', serif !important;
  font-size: 1.45rem !important; font-weight: 500 !important;
  letter-spacing: 0.01em !important; text-transform: none !important; }
.mobile-menu > a:hover, .mobile-menu > a.active { color: #EBCACA !important; }
.mobile-menu .mobile-buy-btn { font-family: var(--font-heading) !important;
  font-size: 0.78rem !important; font-weight: 700 !important; letter-spacing: 0.16em !important;
  text-transform: uppercase !important; color: var(--gold) !important; background: #fff !important;
  padding: 15px 34px !important; border-radius: 0 !important; margin-top: 18px;
  border: none !important; }
.mobile-menu .mobile-buy-btn:hover { background: #F3E3E3 !important; }
.mobile-menu-socials { margin-top: 22px; display: flex; gap: 10px; }
.mobile-menu-socials a { width: 42px; height: 42px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  color: rgba(255,255,255,0.85) !important; padding: 0 !important; }
.mobile-menu-socials a svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.mobile-menu-socials a:hover { background: rgba(255,255,255,0.12); color: #fff !important; }

/* мобильная шапка: логотип и бургер строго по осям */
@media (max-width: 760px) {
  .navbar { align-items: center !important; }
  .nav-logo { display: flex !important; align-items: center !important; margin: 0 !important; }
  .nav-logo-img { height: 44px !important; width: auto !important; display: block; }
  .burger { align-self: center !important; }
}
