:root {
  --bg: #010203;
  --panel: rgba(5, 7, 9, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f4f6;
  --muted: #a3a9b2;
  --accent: #7ce4be;
  --accent-2: #52cfa0;
  --surface-glow-cyan: rgba(67, 153, 188, 0.14);
  --surface-glow-mint: rgba(64, 151, 123, 0.1);
  --surface-glow-blue: rgba(39, 88, 152, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(1200px 560px at 18% -16%, rgba(255,255,255,.03), transparent 68%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(86px);
  z-index: -1;
}
.orb-1 { width: 260px; height: 260px; top: 8%; right: 8%; background: rgba(255,255,255,.04); }
.orb-2 { width: 220px; height: 220px; bottom: 12%; left: 10%; background: rgba(255,255,255,.025); }

.wrap { width: min(1180px, 92vw); margin: 28px auto 40px; }

.glass {
  background:
    linear-gradient(102deg, var(--surface-glow-cyan) 0%, var(--surface-glow-mint) 24%, rgba(8, 14, 20, 0) 58%),
    radial-gradient(120% 120% at 82% 92%, var(--surface-glow-blue) 0%, rgba(8, 14, 20, 0) 52%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
}
.glass-soft {
  background:
    linear-gradient(102deg, rgba(67, 149, 184, 0.15) 0%, rgba(56, 132, 108, 0.1) 28%, rgba(8, 14, 20, 0) 60%),
    radial-gradient(120% 120% at 82% 92%, rgba(35, 78, 137, 0.1) 0%, rgba(8, 14, 20, 0) 56%),
    rgba(6, 8, 10, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.topbar {
  width: min(1180px, 92vw);
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 40;
  overflow: visible;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: .6px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.brand-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 16px;
  color: var(--accent);
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(124,228,190,.45);
}
.brand-dot::before {
  content: '{//}';
}

.desktop-nav { display: flex; gap: 18px; align-items: center; }
.desktop-nav a,
.desktop-nav .services-trigger {
  color: #d3d7de;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: .9;
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.desktop-nav a:hover,
.desktop-nav a.is-active,
.desktop-nav .services-trigger:hover,
.desktop-nav .services-trigger.is-active,
.desktop-nav .services-dropdown[open] > .services-trigger {
  opacity: 1;
  background: rgba(255,255,255,.08);
}

.services-dropdown {
  position: relative;
}
.services-trigger {
  list-style: none;
}
.services-trigger::after {
  content: '▾';
  font-size: 11px;
  color: #a7b0bd;
  transform: translateY(-1px);
}
.services-dropdown[open] > .services-trigger::after {
  content: '▴';
}
.services-trigger::-webkit-details-marker {
  display: none;
}
.services-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 60;
  background: rgba(7, 9, 11, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.services-menu a {
  color: #d9dde4;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.services-menu a:hover,
.services-menu a.is-active {
  background: rgba(255,255,255,.08);
  color: #f3f6fb;
}

.controls { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 4px; }
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.lang-btn.is-active { background: rgba(255,255,255,.12); color: #f3f4f6; }
.lang-dropdown {
  position: relative;
  width: 80px;
}
.lang-trigger {
  list-style: none;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: #d7dbe3;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.lang-trigger::after {
  content: '▾';
  font-size: 11px;
  color: #a7b0bd;
}
.lang-dropdown[open] > .lang-trigger::after {
  content: '▴';
}
.lang-trigger::-webkit-details-marker {
  display: none;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 75;
  background: rgba(7, 9, 11, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lang-menu .lang-option {
  width: 100%;
  text-align: center;
  padding: 8px 10px;
}
.lang-dropdown[open] > .lang-trigger {
  background: rgba(255,255,255,.08);
}
.topbar .controls .btn-ghost {
  width: 162px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.btn-primary {
  color: #07120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
}
.btn-ghost { color: #e1e4ea; background: rgba(255,255,255,.02); }

.hero,
.page-hero {
  margin-top: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: stretch;
}
.kicker { color: #a8e8cd; margin: 0 0 10px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; margin-top: 14px; max-width: 720px; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-services-dropdown > summary {
  min-width: min(280px, 100%);
}
.hero-services-dropdown .services-menu {
  position: static;
  top: auto;
  left: auto;
  width: min(280px, 88vw);
  min-width: 0;
  margin-top: 10px;
  z-index: auto;
}

.hero-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hero-rotator {
  display: grid;
  gap: 0;
  min-height: 126px;
  transition: opacity .24s ease, transform .24s ease;
}
.hero-rotator-line {
  margin: 0;
  padding: 0 0 12px;
  color: #d6dce5;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.hero-rotator-line + .hero-rotator-line {
  margin-top: 10px;
}
.hero-rotator-line:last-child {
  margin-bottom: 2px;
}
.hero-rotator.is-switching {
  opacity: .45;
  transform: translateY(3px);
}
.hero-panel-actions {
  margin-top: 8px;
  padding-top: 2px;
  gap: 10px;
  flex-direction: column;
  flex-wrap: nowrap;
}
.hero-panel-actions > .btn,
.hero-panel-actions > .services-dropdown {
  width: 100%;
  flex: 0 0 auto;
}
.hero-panel-actions .btn {
  padding: 10px 14px;
  font-size: 15px;
}
.hero-panel-actions .services-trigger-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
}
.hero-panel-actions .hero-services-dropdown > summary {
  min-width: 0;
  width: 100%;
}
.hero-panel-actions .hero-services-dropdown .services-menu {
  width: 100%;
  margin-top: 8px;
}
.services-trigger-btn::after {
  margin-left: 2px;
  animation: services-arrow-pulse 3s ease-in-out infinite;
}
@keyframes services-arrow-pulse {
  0%,
  100% {
    transform: translateY(-1px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-trigger-btn::after {
    animation: none;
  }
}
.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.12);
  padding-bottom: 10px;
}
.panel-row strong { color: var(--text); text-align: right; }

.cards-grid,
.feature-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card,
.feature-card { padding: 20px; }
.card h3,
.feature-card h3 { margin: 0 0 8px; font-size: 20px; }
.card p,
.feature-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.service-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.service-item { padding: 20px; }
.service-item .badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #e9f7f0;
  background: rgba(124,228,190,.16);
  margin-bottom: 10px;
}
.service-item h3 { margin: 0 0 8px; font-size: 21px; }
.service-item p { margin: 0; color: var(--muted); line-height: 1.5; }

.tgads-plans {
  margin-top: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.tgads-plans-head {
  display: grid;
  gap: 10px;
  max-width: 840px;
}
.tgads-plans-head .lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}
.tgads-plans h1 {
  max-width: 880px;
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.05;
}
.tgads-plan-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tgads-plan-card {
  min-height: 390px;
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 10, 12, .96), rgba(0, 0, 0, .86)),
    radial-gradient(80% 55% at 50% 35%, rgba(124,228,190,.08), transparent 68%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 20px 52px rgba(0,0,0,.28);
}
.tgads-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 16%, transparent 84%, rgba(255,255,255,.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 58px);
  opacity: .18;
  pointer-events: none;
}
.tgads-plan-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: 34px;
  z-index: -1;
  border-radius: 50%;
  background: var(--plan-glow, rgba(124,228,190,.18));
  filter: blur(54px);
  opacity: .72;
}
.tgads-plan-eur { --plan-accent: #7ce4be; --plan-glow: rgba(82, 207, 160, .2); }
.tgads-plan-ton { --plan-accent: #2aa8ff; --plan-glow: rgba(42, 168, 255, .24); }
.tgads-plan-stars { --plan-accent: #ffd84a; --plan-glow: rgba(255, 216, 74, .24); }
.promo-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.promo-plan-card {
  min-height: 500px;
}
.promo-plan-dm { --plan-accent: #7ce4be; --plan-glow: rgba(82, 207, 160, .22); }
.promo-plan-invite { --plan-accent: #2aa8ff; --plan-glow: rgba(42, 168, 255, .22); }
.promo-plan-stories { --plan-accent: #b482ff; --plan-glow: rgba(180, 130, 255, .22); }
.promo-plan-neuro { --plan-accent: #ffd84a; --plan-glow: rgba(255, 216, 74, .22); }
.promo-plan-card .tgads-plan-media {
  height: 120px;
}
.promo-plan-card .tgads-plan-media img {
  object-position: center;
}
.promo-plan-card .tgads-plan-media span {
  max-width: calc(100% - 24px);
  white-space: normal;
  line-height: 1.15;
}
.target-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.target-plan-card {
  min-height: 420px;
}
.target-plan-meta { --plan-accent: #2aa8ff; --plan-glow: rgba(42, 168, 255, .22); }
.target-plan-instagram { --plan-accent: #ff6bb5; --plan-glow: rgba(255, 107, 181, .22); }
.target-plans .tgads-plans-head h1 {
  white-space: nowrap;
  font-size: clamp(30px, 3.1vw, 44px);
}
.target-plan-card .tgads-plan-media {
  height: 180px;
}
.target-plan-card .tgads-plan-media span {
  max-width: calc(100% - 24px);
  white-space: normal;
  line-height: 1.15;
}
@media (max-width: 1320px) {
  .promo-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .target-plans .tgads-plans-head h1 {
    white-space: normal;
  }
}
.tgads-plan-media {
  height: 132px;
  margin: 0 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.tgads-plan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tgads-plan-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(0,0,0,.5) 100%);
}
.tgads-plan-media span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--plan-accent) 55%, transparent);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(0,0,0,.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tgads-plan-card p {
  margin: 0 0 10px;
  padding: 0 0 10px 14px;
  color: #d4d8df;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.tgads-plan-card p::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--plan-accent);
  box-shadow: 0 0 14px var(--plan-accent);
}
.tgads-plan-card p:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.tgads-plan-card strong {
  color: #f6f8fb;
  font-weight: 800;
}
.tgads-plan-card p span {
  display: block;
  margin-top: 4px;
  color: rgba(212, 216, 223, .76);
  font-size: .94em;
}
.tgads-carousel-controls {
  display: none;
}
.tgads-carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #eaf2f7;
  background: rgba(255,255,255,.04);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.split {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.timeline, .stats, .text-block { padding: 24px; }
.timeline, .stats { height: 100%; }
.timeline h2, .stats h2, .text-block h2 { margin: 0 0 14px; font-size: 28px; }
.text-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.flow-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.flow-step {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8, 10, 14, 0.56);
}
.flow-step::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(124,228,190,.58);
}
.flow-step p {
  margin: 0;
  color: #d9dee6;
  font-size: 16px;
  line-height: 1.45;
}

.stat {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.stat span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Sora, sans-serif;
  color: #02141f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.stat p { margin: 0; color: var(--muted); }

.metrics-list {
  display: grid;
  gap: 6px;
}
.metric-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.metric-item:last-child {
  border-bottom: 0;
}
.metric-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 10px;
  font-family: Sora, sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #02141f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.metric-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.niches-section {
  margin-top: 16px;
  padding: 24px;
}
.niches-section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}
.niches-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.niche-card {
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(9, 12, 16, 0.78);
  color: #e7ebf2;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seo-home-section {
  margin-top: 16px;
  padding: 24px;
}
.seo-home-section .kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.seo-home-head {
  max-width: 980px;
}
.seo-home-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
}
.seo-home-head p {
  margin: 12px 0 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.seo-home-grid,
.seo-faq-grid {
  display: grid;
  gap: 12px;
}
.seo-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.seo-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.seo-home-grid article,
.seo-faq-grid article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(9, 12, 16, 0.72);
}
.seo-home-grid h3,
.seo-faq-grid h3 {
  margin: 0 0 8px;
  color: #f4f7fb;
  font-size: 18px;
  line-height: 1.25;
}
.seo-home-grid p,
.seo-faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.lead-box {
  margin-top: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.lead-box h2 { margin: 0 0 10px; font-size: 30px; }
.lead-box p { margin: 0; color: var(--muted); }
.lead-form { display: grid; gap: 10px; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(6, 8, 10, 0.74);
  color: var(--text);
  outline: none;
  font: inherit;
}
.lead-form textarea {
  min-height: 100px;
  resize: vertical;
}
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(124,228,190,.65);
  box-shadow: 0 0 0 3px rgba(124,228,190,.14);
}

.blog-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.blog-card {
  padding: 22px;
  text-decoration: none;
  color: var(--text);
}
.blog-card .chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #e9f7f0;
  background: rgba(124,228,190,.16);
  margin-bottom: 12px;
}
.blog-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.blog-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.blog-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.blog-links a {
  color: #c8ebdb;
  text-decoration: none;
  border-bottom: 1px dashed rgba(180, 219, 201, .35);
  padding-bottom: 6px;
}

.forum-shell {
  padding: 0;
  overflow: hidden;
}
.forum-board {
  min-height: 640px;
  background: radial-gradient(circle at 78% 0%, rgba(124, 128, 255, .34), transparent 34%), linear-gradient(135deg, rgba(120, 107, 234, .95) 0 74px, rgba(47, 55, 69, .98) 74px 100%);
}
.forum-board-top {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}
.forum-board-top > strong {
  color: #fff;
  font-size: 22px;
  letter-spacing: -.02em;
}
.forum-rules {
  position: relative;
  justify-self: center;
  z-index: 240;
}
.forum-rules[open] {
  z-index: 320;
}
.forum-rules summary,
.forum-auth button,
.forum-topic-form button,
.forum-chat-form button,
.forum-modal-card button:not(.forum-modal-close),
.forum-moderation-actions button {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 16, 27, .76);
  color: #eef4ff;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.forum-rules summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  color: rgba(238, 244, 255, .76);
}
.forum-rules summary::-webkit-details-marker { display: none; }
.forum-rules summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.forum-rules-note {
  position: absolute;
  z-index: 330;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  width: min(520px, 86vw);
  transform: none;
  padding: 16px;
  border: 1px solid rgba(124, 228, 190, .24);
  border-radius: 12px;
  background: rgba(9, 13, 20, .96);
  color: var(--muted);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}
.forum-auth {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.forum-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.forum-user {
  display: none;
}
.forum-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, .78fr) minmax(300px, 420px);
  min-height: 566px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.forum-topics,
.forum-thread,
.forum-chat {
  background: rgba(38, 46, 59, .9);
}
.forum-topics {
  padding: 18px 0;
}
.forum-topic {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.forum-topic.is-active,
.forum-topic:hover {
  background: rgba(124, 228, 190, .08);
}
.forum-topic-icon {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(214, 225, 242, .68);
  border-radius: 999px;
  position: relative;
}
.forum-topic-icon::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 2px;
  width: 14px;
  height: 9px;
  border: 2px solid rgba(214, 225, 242, .68);
  border-left: 0;
  border-top-right-radius: 10px;
}
.forum-topic h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}
.forum-topic p {
  margin: 0;
  color: rgba(238, 244, 255, .78);
  font-size: 15px;
  line-height: 1.35;
}
.forum-topic-stats {
  min-width: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: rgba(214, 225, 242, .92);
  text-align: center;
}
.forum-topic-stats small {
  display: block;
  color: rgba(214, 225, 242, .58);
  font-size: 11px;
  font-weight: 800;
}
.forum-thread {
  border-left: 1px solid rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding: 18px;
}
.forum-thread-head span {
  color: #8fa0b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.forum-thread-head h2 {
  margin: 4px 0 14px;
  color: #fff;
  font-size: 24px;
}
.forum-posts,
.forum-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  scrollbar-width: thin;
}
.forum-posts {
  height: 346px;
  padding-right: 4px;
}
.forum-post,
.forum-chat-message,
.forum-pending-item {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 13, 20, .48);
  border-radius: 12px;
  padding: 12px;
}
.forum-post strong,
.forum-chat-message strong {
  color: #fff;
  font-size: 14px;
}
.forum-post p,
.forum-chat-message p,
.forum-pending-item p {
  margin: 6px 0 0;
  color: rgba(238, 244, 255, .78);
  line-height: 1.45;
}
.forum-empty {
  color: rgba(238, 244, 255, .58);
}
.forum-topic-form,
.forum-chat-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.forum-topic-form textarea,
.forum-chat-form input,
.forum-modal-card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(4, 7, 11, .76);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
.forum-topic-form textarea {
  min-height: 96px;
  resize: vertical;
}
.forum-chat {
  padding: 16px;
}
.forum-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}
.forum-chat-head b {
  background: #ff3150;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}
.forum-chat-messages {
  height: 434px;
}
.forum-chat-message {
  position: relative;
  background: rgba(22, 39, 58, .88);
}
.forum-chat-delete,
.forum-post-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 69, 96, .16);
  color: #fff;
  cursor: pointer;
}
.forum-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(0, 0, 0, .66);
}
.forum-modal[hidden] { display: none; }
.forum-modal-card {
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  position: relative;
  overflow: auto;
  border: 1px solid rgba(124, 228, 190, .22);
  border-radius: 18px;
  background: #080d14;
  padding: 24px;
  box-shadow: 0 24px 110px rgba(0, 0, 0, .6);
}
.forum-modal-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
}
.forum-modal-card p {
  color: var(--muted);
  line-height: 1.5;
}
.forum-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.forum-credentials {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(124, 228, 190, .08);
  color: #fff;
}
.forum-login-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.forum-moderation-list {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
}
.forum-moderation-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.forum-moderation-actions [data-forum-publish] { background: rgba(124, 228, 190, .18); }
.forum-moderation-actions [data-forum-reject] { background: rgba(255, 69, 96, .18); }

@media (max-width: 1180px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .forum-board-top {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .forum-rules,
  .forum-auth {
    justify-self: stretch;
  }
  .forum-auth {
    justify-content: flex-start;
  }
  .forum-thread {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .forum-posts,
  .forum-chat-messages {
    height: auto;
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .forum-board {
    min-height: 0;
  }
  .forum-topic {
    grid-template-columns: 32px 1fr;
  }
  .forum-topic-stats {
    grid-column: 2;
    justify-self: start;
  }
  .forum-board-top > strong {
    font-size: 20px;
  }
  .forum-auth button,
  .forum-rules summary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .forum-modal-card {
    padding: 20px;
  }
}

.forum-shell {
  border-color: rgba(124, 228, 190, .16);
  background:
    radial-gradient(circle at 8% 18%, rgba(124, 228, 190, .12), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(42, 168, 255, .11), transparent 34%),
    rgba(5, 8, 12, .92);
}
.forum-board {
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .16), transparent 22%),
    linear-gradient(90deg, rgba(9, 18, 24, .96), rgba(8, 10, 16, .98));
}
.forum-board-top {
  min-height: 86px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(124, 228, 190, .13);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(124, 228, 190, .12), transparent 28%),
    rgba(6, 10, 15, .58);
  position: relative;
  z-index: 220;
}
.forum-board-top > strong,
.forum-brand {
  font-size: 23px;
  text-shadow: 0 0 24px rgba(124, 228, 190, .22);
}
.forum-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  line-height: 1.1;
}
.forum-brand .brand-dot {
  min-width: 34px;
  height: 20px;
  font-size: 17px;
}
.forum-board-nav {
  justify-self: end;
  transform: translateX(28px);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 230;
}
.forum-ads-trigger {
  list-style: none;
}
.forum-ads-trigger::-webkit-details-marker {
  display: none;
}
.forum-ads-trigger,
.forum-rules summary,
.forum-auth .lang-trigger,
.forum-auth button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  color: rgba(238, 244, 255, .86);
  font-weight: 800;
  text-decoration: none;
  background: rgba(14, 22, 32, .9);
  border-color: rgba(124, 228, 190, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.forum-ads-trigger {
  color: #f4fbff;
  background: linear-gradient(135deg, rgba(42, 168, 255, .98), rgba(20, 89, 214, .94));
  border-color: rgba(94, 190, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 14px 34px rgba(42, 168, 255, .2);
}
.forum-auth button[data-forum-login] {
  color: #071015;
  background: linear-gradient(135deg, #ffe27a, #f6b936);
  border-color: rgba(255, 226, 122, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 12px 28px rgba(246, 185, 54, .2);
}
.forum-auth button[data-forum-login]:hover {
  background: linear-gradient(135deg, #fff08f, #ffc54a);
  border-color: rgba(255, 239, 143, .92);
}
.forum-ads[open] > .forum-ads-trigger,
.forum-ads-trigger:hover {
  background: linear-gradient(135deg, rgba(74, 188, 255, 1), rgba(18, 104, 234, .98));
  border-color: rgba(130, 210, 255, .7);
}
.forum-ads-trigger::after {
  content: "";
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
}
.forum-ads[open] > .forum-ads-trigger::after {
  transform: translateY(-3px) rotate(180deg);
}
.forum-ads-menu {
  min-width: 290px;
  padding: 18px;
  gap: 12px;
  border-radius: 18px;
}
.forum-ads-menu a {
  font-size: 17px;
  padding: 12px 14px;
}
.forum-lang {
  flex: 0 0 auto;
  position: relative;
  z-index: 370;
}
.forum-lang[open] {
  z-index: 520;
}
.forum-auth .lang-trigger {
  min-width: 64px;
  justify-content: center;
}
.forum-auth .lang-menu {
  right: 0;
  left: auto;
  z-index: 530;
}
.forum-auth [hidden] {
  display: none !important;
}
body:has(.forum-shell) .app-bottom-nav {
  display: none !important;
}
.forum-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .46fr);
  gap: 18px;
  min-height: 0;
  padding: 18px;
  border-top: 0;
  align-items: start;
}
.forum-shell.is-thread-open .forum-layout {
  grid-template-columns: 1fr;
}
.forum-shell.is-thread-open .forum-topics,
.forum-shell.is-thread-open .forum-chat {
  display: none;
}
.forum-topics,
.forum-thread,
.forum-chat {
  min-width: 0;
  border: 1px solid rgba(124, 228, 190, .12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .08), transparent 42%),
    rgba(8, 13, 19, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.forum-topics {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}
.forum-topic {
  grid-template-columns: 58px minmax(0, 1fr) 124px;
  gap: 16px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(12, 18, 27, .6);
}
.forum-topic-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(124, 228, 190, .38);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 28%),
    linear-gradient(135deg, rgba(124, 228, 190, .84), rgba(42, 168, 255, .5)),
    rgba(9, 18, 24, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -14px 26px rgba(1, 5, 10, .22),
    0 16px 34px rgba(124, 228, 190, .18);
}
.forum-topic-icon::before {
  content: none;
}
.forum-topic-icon::after {
  content: none;
}
.forum-topic-icon span {
  position: relative;
  z-index: 1;
  color: #06110e;
  display: grid;
  place-items: center;
  font-size: 0;
  font-weight: 900;
  letter-spacing: .02em;
}
.forum-topic-icon-telegram span::before {
  content: "";
  width: 25px;
  height: 20px;
  background: rgba(6, 17, 14, .78);
  clip-path: polygon(0 43%, 100% 0, 73% 100%, 50% 62%, 29% 81%, 34% 58%);
  transform: rotate(-8deg);
}
.forum-topic-icon-meta {
  border-color: rgba(42, 168, 255, .34);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .26), transparent 28%),
    linear-gradient(135deg, rgba(42, 168, 255, .95), rgba(119, 91, 255, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -14px 26px rgba(1, 5, 10, .22), 0 16px 34px rgba(42, 168, 255, .18);
}
.forum-topic-icon-meta span::before {
  content: "∞";
  color: rgba(6, 17, 14, .78);
  font-size: 31px;
  font-weight: 760;
  line-height: .8;
  transform: translateY(-1px);
}
.forum-topic-icon-bots {
  border-color: rgba(168, 142, 255, .34);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .26), transparent 28%),
    linear-gradient(135deg, rgba(168, 142, 255, .95), rgba(42, 168, 255, .42));
}
.forum-topic-icon-bots span::before {
  content: "</>";
  color: #06110e;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.08em;
}
.forum-topic-icon-qa {
  border-color: rgba(255, 206, 71, .34);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .26), transparent 28%),
    linear-gradient(135deg, rgba(255, 206, 71, .95), rgba(124, 228, 190, .45));
}
.forum-topic-icon-qa span::before {
  content: "???";
  color: #06110e;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.1em;
}
.forum-topic-icon-other {
  border-color: rgba(255, 255, 255, .22);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .3), transparent 28%),
    linear-gradient(135deg, rgba(226, 235, 248, .92), rgba(124, 228, 190, .4));
}
.forum-topic-icon-other span::before {
  content: "+";
  color: #06110e;
  font-size: 30px;
  font-weight: 950;
  line-height: .8;
}
.forum-topic.is-active,
.forum-topic:hover {
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .16), transparent 58%),
    rgba(13, 23, 31, .82);
  border-color: rgba(124, 228, 190, .26);
}
.forum-topic h3 {
  font-size: 18px;
  max-width: none;
}
.forum-topic p {
  max-width: none;
  color: rgba(226, 235, 248, .76);
}
.forum-topic-stats {
  min-width: 124px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .09);
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}
.forum-topic-stats span {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}
.forum-topic-stats small {
  font-size: 11px;
  white-space: nowrap;
  color: rgba(226, 235, 248, .58);
}
.forum-topic-stats b {
  color: #f6fbff;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}
.forum-thread,
.forum-chat {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.forum-thread {
  display: none;
  border-left: 1px solid rgba(124, 228, 190, .12);
  border-right: 1px solid rgba(124, 228, 190, .12);
}
.forum-shell.is-thread-open .forum-thread {
  display: flex;
  height: clamp(620px, calc(100dvh - 220px), 860px);
  max-height: calc(100dvh - 150px);
  min-height: 0;
}
.forum-thread-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.forum-back {
  width: max-content;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(124, 228, 190, .22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .13), transparent 68%),
    rgba(9, 17, 25, .86);
  color: #eaf3fb;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.forum-back::before {
  content: "<";
  margin-right: 8px;
  color: #7ce4be;
}
.forum-back:hover {
  border-color: rgba(124, 228, 190, .38);
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .2), transparent 68%),
    rgba(10, 22, 30, .92);
}
.forum-thread-head span {
  color: rgba(124, 228, 190, .74);
}
.forum-thread-head h2 {
  font-size: 26px;
  letter-spacing: -.03em;
}
.forum-posts,
.forum-chat-messages {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.forum-post,
.forum-chat-message {
  border-color: rgba(124, 228, 190, .1);
  background: rgba(8, 13, 20, .72);
}
.forum-topic-form,
.forum-chat-form {
  margin-top: auto;
  padding-top: 16px;
}
.forum-topic-form textarea,
.forum-chat-form input,
.forum-modal-card input {
  border-color: rgba(124, 228, 190, .16);
  background: rgba(2, 5, 9, .82);
}
.forum-topic-form button,
.forum-chat-form button,
.forum-modal-card button:not(.forum-modal-close),
.forum-moderation-actions button {
  background: linear-gradient(135deg, rgba(124, 228, 190, .9), rgba(68, 197, 149, .88));
  border-color: rgba(124, 228, 190, .36);
  color: #04100c;
}
.forum-chat {
  position: relative;
  z-index: 1;
  max-width: 100%;
  align-self: stretch;
  height: clamp(520px, calc(100dvh - 220px), 740px);
  max-height: calc(100dvh - 160px);
  min-height: 0;
  overflow: hidden;
  border-color: rgba(42, 168, 255, .28);
  background:
    radial-gradient(circle at 80% 8%, rgba(42, 168, 255, .18), transparent 36%),
    linear-gradient(180deg, rgba(10, 25, 39, .96), rgba(5, 9, 15, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 0 1px rgba(42, 168, 255, .08),
    0 20px 80px rgba(42, 168, 255, .08);
}
.forum-chat::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(42, 168, 255, .08);
  border-radius: 14px;
}
.forum-chat-head {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42, 168, 255, .18);
}
.forum-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.forum-chat-head span {
  color: #fff;
  letter-spacing: .02em;
}
.forum-chat-head b {
  animation: forum-live-blink 2s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(255, 49, 80, .42);
}
@keyframes forum-live-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 22px rgba(255, 49, 80, .42);
  }
  50% {
    opacity: .45;
    transform: scale(.94);
    box-shadow: 0 0 6px rgba(255, 49, 80, .18);
  }
}
.forum-chat-message {
  background:
    linear-gradient(135deg, rgba(42, 168, 255, .12), transparent 54%),
    rgba(9, 22, 35, .86);
  border-color: rgba(42, 168, 255, .14);
}
.forum-post {
  position: relative;
}
.forum-post-delete {
  background: rgba(255, 69, 96, .18);
}
.forum-chat-form input {
  border-color: rgba(42, 168, 255, .18);
}
.forum-auth-hint {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 228, 190, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .11), transparent 70%),
    rgba(8, 13, 20, .76);
  color: rgba(226, 235, 248, .82);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .forum-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .forum-board-top {
    grid-template-columns: 1fr auto;
    padding: 16px;
  }
  .forum-board-top > strong {
    grid-column: 1 / -1;
  }
  .forum-board-nav {
    justify-self: start;
  }
  .forum-topic h3,
  .forum-topic p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .forum-layout {
    padding: 10px;
  }
  .forum-board-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 16px;
  }
  .forum-board-top > strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 26px;
  }
  .forum-board-nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: auto;
    transform: none;
    max-width: 100%;
    gap: 7px;
  }
  .forum-ads-trigger,
  .forum-rules summary,
  .forum-auth .lang-trigger {
    min-height: 36px;
    padding: 0 9px;
    font-size: 10px;
    white-space: nowrap;
  }
  .forum-rules summary {
    max-width: 166px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .forum-rules-note {
    top: calc(100% + 10px);
    left: 0;
    width: min(300px, calc(100vw - 52px));
    max-height: 42vh;
    overflow: auto;
    transform: none;
    padding: 14px;
    font-size: 14px;
    z-index: 90;
  }
  .forum-ads-menu {
    left: 0;
    min-width: min(270px, calc(100vw - 52px));
    max-width: calc(100vw - 52px);
    padding: 12px;
  }
  .forum-ads-menu a {
    font-size: 14px;
    padding: 10px;
  }
  .forum-auth {
    display: contents;
  }
  .forum-lang {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    z-index: 520;
  }
  .forum-auth .lang-menu {
    z-index: 530;
  }
  .forum-auth-actions {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    justify-self: end;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 360;
  }
  .forum-auth button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
    position: relative;
    z-index: 361;
  }
  .forum-topic {
    grid-template-columns: 50px minmax(0, 1fr) 76px;
    gap: 10px;
    min-height: 96px;
    padding: 12px;
  }
  .forum-topic-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }
  .forum-topic-icon span {
    font-size: 0;
  }
  .forum-topic-stats {
    grid-column: auto;
    min-width: 76px;
    align-self: stretch;
    border-left: 1px solid rgba(255, 255, 255, .09);
    border-top: 0;
    padding-top: 0;
    padding-left: 8px;
  }
  .forum-topic-stats small {
    font-size: 9px;
  }
  .forum-topic-stats b {
    font-size: 24px;
  }
  .forum-topic h3 {
    font-size: 18px;
  }
  .forum-topic p {
    font-size: 15px;
    line-height: 1.32;
  }
  .forum-modal {
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .forum-modal-card {
    width: calc(100vw - 28px);
    max-width: 560px;
    max-height: min(76dvh, calc(100dvh - 36px));
    overflow: auto;
    padding: 20px;
  }
  .forum-modal-card h3 {
    font-size: 24px;
  }
  .forum-thread,
  .forum-chat {
    padding: 18px;
  }
  .forum-shell.is-thread-open .forum-thread {
    height: min(680px, calc(100dvh - 150px));
    max-height: calc(100dvh - 130px);
    min-height: 420px;
  }
  .forum-chat {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    height: min(620px, calc(100dvh - 150px));
    max-height: calc(100dvh - 130px);
    min-height: 420px;
  }
  .forum-chat-messages {
    min-height: 0;
  }
}

