/* тема «бутылочный зелёный и золото»: подключается последней */
:root {
  --bg: #0f2a1f;
  --bg-2: #143527;
  --card: rgba(246, 240, 226, .045);
  --border: rgba(232, 200, 130, .22);
  --text: #f8f3e8;
  --muted: #c4c2ad;
  --accent: #d6b262;
  --accent-2: #eed291;
  --accent-dim: rgba(214, 178, 98, .14);
  --radius: 10px;
  --display: "Playfair Display", Georgia, serif;
  --gold: linear-gradient(180deg, #f3dc9e 0%, #dcb766 55%, #c99f4c 100%);
}
body {
  background: radial-gradient(1200px 700px at 50% -10%, #1c4a36 0%, rgba(15, 42, 31, 0) 70%), var(--bg);
  background-attachment: fixed;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: rgba(214, 178, 98, .4); color: #fff; }

/* фон без огней и свечения */
.bg-blobs, .bg-blobs--dark { background: none !important; }
.bg-blobs canvas, .blob { display: none !important; }
.h2-grain, .h2-spot { display: none !important; }
.hero::before { display: none !important; }

/* заголовки: антиква, крупнее и светлее */
h1, h2 { font-family: var(--display); font-weight: 600 !important; letter-spacing: 0 !important; color: var(--text); }
h3, h4 { font-family: "Inter", system-ui, sans-serif; font-weight: 600 !important; letter-spacing: 0 !important; }
h1 em, h2 em, h1 i:not([class]), h2 i:not([class]), h1 .accent, h2 .accent { font-style: italic; color: var(--accent-2); }
/* крупнее: главная просторная, текст должен её держать */
.hero__title { font-size: clamp(3rem, 8.6vw, 8.4rem) !important; line-height: 1.02 !important; }
.hero__title .accent { font-weight: 500; }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.5rem) !important; max-width: 40em; }
/* крупно только заголовки разделов, не карточек и не кабинета */
.section__title, .tc-h2, .final h2, .tc-final__in h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem) !important; line-height: 1.1 !important; }
h1.section__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem) !important; }
@media (max-width: 480px) {
  .section__title, .tc-h2, .final h2, .tc-final__in h2 { font-size: 1.95rem !important; overflow-wrap: anywhere; }
  h1.section__title { font-size: 2.3rem !important; }
  .hero__title { font-size: 2.7rem !important; }
}
/* цифры у антиквы ровные, без «скачущих» старостильных */
body { font-variant-numeric: lining-nums; }
[style*="background-clip"], .grad, .gradient-text, .accent { -webkit-text-fill-color: currentColor; }

