/*
Theme Name: Лучшее Время — Дни рождения
Theme URI: https://luchvrem.ru
Author: Alwenor
Description: Тема сайта игрового центра «Лучшее Время» (luchvrem.ru). Дни рождения: программы, квесты, доп. услуги, бронирование, календарь, команда, новости, фотоальбомы, личный кабинет.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alwenor
Tags: e-commerce, one-page, custom-menu, translation-ready, theme-options
*/

/* ==========================================================================
   0. Variables & Reset
   ========================================================================== */
:root{
  --color-bg:#efdecd;
  --color-bg-alt:#e8d5c0;
  --color-surface:#f7efe4;
  --color-text:#1a1410;
  --color-text-dim:#5c5044;
  --color-accent:#c2660b;
  --color-accent-dark:#9c5209;
  --color-gold:#f6ce48;
  --color-counter:#971c1c;
  --color-border:#d8c4a8;
  --font-heading: 'Gabriela', Georgia, 'Times New Roman', serif;
  --font-body: 'Alice', Georgia, serif;
  --container: 1180px;
  --radius: 10px;
  --gap: 24px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; max-width:100%; }
body{
  margin:0;
  background:var(--color-bg);
  color:var(--color-text);
  font-family:var(--font-body);
  line-height:1.65;
  font-size:18px;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--color-accent); text-decoration:none; }
a:hover{ color:var(--color-accent-dark); }
ul{ margin:0; padding:0; list-style:none; }
button, input, textarea{ font-family:inherit; font-size:17px; }
h1,h2,h3,h4{ font-family:var(--font-heading); font-weight:700; line-height:1.25; margin:0 0 .5em; color:#000; }
p{ margin:0 0 1.1em; font-size:1.05rem; }
.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }
.section{ padding:64px 0; }
.section--alt{ background:var(--color-bg-alt); }
.section-title{ font-size:clamp(1.9rem,4.4vw,2.8rem); text-align:center; margin-bottom:.6em; }
.section-subtitle{ text-align:center; color:var(--color-text-dim); margin-bottom:2em; font-size:1.1rem; }
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--color-accent); color:#fff; padding:10px 16px; z-index:1000;
}
.skip-link:focus{ left:10px; top:10px; }
.btn{
  display:inline-block; padding:16px 36px; border-radius:999px; background:var(--color-accent); color:#fff;
  font-weight:700; font-size:1.05rem; letter-spacing:.03em; border:none; cursor:pointer; transition:background .2s ease, transform .15s ease;
  text-align:center;
}
.btn:hover{ background:var(--color-accent-dark); color:#fff; transform:translateY(-1px); }

/* ---------- Баннер "День рождения" между секциями главной страницы ---------- */
.birthday-promo-band{ background:var(--color-accent); padding:36px 0; }
.birthday-promo-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:20px 32px; text-align:center;
}
.birthday-promo-text{
  margin:0; font-family:var(--font-heading); font-size:1.3rem; line-height:1.4; color:var(--color-surface); max-width:640px;
}
.birthday-promo-btn{ background:var(--color-surface); color:var(--color-accent); flex-shrink:0; }
.birthday-promo-btn:hover{ background:var(--color-bg); color:var(--color-accent); }
@media (max-width:600px){
  .birthday-promo-band{ padding:28px 0; }
  .birthday-promo-text{ font-size:1.1rem; }
}

.lazy-img{ background:var(--color-surface); }

/* ==========================================================================
   1A. Back-to-top button
   ========================================================================== */
.back-to-top{
  position:fixed; bottom:16px; left:16px; z-index:300; border-radius:50%;
  background:var(--color-accent); color:#fff; display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 2px 10px rgba(0,0,0,.25); opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
  width:38px; height:38px; padding:0;
}
.back-to-top-text{ display:none; }
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--color-accent-dark); color:#fff; }

@media (min-width:640px){
  .back-to-top{
    bottom:24px; left:24px; width:auto; height:auto; border-radius:999px; padding:14px 24px 14px 18px;
  }
  .back-to-top-text{ display:inline; font-weight:700; font-size:1rem; white-space:nowrap; }
}

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:200; background:rgba(239,222,205,.94); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--color-border);
}
.header-inner{
  display:flex; align-items:stretch; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding:10px 20px; max-width:var(--container); margin:0 auto;
}
.site-logo{ display:flex; align-items:center; flex-shrink:0; }
.site-logo img{ height:100%; max-height:60px; min-height:36px; width:auto; display:block; }
.site-logo-text{
  font-family:var(--font-heading); font-weight:700; font-size:1.5rem; color:#000; letter-spacing:.02em; white-space:nowrap;
}
.main-nav{ display:none; }
.main-nav ul{ display:flex; gap:10px 18px; flex-wrap:wrap; align-items:center; }
.main-nav a{ color:#000; font-size:1.05rem; letter-spacing:.02em; font-weight:700; font-family:var(--font-heading); white-space:nowrap; }
.nav-toggle{
  display:inline-flex; align-self:center; background:none; border:1px solid var(--color-border); border-radius:6px; padding:8px 10px; color:#000; cursor:pointer;
}
.utility-bar{ display:flex; gap:16px; justify-content:flex-end; padding:6px 20px; font-size:.9rem; color:var(--color-text-dim); max-width:var(--container); margin:0 auto; }
.utility-bar a{ color:var(--color-text-dim); }

/* Кнопки "Войти"/"Выйти"/"Админ-панель" в конце той же строки, что и меню (только десктоп) */
.header-auth-inline{ display:none; align-items:center; gap:10px; margin-left:auto; flex-shrink:0; }
.auth-trigger-plain{ background:none; border-color:transparent; padding-left:4px; padding-right:4px; color:#000; }
.auth-trigger-plain:hover{ background:none; border-color:transparent; }

/* Пункт "Войти"/имя пользователя внутри мобильного меню-бургера */
.nav-mobile-auth{ display:block; margin-top:10px; padding-top:14px; border-top:1px solid var(--color-border); }
.nav-mobile-auth a{ color:var(--color-accent) !important; }
.nav-mobile-auth + .nav-mobile-auth{ margin-top:6px; padding-top:6px; border-top:none; }
.nav-mobile-auth-list{ list-style:none; margin:0; padding:0; align-self:stretch; width:100%; box-sizing:border-box; }

/* ---------- Мини-меню пользователя (имя + бейдж + выпадающий список) ---------- */
.alwenor-user-menu{ position:relative; display:inline-block; }
.alwenor-user-btn{
  position:relative; display:inline-flex; align-items:center; max-width:100%; cursor:pointer;
}
.alwenor-user-name{ min-width:0; overflow-wrap:anywhere; }

/* Красный кружок со счётчиком — в правом верхнем углу имени. */
.alwenor-user-badge{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center;
  background:var(--color-counter); color:#fff; font-size:.68rem; font-weight:700; line-height:1;
  border-radius:999px; pointer-events:none;
}

.alwenor-user-dropdown{
  position:absolute; top:calc(100% + 8px); right:0; z-index:60; min-width:210px;
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,.14); padding:6px; display:flex; flex-direction:column;
}
.alwenor-user-dropdown[hidden]{ display:none; }
.alwenor-user-dropdown a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border-radius:8px; color:var(--color-text); font-size:.95rem; text-decoration:none;
}
.alwenor-user-dropdown a:hover{ background:var(--color-bg); color:var(--color-accent); }
.alwenor-user-logout{ border-top:1px solid var(--color-border); margin-top:4px; padding-top:12px !important; border-radius:0 0 8px 8px !important; }
.alwenor-dropdown-badge{
  flex-shrink:0; min-width:20px; height:20px; padding:0 6px; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center;
  background:var(--color-counter); color:#fff; font-size:.72rem; font-weight:700; border-radius:999px;
}