.app-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, 94vw);
  padding: 6px;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  z-index: 50;
  align-items: stretch;
}
.app-bottom-nav > a,
.app-bottom-nav .tab-services-dropdown {
  min-width: 0;
}
.app-bottom-nav > a,
.app-bottom-nav .tab-services-trigger {
  text-decoration: none;
  color: #cfd3dc;
  display: grid;
  grid-template-rows: 22px 18px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  min-height: 50px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.app-bottom-nav > a span:first-child,
.app-bottom-nav .tab-services-trigger span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  font-size: 20px;
  line-height: 22px;
}
.app-bottom-nav .nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  align-self: center;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(124, 228, 190, .14));
}
.app-bottom-nav a[data-nav="services"] .nav-icon,
.app-bottom-nav .tab-services-trigger .nav-icon {
  fill: currentColor;
  stroke-width: 1.7;
}
.app-bottom-nav a[data-nav="ai"] .nav-icon {
  stroke-width: 1.9;
}
.app-bottom-nav > a span:last-child,
.app-bottom-nav .tab-services-trigger span:last-child {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  line-height: 18px;
}
.app-bottom-nav > a.is-active,
.app-bottom-nav .tab-services-trigger.is-active,
.app-bottom-nav .tab-services-dropdown[open] > .tab-services-trigger {
  background: rgba(255,255,255,.12);
  color: #f5f7fa;
}
.app-bottom-nav .tab-services-trigger::after {
  content: '';
}
.app-bottom-nav .tab-services-dropdown {
  position: relative;
  min-width: 0;
  height: 100%;
}
.app-bottom-nav .tab-services-trigger::-webkit-details-marker {
  display: none;
}
.tab-services-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  width: min(240px, 72vw);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 70;
  background: rgba(7, 9, 11, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tab-services-menu a {
  text-decoration: none;
  color: #d8dde6;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.tab-services-menu a span:first-child {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: #78e0bc;
  text-shadow: 0 0 7px rgba(124,228,190,.35);
}
.tab-services-menu a .tg-mark svg {
  width: 18px;
  height: 18px;
  fill: #78e0bc;
  filter: drop-shadow(0 0 6px rgba(124,228,190,.32));
}
.tab-services-menu a[data-nav="promo"] span:first-child {
  font-size: 16px;
}
.tab-services-menu a[data-nav="target"] span:first-child {
  font-size: 18px;
}
.app-bottom-nav .tab-services-dropdown[open] .tab-services-menu {
  animation: tab-services-open .24s ease;
  transform-origin: 50% 100%;
}
@keyframes tab-services-open {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-bottom-nav .tab-services-dropdown[open] .tab-services-menu {
    animation: none;
  }
}
.tab-services-menu a:hover,
.tab-services-menu a.is-active {
  background: rgba(255,255,255,.1);
  color: #f4f7fc;
}

.site-footer {
  margin-top: 16px;
  margin-bottom: 96px;
}
.site-footer-inner {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.site-footer-follow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-follow-label {
  color: #cdd4df;
  font-size: 14px;
  font-weight: 600;
}
.site-social-link {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce2ea;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.site-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.site-social-link:hover {
  color: #f6f8fc;
  border-color: rgba(124,228,190,.55);
  background: rgba(124,228,190,.14);
}
.site-footer-rights {
  text-align: center;
  color: #bcc3cf;
  font-size: 14px;
  font-weight: 600;
}
.site-footer-top {
  justify-self: end;
  color: #e4e8ef;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  animation: footer-top-pulse 3.8s ease-in-out infinite;
}
.site-footer-top:hover {
  border-color: rgba(124,228,190,.55);
  background: rgba(124,228,190,.14);
}
.forum-footer-bar {
  grid-template-columns: 1fr auto 1fr;
}
.forum-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.forum-footer-link,
.site-footer-privacy {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(124, 228, 190, .18);
  border-radius: 12px;
  background: rgba(12, 18, 27, .72);
  color: #e8eef7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.forum-footer-link:hover,
.site-footer-privacy:hover {
  border-color: rgba(124, 228, 190, .42);
  background: rgba(124, 228, 190, .12);
}
.forum-footer-link[aria-disabled="true"] {
  color: rgba(232, 238, 247, .62);
  cursor: default;
}
.forum-footer-top-mobile {
  display: none;
}
.site-footer-privacy {
  justify-self: center;
  color: #cdd4df;
}
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
}
.privacy-modal[hidden] {
  display: none;
}
.privacy-modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(124, 228, 190, .18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .1), transparent 42%),
    rgba(7, 11, 17, .98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}
.privacy-modal-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 26px;
}
.privacy-modal-card p {
  margin: 0 0 12px;
  color: rgba(226, 235, 248, .82);
  line-height: 1.55;
}
.privacy-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(124, 228, 190, .16), transparent 34%),
    rgba(0, 0, 0, .72);
}
.ai-modal[hidden],
.ai-loading[hidden],
.ai-content[hidden],
.ai-panel[hidden] {
  display: none;
}
.ai-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(124, 228, 190, .2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .12), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(42, 168, 255, .13), transparent 36%),
    rgba(7, 11, 17, .98);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .54);
}
.ai-loading,
.ai-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.ai-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(124, 228, 190, .22);
  color: var(--accent);
  font-family: "Sora", sans-serif;
  font-size: 26px;
  font-weight: 900;
  background: rgba(12, 18, 27, .78);
  box-shadow: 0 0 42px rgba(124, 228, 190, .18);
}
.ai-loader-ring {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 3px solid rgba(124, 228, 190, .16);
  border-top-color: var(--accent);
  animation: ai-spin 1s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}
