/* ============================================================
   TG-Teapot — стили лендинга
   Тёмная тема: фон #0a0f0d, акцент #00ffd0
   ============================================================ */

:root {
  --bg: #0a0f0d;
  --bg-soft: #0d1411;
  --panel: #0f1814;
  --panel-2: #0c1310;
  --border: #1c2b25;
  --border-strong: #28453a;
  --text: #e8f4ef;
  --muted: #a3bcb2;
  --faint: #7e978d;
  --accent: #00ffd0;
  --accent-ink: #04231b;
  --amber: #ffb454;
  --red: #ff6b5e;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 10px 36px rgba(0, 255, 208, 0.16);
}

/* ---------- база ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -140px, rgba(0, 255, 208, 0.09), transparent 60%),
    radial-gradient(900px 480px at -10% 220px, rgba(0, 255, 208, 0.05), transparent 60%),
    var(--bg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(0, 255, 208, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 26px rgba(0, 255, 208, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(0, 255, 208, 0.4); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 11px 20px; font-size: 15px; border-radius: 12px; }

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: 15.5px;
  padding: 6px 2px;
  transition: color 0.15s;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 12px; width: 20px; height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.burger span { top: 21px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 208, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 480px at 60% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 60% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); text-shadow: 0 0 32px rgba(0, 255, 208, 0.45); }

.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  font: 500 14px/1 var(--font);
  color: var(--faint);
  border: 1px solid var(--border);
  background: rgba(15, 24, 20, 0.7);
  padding: 9px 14px;
  border-radius: 999px;
}
.hero-chips li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.hero-shot { position: relative; }
.hero-shot > img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(0, 255, 208, 0.07);
}

/* ---------- заголовки секций ---------- */

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- возможности: список названий ---------- */

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 208, 0.45);
  box-shadow: 0 0 24px rgba(0, 255, 208, 0.08);
}
.feature-list svg { color: var(--accent); flex: none; }

/* ---------- тарифы ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 208, 0.35);
  box-shadow: var(--shadow-card);
}

.plan-badge {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 12px/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

.plan-name { font-size: 17px; font-weight: 600; color: var(--muted); }
.plan-term { font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }

.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan-price small { font-size: 16px; font-weight: 500; color: var(--faint); }
.plan-price-hint { font-size: 13px; color: var(--faint); margin-bottom: 20px; min-height: 20px; }

.plan ul { margin-bottom: 24px; display: grid; gap: 10px; }
.plan li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 24px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan .btn { margin-top: auto; width: 100%; }

.plan.popular {
  border-color: rgba(0, 255, 208, 0.5);
  background: linear-gradient(180deg, rgba(0, 255, 208, 0.09), var(--panel-2) 55%);
  box-shadow: 0 0 46px rgba(0, 255, 208, 0.1);
}

.plans-footnote {
  margin-top: 30px;
  text-align: center;
  color: var(--faint);
  font-size: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.plans-footnote b { color: var(--muted); font-weight: 600; }

/* ---------- скриншоты ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot-card {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 208, 0.4);
  box-shadow: var(--shadow-card);
}
.shot-card img { width: 100%; height: auto; transition: transform 0.35s ease; }
.shot-card:hover img { transform: scale(1.015); }

.shot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  font: 600 15.5px var(--font);
  color: var(--text);
}
.shot-title .zoom-hint { font: 400 13px var(--mono); color: var(--faint); }

/* лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5, 9, 8, 0.9);
  backdrop-filter: blur(8px);
  padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: min(1080px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}
.lightbox figcaption { text-align: center; color: var(--muted); font-size: 15px; }

.lb-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(15, 24, 20, 0.9);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, color 0.15s;
  flex: none;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { position: absolute; top: 20px; right: 22px; }
.lb-prev, .lb-next { align-self: center; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font: 400 20px/1 var(--font);
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--accent); }

.faq-a {
  padding: 0 44px 24px 4px;
  color: var(--muted);
  font-size: 16px;
}
.faq-a a { text-decoration: underline; }

/* ---------- контакты / CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(0, 255, 208, 0.3);
  border-radius: 24px;
  padding: 72px 40px;
  background:
    radial-gradient(560px 280px at 50% -80px, rgba(0, 255, 208, 0.14), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 0 70px rgba(0, 255, 208, 0.06);
}
.cta-panel h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cta-panel h2 .accent { color: var(--accent); }
.cta-panel p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 34px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}
.cta-note { font-size: 14px; color: var(--faint); margin: 0; }

/* ---------- футер ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 208, 0.025));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--faint); font-size: 15px; max-width: 300px; }

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-nav ul, .footer-links ul { display: grid; gap: 10px; }
.footer-nav a, .footer-links a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover, .footer-links a:hover { color: var(--accent); }

.disclaimer {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(15, 24, 20, 0.6);
  padding: 20px 24px;
  margin-bottom: 30px;
}
.disclaimer h4 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.disclaimer p { color: var(--faint); font-size: 14px; margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 14px;
}

/* ---------- анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.plans > .plan:nth-child(2),
.gallery > .shot-card:nth-child(2) { transition-delay: 0.08s; }
.plans > .plan:nth-child(3),
.gallery > .shot-card:nth-child(3) { transition-delay: 0.16s; }
.plans > .plan:nth-child(4),
.gallery > .shot-card:nth-child(4) { transition-delay: 0.24s; }
.gallery > .shot-card:nth-child(5) { transition-delay: 0.08s; }
.gallery > .shot-card:nth-child(6) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: 640px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.popular { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 14, 12, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 22px;
    display: none;
  }
  body.nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 11px 4px; font-size: 17px; }
  .burger { display: block; }
  .header-inner { gap: 16px; }
  .header-actions .btn { display: none; }
  body.nav-open .header-actions .btn { display: inline-flex; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 80px; }
  .plans { grid-template-columns: 1fr; }
  .plan.popular { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-panel { padding: 52px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-a { padding-right: 10px; }
  .lightbox { padding: 14px; gap: 8px; }
  .lb-prev, .lb-next { display: none; }
}