/* Мобильный вариант: меню внутри бургера — раскрывается на всю ширину,
   а не всплывающим слоем, чтобы не вылезать за края узкого экрана. */
.alwenor-user-menu-item{ display:block; }
.alwenor-user-menu--mobile{ display:block; width:100%; }
.alwenor-user-menu--mobile .alwenor-user-btn{ width:100%; justify-content:center; box-sizing:border-box; padding-right:34px; }
/* Кнопка на всю ширину — бейдж держим ВНУТРИ неё, иначе он выступает
   за край выехавшего меню на узких экранах. */
.alwenor-user-menu--mobile .alwenor-user-badge{ top:50%; right:10px; transform:translateY(-50%); }
.alwenor-user-menu--mobile .alwenor-user-dropdown{
  position:static; min-width:0; width:100%; box-sizing:border-box; margin-top:8px; box-shadow:none;
}

@media (min-width:1300px){
  .main-nav{ display:flex; align-items:center; flex:1 1 auto; min-width:0; }
  /* Список пунктов — флекс-элемент внутри .main-nav и по умолчанию мог
     сжиматься уже своего содержимого, из-за чего меню переносилось на две
     строки даже когда места хватало. Разрешаем ему занимать доступную ширину. */
  .main-nav > ul{ flex:1 1 auto; min-width:0; }
  .nav-toggle{ display:none; }
  .header-auth-inline{ display:flex; }
  .nav-mobile-auth{ display:none !important; }
  /* Сам список тоже убираем, а не только его пункты: он растянут на 100%
     и на десктопе съедал половину ширины меню, из-за чего пункты
     переносились на вторую строку. */
  .nav-mobile-auth-list{ display:none !important; }
}

/* Mobile nav drawer */
.main-nav[data-open="true"]{
  display:block; position:fixed; inset:0 0 0 auto; width:min(320px,86vw); height:100vh; background:var(--color-bg);
  padding:90px 24px 24px; box-shadow:-10px 0 30px rgba(0,0,0,.2);
}
@media (min-width:1300px){
  .main-nav[data-open="true"]{ position:static; width:auto; height:auto; padding:0; box-shadow:none; }
}
.main-nav[data-open="true"] ul{ flex-direction:column; gap:18px; }
.nav-close{
  display:none; position:absolute; top:16px; right:16px; background:none; border:none; font-size:2rem; line-height:1;
  color:#000; cursor:pointer; padding:4px 8px;
}
.main-nav[data-open="true"] .nav-close{ display:block; }
@media (min-width:1300px){ .nav-close{ display:none !important; } }
.nav-backdrop{ display:none; }
.nav-backdrop[data-open="true"]{ display:block; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:190; }

/* ==========================================================================
   2A. Generic carousel component (media + text variants)
   ========================================================================== */
.carousel{ position:relative; }

