/* D.E.V.K.O.R — светлая тема по логотипу: белый фон, чёрный, золото, изумруд. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #17181c;
  --muted: #6b6f76;
  --line: rgba(23, 24, 28, 0.10);
  --gold: #c9971c;
  --gold-soft: #e5c05a;
  --gold-deep: #8a6a1f;
  --green: #35a821;
  --green-soft: #eaf7e6;
  --radius: 16px;
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); font-family: var(--font-body); line-height: 1.6;
  background: var(--bg) radial-gradient(1100px 480px at 80% -10%, rgba(201, 151, 28, 0.10), transparent 60%);
}

main { flex: 1; width: min(1080px, 100% - 40px); margin: 0 auto; }

.gold-line { height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--gold-deep)); }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; letter-spacing: 0.10em; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--gold-deep); background: rgba(201, 151, 28, 0.12); }

/* Hero */
.hero { padding: 76px 0 48px; text-align: center; }
.hero h1 { font-family: var(--font-head); font-size: clamp(26px, 5vw, 44px); line-height: 1.2; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Секции */
.section { padding: 34px 0; }
.section h1, .section h2 { font-family: var(--font-head); letter-spacing: 0.04em; margin: 0 0 18px; }
.section h2 { color: var(--ink); border-left: 4px solid var(--gold); padding-left: 14px; }
.section-note { color: var(--muted); margin: -8px 0 18px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23, 24, 28, 0.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border: none; color: #171307; }
.btn-dark { background: var(--ink); border: none; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 24, 28, 0.12); }
.card-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 8px 0 6px; font-family: var(--font-head); font-size: 16px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--gold-deep); }
.card-body p { color: var(--muted); margin: 0; font-size: 14px; }
.card.review time { color: var(--muted); font-size: 12px; }

/* Цены */
.price-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price { font-family: var(--font-head); font-size: 20px; color: var(--green); margin-bottom: 12px; }

/* Бейджи */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-deep); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.badge-green { background: var(--green-soft); border-color: rgba(53, 168, 33, .35); color: var(--green); }

.link-gold { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }

.empty { color: var(--muted); padding: 12px 2px; }

