/* ================================================================
   main.css — МИР.РОЛЕЙ · Святослав Прокофьев
   Общие стили для всех страниц основного сайта
   ================================================================ */

/* ── Переменные ─────────────────────────────────────────────────── */
:root {
  --bg:           #13141a;
  --bg-card:      #1a1c22;
  --bg-card-2:    #22242c;
  --gold:         #E6B422;
  --gold-hover:   #F0C45A;
  --gold-dim:     rgba(230, 180, 34, 0.11);
  --gold-border:  rgba(230, 180, 34, 0.22);
  --text:         #eeeeee;
  --text-muted:   #999999;
  --text-dark:    #1f1f1f;
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --ease:         0.22s ease;
}

/* ── Сброс ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── База ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}

a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; display: block; }

/* ── Контейнер ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Секции ─────────────────────────────────────────────────────── */
.section        { padding: 5rem 0; }
.section--card  { background: var(--bg-card); }
.section--card2 { background: var(--bg-card-2); }

.section-header   { text-align: center; margin-bottom: 3rem; }
.section-title    { font-size: 2rem; color: var(--gold); margin-bottom: 0.75rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Навбар ─────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: auto;
  max-height: 74px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform var(--ease);
}
.logo-img:hover { transform: scale(1.03); }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  color: var(--gold);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.nav-menu {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  color: #eeeeee;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color var(--ease);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--gold); }
.nav-menu > li > a.blog-link { color: var(--gold); }

/* Выпадающее меню */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: rgba(12, 13, 19, 0.97);
  backdrop-filter: blur(14px);
  min-width: 220px;
  border-radius: var(--radius-md);
  padding: 0.7rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ease);
  border: 1px solid var(--gold-border);
  z-index: 200;
  box-shadow: 0 10px 36px rgba(0,0,0,0.45);
}
.nav-menu > li:hover .dropdown-menu,
.nav-menu > li.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  color: #dddddd;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.dropdown-menu li a:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

/* Гамбургер */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 110;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay.active { display: block; }