/* --- media variant: photo slides with crossfade, fixed aspect ratio --- */
.carousel--media{
  border-radius:var(--radius); overflow:hidden; aspect-ratio:var(--carousel-ratio,4/3);
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.carousel--media .carousel-track{ position:relative; width:100%; height:100%; }
.carousel--media .carousel-slide{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; pointer-events:none; }
.carousel--media .carousel-slide.is-active{ opacity:1; pointer-events:auto; }
.carousel--media .carousel-slide img{ width:100%; height:100%; object-fit:cover; }
.carousel-caption{
  position:absolute; left:0; right:0; bottom:0; padding:26px 30px 30px;
  background:rgba(10,8,6,.6); text-align:center;
}
.carousel-caption h3{ color:#fff; font-size:clamp(1.5rem,3vw,2rem); margin-bottom:.3em; }
.carousel-caption p{ color:#f7f0e6; font-size:1.15rem; margin:0; }
@media (max-width:767px){
  .carousel-caption p{ display:none; }
  .carousel-caption h3{ margin-bottom:0; }
  .carousel-caption{ padding:18px 20px; }

  .activities-carousel,
  .activities-training-carousel,
  .chip-carousel,
  .bigworld-carousel{
    --carousel-ratio: 3/16;
  }
  .activities-carousel .carousel-dots,
  .activities-training-carousel .carousel-dots,
  .chip-carousel .carousel-dots,
  .bigworld-carousel .carousel-dots{
    bottom:auto; top:14px;
  }
}

/* --- text variant: one slide visible at a time, natural height --- */
.carousel--text .carousel-slide{ display:none; }
.carousel--text .carousel-slide.is-active{ display:block; }
.carousel--text{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  padding:40px 64px; min-height:180px; display:flex; align-items:center;
}
.carousel--text .carousel-track{ width:100%; }
.carousel-slide-inner{ display:flex; flex-direction:column; gap:16px; align-items:center; text-align:center; }
.carousel-slide-inner.has-media{ text-align:left; align-items:center; }
@media (min-width:720px){
  .carousel-slide-inner.has-media{ flex-direction:row; gap:32px; }
  .carousel-slide-inner.has-media .carousel-slide-media{ flex:0 0 38%; }
  .carousel-slide-inner.has-media .carousel-slide-text{ flex:1; }
}
.carousel-slide-media img{ border-radius:var(--radius); aspect-ratio:4/3; object-fit:cover; }
.carousel-slide-text h3, .carousel-slide-text h4{ color:var(--color-accent); font-size:1.6rem; margin-bottom:.3em; }
.carousel-slide-text p{ font-size:1.2rem; margin:0; }

/* --- controls (shared) --- */
.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--color-gold);
  font-size:2.6rem; cursor:pointer; text-shadow:0 1px 3px rgba(0,0,0,.35); line-height:1; padding:6px 10px; z-index:5;
}
.carousel--text .carousel-arrow{ color:var(--color-accent); text-shadow:none; }
.carousel-arrow--prev{ left:2px; }
.carousel-arrow--next{ right:2px; }
.carousel--text .carousel-arrow--prev{ left:10px; }
.carousel--text .carousel-arrow--next{ right:10px; }
.carousel-dots{ position:absolute; bottom:14px; left:0; right:0; display:flex; justify-content:center; gap:10px; z-index:5; }
.carousel--text .carousel-dots{ position:static; margin-top:20px; }
.carousel-dot{
  width:11px; height:11px; border-radius:50%; background:rgba(246,206,72,.4); border:none; padding:0; cursor:pointer;
}
.carousel--text .carousel-dot{ background:rgba(194,102,11,.3); }
.carousel-dot.is-active{ background:var(--color-gold); }
.carousel--text .carousel-dot.is-active{ background:var(--color-accent); }

@media (max-width:640px){
  .carousel--text{ padding:28px 44px; }
}

/* --- zoomable content images (lightbox on click, not used inside carousels) --- */
.js-zoomable{ cursor:zoom-in; }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero{ padding:0 0 50px; }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:32px; align-items:stretch; min-width:0; }
@media (min-width:900px){ .hero-grid{ grid-template-columns:1fr 1fr; gap:40px; align-items:stretch; padding-top:50px; } }

.hero-carousel{ min-height:280px; background:var(--color-surface); overflow:hidden; min-width:0; }
.hero-carousel.carousel--media{ width:100%; height:100%; aspect-ratio:4/3; border-radius:0; }
@media (max-width:899px){
  .hero-carousel.carousel--media{ width:100vw; margin-left:calc(50% - 50vw); }
}
@media (min-width:900px){
  .hero-carousel.carousel--media{ aspect-ratio:auto; border-radius:var(--radius); }
}

.hero-content{ text-align:center; display:flex; flex-direction:column; justify-content:center; padding:0 20px; min-width:0; }
@media (min-width:900px){ .hero-content{ text-align:left; padding:0; } }
.hero-eyebrow{ font-size:clamp(2.1rem,9vw,3.9rem); letter-spacing:.08em; color:#000; font-weight:700; font-family:var(--font-heading); overflow-wrap:break-word; }
.hero-title{ font-size:clamp(2.4rem,6vw,3.6rem); margin:.15em 0; }
.hero-cta{ margin:24px 0; }
.hero-social{ display:flex; gap:14px; margin-bottom:10px; flex-wrap:wrap; justify-content:center; }
p.hero-eyebrow{margin-bottom: 0em}
@media (min-width:900px){ .hero-social{ justify-content:flex-start; } }
.hero-social a{
  font-size:1rem; border:1px solid var(--color-border); border-radius:999px; padding:10px 20px; color:#000; font-weight:600;
  display:inline-flex; align-items:center; gap:8px;
}
@media (max-width:899px){
  .hero-social{ flex-direction:row; align-items:center; justify-content:center; gap:16px; }
  .hero-social a{ width:64px; height:64px; padding:0; justify-content:center; }
  .hero-social a svg{ width:28px; height:28px; }
  .hero-social .social-label{ display:none; }
}
.hero-meta{ display:flex; flex-wrap:wrap; gap:40px; margin-top:12px; justify-content:center; }
@media (min-width:900px){ .hero-meta{ justify-content:flex-start; } }
.hero-meta div{ font-size:2rem; color:var(--color-text-dim); font-weight:600; }
.hero-counters{ display:flex; gap:56px; margin-top:10px; justify-content:center; }
@media (min-width:900px){ .hero-counters{ justify-content:flex-start; } }
.hero-counters .counter-label{ font-weight:700; letter-spacing:.03em; }
.hero-counters .num{ font-size:2.6rem; color:var(--color-counter); font-family:var(--font-heading); font-weight:700; }

/* ==========================================================================
   3. Feature grid ("Что такое Альвенор")
   ========================================================================== */
.feature-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); }
@media (min-width:640px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){
  .feature-grid{ grid-template-columns:repeat(3,1fr); }
  .feature-grid .feature-card:last-child{ grid-column:2; }
}
@media (min-width:640px) and (max-width:999px){
  .feature-grid .feature-card:last-child{ grid-column:1 / -1; max-width:calc(50% - 12px); margin:0 auto; }
}
.feature-card{ background:var(--color-surface); border-radius:var(--radius); padding:28px 20px; text-align:center; border:1px solid var(--color-border); }
.feature-card img{ width:56px; height:56px; margin:0 auto 16px; object-fit:contain; }
.feature-card h3{ font-size:1.15rem; letter-spacing:.02em; }
.feature-link{ text-align:center; margin:36px 0 16px; font-weight:600; }
.center-cta{ text-align:center; margin-top:8px; }