/* кнопки: округлые, золото с бликом, контурные чётко видны */
.btn {
  border-radius: 999px !important;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600 !important;
  letter-spacing: .01em;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s !important;
}
.btn--primary {
  background: var(--gold) !important;
  color: #0f2a1f !important;
  border: 1px solid rgba(255, 236, 180, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px -8px rgba(0, 0, 0, .55) !important;
}
.btn--primary:hover {
  background: linear-gradient(180deg, #f8e6b4 0%, #e6c57c 55%, #d4ab58 100%) !important;
  transform: translateY(-1px);
}
.btn--ghost, .keybtn, .nav__key {
  background: rgba(246, 240, 226, .04) !important;
  border: 1px solid rgba(232, 200, 130, .5) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.btn--ghost:hover, .keybtn:hover, .nav__key:hover {
  background: rgba(214, 178, 98, .14) !important;
  border-color: var(--accent-2) !important;
  color: #fff !important;
}

/* мобильное меню: пункты не у самого края, вход по ключу обычной ссылкой */
.nav.open { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }
.nav.open .nav__key { background: none !important; border: 0 !important; color: var(--accent-2) !important; padding-left: 0 !important; }

/* карточки: светлее фона, тонкая золотая линия */
[class*="card"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

::-webkit-scrollbar-thumb { background: rgba(214, 178, 98, .45); }
.hero__star, .h2-chip, .h2-floor, .h2-dust { display: none !important; }
.h2-stage .gx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* механизм крупнее */
.h2-stage { width: min(1060px, 100%) !important; height: 480px !important; }
@media (max-width: 720px) { .h2-stage { height: 300px !important; } }

/* тёмный изумруд (вариант 1): цвет, объём и блики */
:root { --bg: #063a2b; --bg-2: #0a4a37; --em-glow: #15805e; --em-hi: #3fd39c; --em-edge: #021a12; }

/* объём: свет сверху, отблески по бокам, тёмные края, как у огранённого камня */
html body {
  background: var(--bg);
  background:
    radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--em-hi) 55%, transparent) 0%, transparent 60%),
    radial-gradient(1300px 800px at 50% 10%, var(--em-glow) 0%, transparent 70%),
    radial-gradient(650px 520px at 92% 34%, color-mix(in srgb, var(--em-glow) 80%, transparent) 0%, transparent 70%),
    radial-gradient(700px 560px at 6% 68%, color-mix(in srgb, var(--em-glow) 70%, transparent) 0%, transparent 70%),
    radial-gradient(150% 110% at 50% 35%, transparent 50%, var(--em-edge) 100%),
    var(--bg);
  background-attachment: fixed;
}
/* медленно плывущие блики по фону: один слой, двигается только transform */
html body::before {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(260px 180px at 30% 30%, color-mix(in srgb, var(--em-hi) 35%, transparent), transparent 70%),
    radial-gradient(320px 200px at 72% 58%, color-mix(in srgb, var(--em-hi) 28%, transparent), transparent 70%),
    radial-gradient(200px 140px at 45% 80%, color-mix(in srgb, var(--em-hi) 22%, transparent), transparent 70%),
    conic-gradient(from 20deg at 50% 40%, transparent 0 8%, rgba(255, 255, 255, .05) 10%, transparent 13% 38%, rgba(255, 255, 255, .04) 41%, transparent 45% 70%, rgba(255, 255, 255, .05) 73%, transparent 77%);
  animation: em-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes em-drift { 0% { transform: translate(-4%, -3%) rotate(0deg); } 100% { transform: translate(4%, 3%) rotate(8deg); } }

/* карточки: стеклянный объём, светлая грань сверху */
html [class*="card"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -20px 40px -30px rgba(0, 0, 0, .5), 0 18px 40px -24px rgba(0, 0, 0, .6);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 45%);
}

/* блики: золотые слова в заголовках, золотые и контурные кнопки */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
html h1 .accent, html h2 .accent, html h1 em, html h2 em {
  background: linear-gradient(100deg, #eed291 0%, #eed291 38%, #fffaea 47%, #ffe6a6 52%, #eed291 60%, #eed291 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: em-sheen 4.5s ease-in-out infinite;
}
}
html .btn--primary, html .btn--ghost, html .nav__key { position: relative; overflow: hidden; }
html .btn--primary::after, html .btn--ghost::after, html .nav__key::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: em-sweep 4.5s ease-in-out infinite;
}
html .btn--ghost::after, html .nav__key::after { background: linear-gradient(105deg, transparent 38%, rgba(238, 210, 145, .35) 50%, transparent 62%); animation-delay: 1.2s; }
@keyframes em-sheen { 0%, 45% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
@keyframes em-sweep { 0%, 50% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  html body::before, html .accent, html em, html [class*="btn"]::after, html .nav__key::after { animation: none !important; }
}

/* wide-hero */
@media (min-width: 1100px) {
  .hero { padding-top: 44px !important; }
  .h2-stage { width: min(1500px, 100%) !important; height: 520px !important; margin-top: -10px !important; margin-bottom: -90px !important; }
  .hero__title { font-size: clamp(3rem, 9vw, 9.6rem) !important; }
  .hero__sub { font-size: clamp(1.1rem, 1.8vw, 1.65rem) !important; max-width: min(1080px, 92vw) !important; }
}