/* ── Шапка-герой ────────────────────────────────────────────────── */
.hero-header {
  display: flex;
  flex-direction: column;
  color: white;
  padding-bottom: 3.5rem;
  position: relative;
  background-color: var(--bg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.76) 0%, rgba(10,8,2,0.62) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-header .navbar { position: relative; z-index: 100; }

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 0;
  margin-top: 4rem;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 820px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #e8d8b0;
  max-width: 640px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.4px;
  border-radius: var(--radius-lg);
  padding: 0.85rem 2.2rem;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary { background: var(--gold); color: var(--text-dark); }
.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,180,34,0.3);
}
.btn-secondary { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--text-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.btn-ghost:hover { background: var(--gold); color: var(--text-dark); }
.btn-full { width: 100%; display: block; }
.btn-sm   { padding: 0.55rem 1.4rem; font-size: 0.88rem; }

/* ── Теги / пилюли ──────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.tag {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: #e8d8b0;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── Карточки отзывов ───────────────────────────────────────────── */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 310px;
  min-width: 240px;
  flex: 1;
  border: 1px solid var(--gold-border);
  transition: transform var(--ease);
}
.review-card:hover { transform: translateY(-4px); }
.review-card img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.review-text { font-size: 0.88rem; line-height: 1.65; color: #cccccc; font-style: italic; }
.review-text::before {
  content: '\201C';
  font-size: 1.9rem; color: var(--gold);
  line-height: 0; vertical-align: -0.55rem; margin-right: 0.1rem;
}
.review-text::after {
  content: '\201D';
  font-size: 1.9rem; color: var(--gold);
  line-height: 0; vertical-align: -0.55rem; margin-left: 0.1rem;
}

/* ── Видеоблок ──────────────────────────────────────────────────── */
.video-block { text-align: center; }
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 50px rgba(0,0,0,0.5);
}
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── Формы ──────────────────────────────────────────────────────── */
.form-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--gold-border);
  max-width: 640px;
  margin: 0 auto;
}
.form-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--gold);
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}
.form-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.form-block label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #e0e0e0;
}
.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.97rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--ease), background var(--ease);
  -webkit-appearance: none;
}
.form-block input::placeholder,
.form-block textarea::placeholder { color: rgba(255,255,255,0.26); }
.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(230,180,34,0.05);
}
.form-block select option { background: #1a1c22; color: var(--text); }
.form-block textarea { resize: vertical; min-height: 95px; }
.form-block .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
}
.form-block .checkbox input[type="checkbox"] {
  width: 17px; height: 17px; min-width: 17px;
  margin-top: 2px; accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0;
}
.form-block .checkbox label {
  margin: 0; font-weight: 400;
  font-size: 0.86rem; color: var(--text-muted); cursor: pointer;
}
.form-block .checkbox a { color: var(--gold); }
.required-star { color: #e06060; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5; }
.form-message {
  margin-top: 1rem; padding: 0.8rem 1rem;
  border-radius: var(--radius-sm); display: none; font-size: 0.92rem;
}
.form-message.success {
  background: rgba(60,180,80,0.12); color: #80e090;
  border: 1px solid rgba(60,180,80,0.25); display: block;
}
.form-message.error {
  background: rgba(220,60,60,0.12); color: #f09090;
  border: 1px solid rgba(220,60,60,0.25); display: block;
}

/* ── Футер ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--gold-border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--gold-hover); }

/* ── Адаптив ────────────────────────────────────────────────────── */
/* промежуточный диапазон: навбар сжимается, но не переходит в гамбургер */
@media (max-width: 1250px) and (min-width: 901px) {
  .nav-menu { gap: 1rem; }
  .nav-menu > li > a { font-size: 0.9rem; }
  .logo-text { font-size: 1.5rem; }
  .logo-img { max-height: 56px; }
  .navbar { padding: 1rem 1.5rem; }
}

/* узкий десктоп: текст логотипа скрывается, остаётся только иконка */
@media (max-width: 1050px) and (min-width: 901px) {
  .logo-text { display: none; }
}

@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .logo-text { font-size: 1.5rem; }
  .logo-img { max-height: 56px; }
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    padding-top: 90px;
    flex-direction: column;
    background: rgba(8, 8, 14, 0.98);
    backdrop-filter: blur(18px);
    width: 78%;
    max-width: 300px;
    height: 100vh;
    gap: 0;
    z-index: 999;
    border-right: 2px solid var(--gold);
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
    align-items: stretch;
  }
  .nav-menu.active { left: 0; }
  .nav-menu > li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-menu > li > a { font-size: 1.1rem; padding: 1rem 1.5rem; display: block; width: 100%; }

  .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.04);
    backdrop-filter: none;
    border: none; border-radius: 0;
    padding: 0; opacity: 1;
    visibility: visible; transform: none;
    box-shadow: none; display: none;
  }
  .dropdown-menu.active { display: block; }
  .dropdown-menu li a { padding: 0.75rem 2rem; font-size: 1rem; }

  .hero-title    { font-size: 1.85rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-content  { margin-top: 5rem; }
  .section       { padding: 3.5rem 0; }
  .container     { padding: 0 1.25rem; }
  .form-block    { padding: 1.75rem; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .logo-text    { font-size: 1.2rem; }
  .logo-img     { max-height: 46px; }
  .hero-title   { font-size: 1.5rem; }
  .hero-content { margin-top: 4rem; }
  .hero-header  { padding-bottom: 3.5rem; }
  .container    { padding: 0 1rem; }
  .btn          { font-size: 0.95rem; padding: 0.8rem 1.6rem; }
}

/* ── Навбар — правая группа ────────────────────────────────────── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Переключатель темы ────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.12); }

/* ── Светлая тема — переменные ─────────────────────────────────── */
html.light-theme {
  --bg:          #ffffff;
  --bg-card:     #f6f6f6;
  --bg-card-2:   #ededed;
  --gold:        #6B4E00;
  --gold-hover:  #4D3800;
  --gold-dim:    rgba(107, 78, 0, 0.1);
  --gold-border: rgba(107, 78, 0, 0.32);
  --text:        #1a1a1a;
  --text-muted:  #555555;
  --text-dark:   #1f1f1f;
}

/* ── Светлая тема — переопределения ───────────────────────────── */
html.light-theme .review-text          { color: #333333; }
html.light-theme .tag                  { color: #444444; }
html.light-theme .site-footer          { background: #f0f0f0; }
html.light-theme .section--card        { background: #f6f6f6; }
html.light-theme .section--card2       { background: #ededed; }

html.light-theme .form-block input,
html.light-theme .form-block select,
html.light-theme .form-block textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}
html.light-theme .form-block input::placeholder,
html.light-theme .form-block textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
html.light-theme .form-block label                 { color: #222222; }
html.light-theme .form-block .checkbox label       { color: #444444; }
html.light-theme .form-block select option         { background: #ffffff; color: #1a1a1a; }

html.light-theme .dropdown-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(184, 134, 11, 0.25);
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
}
html.light-theme .dropdown-menu li a       { color: #333333; }
html.light-theme .dropdown-menu li a:hover { background: rgba(184, 134, 11, 0.08); color: #6B4E00; }

html.light-theme .nav-menu {
  background: rgba(255, 255, 255, 0.97);
  border-right-color: #6B4E00;
}
html.light-theme .nav-menu > li               { border-bottom-color: rgba(0, 0, 0, 0.07); }
html.light-theme .nav-menu > li > a           { color: #1a1a1a; }
html.light-theme .nav-menu > li > a:hover,
html.light-theme .nav-menu > li > a.active    { color: #6B4E00; }
html.light-theme .nav-menu > li > a.blog-link { color: #6B4E00; }

/* index.html page-specific overrides */
html.light-theme .product-card      { background: #ffffff; }
html.light-theme .product-card h3   { color: #1a1a1a; }
html.light-theme .product-card p,
html.light-theme .product-card li   { color: #333333; }
html.light-theme .date-item__text   { color: #333333; }
html.light-theme .review-card       { background: #ffffff; }

/* business pages: program cards, geo badges */
html.light-theme .program-card              { background: #ffffff; }
html.light-theme .program-card__title       { color: #1a1a1a; }
html.light-theme .program-card__hook        { color: #444444; }
html.light-theme .program-card__meta        { color: rgba(0,0,0,0.4); border-top-color: rgba(0,0,0,0.1); }
html.light-theme .program-card__results     { color: #333333; }
html.light-theme .price-alt strong          { color: #333333; }
html.light-theme .geo-badge                 { color: #333333; background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); }
html.light-theme .method-step               { background: #ffffff; }
html.light-theme .method-step__desc         { color: #333333; }
html.light-theme .about-text p              { color: #222222; }
html.light-theme .about-text p strong       { color: #111111; }
html.light-theme .stat-item                 { background: #f0f0f0; }
html.light-theme .stat-item__label          { color: #444444; }

/* ── Кнопки оплаты обычных билетов ────────────────────────────── */
.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
}
@media (max-width: 480px) {
  .payment-row { flex-direction: column; align-items: center; }
}

/* ── Приоритетный запрос ───────────────────────────────────────── */
.priority-block {
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
  background: rgba(230, 180, 34, 0.06);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
}
.priority-block__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.priority-label {
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.priority-title {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.priority-block > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.priority-prices {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.priority-price-item {
  background: var(--bg-card-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}
.priority-price-item .ppi-info .amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.priority-price-item .ppi-info .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.priority-details {
  border-top: 1px solid var(--gold-border);
  padding-top: 1rem;
}
.priority-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.priority-details li {
  font-size: 0.87rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.priority-details li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
@media (max-width: 600px) {
  .priority-prices { flex-direction: column; }
  .priority-price-item { min-width: unset; }
}

/* ── Шапка-герой: навбар остаётся тёмным в светлой теме ────────── */
@media (min-width: 901px) {
  html.light-theme .hero-header .nav-menu          { background: transparent; }
  html.light-theme .hero-header .nav-menu > li > a { color: #eeeeee; }
  html.light-theme .hero-header .nav-menu > li > a:hover,
  html.light-theme .hero-header .nav-menu > li > a.active { color: #E6B422; }
  html.light-theme .hero-header .nav-menu > li > a.blog-link { color: #E6B422; }
}