.ai-content > p,
.ai-loading p,
.ai-note {
  margin: 0;
  color: rgba(226, 235, 248, .72);
}
.ai-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
}
.ai-wide {
  width: 100%;
  min-height: 56px;
}
.ai-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(226, 235, 248, .7);
  font-weight: 800;
}
.ai-divider span {
  height: 1px;
  background: rgba(255,255,255,.12);
}
.ai-form input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(124, 228, 190, .18);
  background: rgba(0,0,0,.26);
  color: #fff;
  padding: 0 16px;
  font: inherit;
}
.ai-panel h3 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 24px;
}
.ai-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-plans article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(124, 228, 190, .18);
  background: rgba(12, 18, 27, .74);
  text-align: left;
}
.ai-plans span {
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}
.ai-plans h4 {
  margin: 8px 0;
  color: #fff;
  font-size: 20px;
}
.ai-plans p {
  min-height: 76px;
  color: rgba(226, 235, 248, .72);
}
@keyframes footer-top-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(124,228,190,0);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgba(124,228,190,0.08);
  }
}

.ai-page .topbar,
.ai-page .app-bottom-nav,
.ai-page .site-footer {
  display: none;
}
.ai-auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .34);
}
.ai-auth-screen[hidden],
.ai-tool-shell[hidden],
.ai-app-shell[hidden] {
  display: none;
}
.ai-auth-card {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(62px, 5vw, 72px) clamp(24px, 3.8vw, 42px) clamp(24px, 3.8vw, 42px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(124, 228, 190, .08), transparent 38%),
    rgba(28, 28, 28, .96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
  text-align: center;
}
.ai-auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}
.ai-auth-lang {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}
.ai-auth-lang button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.62);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.ai-auth-lang button.is-active {
  background: rgba(124, 228, 190, .16);
  color: #fff;
}
.ai-auth-card h1 {
  max-width: 420px;
  margin: 10px auto 0;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}