/* ==========================================================================
   4. Activities carousel ("Что происходит на нашей игре")
   ========================================================================== */
.activities-carousel{ max-width:900px; margin:0 auto; --carousel-ratio:16/9; }

/* ==========================================================================
   5. Price / place section
   ========================================================================== */
.price-badge{
  display:flex; align-items:center; gap:16px; justify-content:center; margin:0 auto 8px; max-width:820px;
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); padding:28px 32px;
}
.price-badge img{ width:44px; height:44px; flex-shrink:0; }
@media (max-width:640px){
  .price-badge{ flex-direction:column; text-align:center; gap:12px; }
}
.two-col{ display:grid; grid-template-columns:1fr; gap:32px; align-items:center; }
@media (min-width:900px){ .two-col{ grid-template-columns:1fr 1fr; } }
.two-col img{ border-radius:var(--radius); }
.two-col p{ font-size:1.2rem; }
.location-gallery{ max-width:900px; margin:32px auto 0; --carousel-ratio:16/9; }
@media (max-width:767px){ .location-gallery{ --carousel-ratio:4/9; } }

.media-pair-row{ display:grid; grid-template-columns:1fr; gap:32px; margin:32px 0; }
@media (min-width:720px){ .media-pair-row{ grid-template-columns:1fr 1fr; } }
.media-pair-row img{ border-radius:var(--radius); aspect-ratio:4/3; object-fit:cover; margin-bottom:16px; }
.media-pair-row p{ font-size:1.2rem; }

.subheading{
  color:var(--color-accent); font-size:2.1rem; margin:0 0 .4em; padding-top:.5em; border-top:2px solid var(--color-border);
}
.subheading::before{ content:"– "; }
.detail-carousel{ max-width:760px; margin:36px auto 0; }
.detail-carousel .carousel-slide-text p{ font-size:1.15rem; }

/* ==========================================================================
   6. Program blocks
   ========================================================================== */
.program-intro{ font-weight:700; font-size:1.2rem; text-align:center; max-width:900px; margin:0 auto 40px; }
.program-block{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; margin-bottom:48px; }
@media (min-width:860px){
  .program-block{ grid-template-columns:2fr 3fr; }
  .program-block.reverse{ grid-template-columns:3fr 2fr; }
  .program-block.reverse .program-media{ order:2; }
}
.program-block p{ font-size:1.2rem; }
.program-callout{
  max-width:820px; margin:0 auto 48px; text-align:center; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius); padding:36px 40px;
}
.program-callout p{ font-size:1.4rem; font-weight:700; margin:0; color:#000; }

.activities-training-carousel{ max-width:900px; margin:20px auto 0; --carousel-ratio:16/9; }

.chip-carousel{ max-width:700px; margin:20px auto 0; --carousel-ratio:16/9; }
.chip-carousel .carousel-slide-text h3{ font-size:1.8rem; }

.skill-grid{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:20px; }
@media (min-width:640px){ .skill-grid{ grid-template-columns:repeat(2,1fr); } }
.skill-card img{ border-radius:var(--radius); margin-bottom:14px; aspect-ratio:4/3; object-fit:cover; }

.bigworld-carousel{ max-width:900px; margin:20px auto 0; --carousel-ratio:16/9; }

/* ==========================================================================
   7. Team
   ========================================================================== */
.team-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); }
@media (min-width:640px){ .team-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1000px){ .team-grid{ grid-template-columns:repeat(5,1fr); } }
.team-collapse-toggle{
  display:none; width:100%; text-align:center; background:none; border:1px solid var(--color-border); border-radius:var(--radius);
  padding:16px; font-family:var(--font-heading); font-weight:700; font-size:1.3rem; color:var(--color-accent); cursor:pointer; margin-bottom:20px;
}
@media (max-width:899px){
  .team-collapse-toggle{ display:block; }
  .team-collapse .team-grid{ display:none; }
  .team-collapse.is-open .team-grid{ display:grid; }
}
.team-card img{ border-radius:var(--radius); aspect-ratio:3/4; object-fit:cover; margin-bottom:12px; }
.team-card h3{ font-size:1.15rem; margin-bottom:.1em; }
.team-meta{ color:var(--color-text-dim); font-size:1rem; margin-bottom:8px; }
.team-card ul{ font-size:.95rem; color:var(--color-text-dim); }
.team-card li{ padding:2px 0; border-top:1px dashed var(--color-border); }
.team-card li:first-child{ border-top:none; }

/* ==========================================================================
   8. Game world (lore)
   ========================================================================== */
.lore-block{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; margin-bottom:40px; }
@media (min-width:860px){
  .lore-block{ grid-template-columns:2fr 3fr; }
  .lore-block.reverse{ grid-template-columns:3fr 2fr; }
  .lore-block.reverse .lore-media{ order:2; }
}
.lore-media img{ border-radius:var(--radius); aspect-ratio:4/3; object-fit:cover; }
.lore-block p{ font-size:1.2rem; }

/* ==========================================================================
   9. Accordion (FAQ + Activities list)
   ========================================================================== */
.faq-list, .acc-list{ max-width:820px; margin:0 auto; }
.faq-item, .acc-item{ border-bottom:1px solid var(--color-border); padding:6px 0; }
.faq-item summary, .acc-item summary{ cursor:pointer; padding:18px 4px; font-weight:700; font-size:1.5rem; font-family:var(--font-heading); list-style:none; position:relative; padding-right:30px; color:var(--color-accent); }
.faq-item summary::-webkit-details-marker, .acc-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after, .acc-item summary::after{ content:"+"; position:absolute; right:4px; top:18px; color:var(--color-accent); font-size:1.6rem; }
.faq-item[open] summary::after, .acc-item[open] summary::after{ content:"–"; }
.faq-item p, .acc-item p{ color:var(--color-text-dim); padding:0 4px 16px; font-size:1.1rem; }
.faq-cta{ text-align:center; margin:30px 0; }