/* Фильтр кейсов */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-btn.active { background: var(--ink); color: #fff; border: none; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23, 24, 28, .12); }
.contact-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.contact-card strong { color: var(--gold-deep); font-size: 16px; }

/* Вход */
.auth-box { max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.auth-box label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.auth-box input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; color: var(--ink); }
.auth-box input:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.auth-box .btn { margin-top: 14px; width: 100%; }
#code-row { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 4px; }
.auth-msg { min-height: 20px; color: var(--green); font-weight: 600; }
.auth-msg.err { color: #c0392b; }
.auth-alt { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 14px; }
.auth-alt .btn { width: auto; margin: 8px 8px 0 0; }

/* Страница кейса */
.case-page h1 { margin-top: 8px; }
.case-text p { white-space: pre-line; max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-contacts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.footer-contacts a { color: var(--gold-deep); text-decoration: none; font-weight: 700; }
.footer-contacts a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .hero { padding: 48px 0 36px; }
}

/* Горизонтальная лента "Наши проекты" (низ сайта) */
.ribbon {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
}
.ribbon .ribbon-card { flex: 0 0 260px; scroll-snap-align: start; }
.ribbon::-webkit-scrollbar { height: 6px; }
.ribbon::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 3px; }

/* Логотип по центру hero */
.hero-logo { width: 120px; height: 120px; border-radius: 24px; border: 1px solid var(--line); background: #fff; margin-bottom: 14px; filter: drop-shadow(0 10px 24px rgba(201, 151, 28, .25)); }

/* Формы */
.field { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; color: var(--ink); font-family: var(--font-body); }
.field textarea { resize: vertical; min-height: 180px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* Чипсы конфигуратора */
#order-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 14px; }
#order-form legend { font-weight: 700; padding: 0 8px; color: var(--gold-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-soft); }

.btn.linklike { border: none; background: none; color: var(--gold-deep); text-decoration: underline; margin-top: 12px; box-shadow: none; }

/* Dropzone */
.dropzone { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #fff; margin: 14px 0 6px; }
.dropzone.hot { background: var(--green-soft); border-color: var(--green); }

/* Логотип по центру hero */
.hero-logo { width: 120px; height: 120px; border-radius: 24px; border: 1px solid var(--line); background: #fff; margin-bottom: 14px; filter: drop-shadow(0 10px 24px rgba(201, 151, 28, .25)); }

/* Формы */
.field { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; color: var(--ink); font-family: var(--font-body); }
.field textarea { resize: vertical; min-height: 180px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* Чипсы конфигуратора */
#order-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 14px; }
#order-form legend { font-weight: 700; padding: 0 8px; color: var(--gold-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-soft); }

.btn.linklike { border: none; background: none; color: var(--gold-deep); text-decoration: underline; margin-top: 12px; box-shadow: none; }

/* Dropzone */
.dropzone { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #fff; margin: 14px 0 6px; }
.dropzone.hot { background: var(--green-soft); border-color: var(--green); }

/* Юридические страницы */
.legal { max-width: 820px; }
.legal h2 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); border-left: none; padding-left: 0; }
.legal p { margin: 8px 0; }

.footer-legal { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.footer-legal a { color: var(--muted); text-decoration: none; font-size: 12px; }
.footer-legal a:hover { color: var(--gold-deep); }

/* Чипсы: выбранный — золото (вместо чёрного) */
.chip input:checked + span { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #171307; border-color: var(--gold); }

/* Карточка-ссылка выбора услуги */
a.service-pick { text-decoration: none; color: var(--ink); }
a.service-pick:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23,24,28,.12); }
a.service-pick .price { margin-top: 8px; }

/* Select */
.field select { width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; color: var(--ink); font-family: var(--font-body); }
.field select:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* Заголовки страниц ЛК не должны быть гигантскими */
.section > h1 { font-size: clamp(24px, 7vw, 36px); line-height: 1.2; }

/* Био автора отзыва */
.review-bio { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }

/* Био автора отзыва */
.review-bio { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }

/* Промо-баннер HOT */
.promo-wrap { padding-top: 0; }
.promo-banner {
  position: relative;
  background: linear-gradient(135deg, #c62828, #e53935);
  border-radius: 20px;
  padding: 28px 26px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(198, 40, 40, .35);
  overflow: hidden;
}
.promo-banner .flame {
  position: absolute; top: 10px; right: 12px;
  width: 64px; height: 80px;
  transform: rotate(8deg);
  animation: flick 1.6s ease-in-out infinite;
}
@keyframes flick {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}
.promo-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  color: #ffb020;
  margin: 0 0 10px;
}
.promo-note { margin: 0; font-size: 14px; line-height: 1.55; color: #ffe3e0; max-width: 560px; }

/* Объёмный 3D-логотип */
.logo3d {
  width: 220px; height: 220px;
  margin: 0 auto 18px;
  perspective: 900px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.logo3d:active { cursor: grabbing; }
.logo3d-cube {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: spin3d 14s linear infinite;
}
.logo3d.drag .logo3d-cube { animation: none; }
.logo3d .face {
  position: absolute; inset: 0;
  background: #fff url('/assets/logo.png') center / contain no-repeat;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
}
.logo3d .f1 { transform: rotateY(0deg) translateZ(110px); }
.logo3d .f2 { transform: rotateY(90deg) translateZ(110px); }
.logo3d .f3 { transform: rotateY(180deg) translateZ(110px); }
.logo3d .f4 { transform: rotateY(270deg) translateZ(110px); }
.logo3d .f5 { transform: rotateX(90deg) translateZ(110px); }
.logo3d .f6 { transform: rotateX(-90deg) translateZ(110px); }
@keyframes spin3d {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to { transform: rotateX(-12deg) rotateY(360deg); }
}

/* Canvas 3D-логотипа */
.logo3d canvas { width: 100%; height: 100%; display: block; }

/* Огонёк не перекрывает проценты */
.promo-banner .flame { width: 56px; height: 70px; top: 14px; right: 14px; }
.promo-title { padding-right: 84px; }

/* 3D-логотип Three.js: размер площадки */
.logo3d { width: 260px; height: 260px; }

/* Галочка согласия с офертой и политикой */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 13px; color: #555; line-height: 1.45; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: #c9971c; flex: 0 0 auto; }
.consent a { color: #a97b00; text-decoration: underline; }

/* Расшифровка аббревиатуры D.E.V.K.O.R. */
.acronym { text-align: center; }
.acronym-full {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 2.6vw, 19px);
  color: #111;
  margin: 6px auto;
  max-width: 760px;
}
.acronym-full.ru { color: #767676; font-weight: 500; }
.acronym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.acronym-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 16px 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.acronym-card .letter {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #c9971c;
}
.acronym-card .word { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; }
.acronym-card .word-ru { display: block; margin-top: 2px; font-size: 12px; color: #8a8a8a; }

/* Хаб «Составить под себя» */
.tz-hub {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.tz-hub-title { font-weight: 700; margin: 0 0 12px; }

/* Новая 3D-модель логотипа (файл devkor-logo-3d-v4.html) */
.logo3d-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin: 0 auto 18px;
  border: 0;
  background: transparent;
}

/* Плашки-переключатель тем */
.theme-switch { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 12px; background: rgba(0, 0, 0, .03); }
.theme-btn { border: 1px solid rgba(0, 0, 0, .15); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.theme-btn.active { background: #111; color: #fff; border-color: #111; }

/* Плоский лого для небазовых тем */
.logo-flat { display: none; width: 190px; margin: 0 auto 18px; }
body.theme-classic .logo3d-frame, body.theme-max .logo3d-frame { display: none; }
body.theme-classic .logo-flat, body.theme-max .logo-flat { display: block; }

/* ТЕМА: КЛАССИКА / МИНИМАЛИЗМ — воздух, чёрно-белое, тонкие линии */
body.theme-classic { background: #fff; }
body.theme-classic .gold-line { display: none; }
body.theme-classic .theme-btn.active { background: #111; }
body.theme-classic .site-header { background: #fff; border-bottom: 1px solid #ececec; }
body.theme-classic h1, body.theme-classic h2, body.theme-classic h3 { font-family: 'Manrope', sans-serif; letter-spacing: 0; }
body.theme-classic .hero h1 em { color: #111; font-style: normal; }
body.theme-classic .btn-gold { background: #111; color: #fff; border-radius: 2px; }
body.theme-classic .btn { border-radius: 2px; }
body.theme-classic .card { border-radius: 2px; box-shadow: none; border: 1px solid #e6e6e6; }
body.theme-classic .price { color: #111; }
body.theme-classic .link-gold { color: #111; }
body.theme-classic .promo-banner { background: #fff; color: #111; border: 1px solid #111; box-shadow: none; border-radius: 2px; }
body.theme-classic .promo-title { color: #111; }
body.theme-classic .promo-note { color: #555; }
body.theme-classic .flame { display: none; }
body.theme-classic .acronym-card { border-radius: 2px; box-shadow: none; }
body.theme-classic .acronym-card .letter { color: #111; }
body.theme-classic .site-footer { background: #fff; border-top: 1px solid #ececec; }

/* ТЕМА: МАКСИМАЛИЗМ (первый проход, стиль ЦУМ): сериф капсом, по центру, акцент-линия */
body.theme-max { background: #fff; }
body.theme-max .gold-line { background: #f04b23; }
body.theme-max .theme-btn.active { background: #f04b23; border-color: #f04b23; }
body.theme-max h1, body.theme-max h2, body.theme-max .hero h1, body.theme-max .promo-title {
  font-family: 'Playfair Display', serif; text-transform: uppercase; letter-spacing: .06em; text-align: center; font-weight: 600; }
body.theme-max .hero h1 em { color: #f04b23; font-style: normal; }
body.theme-max .hero p, body.theme-max .section-note, body.theme-max .acronym-full { text-align: center; }
body.theme-max .hero-actions { justify-content: center; }
body.theme-max .btn-gold { background: #f04b23; border-radius: 0; }
body.theme-max .btn { border-radius: 0; }
body.theme-max .site-header { border-bottom: 2px solid #111; }
body.theme-max .card { border-radius: 0; border: 1px solid #111; box-shadow: none; }
body.theme-max .price { color: #f04b23; }
body.theme-max .link-gold { color: #f04b23; }
body.theme-max .promo-banner { background: #111; border-radius: 0; }
body.theme-max .promo-note { color: #ddd; }
body.theme-max .acronym-card { border-radius: 0; border: 1px solid #111; box-shadow: none; }
body.theme-max .acronym-card .letter { color: #f04b23; }
body.theme-max .site-footer { background: #111; color: #fff; }
body.theme-max .site-footer a { color: #f0b49f; }

/* ТЕМА «КЛАССИКА» v2: узорчатый сериф Prata, волосяные линии, воздух, центр.
   Это отдельный дизайн страниц, а не перекраска основного. */
body.theme-classic { background: #fff; color: #141414; }

body.theme-classic .theme-switch { background: #fff; border-bottom: 1px solid #eee; padding: 8px; gap: 18px; }
body.theme-classic .theme-btn { border: 0; background: none; border-radius: 0; padding: 4px 2px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9a9a9a; }
body.theme-classic .theme-btn.active { color: #111; background: none; border-bottom: 1px solid #111; }

body.theme-classic .site-header { flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid #ececec; background: #fff; }
body.theme-classic .site-header .brand span { font-family: 'Prata', serif; font-weight: 400; letter-spacing: .35em; }
body.theme-classic .site-nav { display: flex; gap: 22px; }
body.theme-classic .site-nav a { text-transform: uppercase; font-size: 11px; letter-spacing: .18em; color: #9a9a9a; }
body.theme-classic .site-nav a.active { color: #111; box-shadow: 0 1px 0 #111; }

body.theme-classic h1, body.theme-classic h2, body.theme-classic h3, body.theme-classic .hero h1 {
  font-family: 'Prata', serif; font-weight: 400; letter-spacing: .02em; text-align: center; }
body.theme-classic .hero { text-align: center; }
body.theme-classic .hero h1 em { font-style: italic; color: #111; }
body.theme-classic .hero p, body.theme-classic .section-note { text-align: center; color: #8b8b8b; font-weight: 300; }
body.theme-classic .hero-actions { justify-content: center; gap: 26px; }

body.theme-classic .btn, body.theme-classic .btn-gold, body.theme-classic .btn-dark {
  background: none; border: 0; border-bottom: 1px solid #111; border-radius: 0;
  color: #111; padding: 10px 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; box-shadow: none; }
body.theme-classic .btn:hover { border-bottom-color: #000; }

body.theme-classic .section h2 { margin-bottom: 26px; }
body.theme-classic .section h2::after { content: ""; display: block; width: 44px; height: 1px; background: #111; margin: 16px auto 0; }

body.theme-classic .cards { gap: 0; }
body.theme-classic .card { border: 0; border-top: 1px solid #e8e8e8; border-radius: 0; box-shadow: none; background: #fff; }
body.theme-classic .card-body { padding: 22px 4px; }
body.theme-classic .card h3 { text-align: left; font-size: 20px; }
body.theme-classic .card p { color: #8b8b8b; font-weight: 300; }
body.theme-classic .price { color: #111; font-family: 'Prata', serif; font-size: 16px; }
body.theme-classic .link-gold { color: #111; text-decoration: none; border-bottom: 1px solid #ccc; }
body.theme-classic .badge { border-radius: 0; background: none; color: #9a9a9a; border: 1px solid #e0e0e0; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; }

body.theme-classic .promo-banner { background: #fff; border: 1px solid #e8e8e8; border-radius: 0; box-shadow: none; color: #141414; padding: 34px 22px; }
body.theme-classic .promo-title { font-family: 'Prata', serif; color: #111; text-align: center; font-size: clamp(22px, 4.6vw, 34px); }
body.theme-classic .promo-note { color: #8b8b8b; text-align: center; }

body.theme-classic .acronym-full { font-family: 'Prata', serif; font-weight: 400; color: #141414; }
body.theme-classic .acronym-card { border: 0; border-top: 1px solid #e8e8e8; border-radius: 0; box-shadow: none; background: #fff; }
body.theme-classic .acronym-card .letter { font-family: 'Prata', serif; color: #111; font-weight: 400; font-size: 40px; }
body.theme-classic .acronym-card .word { font-weight: 400; letter-spacing: .08em; }

body.theme-classic .field input, body.theme-classic .field textarea, body.theme-classic .field select {
  border: 0; border-bottom: 1px solid #ddd; border-radius: 0; background: #fff; padding: 10px 2px; }
body.theme-classic .chips .chip { border: 1px solid #e0e0e0; border-radius: 0; }
body.theme-classic .auth-box { border: 1px solid #ececec; border-radius: 0; box-shadow: none; background: #fff; }
body.theme-classic .tz-hub { border: 1px solid #ececec; border-radius: 0; box-shadow: none; background: #fff; }
body.theme-classic .tz-hub-title { font-family: 'Prata', serif; font-weight: 400; text-align: center; }

body.theme-classic .site-footer { background: #fff; border-top: 1px solid #ececec; color: #8b8b8b; }
body.theme-classic .site-footer a { color: #111; }
body.theme-classic .logo-flat { width: 150px; }

/* ТЕМА «МАКСИМАЛИЗМ» v2: тёмные сцены, неон, золото, движение */
body.theme-max { background: #07070a; color: #f2f2f5; }
body.theme-max .theme-switch { background: #07070a; border-bottom: 1px solid rgba(212, 175, 55, .25); }
body.theme-max .theme-btn { background: #0d0d12; border-color: rgba(212, 175, 55, .4); color: #d4af37; }
body.theme-max .theme-btn.active { background: linear-gradient(135deg, #d4af37, #f6d87a); color: #111; border-color: transparent; box-shadow: 0 0 18px rgba(212, 175, 55, .5); }
body.theme-max .gold-line { background: linear-gradient(90deg, #d4af37, #39ff14, #d4af37); }
body.theme-max .site-header { background: rgba(7, 7, 10, .9); border-bottom: 1px solid rgba(212, 175, 55, .25); backdrop-filter: blur(8px); }
body.theme-max .site-nav a { color: #9a9aa5; }
body.theme-max .site-nav a.active { color: #39ff14; }
body.theme-max .btn { border-radius: 999px; border-color: rgba(212, 175, 55, .5); color: #d4af37; background: transparent; }
body.theme-max .btn-gold { background: linear-gradient(135deg, #d4af37, #f6d87a); color: #111; box-shadow: 0 0 24px rgba(212, 175, 55, .45); }
body.theme-max .btn-dark { background: #fff; color: #111; }

body.theme-max .hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
body.theme-max .hero h1 { font-family: 'Unbounded', sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 10.5vw, 110px); line-height: 1.02; }
body.theme-max .hero h1 em { color: #39ff14; font-style: normal; text-shadow: 0 0 18px rgba(57, 255, 20, .75), 0 0 60px rgba(57, 255, 20, .35); animation: neon 2.6s ease-in-out infinite; }
@keyframes neon { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
body.theme-max .hero p { color: #b9b9c4; }
body.theme-max .logo3d-frame { display: block; border: 1px solid rgba(212, 175, 55, .6); border-radius: 18px; box-shadow: 0 0 50px rgba(57, 255, 20, .18), 0 0 90px rgba(212, 175, 55, .15); }
body.theme-max .logo-flat { display: none; }

body.theme-max .section { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(212, 175, 55, .18); }
body.theme-max h2 { font-family: 'Unbounded', sans-serif; text-transform: uppercase; font-size: clamp(26px, 6vw, 64px); text-align: left; }
body.theme-max .card { background: #0d0d12; border: 1px solid rgba(212, 175, 55, .3); border-radius: 18px; box-shadow: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
body.theme-max .card:hover { transform: translateY(-6px); border-color: #39ff14; box-shadow: 0 0 30px rgba(57, 255, 20, .25); }
body.theme-max .card h3, body.theme-max .card h3 a { color: #fff; }
body.theme-max .card p { color: #a9a9b4; }
body.theme-max .price { color: #39ff14; text-shadow: 0 0 12px rgba(57, 255, 20, .5); }
body.theme-max .link-gold { color: #d4af37; }
body.theme-max .badge { background: rgba(57, 255, 20, .12); color: #39ff14; border: 1px solid rgba(57, 255, 20, .4); }
body.theme-max .promo-banner { background: linear-gradient(135deg, #15151b, #0b0b0f); border: 1px solid rgba(212, 175, 55, .5); box-shadow: 0 0 60px rgba(212, 175, 55, .15); }
body.theme-max .promo-title { color: #f6d87a; text-shadow: 0 0 22px rgba(212, 175, 55, .5); }
body.theme-max .promo-note { color: #c9c9d2; }
body.theme-max .acronym-card { background: #0d0d12; border-color: rgba(212, 175, 55, .3); }
body.theme-max .acronym-card .letter { color: #39ff14; text-shadow: 0 0 14px rgba(57, 255, 20, .6); }
body.theme-max .acronym-full { color: #fff; }
body.theme-max .acronym-full.ru { color: #9a9aa5; }
body.theme-max .auth-box, body.theme-max .tz-hub { background: #0d0d12; border: 1px solid rgba(212, 175, 55, .3); }
body.theme-max .field input, body.theme-max .field textarea, body.theme-max .field select { background: #0d0d12; border: 1px solid rgba(212, 175, 55, .35); color: #fff; border-radius: 12px; }
body.theme-max .consent { color: #b9b9c4; }
body.theme-max .consent a { color: #d4af37; }
body.theme-max .site-footer { background: #05050a; border-top: 1px solid rgba(212, 175, 55, .25); color: #8b8b96; }
body.theme-max .site-footer a { color: #d4af37; }

/* Бегущая строка */
.max-marquee { display: none; }
body.theme-max .max-marquee { display: block; overflow: hidden; border-block: 1px solid rgba(212, 175, 55, .3); background: #0a0a0e; }
.max-marquee div { display: flex; width: max-content; animation: mq 22s linear infinite; }
.max-marquee span { padding: 10px 0; font-family: 'Unbounded', sans-serif; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #d4af37; white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Счётчики-цифры */
.max-stats { display: none; }
body.theme-max .max-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 26px 0; }
.max-stats .stat { border: 1px solid rgba(212, 175, 55, .35); border-radius: 16px; padding: 18px 10px; text-align: center; background: #0d0d12; }
.max-stats b { display: block; font-family: 'Unbounded', sans-serif; font-size: clamp(28px, 6vw, 52px); color: #39ff14; text-shadow: 0 0 18px rgba(57, 255, 20, .6); }
.max-stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9a9aa5; }

/* Интро при входе (один раз за сессию) */
.max-intro { position: fixed; inset: 0; z-index: 90; background: #05050a; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
body.theme-max .max-intro.play { display: flex; animation: introFade .5s ease 1.4s forwards; }
.max-intro img { width: 120px; animation: introZoom 1.4s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 30px rgba(57, 255, 20, .6)); }
.max-intro b { font-family: 'Unbounded', sans-serif; color: #d4af37; animation: introText 1.4s ease; }
@keyframes introZoom { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes introText { from { opacity: 0; letter-spacing: .1em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes introFade { to { opacity: 0; visibility: hidden; } }

/* Появление сцен на скролле */
body.theme-max .rv { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
body.theme-max .rv.in { opacity: 1; transform: none; }

/* Частицы позади контента + свечение курсора поверх */
#max-fx { position: fixed; inset: 0; pointer-events: none; z-index: -1; display: none; }
body.theme-max #max-fx { display: block; }
.cursor-glow { position: fixed; pointer-events: none; z-index: 1; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(57, 255, 20, .14), transparent 60%); mix-blend-mode: screen; transform: translate(-50%, -50%); display: none; }
body.theme-max .cursor-glow { display: block; }
.max-sound { position: fixed; right: 14px; bottom: 14px; z-index: 95; display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .5); background: #0d0d12; color: #d4af37; font-size: 18px; }
body.theme-max .max-sound { display: block; }

/* Максимализм: фоновая 3D-сцена на весь экран позади контента */
.max-bg { display: none; }
body.theme-max .max-bg {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .65;
}
/* 3D-логотип и плоский лого со страницы максимализма убраны */
body.theme-max .logo3d-frame { display: none; }
body.theme-max .logo-flat { display: none; }
/* Бегущая строка не выделяется пальцем/курсором */
.max-marquee { user-select: none; -webkit-user-select: none; }

/* Производимость: убираем дорогой blur с шапки максимализма */
body.theme-max .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 7, 10, .97); }

/* Кнопка режима взаимодействия с фоном */
.max-bgbtn {
  position: fixed; right: 14px; bottom: 66px; z-index: 95;
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(57, 255, 20, .5); background: #0d0d12; color: #39ff14; font-size: 18px;
}
body.theme-max .max-bgbtn { display: block; }

/* Режим bg-live: пустые зоны отдают жесты фоновой сцене */
body.theme-max.bg-live, body.theme-max.bg-live main, body.theme-max.bg-live .section { pointer-events: none; }
body.theme-max.bg-live a, body.theme-max.bg-live button, body.theme-max.bg-live input,
body.theme-max.bg-live textarea, body.theme-max.bg-live select, body.theme-max.bg-live label,
body.theme-max.bg-live .chip, body.theme-max.bg-live .card, body.theme-max.bg-live .tz-hub,
body.theme-max.bg-live p, body.theme-max.bg-live h1, body.theme-max.bg-live h2, body.theme-max.bg-live h3,
body.theme-max.bg-live .site-header, body.theme-max.bg-live .theme-switch,
body.theme-max.bg-live .site-footer, body.theme-max.bg-live .max-marquee { pointer-events: auto; }
body.theme-max.bg-live .max-bg { pointer-events: auto; }

/* Фон максимализма — полностью видимый */
body.theme-max .max-bg { opacity: 1; }

/* Максимализм: пустые зоны (без текста и кнопок) всегда взаимодействуют с фоном */
body.theme-max, body.theme-max main, body.theme-max .section { pointer-events: none; }
body.theme-max a, body.theme-max button, body.theme-max input, body.theme-max textarea,
body.theme-max select, body.theme-max label, body.theme-max .chip, body.theme-max .card,
body.theme-max .tz-hub, body.theme-max p, body.theme-max h1, body.theme-max h2, body.theme-max h3,
body.theme-max .site-header, body.theme-max .theme-switch, body.theme-max .site-footer,
body.theme-max .max-marquee { pointer-events: auto; }
body.theme-max .max-bg { pointer-events: auto; }
body.theme-max .max-sound, body.theme-max .max-bgbtn { display: none !important; }

/* 3D-лифт справа = ползунок страницы (виден только в максимализме) */
.lift-strip { display: none; }
body.theme-max .lift-strip {
  display: block;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 58px; height: 100%;
  border: 0;
  border-left: 1px solid rgba(212, 175, 55, .35);
  background: rgba(7, 7, 10, .55);
  pointer-events: auto;
  z-index: 60;
}

/* Максимализм: отступ тела под рельсу лифта — контент больше не перекрыт */
body.theme-max { padding-right: 58px; }
body.theme-max .max-bg { width: 100vw; } /* фон остаётся во всю ширину */

/* Рельса лифта: плавающая капсула, не трогает шапку и кнопку «наверх» */
body.theme-max .lift-strip {
  top: 8px;
  bottom: 96px;
  height: auto;
  right: 6px;
  width: 52px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .35);
  background: rgba(7, 7, 10, .72);
  box-shadow: 0 0 24px rgba(57, 255, 20, .15);
}

/* Лифт убран: рельса не монтируется, отступ контента не нужен */
.lift-strip { display: none !important; }
body.theme-max { padding-right: 0; }

/* Максимализм: адекватный нативный скролл везде; фон только смотрит, не перехватывает жесты */
body.theme-max, body.theme-max main, body.theme-max .section { pointer-events: auto; }
body.theme-max .max-bg { pointer-events: none; }

/* Кнопка взаимодействия с фоном: пилюля с рисованной SVG-иконкой, без смайлов */
.max-orbitbtn {
  position: fixed; right: 14px; bottom: 14px; z-index: 96;
  display: none; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, #d4af37, #f6d87a);
  color: #111; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .6), 0 0 26px rgba(212, 175, 55, .55);
  animation: orbitPulse 2.2s ease-in-out infinite;
  cursor: pointer;
}
body.theme-max .max-orbitbtn { display: inline-flex; }
.max-orbitbtn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
body.theme-max.bg-live .max-orbitbtn {
  background: linear-gradient(135deg, #39ff14, #b8ff9a);
  color: #06230a;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, .7), 0 0 30px rgba(57, 255, 20, .6);
  animation: none;
}
@keyframes orbitPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Переключатель тем: заметная липкая панель, видна всегда */
.theme-switch {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(135deg, #101014, #1c1a12);
  padding: 10px 12px;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  border-bottom: 1px solid rgba(212, 175, 55, .35);
}
.theme-switch::before {
  content: "Стиль сайта:";
  color: #d4af37;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  align-self: center;
}
.theme-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #f2f2f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theme-btn::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dot, #d4af37);
  box-shadow: 0 0 8px var(--dot, #d4af37);
}
.theme-btn[data-theme="default"] { --dot: #d4af37; }
.theme-btn[data-theme="classic"] { --dot: #ffffff; }
.theme-btn[data-theme="max"] { --dot: #39ff14; }
.theme-btn.active {
  background: #fff;
  color: #111;
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, .35);
}

/* В классике панель светлая, но такая же заметная */
body.theme-classic .theme-switch { background: #fff; border-bottom: 1px solid #ececec; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
body.theme-classic .theme-switch::before { color: #111; }
body.theme-classic .theme-btn { background: #fff; color: #111; border-color: #ddd; }
body.theme-classic .theme-btn.active { background: #111; color: #fff; border-color: #111; box-shadow: none; }

/* В максимализме панель в тон сцене */
body.theme-max .theme-switch { background: rgba(7, 7, 10, .95); }

/* 3D-модель на основной странице: совсем немного меньше */
.logo3d-frame { max-width: 380px; height: 380px; }