.ai-auth-card p {
  max-width: 400px;
  margin: 0 auto;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.45;
}
.ai-auth-form {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin: 4px auto 0;
  transform-origin: center top;
}
.ai-auth-form.is-switching {
  animation: ai-auth-switch .42s cubic-bezier(.2, .9, .2, 1);
}
@keyframes ai-auth-switch {
  0% {
    opacity: .35;
    transform: translateY(10px) scale(.98) rotateX(8deg);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01) rotateX(0);
    filter: blur(0);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.ai-register-fields {
  display: grid;
  gap: 10px;
  animation: ai-register-fields .34s ease both;
}
.ai-register-fields[hidden] {
  display: none;
}
.ai-auth-form.is-reset-mode .ai-register-fields {
  display: grid;
}
.ai-auth-form.is-recovery-mode input[name="password"] {
  display: none;
}
.ai-auth-form.is-reset-mode input[name="email"],
.ai-auth-form.is-reset-mode input[name="birthDate"],
.ai-auth-form.is-reset-mode .ai-robot-check {
  display: none;
}
.ai-auth-form.is-reset-mode .ai-register-fields input[name="passwordConfirm"] {
  display: block;
}
@keyframes ai-register-fields {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-auth-form input,
.ai-auth-form button {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  font: inherit;
  font-size: 16px;
}
.ai-auth-form input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.ai-auth-form input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  color: rgba(255,255,255,.88);
  line-height: 1;
}
.ai-auth-form input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}
.ai-auth-form input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  opacity: .72;
  filter: invert(1);
}
.ai-auth-form input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.ai-robot-check {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(124, 228, 190, .24);
  border-radius: 18px;
  background: rgba(124, 228, 190, .06);
  color: #fff;
  cursor: pointer;
}
.ai-robot-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
.ai-robot-check span {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 800;
}
.ai-auth-form button {
  min-height: 56px;
  margin-top: 4px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.ai-auth-switch {
  width: 100%;
  max-width: 420px;
  min-height: 50px;
  margin: 2px auto 0;
  border: 1px solid rgba(124, 228, 190, .28);
  border-radius: 999px;
  background: rgba(124, 228, 190, .08);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.ai-auth-switch:hover {
  background: rgba(124, 228, 190, .14);
}
.ai-auth-switch[hidden] {
  display: none;
}
.ai-auth-forgot {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.68);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.ai-auth-forgot:hover {
  color: #fff;
}
.ai-auth-forgot[hidden] {
  display: none;
}
.ai-auth-error {
  color: #ffb4b4;
  font-size: 14px;
  line-height: 1.35;
}
.ai-auth-error.is-success {
  color: var(--accent);
}
.ai-auth-error[hidden] {
  display: none;
}
.ai-verify-note {
  padding: 16px 20px;
  color: rgba(232, 238, 247, .78);
  font-size: 15px;
  font-weight: 750;
}
.ai-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.ai-hero-actions span {
  max-width: 260px;
  overflow: hidden;
  color: rgba(232, 238, 247, .7);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #121214;
}
.ai-sidebar {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #18181b;
}
.ai-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-sidebar-top strong {
  color: #fff;
  font-family: Sora, sans-serif;
  font-size: 17px;
}
.ai-sidebar-top button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ai-sidebar-top button:hover {
  background: rgba(255,255,255,.08);
}
.ai-sidebar-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 35;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(35,35,38,.92);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.ai-app-shell.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.ai-app-shell.is-sidebar-collapsed .ai-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.ai-app-shell.is-sidebar-collapsed .ai-sidebar-toggle {
  display: grid;
}
.ai-side-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.ai-side-nav > button,
.ai-logout {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.ai-side-nav > button.is-active,
.ai-side-nav > button:hover,
.ai-logout:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.ai-side-panel {
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  animation: ai-side-panel-in .22s ease both;
}
.ai-side-panel[hidden] {
  display: none;
}
@keyframes ai-side-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-side-panel p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}
.ai-side-panel dl {
  display: grid;
  margin: 0;
}
.ai-side-panel dl div {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ai-side-panel dt {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
}
.ai-side-panel dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.ai-side-panel .ai-mail-note {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.45;
}
.ai-side-panel small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.ai-profile-action {
  width: fit-content;
  min-height: 34px;
  justify-self: start;
  padding: 0 14px;
  border: 1px solid rgba(124, 228, 190, .34);
  border-radius: 999px;
  background: rgba(124, 228, 190, .1);
  color: #bdf9e3;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(124, 228, 190, .12);
  cursor: pointer;
}
.ai-profile-action:hover {
  background: rgba(124, 228, 190, .18);
  box-shadow: 0 0 22px rgba(124, 228, 190, .2);
}
.ai-plan-list {
  display: grid;
  gap: 10px;
}
.ai-plan-card {
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.ai-plan-card.is-current {
  border-color: rgba(124, 228, 190, .18);
  background: rgba(124, 228, 190, .07);
}
.ai-plan-card span {
  color: rgba(124, 228, 190, .88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ai-plan-card strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.ai-plan-card button {
  min-height: 36px;
  border: 1px solid rgba(124, 228, 190, .24);
  border-radius: 11px;
  background: rgba(124, 228, 190, .1);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.ai-plan-card button:hover {
  background: rgba(124, 228, 190, .16);
}
.ai-plan-card button:disabled {
  cursor: default;
  opacity: .55;
}
.ai-payment-options {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  animation: ai-side-panel-in .22s ease both;
}
.ai-payment-options[hidden] {
  display: none;
}
.ai-payment-options button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-align: left;
}
.ai-payment-options button span {
  color: #7ce4be;
  font-size: 18px;
  font-weight: 900;
}
.ai-payment-options button b {
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-payment-options button small {
  grid-column: 2;
  margin-top: -6px;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 800;
  text-transform: lowercase;
}
.ai-payment-options button:disabled {
  opacity: .6;
}
.ai-pay-logo {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
  border: 2px solid #7ce4be;
  border-radius: 5px;
  color: #7ce4be !important;
  text-shadow: 0 0 16px rgba(124, 228, 190, .2);
  box-shadow: 0 0 16px rgba(124, 228, 190, .16), inset 0 0 0 1px rgba(124, 228, 190, .1);
}
.ai-pay-logo::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(124, 228, 190, .78);
}
.ai-pay-logo::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(124, 228, 190, .72);
}
.ai-settings-row {
  display: grid;
  gap: 10px;
}
.ai-settings-row > span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 850;
}
.ai-settings-lang {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.ai-settings-lang button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.ai-settings-lang button.is-active,
.ai-settings-lang button:hover {
  background: rgba(124, 228, 190, .14);
  color: #fff;
}
.ai-logout {
  margin-top: auto;
  width: 100%;
}
.ai-chat-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.ai-chat-center {
  width: min(880px, 100%);
  display: grid;
  gap: 28px;
}
.ai-chat-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.ai-chat-title span {
  color: #7ce4be;
  font-family: Sora, sans-serif;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(124, 228, 190, .45);
}
.ai-chat-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}
.ai-chat-tabs {
  width: min(620px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.ai-chat-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.ai-chat-tabs button.is-active {
  background: rgba(91, 129, 214, .22);
  color: #7fa4ff;
  box-shadow: inset 0 0 0 1px rgba(111,151,255,.55);
}
.ai-chat-form {
  min-height: 150px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: #2b2b2e;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ai-chat-form textarea {
  width: 100%;
  min-height: 58px;
  resize: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  outline: none;
}
.ai-chat-form textarea::placeholder {
  color: rgba(255,255,255,.38);
}
.ai-chat-form.is-loading {
  border-color: rgba(124, 228, 190, .18);
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 28px rgba(124, 228, 190, .08);
}
.ai-chat-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ai-chat-tools button:hover {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.04);
}
.ai-chat-tools button.is-active {
  border-color: rgba(124, 228, 190, .48);
  background: rgba(124, 228, 190, .12);
  color: #eafff7;
  box-shadow: inset 0 0 0 1px rgba(124, 228, 190, .16), 0 0 18px rgba(124, 228, 190, .08);
}
.ai-chat-tools button.is-active:first-child {
  transform: translateY(-1px);
}
.ai-chat-tools button.is-active:first-child::first-letter {
  color: #7ce4be;
}
.ai-chat-tools .ai-send {
  width: 44px;
  min-width: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(124, 228, 190, .34);
  background: #7ce4be;
  color: #07110d;
  font-size: 24px;
  box-shadow: 0 0 18px rgba(124, 228, 190, .28);
}
.ai-chat-tools .ai-send:disabled {
  cursor: wait;
  opacity: .7;
}
.ai-chat-output {
  display: grid;
  gap: 12px;
}
.ai-message {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  line-height: 1.45;
}
.ai-message-user {
  justify-self: end;
  background: rgba(111,151,255,.22);
}
.ai-message-bot {
  justify-self: start;
  background: rgba(255,255,255,.08);
}
.ai-message-loading p::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: ai-loading-dots 1s steps(4, end) infinite;
}
.ai-message-error {
  border: 1px solid rgba(255, 120, 120, .24);
  background: rgba(255, 90, 90, .08);
}
.ai-message-error p {
  color: #ffc6c6;
}
@keyframes ai-loading-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}
.ai-message p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
}
.ai-message-paywall {
  border: 1px solid rgba(124, 228, 190, .18);
  box-shadow: 0 0 26px rgba(124, 228, 190, .08);
}
.ai-message-paywall button {
  min-height: 38px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(124, 228, 190, .38);
  border-radius: 999px;
  background: rgba(124, 228, 190, .12);
  color: #bdf9e3;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(124, 228, 190, .12);
}
.ai-message-paywall button:hover {
  background: rgba(124, 228, 190, .2);
  box-shadow: 0 0 24px rgba(124, 228, 190, .22);
}
.ai-tool-shell {
  display: grid;
  gap: 22px;
  padding-bottom: 44px;
}
.ai-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(24px, 5vw, 52px);
}
.ai-hero h1 {
  margin: 8px 0 12px;
  font-family: Sora, sans-serif;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}
.ai-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(232, 238, 247, .78);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.45;
}
.ai-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ai-price-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}
.ai-price-card > span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ai-price-card strong {
  color: #fff;
  font-family: Sora, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}