/* ==========================================================================
   10. Forms
   ========================================================================== */
.form-wrap{ max-width:640px; margin:0 auto; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); padding:32px 24px; }
.form-row{ margin-bottom:16px; display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:1rem; color:var(--color-text-dim); }
.form-row input, .form-row textarea{
  background:var(--color-bg); border:1px solid var(--color-border); border-radius:6px; padding:12px 14px; color:var(--color-text); width:100%; max-width:100%; box-sizing:border-box;
}
.form-row input:focus, .form-row textarea:focus{ outline:2px solid var(--color-accent); }
.form-submit{ width:100%; }
.form-note{ font-size:.95rem; color:var(--color-text-dim); margin-bottom:20px; text-align:center; }
.form-msg{ margin-top:14px; font-size:1rem; text-align:center; min-height:1.2em; }
.form-msg[data-state="ok"]{ color:#7fd08a; }
.form-msg[data-state="err"]{ color:#e08585; }
.hp-field{ position:absolute; left:-9999px; }
.consent-row{ margin:18px 0; }
.consent-check{
  display:flex; align-items:flex-start; gap:12px; font-size:.95rem; color:var(--color-text-dim); cursor:pointer; line-height:1.5;
}
.consent-check .consent-text{ flex:1; }
.consent-check a{ color:var(--color-accent); text-decoration:underline; }

/* ---------- Кастомный чекбокс "лист" (согласие, доп.услуги, фотограф-радио) ---------- */
.consent-check input[type="checkbox"],
.service-check input[type="checkbox"],
.service-check input[type="radio"]{
  position:absolute; opacity:0; width:1px; height:1px; overflow:hidden;
}
.check-visual{
  position:relative; flex-shrink:0; width:26px; height:26px; margin-top:2px; border:2px solid var(--color-border);
  border-radius:7px; background:var(--color-bg); display:inline-flex; align-items:center; justify-content:center;
  transition:border-color .2s ease, background .2s ease; cursor:pointer;
}
.service-check .check-visual{ margin-top:0; }
.check-visual::before{
  content:""; width:15px; height:15px; background:var(--color-accent);
  border-radius:0 100% 0 100%; transform:rotate(-45deg) scale(0); transition:transform .28s cubic-bezier(.34,1.56,.64,1);
}
input:checked + .check-visual{ border-color:var(--color-accent); background:var(--color-surface); }
input:checked + .check-visual::before{ transform:rotate(-45deg) scale(1); }
input:focus-visible + .check-visual{ outline:2px solid var(--color-accent); outline-offset:2px; }

/* Строка доп.услуги/радио должна всегда занимать всю ширину родителя и не
   переносить текст на середине слова — раньше при показе нативного радио
   ЕЩЁ рядом с кастомным листом строка "теснилась" и текст переламывался. */
.service-check{ width:100%; box-sizing:border-box; flex-wrap:nowrap; }
.service-check-label{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.service-check .price{ flex-shrink:0; }
@media (max-width:480px){
  .service-check{ font-size:1.05rem; gap:10px; }
  .check-visual{ width:22px; height:22px; }
}

/* ==========================================================================
   11. Reviews carousel
   ========================================================================== */
.reviews-carousel{ max-width:640px; margin:0 auto; --carousel-ratio:4/1; }
@media (max-width:767px){ .reviews-carousel{ --carousel-ratio:1/1; } }

.lightbox{ position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; z-index:500; padding:20px; }
.lightbox[data-open="true"]{ display:flex; }
.lightbox img{ max-width:100%; max-height:90vh; border-radius:8px; }
.lightbox-close{ position:absolute; top:20px; right:24px; background:none; border:none; color:#fff; font-size:2rem; cursor:pointer; line-height:1; z-index:2; }

/* Стрелки перелистывания внутри лайтбокса */
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:52px; height:52px; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45); border:none; border-radius:50%; color:#fff; font-size:2.2rem; line-height:1;
  cursor:pointer; padding:0 0 6px;
}
.lightbox-nav:hover{ background:rgba(0,0,0,.7); }
.lightbox-nav[hidden]{ display:none; }
.lightbox-prev{ left:16px; }
.lightbox-next{ right:16px; }
.lightbox-counter{
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%); z-index:2;
  color:#fff; background:rgba(0,0,0,.45); border-radius:999px; padding:6px 14px; font-size:.9rem;
}
.lightbox-counter[hidden]{ display:none; }

/* Галерея на странице фотографий мероприятия.
   Сетка квадратных плиток одинакового размера: раньше плитки подстраивались
   под пропорции самих снимков, из-за чего вертикальные фото вытягивались,
   а ряды разъезжались. Теперь ячейка всегда квадрат, а фото вписывается в
   неё по короткой стороне (object-fit:cover) — без искажений пропорций. */
.gallery{
  display:grid !important; gap:12px; margin:24px 0;
  grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
}
.gallery .gallery-item{ margin:0 !important; width:auto !important; float:none !important; }
.gallery .gallery-icon{ margin:0; }
.gallery .gallery-item a,
.gallery .gallery-icon a{ display:block; }
.gallery img{
  display:block; width:100%; height:100%; aspect-ratio:1 / 1; object-fit:cover; object-position:center;
  border-radius:10px; border:1px solid var(--color-border) !important;
  cursor:zoom-in; transition:transform .2s ease;
}
.gallery img:hover{ transform:scale(1.03); }
.gallery br{ display:none; }
.gallery .gallery-caption{ display:none; }

@media (max-width:600px){
  .lightbox{ padding:10px; }
  .lightbox-nav{ width:42px; height:42px; font-size:1.7rem; }
  .lightbox-prev{ left:6px; }
  .lightbox-next{ right:6px; }
  .lightbox img{ max-height:78vh; }
  .gallery{ gap:8px; grid-template-columns:repeat(2, 1fr); }
}

/* ==========================================================================
   12. Contacts / footer
   ========================================================================== */
.contacts-grid{ display:grid; grid-template-columns:1fr; gap:28px; }
@media (min-width:860px){ .contacts-grid{ grid-template-columns:1fr 1fr; align-items:stretch; } }
.map-embed{ border:0; width:100%; height:320px; border-radius:var(--radius); }
.contacts-info{ display:flex; flex-direction:column; justify-content:center; gap:6px; }
.site-footer{ background:var(--color-bg-alt); border-top:1px solid var(--color-border); padding:28px 0; text-align:center; color:var(--color-text-dim); font-size:1rem; }
.footer-legal{ margin-top:10px; opacity:.7; }
.footer-utility{ margin-top:14px; display:flex; justify-content:center; gap:18px; flex-wrap:wrap; }

/* ==========================================================================
   13. Авторизация: кнопка в шапке, модальное окно, страница входа/регистрации
   ========================================================================== */
.auth-trigger{
  background:none; border:1px solid var(--color-border); border-radius:999px; padding:10px 22px; font-size:1rem;
  font-weight:600; color:#000; cursor:pointer; font-family:inherit;
}
.auth-trigger:hover{ border-color:var(--color-accent); color:var(--color-accent); }
.auth-user-greeting{ font-weight:600; margin-right:4px; }

.auth-modal-overlay{
  position:fixed; inset:0; background:rgba(20,14,8,.55); display:none; align-items:center; justify-content:center;
  z-index:400; padding:20px;
}
.auth-modal-overlay.is-open{ display:flex; }
.auth-modal{
  background:var(--color-bg); border-radius:var(--radius); max-width:420px; width:100%; padding:32px 28px;
  position:relative; max-height:90vh; overflow-y:auto;
}
.auth-modal-close{
  position:absolute; top:14px; right:14px; background:none; border:none; font-size:1.8rem; cursor:pointer; color:var(--color-text-dim); line-height:1;
}
.auth-modal-title{ text-align:center; margin-bottom:20px; }
.auth-modal-alt{ text-align:center; margin-top:18px; font-size:.95rem; color:var(--color-text-dim); }
.auth-modal-alt a{ color:var(--color-accent); font-weight:600; }

.auth-captcha-row label{ display:block; margin-bottom:6px; }
.auth-captcha-inline{ display:flex; gap:8px; align-items:center; }
.auth-captcha-inline input{ flex:1; }
.auth-captcha-refresh{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:6px; width:40px; height:40px;
  font-size:1.1rem; cursor:pointer; flex-shrink:0;
}
.auth-captcha-question{ font-weight:700; color:var(--color-accent); }

/* Страница входа/регистрации */
.auth-page-tabs{ display:flex; gap:10px; justify-content:center; margin-bottom:24px; }
.auth-page-tab{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:999px; padding:10px 24px;
  font-family:var(--font-heading); font-weight:700; font-size:1.05rem; cursor:pointer; color:var(--color-text-dim);
}
.auth-page-tab.is-active{ background:var(--color-accent); border-color:var(--color-accent); color:#fff; }
.auth-scroll{
  display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; border-radius:var(--radius);
  scrollbar-width:none;
}
.auth-scroll::-webkit-scrollbar{ display:none; }
.auth-panel{ flex:0 0 100%; scroll-snap-align:start; min-width:100%; }

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

/* ================= ЛИЧНЫЙ КАБИНЕТ ================= */
.account-section{ min-height:60vh; }
.account-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; margin-bottom:28px;
}
.account-title{ margin:0; text-align:left; overflow-wrap:anywhere; min-width:0; }
.account-logout{ flex-shrink:0; }
.account-subtitle{
  font-family:var(--font-heading); font-size:1.4rem; margin:36px 0 14px; padding-bottom:8px;
  border-bottom:1px solid var(--color-border);
}
.account-hint{ color:var(--color-text-dim); font-size:.95rem; }
.account-hint--warn{
  background:#fff4e0; border:1px solid #f0c98a; color:#8a5a00; border-radius:var(--radius); padding:12px 16px;
}

/* Уведомления */
.account-notifications{ display:flex; flex-direction:column; gap:12px; }
.account-notification{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); padding:14px 18px;
}
.account-notification.is-unread{ border-left:4px solid var(--color-accent); }
.account-notification-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; margin-bottom:6px;
}
.account-notification-head strong{ min-width:0; overflow-wrap:anywhere; }
.account-notification-date{ color:var(--color-text-dim); font-size:.85rem; flex-shrink:0; }
.account-notification p{ margin:4px 0 0; }

