/* Bonus Irmağım — "Gece Nehri" teması
   Derin lacivert zemin, mint ve altın aksan, serif başlıklar. */

:root {
  --bg: #070b16;
  --bg-2: #0a1120;
  --surface: #0f1a2e;
  --surface-2: #14213a;
  --line: rgba(146, 176, 214, 0.14);
  --line-strong: rgba(146, 176, 214, 0.28);
  --text: #f3f5f9;
  --muted: #9db0c9;
  --accent: #35d6c4;
  --accent-soft: rgba(53, 214, 196, 0.12);
  --gold: #e8c37a;
  --gold-2: #cfa64f;
  --ink: #04120f;
  --danger: #ff7a7a;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(53, 214, 196, 0.08), transparent 60%),
    radial-gradient(50rem 36rem at -10% 20%, rgba(232, 195, 122, 0.05), transparent 55%);
  z-index: 0;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow { max-width: 840px; }

.center { text-align: center; margin-top: 28px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(53, 214, 196, 0.22);
}
.btn-primary:hover { background: #4ce4d4; box-shadow: 0 10px 26px rgba(53, 214, 196, 0.3); }

.btn-gold {
  background: linear-gradient(160deg, var(--gold), var(--gold-2));
  color: #241a05;
  box-shadow: 0 8px 22px rgba(232, 195, 122, 0.18);
}
.btn-gold:hover { background: linear-gradient(160deg, #f0d08f, #d9b158); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(53, 214, 196, 0.25) 40%, var(--gold));
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }

.brand-text {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}
.brand-text em { color: var(--accent); font-style: normal; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: rgba(146, 176, 214, 0.08); text-decoration: none; }
.main-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.main-nav .nav-tg {
  color: var(--bg);
  background: var(--accent);
  margin-left: 6px;
}
.main-nav .nav-tg:hover { background: #4ce4d4; color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: stretch;
}

.hero-copy { display: flex; flex-direction: column; justify-content: center; }

.hero-copy h1 { margin-bottom: 16px; max-width: 20ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 28px; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}

/* Editor card */
.editor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 24px 24px;
  background:
    radial-gradient(22rem 16rem at 110% -20%, rgba(232, 195, 122, 0.14), transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(232, 195, 122, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.editor-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--gold); }

.editor-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--gold);
  color: #241a05;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.editor-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(7, 11, 22, 0.5);
  padding: 6px;
  margin: 10px 0 2px;
}

.editor-card h2 { margin: 0; font-size: 1.5rem; }

.editor-count { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin: 0; }

.editor-text { color: var(--muted); font-size: 0.92rem; margin: 4px 0 14px; }

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

/* Sections */
.section { padding: 48px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.5), rgba(10, 17, 32, 0.7));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 26px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; }

/* Bonus cards */
.b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.b-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.b-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 214, 196, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.b-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1424; }
.b-card-media img { width: 100%; height: 100%; object-fit: cover; }

.b-type {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(7, 11, 22, 0.82);
  border: 1px solid rgba(53, 214, 196, 0.45);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.b-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }

.b-site {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-title { font-size: 1.08rem; margin: 0 0 8px; }
.b-title a { color: var(--text); text-decoration: none; }
.b-title a:hover { color: var(--accent); }

.b-summary { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }

.b-card-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; }

.b-cta { flex: 1; padding: 10px 16px; font-size: 0.9rem; }

.b-more { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.b-more:hover { color: var(--accent); }

/* Type cards */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.type-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }

.type-name { font-weight: 700; font-size: 0.95rem; }
.type-total { color: var(--muted); font-size: 0.82rem; }

/* Site cards */
.s-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.s-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.s-card:hover { text-decoration: none; border-color: rgba(232, 195, 122, 0.5); transform: translateY(-2px); }

.s-card img { width: 64px; height: 64px; object-fit: contain; }

.s-name { font-weight: 700; font-size: 0.92rem; }
.s-meta { color: var(--muted); font-size: 0.78rem; }

.s-monogram {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface-2), #0b1526);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
}
.s-monogram-lg { width: 88px; height: 88px; font-size: 2.2rem; border-radius: 20px; }
.s-monogram-xl { width: 120px; height: 120px; font-size: 3rem; border-radius: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(53, 214, 196, 0.4);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Page head / crumbs */
.page-head {
  padding: 40px 0 8px;
  background: linear-gradient(180deg, rgba(20, 33, 58, 0.35), transparent);
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--text); }

.page-head h1 { margin-bottom: 10px; }
.page-head .lead { margin-bottom: 26px; }

/* Site list */
.site-list { display: flex; flex-direction: column; gap: 14px; }