.ai-price-card small {
  color: rgba(232, 238, 247, .62);
  font-family: Manrope, sans-serif;
  font-size: 16px;
}
.ai-price-card p,
.ai-price-card li {
  color: rgba(232, 238, 247, .76);
  line-height: 1.55;
}
.ai-price-card p,
.ai-price-card ul {
  margin: 0;
}
.ai-price-card ul {
  padding-left: 20px;
}
.ai-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.ai-generator,
.ai-limits,
.ai-mvp {
  padding: clamp(20px, 3vw, 30px);
}
.ai-generator {
  display: grid;
  gap: 16px;
}
.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ai-generator label {
  display: grid;
  gap: 8px;
}
.ai-generator label span {
  color: rgba(232, 238, 247, .74);
  font-size: 14px;
  font-weight: 800;
}
.ai-generator select,
.ai-generator textarea {
  width: 100%;
  border: 1px solid rgba(124, 228, 190, .18);
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
  color: #fff;
  font: inherit;
  outline: none;
}
.ai-generator select {
  min-height: 52px;
  padding: 0 14px;
}
.ai-generator textarea {
  min-height: 170px;
  resize: vertical;
  padding: 14px;
}
.ai-generator select:focus,
.ai-generator textarea:focus {
  border-color: rgba(124, 228, 190, .52);
  box-shadow: 0 0 0 4px rgba(124, 228, 190, .08);
}
.ai-output {
  padding: 18px;
}
.ai-output h2,
.ai-limits h2,
.ai-mvp h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
}
.ai-output p {
  margin: 8px 0 0;
  color: rgba(232, 238, 247, .78);
  line-height: 1.55;
}
.ai-limits dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.ai-limits dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ai-limits dt {
  color: rgba(232, 238, 247, .56);
  font-size: 13px;
}
.ai-limits dd {
  margin: 0;
  color: #fff;
  font-weight: 850;
}
.ai-mvp div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ai-mvp span {
  padding: 14px;
  border: 1px solid rgba(124, 228, 190, .14);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
  color: rgba(232, 238, 247, .76);
  font-weight: 750;
}
.ai-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(124, 228, 190, .28);
  border-radius: 14px;
  background: rgba(7, 11, 17, .96);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
}
.ai-toast[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .ai-app-shell {
    grid-template-columns: 1fr;
  }
  .ai-app-shell.is-sidebar-collapsed .ai-sidebar {
    display: none;
  }
  .ai-app-shell.is-sidebar-collapsed .ai-sidebar-toggle {
    display: grid;
  }
  .ai-sidebar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .ai-side-nav {
    grid-template-columns: 1fr;
  }
  .ai-side-panel {
    grid-column: 1 / -1;
  }
  .ai-side-nav > button,
  .ai-logout {
    justify-content: flex-start;
    min-height: 48px;
    font-size: 16px;
    padding: 0 12px;
  }
  .ai-logout {
    margin-top: 0;
  }
  .ai-chat-shell {
    min-height: 100dvh;
    align-items: start;
    justify-items: center;
    box-sizing: border-box;
    padding: 132px 20px 28px;
  }
  .ai-chat-center {
    width: min(100%, 680px);
    gap: 30px;
  }
  .ai-chat-title {
    justify-content: flex-start;
    gap: 12px;
  }
  .ai-chat-title span {
    flex: 0 0 auto;
    font-size: 25px;
  }
  .ai-chat-title h1 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .ai-chat-form {
    width: 100%;
    min-height: 192px;
    box-sizing: border-box;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
  }
  .ai-chat-form textarea {
    min-height: 78px;
    font-size: 20px;
  }
  .ai-chat-tabs {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .ai-chat-tabs button {
    border-radius: 14px;
  }
  .ai-chat-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
  }
  .ai-chat-tools button {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    justify-content: center;
    white-space: nowrap;
    font-size: 14px;
  }
  .ai-chat-tools button:nth-child(2) {
    grid-column: 1;
  }
  .ai-chat-tools .ai-send {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    margin-left: 0;
    padding: 0;
    font-size: 26px;
  }
  .ai-hero,
  .ai-workspace {
    grid-template-columns: 1fr;
  }
  .ai-hero {
    display: grid;
  }
  .ai-pricing,
  .ai-form-grid,
  .ai-mvp div {
    grid-template-columns: 1fr;
  }
  .ai-workspace {
    display: grid;
  }
}
@media (max-width: 520px) {
  .ai-chat-shell {
    padding: 132px 18px 28px;
  }
  .ai-chat-center,
  .ai-chat-form {
    width: calc(100vw - 36px);
    max-width: none;
  }
  .ai-chat-title {
    width: calc(100vw - 36px);
  }
  .ai-chat-title span {
    font-size: 22px;
  }
  .ai-chat-title h1 {
    font-size: clamp(31px, 10vw, 42px);
  }
  .ai-chat-form {
    min-height: 214px;
    padding: 24px 18px 20px;
  }
  .ai-chat-tools {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .ai-chat-tools button {
    font-size: 13px;
  }
  .ai-chat-tools .ai-send {
    width: 58px;
    min-width: 58px;
    min-height: 58px;
  }
  .ai-tool-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 14px;
  }
  .ai-hero,
  .ai-generator,
  .ai-limits,
  .ai-mvp,
  .ai-price-card {
    border-radius: 16px;
  }
  .ai-hero .btn {
    width: 100%;
  }
  .ai-hero-actions {
    justify-content: stretch;
  }
  .ai-hero-actions .btn,
  .ai-hero-actions span {
    width: 100%;
    max-width: none;
  }
  .ai-price-card .btn,
  .ai-generator > .btn {
    width: 100%;
  }
  .ai-auth-card {
    width: min(100%, 92vw);
    gap: 14px;
    padding: 58px 18px 22px;
    border-radius: 18px;
  }
  .ai-auth-lang {
    top: 14px;
    left: 18px;
    transform: scale(.92);
    transform-origin: left top;
  }
  .ai-auth-close {
    top: 14px;
    right: 18px;
    font-size: 30px;
  }
  .ai-auth-card h1 {
    max-width: 100%;
    margin-top: 0;
    font-size: 31px;
    line-height: 1.08;
  }
  .ai-auth-form input,
  .ai-auth-form button {
    min-height: 52px;
    font-size: 16px;
  }
  .ai-auth-form input[type="date"] {
    height: 52px;
    padding-right: 14px;
  }
  .ai-auth-card p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-top {
    animation: none;
  }
}