/* Пройденные квесты — раскрывающийся список */
.account-events{ display:flex; flex-direction:column; gap:12px; }
.account-event{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); overflow:hidden;
}
.account-event > summary{
  display:flex; align-items:baseline; gap:8px 16px; flex-wrap:wrap; cursor:pointer; padding:16px 20px;
  font-family:var(--font-heading); font-size:1.1rem; list-style:none;
}
.account-event > summary::-webkit-details-marker{ display:none; }
.account-event > summary::after{
  content:"▾"; margin-left:auto; color:var(--color-accent); transition:transform .2s ease; flex-shrink:0;
}
.account-event[open] > summary::after{ transform:rotate(180deg); }
.account-event-date{ color:var(--color-counter); font-weight:700; flex-shrink:0; }
.account-event-name{ min-width:0; overflow-wrap:anywhere; }
.account-event-body{ padding:0 20px 18px; border-top:1px solid var(--color-border); padding-top:14px; }
.account-event-body p{ margin:0 0 8px; overflow-wrap:anywhere; }
.account-photos-btn{ display:inline-block; margin-top:6px; max-width:100%; box-sizing:border-box; }

@media (max-width:600px){
  .account-head{ flex-direction:column; align-items:stretch; }
  .account-logout{ width:100%; }
  .account-title{ text-align:center; }
  .account-event > summary{ padding:14px 16px; font-size:1rem; }
  .account-event-body{ padding-left:16px; padding-right:16px; }
  .account-subtitle{ font-size:1.2rem; }
}

