/* ============================================================
   Grandpashabet TR — base.css
   Тема: изумрудно-тиловый фон + мятно-лаймовый и медно-янтарный акценты
   (палитра смещена по оттенку относительно исходного референса)
   ============================================================ */
:root {
  --bg-0: #0E1B12;
  --bg-1: #0C1810;
  --bg-2: #15271C;
  --bg-3: #1E3A27;
  --line: rgba(160, 235, 180, 0.12);
  --line-2: rgba(160, 235, 180, 0.22);
  --lime: #8FE066;
  --lime-2: #B7EE96;
  --gold: #D99760;
  --gold-2: #E8BA8C;
  --text: #F1F7EA;
  --text-2: #C2CDB6;
  --text-3: #91A183;
  --danger: #E5533C;
  --radius: 14px;
  --radius-s: 10px;
  --shadow-lime: 0 8px 26px rgba(143, 224, 102, 0.28);
  --font-head: "Sora", "Figtree", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; margin-bottom: 16px; }
h2 { font-size: clamp(23px, 2.9vw, 32px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 10px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }
strong { color: var(--text); }
.skip-link { position: absolute; left: -9999px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
main { display: block; }

/* Уникализация заимствованных изображений референса: лёгкий сдвиг тона/насыщенности */
.ref-img { filter: hue-rotate(28deg) saturate(1.12) contrast(1.03) brightness(0.99); }

/* ---------- Плейсхолдеры/утилиты ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-responsive table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.table-responsive th {
  background: var(--bg-3); color: var(--lime);
  text-align: left; padding: 12px 16px;
  font-family: var(--font-head); font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase;
}
.table-responsive td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); }
.table-responsive td:first-child { color: var(--text); font-weight: 600; }
.table-responsive tr:hover td { background: rgba(143, 224, 102, 0.04); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.18s; cursor: pointer;
}
.btn--fill { background: linear-gradient(180deg, var(--lime-2), var(--lime)); color: #12200D; box-shadow: var(--shadow-lime); }
.btn--fill:hover { filter: brightness(1.06); color: #12200D; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241a0a; box-shadow: 0 8px 24px rgba(217, 151, 96, 0.3); }
.btn--gold:hover { filter: brightness(1.05); color: #241a0a; }
.btn--big { padding: 14px 28px; font-size: 15px; }

.body-with-header { padding-top: var(--header-h); }

.section { padding: 54px 0; }
.section--panel { background: var(--bg-1); border-block: 1px solid var(--line); }
main { counter-reset: secNum; }
main section.section { counter-increment: secNum; }
.section__head {
  text-align: left; max-width: 780px; margin: 0 0 32px;
  padding-left: 20px;
  border-left: 3px solid var(--lime);
  position: relative;
}
.section__head::before {
  content: counter(secNum, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.section__head p { color: var(--text-2); }
.tag { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--bg-2), #14231A);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-content: start;
}
.card:hover { transform: translateY(-4px); border-color: rgba(143, 224, 102, 0.35); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(143, 224, 102, 0.10);
  border: 1px solid rgba(143, 224, 102, 0.25);
  color: var(--lime);
  grid-row: 1 / span 2;
}
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; align-self: center; color: var(--text); }
.card p { grid-column: 2; color: var(--text-2); font-size: 14.5px; margin: 6px 0 0; }

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.card__icon .icon { width: 24px; height: 24px; }

.figure { margin: 26px 0; }
.figure img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.figure figcaption { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 10px; }
.dual-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 22px; justify-content: center; }
.dual-mobile img { border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45); }

.section__extra { margin: 28px 0 0; column-count: 2; column-gap: 48px; }
.section__extra p { color: var(--text-2); font-size: 14.5px; break-inside: avoid; }
.section__extra p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .section__extra { column-count: 1; } }

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(217, 151, 96, 0.07);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 14px 18px;
  font-size: 14.5px; color: var(--text-2);
  margin: 18px 0;
}
.notice b { color: var(--gold-2); }

.steps { list-style: none; margin: 0; counter-reset: stp; }
.steps li { counter-increment: stp; position: relative; padding: 0 0 22px 62px; margin: 0; }
.steps li::before {
  content: counter(stp, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(143, 224, 102, 0.35);
  border-radius: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--lime);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px;
  width: 2px; background: linear-gradient(180deg, rgba(143, 224, 102, 0.3), transparent);
}
.steps .steps__title { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; margin-bottom: 5px; color: var(--text); }
.steps p { color: var(--text-2); font-size: 14.5px; margin-bottom: 0; }

.faq { margin: 0; }
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 46px 16px 18px;
  font-weight: 700; font-size: 15.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--lime); font-size: 21px; font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 18px 16px; color: var(--text-2); font-size: 14.5px; }

.cta-panel {
  background:
    radial-gradient(620px 260px at 85% 0%, rgba(143, 224, 102, 0.18), transparent 60%),
    linear-gradient(135deg, #1E3A27, #0E1B12);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 38px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-panel h2 { margin-bottom: 6px; }
.cta-panel p { color: var(--text-2); margin-bottom: 0; max-width: 560px; }

.breadcrumb { font-size: 13px; color: var(--text-3); padding: 14px 0 0; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--lime); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Общие адаптивные правки ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 22px; }
  .dual-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .section { padding: 42px 0; }
}
@media (max-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { grid-template-columns: 1fr; padding: 16px 14px; }
  .card__icon { grid-row: auto; margin-bottom: 10px; }
  .card p { grid-column: 1; }
}

/* ---------- Стандартный суб-хиро для внутренних страниц ---------- */
.subhero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% -10%, rgba(143, 224, 102, 0.15), transparent 60%),
    linear-gradient(160deg, #17301F 0%, #0E1B12 60%, #12240F 100%);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}
.subhero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 34px; align-items: center; }
.subhero__eyebrow { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.subhero__lead { font-size: 16px; color: var(--text-2); max-width: 560px; margin-bottom: 18px; }
.subhero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.subhero__art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.subhero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .subhero__grid { grid-template-columns: 1fr; }
  .subhero__art { max-height: 260px; }
}

/* ---------- Прокручиваемый читаемый блок (используется на нескольких страницах) ---------- */
.reading { position: relative; }
.reading__inner {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}
.reading__inner::-webkit-scrollbar { width: 8px; }
.reading__inner::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 8px; }
.reading::after {
  content: "";
  position: absolute; left: 0; right: 14px; bottom: 0; height: 74px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none;
}
.section--panel .reading::after { background: linear-gradient(180deg, transparent, var(--bg-1)); }
.reading h2, .reading h3 { margin-top: 22px; }
.reading h3:first-child { margin-top: 0; }
.reading h4 { font-size: 16px; margin-top: 16px; margin-bottom: 8px; color: var(--text); }
.reading p, .reading li { color: var(--text-2); }