.blog-links-section { padding: 20px; margin-top: 14px; }
.blog-links-title { margin: 0 0 14px; }

.ad-posts-board {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 38px);
}
.ad-posts-board .topbar {
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 46px);
  padding: 0;
}
.ad-posts-board .topbar.glass,
.ad-posts-board .site-footer-inner.glass-soft {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ad-posts-hero {
  padding: 0 0 clamp(16px, 2.4vw, 28px);
}
.ad-posts-hero h1 {
  max-width: 980px;
  margin: 8px 0 14px;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: .96;
  letter-spacing: 0;
}
.ad-posts-hero .lead {
  max-width: 860px;
}
.ad-posts-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
}
.ad-post-side-grid {
  display: contents;
}
.ad-post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  height: 100%;
  min-height: 446px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.ad-post-card[hidden] {
  display: none;
}
.ad-post-card:hover,
.ad-post-row:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 228, 190, .38);
  background: rgba(255, 255, 255, .07);
}
.ad-post-icon {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg, rgba(124,228,190,.18), rgba(42,122,255,.2));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 48px rgba(124, 228, 190, .08);
}
.ad-post-icon::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.ad-post-icon::before {
  width: 68%;
  height: 68%;
  background: rgba(255,255,255,.06);
  filter: blur(22px);
}
.ad-post-icon span {
  position: relative;
  z-index: 1;
  color: #f7fbff;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(30px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(124, 228, 190, .35);
}
.ad-post-icon-telegram {
  background: linear-gradient(135deg, #49d5db 0%, #0a5ec7 100%);
}
.ad-post-icon-meta {
  background: radial-gradient(circle at 50% 18%, rgba(42,122,255,.44), transparent 34%), linear-gradient(135deg, #061225 0%, #1030a4 100%);
}
.ad-post-icon-cpl {
  background: radial-gradient(circle at 80% 18%, rgba(124,228,190,.28), transparent 34%), linear-gradient(135deg, #071b1b 0%, #0a1020 100%);
}
.ad-post-icon-target {
  background: radial-gradient(circle at 50% 20%, rgba(255,62,98,.5), transparent 32%), linear-gradient(135deg, #2a0b4f 0%, #ff7a18 100%);
}
.ad-post-icon-creative {
  background: radial-gradient(circle at 75% 20%, rgba(168,112,255,.34), transparent 34%), linear-gradient(135deg, #130a35 0%, #3720a8 100%);
}
.ad-post-featured {
  padding: 12px;
}
.ad-post-featured .ad-post-icon {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}
.ad-post-card h2,
.ad-post-card h3 {
  margin: 0;
  color: #f7fbff;
  letter-spacing: 0;
}
.ad-post-card h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
}
.ad-post-card h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
}
.ad-post-card p {
  margin: 0;
  color: rgba(226, 235, 248, .74);
  font-size: 15px;
  line-height: 1.48;
}
.ad-post-card time {
  margin-top: auto;
  color: rgba(226, 235, 248, .58);
  font-weight: 800;
}
.ad-posts-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.ad-posts-pagination button {
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(124, 228, 190, .28);
  background: rgba(255, 255, 255, .04);
  color: #f7fbff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}
.ad-posts-pagination button:disabled {
  opacity: .35;
  cursor: default;
}
.ad-posts-pagination span {
  min-width: 58px;
  text-align: center;
  color: rgba(226, 235, 248, .7);
  font-weight: 800;
}
.ad-posts-more {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ad-posts-footer.site-footer {
  margin: clamp(18px, 3vw, 30px) 0 0;
}
.ad-posts-footer .site-footer-inner {
  padding: 0;
}
.ad-post-row {
  min-height: 126px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.ad-post-row:nth-child(3n+1) {
  background: linear-gradient(135deg, rgba(124, 228, 190, .08), rgba(255, 255, 255, .03));
}
.ad-post-row:nth-child(3n+2) {
  background: linear-gradient(135deg, rgba(42, 168, 255, .08), rgba(255, 255, 255, .03));
}
.ad-post-row:nth-child(3n) {
  background: linear-gradient(135deg, rgba(168, 112, 255, .08), rgba(255, 255, 255, .03));
}
.ad-post-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ad-post-row b {
  color: #f7fbff;
  font-size: 20px;
  line-height: 1.25;
}

.article-shell { padding: 28px; margin-bottom: 120px; }
.article-title { margin-top: 10px; }
.article-split { margin-top: 24px; }
.article-panel { padding: 22px; }
.article-body-text { margin-top: 24px; }
.article-actions { margin-top: 24px; }
.article-bottom-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.article-services-menu {
  display: inline-block;
  position: relative;
}
.article-services-menu > summary {
  list-style: none;
}
.article-services-menu > summary::-webkit-details-marker {
  display: none;
}
.article-services-menu .services-menu {
  right: auto;
  left: 0;
  top: calc(100% + 10px);
}

.e404-code { font-size: clamp(62px, 14vw, 140px); line-height: .95; }
.link-reset { text-decoration: none; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1040px) {
  body { padding-bottom: 88px; }
  .desktop-nav { display: none; }
  .hero, .page-hero, .split, .lead-box { grid-template-columns: 1fr; }
  .ad-posts-grid {
    grid-template-columns: 1fr;
  }
  .ad-posts-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-bottom-nav { display: grid; }
  .service-list { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; gap: 14px; }
  .niches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-home-grid,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }
  .site-footer { margin-bottom: 94px; }
}
@media (max-width: 720px) {
  .app-bottom-nav {
    width: min(500px, 90vw);
  }
  .topbar {
    padding: 10px;
    gap: 6px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    gap: 8px;
    letter-spacing: .25px;
  }
  .brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .controls {
    flex: 0 0 auto;
    gap: 6px;
  }
  .btn { padding: 10px 14px; }
  .lang-dropdown {
    width: auto;
    min-width: 54px;
  }
  .lang-menu {
    min-width: 92px;
    right: 0;
  }
  .lang-trigger,
  .topbar .controls .btn-ghost {
    min-height: 40px;
    font-size: 12px;
    border-radius: 12px;
  }
  .lang-trigger { padding: 0 6px; }
  .topbar .controls .btn-ghost {
    width: auto;
    min-width: 88px;
    padding: 0 9px;
    white-space: nowrap;
  }
  .hero, .page-hero { padding: 20px; }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(30px, 8.4vw, 43px);
    line-height: 1.08;
    letter-spacing: 0;
  }
  .hero .lead,
  .page-hero .lead {
    font-size: 15.5px;
    line-height: 1.45;
  }
  .cards-grid, .feature-grid, .blog-grid, .blog-links { grid-template-columns: 1fr; }
  .tgads-plans {
    padding: 18px;
    display: flex;
    flex-direction: column;
  }
  .tgads-plans h1 {
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: 1.08;
  }
  .target-plans .tgads-plans-head h1 {
    font-size: clamp(27px, 7.2vw, 36px);
  }
  .tgads-plans-head .lead {
    font-size: 15px;
  }
  .tgads-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    order: 3;
    margin: 14px 0 0;
  }
  .tgads-carousel-btn {
    width: 68px;
    height: 44px;
    border-radius: 14px;
    border-color: rgba(124, 228, 190, .18);
    background:
      linear-gradient(135deg, rgba(124, 228, 190, .12), rgba(42, 168, 255, .05)),
      rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.18);
    font-size: 28px;
  }
  .tgads-plan-grid {
    display: flex;
    order: 2;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 2px;
    padding: 2px 2px 4px;
    margin-right: -18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tgads-plan-grid::-webkit-scrollbar {
    display: none;
  }
  .tgads-plan-card {
    flex: 0 0 min(84vw, 350px);
    min-height: 420px;
    padding: 12px 14px 18px;
    border-radius: 20px;
    scroll-snap-align: start;
  }
  .promo-plan-card {
    min-height: 520px;
  }
  .tgads-plan-media {
    height: 118px;
    border-radius: 15px;
    margin-bottom: 12px;
  }
  .tgads-plan-card p {
    font-size: 14px;
    line-height: 1.48;
    margin-bottom: 9px;
    padding-bottom: 9px;
  }
  .niches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(30px, 8.4vw, 43px); }
  .ad-posts-hero h1 {
    font-size: clamp(40px, 13vw, 64px);
  }
  .ad-posts-grid,
  .ad-posts-more {
    grid-template-columns: 1fr;
  }
  .ad-post-card h2 {
    font-size: clamp(30px, 9vw, 44px);
  }
  .lead { font-size: 17px; }
  .brand { font-size: 12px; }
  .metrics-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stats h2 {
    text-align: center;
  }
  .metric-item {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    border-bottom: 0;
  }
  .metric-item strong {
    width: min(160px, 100%);
    min-height: 38px;
    padding: 6px 8px;
    font-size: 14px;
    justify-self: center;
  }
  .metric-item p {
    font-size: 12px;
    line-height: 1.32;
    text-align: center;
  }
  .niches-section { padding: 20px; }
  .seo-home-section {
    padding: 20px;
  }
  .seo-home-head h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .seo-home-head p {
    font-size: 15px;
  }
  .seo-home-grid article,
  .seo-faq-grid article {
    padding: 15px;
    border-radius: 14px;
  }
  .seo-home-grid h3,
  .seo-faq-grid h3 {
    font-size: 16px;
  }
  .seo-home-grid p,
  .seo-faq-grid p {
    font-size: 13.5px;
  }
  .niche-card {
    min-height: 62px;
    font-size: 15px;
    padding: 12px 10px;
  }
  .hero-rotator {
    min-height: 118px;
  }
  .hero-rotator-line {
    font-size: 13px;
    line-height: 1.34;
    padding-bottom: 10px;
  }
  .hero-rotator-line + .hero-rotator-line {
    margin-top: 8px;
  }
  .hero-panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-panel-actions > .btn,
  .hero-panel-actions > .services-dropdown {
    width: 100%;
  }
  .hero-panel-actions .hero-services-dropdown .services-menu {
    width: 100%;
  }
  .site-footer-inner { padding: 14px; }
  .site-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .site-footer-follow { justify-content: center; }
  .forum-footer-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .forum-footer-top-desktop {
    display: none;
  }
  .forum-footer-top-mobile {
    display: inline-flex;
    justify-self: auto;
  }
  .site-footer-privacy {
    justify-self: center;
  }
  .site-footer-top { justify-self: center; }
}
@media (max-width: 420px) {
  .topbar { padding: 8px; }
  .brand { font-size: 11px; }
  .hero h1,
  .page-hero h1,
  .tgads-plans h1,
  .target-plans .tgads-plans-head h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.09;
  }
  .hero .lead,
  .page-hero .lead,
  .tgads-plans-head .lead {
    font-size: 14.5px;
  }
  .lang-dropdown {
    width: auto;
    min-width: 50px;
  }
  .lang-trigger,
  .topbar .controls .btn-ghost {
    min-height: 38px;
    font-size: 12px;
  }
  .lang-trigger { padding: 0 5px; }
  .topbar .controls .btn-ghost {
    min-width: 82px;
    padding: 0 7px;
  }
  .app-bottom-nav {
    width: min(440px, 88vw);
  }
  .app-bottom-nav > a,
  .app-bottom-nav .tab-services-trigger {
    min-height: 46px;
    padding: 5px 5px;
    gap: 3px;
  }
  .metrics-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item {
    padding: 8px;
    gap: 5px;
  }
  .metric-item strong {
    min-height: 34px;
    font-size: 13px;
  }
  .metric-item p {
    font-size: 11px;
  }
}