/* ---------- Личный кабинет: личные данные ---------- */
.account-profile-form{ margin-bottom:8px; }
.account-profile-grid{
  display:flex; gap:24px; flex-wrap:wrap; align-items:flex-start;
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  padding:20px; box-sizing:border-box;
}
.account-avatar-col{
  display:flex; flex-direction:column; align-items:center; gap:12px; flex:0 0 auto; min-width:0;
}
.account-avatar{
  width:140px; height:140px; border-radius:50%; background:var(--color-bg) center/cover no-repeat;
  border:2px solid var(--color-border); display:flex; align-items:center; justify-content:center;
  color:var(--color-text-dim); font-size:.85rem; text-align:center; flex-shrink:0;
}
.account-avatar-btn{ padding:10px 20px; font-size:.9rem; cursor:pointer; white-space:nowrap; }
.account-fields{ flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:14px; }
.account-fields .form-row{ margin:0; }
.account-fields input{ width:100%; box-sizing:border-box; min-width:0; }
.account-profile-actions{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:16px;
}
.account-profile-actions .form-msg{ margin:0; min-width:0; overflow-wrap:anywhere; }

/* Время и статус в заголовке карточки мероприятия */
.account-event-time{
  display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px;
  background:var(--color-bg); color:var(--color-text); font-size:.85rem; font-weight:400;
}
.account-event-status{
  flex-shrink:0; font-size:.75rem; text-transform:uppercase; letter-spacing:.02em;
  color:var(--color-accent); border:1px solid var(--color-accent); border-radius:999px; padding:2px 8px;
  font-family:var(--font-body); font-weight:600;
}

@media (max-width:700px){
  .account-profile-grid{ flex-direction:column; align-items:stretch; padding:16px; gap:18px; }
  .account-avatar-col{ align-self:center; }
  .account-avatar{ width:120px; height:120px; }
  .account-fields{ flex:1 1 auto; width:100%; }
  .account-profile-actions{ flex-direction:column; align-items:stretch; }
  .account-profile-actions .btn{ width:100%; }
  .account-event-status{ margin-top:4px; }
}

/* ---------- Удаление уведомлений в личном кабинете ---------- */
.account-notifications-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.account-notifications-head .account-subtitle{ flex:1 1 auto; min-width:0; }
.account-clear-all{
  flex-shrink:0; background:none; border:none; padding:0; cursor:pointer;
  color:var(--color-counter); font-family:inherit; font-size:.9rem; text-decoration:underline;
}
.account-clear-all:hover{ opacity:.75; }
.account-clear-all[hidden]{ display:none; }
.account-clear-all:disabled{ opacity:.5; cursor:default; }

/* Крестик держим внутри карточки (padding-right ниже), чтобы он не
   вылезал за её край на узких экранах. */
.account-notification{ position:relative; padding-right:46px; }
.account-notification-del{
  position:absolute; top:10px; right:10px; width:28px; height:28px; padding:0;
  display:flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--color-border); border-radius:50%;
  color:var(--color-text-dim); font-size:1.1rem; line-height:1; cursor:pointer;
}
.account-notification-del:hover{ border-color:var(--color-counter); color:var(--color-counter); }
.account-notification-del:disabled{ opacity:.5; cursor:default; }
.account-notifications[hidden]{ display:none; }

/* ---------- Экран подтверждения почты в личном кабинете ---------- */
.account-verify{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  padding:24px; max-width:640px; box-sizing:border-box;
}
.account-verify p{ margin:0 0 12px; overflow-wrap:anywhere; }
.account-verify-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
@media (max-width:600px){
  .account-verify{ padding:18px; }
  .account-verify-actions{ flex-direction:column; }
  .account-verify-actions .btn{ width:100%; box-sizing:border-box; text-align:center; }
}

/* ---------- Разворачиваемые разделы главной страницы ---------- */
.collapsible-toggle{
  display:block; margin:20px auto 0; max-width:100%; box-sizing:border-box;
  background:none; border:2px solid var(--color-accent); color:var(--color-accent);
}
.collapsible-toggle:hover{ background:var(--color-accent); color:#fff; }
.collapsible-body[hidden]{ display:none; }
.collapsible-body{
  margin-top:24px; overflow:hidden; max-height:0;
  transition:max-height .4s ease;
}
.collapsible-body.is-open{ overflow:visible; }
/* Пользователям, которым анимации мешают, показываем сразу без движения. */
@media (prefers-reduced-motion:reduce){
  .collapsible-body{ transition:none; }
}
@media (max-width:600px){
  .collapsible-toggle{ width:100%; }
}

/* ==========================================================================
   Новости Альвенора
   ========================================================================== */
.news-title-link{ color:inherit; text-decoration:none; border-bottom:2px solid var(--color-accent); }
.news-title-link:hover{ color:var(--color-accent); }

/* Плитки: небольшие квадратные карточки, на десктопе 6 в ряд (5 новостей + «больше») */
/* 6 плиток в один ряд на десктопе (5 новостей + «больше новостей»),
   с постепенным уменьшением числа колонок на узких экранах. */
.news-grid{
  display:grid; gap:16px; margin-top:24px;
  grid-template-columns:repeat(2, 1fr);
}
@media (min-width:620px){ .news-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (min-width:900px){ .news-grid{ grid-template-columns:repeat(4, 1fr); } }
@media (min-width:1200px){ .news-grid{ grid-template-columns:repeat(6, 1fr); } }
.news-tile{
  display:flex; flex-direction:column; overflow:hidden; text-decoration:none; color:var(--color-text);
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  transition:transform .2s ease, box-shadow .2s ease; min-width:0;
}
.news-tile:hover{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.1); color:var(--color-text); }
.news-tile-image{
  display:block; width:100%; aspect-ratio:1 / 1; background:var(--color-bg) center/cover no-repeat; flex-shrink:0;
  position:relative;
}
.news-tile-noimage{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-heading); color:var(--color-text-dim); font-size:1.1rem;
}
.news-tile-body{ display:block; padding:12px 14px 16px; min-width:0; }
.news-tile-date{ display:block; font-size:.78rem; color:var(--color-text-dim); margin-bottom:4px; }
.news-tile-title{
  display:block; font-family:var(--font-heading); font-size:1.02rem; line-height:1.25; margin-bottom:6px;
  overflow-wrap:anywhere;
}
.news-tile-short{
  display:block; font-size:.86rem; line-height:1.4; color:var(--color-text-dim); overflow-wrap:anywhere;
}