.site-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-row-logo img { width: 88px; height: 88px; object-fit: contain; }
.site-row-body h2 { margin: 0 0 4px; font-size: 1.25rem; }
.site-row-body h2 a { color: var(--text); }
.site-row-body h2 a:hover { color: var(--accent); }
.site-row-tagline { color: var(--muted); margin: 0 0 8px; font-size: 0.92rem; }
.site-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.site-row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.site-hero-logo img { width: 120px; height: 120px; object-fit: contain; }
.site-hero-copy h1 { margin-bottom: 6px; }
.site-hero-copy .lead { margin-bottom: 12px; }
.site-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(53, 214, 196, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.pill-soft {
  border-color: var(--line-strong);
  background: rgba(146, 176, 214, 0.07);
  color: var(--muted);
  font-weight: 600;
}
a.pill:hover { text-decoration: none; border-color: var(--accent); }

/* Bonus detail */
.bonus-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }

.bonus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.bonus-main { min-width: 0; }

.bonus-figure {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1424;
}
.bonus-figure img { width: 100%; }

.prose { color: #d9e2ee; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #c6d2e2; }
.prose ul, .prose ol { padding-left: 1.25em; color: #c6d2e2; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }

.terms {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(232, 195, 122, 0.04);
}
.terms h2 { margin: 0 0 12px; font-size: 1.25rem; }
.terms ul { margin: 0; padding-left: 1.1em; color: #c6d2e2; }
.terms li { margin-bottom: 0.5em; }

.faq { margin-top: 30px; }
.faq h2 { margin-bottom: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 0.92rem; }

.bonus-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

.side-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-kicker { color: var(--gold); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 4px; }
.side-site { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 12px; }
.side-facts { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.side-facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.side-facts dt { color: var(--muted); font-size: 0.85rem; }
.side-facts dd { margin: 0; font-size: 0.85rem; font-weight: 700; text-align: right; }
.side-cta { width: 100%; }
.side-note { color: var(--muted); font-size: 0.76rem; margin: 10px 0 0; }
.side-about h2 { font-size: 1.05rem; margin-bottom: 8px; }
.side-about p { color: var(--muted); font-size: 0.88rem; }
.side-about p:last-child { margin: 0; }

/* Filters */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip span { color: var(--muted); font-size: 0.74rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip.is-active span { color: rgba(4, 18, 15, 0.7); }

.search-note { color: var(--muted); margin-bottom: 20px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.pager-btn {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager-info { color: var(--muted); font-size: 0.85rem; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Error page */
.error-page { text-align: center; padding: 60px 0; }
.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(53, 214, 196, 0.25);
  margin: 0;
  line-height: 1;
}
.error-page .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  margin-top: 40px;
  background: #050810;
  border-top: 1px solid var(--line);
  padding-bottom: 84px; /* Telegram butonu içerikle çakışmasın */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-top: 46px;
  padding-bottom: 34px;
}

.footer-brand .brand-text { font-size: 1.3rem; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 40ch; }

.footer-grid h3 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: var(--muted); font-size: 0.9rem; }
.footer-grid nav a:hover { color: var(--accent); }

.footer-note p { color: var(--muted); font-size: 0.84rem; margin-bottom: 10px; }
.footer-note strong { color: var(--danger); }

.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { color: #6c7d94; font-size: 0.8rem; margin: 0; }

/* Notice / popup */
.n-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

.n-layer[hidden] { display: none; }

.n-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.n-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(175deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(232, 195, 122, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: n-in 0.22s ease;
}

@keyframes n-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.n-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 22, 0.8);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.n-close:hover { border-color: var(--accent); color: var(--accent); }

.n-media { display: block; }
.n-media img { width: 100%; height: auto; max-height: 56vh; object-fit: cover; }

.n-body { padding: 16px 20px 20px; text-align: center; }
.n-kicker { color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; }
.n-title { font-size: 1.3rem; margin: 0 0 14px; }
.n-cta { width: 100%; }

body.n-open { overflow: hidden; }

/* Telegram sabit buton */
.tg-fab {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #229ED9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.18s ease;
}
.tg-fab:hover { background: #1d8fc4; }
.tg-fab svg { width: 24px; height: 24px; fill: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy h1 { max-width: none; }
  .editor-card { max-width: 460px; }
  .bonus-layout { grid-template-columns: 1fr; }
  .bonus-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-row { grid-template-columns: 72px 1fr; }
  .site-row-actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .header-main { gap: 8px; }
  .brand-text { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 7px 9px; font-size: 0.85rem; }
  .main-nav .nav-tg { margin-left: 0; }
  .hero { padding: 34px 0 26px; }
  .hero-stats { gap: 18px; }
  .hero-stats dd { font-size: 1.4rem; }
  .section { padding: 36px 0; }
  .b-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .s-grid { grid-template-columns: 1fr 1fr; }
  .site-row { padding: 14px; gap: 12px; }
  .site-row-body h2 { font-size: 1.1rem; }
  .site-row-actions .btn { flex: 1; }
  .site-hero { flex-direction: column; align-items: flex-start; }
  .bonus-figure { margin-bottom: 20px; }
  .terms { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .footer-bottom-inner { flex-direction: column; }
  .n-card { max-width: 360px; }
  .n-media img { max-height: 46vh; }
  .editor-card { max-width: none; }
  .prose h2 { font-size: 1.25rem; }
}

@media (max-width: 380px) {
  .type-grid, .s-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