/* Шестая плитка — «Больше новостей» */
.news-tile--more{
  align-items:center; justify-content:center; text-align:center;
  background:var(--color-accent); border-color:var(--color-accent); color:#fff; min-height:200px;
}
.news-tile--more:hover{ background:var(--color-accent-dark); color:#fff; }
.news-more-inner{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:20px; }
.news-more-icon{ font-size:2rem; line-height:1; }
.news-more-text{ font-family:var(--font-heading); font-size:1.05rem; }

/* Страница одной новости */
.news-single-date{ color:var(--color-text-dim); font-size:.9rem; margin-bottom:6px; }
.news-single-title{ text-align:left; margin-top:0; }
.news-single-image{
  display:block; width:100%; max-width:820px; height:auto; border-radius:var(--radius);
  margin:0 0 24px; cursor:zoom-in;
}
.news-single-content{ max-width:820px; }
.news-single-content p{ margin:0 0 14px; overflow-wrap:anywhere; }
.news-single-back{ margin-top:32px; }

@media (max-width:600px){
  .news-grid{ gap:10px; }
  .news-tile-body{ padding:10px 10px 12px; }
  .news-tile-title{ font-size:.92rem; }
  .news-tile-short{ font-size:.78rem; }
  .news-tile--more{ min-height:0; }
  .news-single-back .btn{ width:100%; box-sizing:border-box; text-align:center; }
}

/* ---------- Пункт меню «Остальное» с выпадающим списком ---------- */
.nav-more{ position:relative; }
.nav-more-btn{
  background:none; border:none; padding:0; cursor:pointer; font:inherit; color:inherit;
  display:inline-flex; align-items:center; gap:6px;
}
.nav-more-btn::after{ content:"▾"; font-size:.8em; transition:transform .2s ease; }
.nav-more.is-open .nav-more-btn::after{ transform:rotate(180deg); }
.nav-more-list{
  list-style:none; margin:0; padding:6px;
  /* Прижимаем к правому краю кнопки, а не центрируем: список шире кнопки,
     и при центрировании у правого края экрана он бы вылезал за границу. */
  position:absolute; top:calc(100% + 10px); right:0; left:auto; z-index:60; min-width:190px;
  max-width:calc(100vw - 24px);
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.nav-more-list[hidden]{ display:none; }
.nav-more-list li{ margin:0; }
.nav-more-list a{ display:block; padding:9px 12px; border-radius:8px; white-space:nowrap; }
.nav-more-list a:hover{ background:var(--color-bg); color:var(--color-accent); }

/* В мобильном меню список раскрывается внутри шторки, а не всплывает —
   иначе на узком экране он вылезал бы за её края. */
@media (max-width:1299px){
  .nav-more{ width:100%; }
  .nav-more-btn{ width:100%; justify-content:center; }
  .nav-more-list{
    position:static; transform:none; min-width:0; width:100%; box-sizing:border-box;
    margin-top:8px; box-shadow:none;
  }
  .nav-more-list a{ white-space:normal; text-align:center; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs{ background:var(--color-bg-alt); border-bottom:1px solid var(--color-border); padding:10px 0; }
.breadcrumbs ol{
  list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  font-size:.86rem; color:var(--color-text-dim);
}
.breadcrumbs li{ display:flex; align-items:center; gap:6px; min-width:0; }
.breadcrumbs li + li::before{ content:"/"; color:var(--color-border); }
.breadcrumbs a{ color:var(--color-accent); text-decoration:none; }
.breadcrumbs a:hover{ text-decoration:underline; }
.breadcrumbs span{ overflow-wrap:anywhere; }
@media (max-width:600px){ .breadcrumbs{ padding:8px 0; } .breadcrumbs ol{ font-size:.78rem; } }

/* ---------- Кнопки скачивания фото ---------- */
.account-photo-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; }
.account-photos-zip{ background:none; border:2px solid var(--color-accent); color:var(--color-accent); }
.account-photos-zip:hover{ background:var(--color-accent); color:#fff; }
.lightbox-download{
  position:absolute; bottom:20px; right:20px; z-index:3;
  background:rgba(0,0,0,.55); color:#fff; text-decoration:none;
  padding:9px 16px; border-radius:999px; font-size:.85rem; font-weight:700; letter-spacing:.02em;
}
.lightbox-download:hover{ background:var(--color-accent); color:#fff; }
.lightbox-download[hidden]{ display:none; }
@media (max-width:600px){
  .account-photo-actions{ flex-direction:column; }
  .account-photo-actions .btn{ width:100%; box-sizing:border-box; text-align:center; }
  .lightbox-download{ bottom:14px; right:50%; transform:translateX(50%); padding:8px 14px; font-size:.78rem; }
  .lightbox-counter{ bottom:58px; }
}

/* Заголовки групп в блоке «Команда» */
.team-group-title{
  font-family:var(--font-heading); font-size:1.3rem; color:var(--color-accent);
  text-align:center; margin:32px 0 18px; letter-spacing:.03em;
}
.team-group-title:first-of-type{ margin-top:12px; }
@media (max-width:600px){ .team-group-title{ font-size:1.1rem; margin:24px 0 14px; } }

/* Отзывы на основном сайте — как на сайте ДР: скриншот виден целиком,
   свободное место вокруг залито тёмным фоном, а не растянуто с обрезкой. */
#reviews .reviews-carousel.carousel--media{ background:#2b2119; }
#reviews .reviews-carousel.carousel--media .carousel-slide img{
  object-fit:contain; background:#2b2119;
}
