/* habrahabr.kz — Global Styles */
:root {
  --bg:       #0D1321;
  --bg-alt:   #152035;
  --card:     #1C2E47;
  --border:   rgba(255,255,255,0.09);
  --accent:   #F97316;
  --accent-h: #EA6A0A;
  --blue:     #60A5FA;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: #fff;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.2;
}

/* ── Layout ─────────────────────────────────── */
.shell {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .shell { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Tiles / Cards ───────────────────────────── */
.tile {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

/* ── Gradient text ───────────────────────────── */
.shine {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────── */
.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .875rem 2rem;
  border-radius: .75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(249,115,22,.35);
}
.go-btn:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(249,115,22,.5);
}
.go-btn:active { transform: translateY(0); }

.go-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: transparent;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .875rem 2rem;
  border-radius: .75rem;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.go-btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Band (alt-bg section) ───────────────────── */
.band { background: var(--bg-alt); }

/* ── Tag badge ───────────────────────────────── */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.35);
  color: #fb923c;
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 9999px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Header ──────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,19,33,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.5);
}

.nav-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--accent); }

.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: .5rem;
  border: 1.5px solid var(--border);
  background: transparent;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  text-decoration: none;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn.active-lang {
  border-color: var(--accent);
  background: rgba(249,115,22,.15);
  color: var(--accent);
}

/* ── Hero ────────────────────────────────────── */
.hero-section {
  background:
    radial-gradient(ellipse 70% 60% at 60% 0%, rgba(249,115,22,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(96,165,250,.08) 0%, transparent 60%),
    var(--bg);
  padding: 5rem 0 4rem;
}

/* ── Counter ticker ──────────────────────────── */
.ticker-dot {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(1.3); }
}

/* ── Steps (how it works) ────────────────────── */
.step-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Stats ───────────────────────────────────── */
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Payment icons ───────────────────────────── */
.pay-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s;
}
.pay-badge:hover { border-color: rgba(249,115,22,.4); }

/* ── Accordion / FAQ ─────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-icon {
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, transform .3s;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 700;
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.7;
  padding: 0;
}
.faq-answer.open {
  max-height: 600px;
  padding-bottom: 1.1rem;
}

/* ── Reviews carousel ────────────────────────── */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.review-card {
  flex: 0 0 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.stars { color: #fbbf24; letter-spacing: .1em; }

/* ── SEO text block ──────────────────────────── */
.seo-block h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 1rem; color: #fff; }
.seo-block h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .6rem; color: #e2e8f0; }
.seo-block p  { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.seo-block ul, .seo-block ol {
  color: rgba(255,255,255,.75);
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.seo-block li { margin-bottom: .4rem; }
.seo-block blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,.8);
  font-style: italic;
}
.seo-block blockquote footer {
  margin-top: .5rem;
  font-style: normal;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.seo-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.seo-block table th {
  background: rgba(249,115,22,.15);
  color: #fb923c;
  font-weight: 700;
  padding: .7rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}
.seo-block table td {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  color: rgba(255,255,255,.75);
}
.seo-block table tr:nth-child(even) td { background: rgba(255,255,255,.03); }

/* ── Footer ──────────────────────────────────── */
#site-footer {
  background: #090e18;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-link {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-link:hover { color: rgba(255,255,255,.85); }

/* ── Fade-in animation ───────────────────────── */
[data-appear] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-appear].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile menu ─────────────────────────────── */
#mobile-menu {
  display: none;
  background: #101828;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
}
#mobile-menu.open { display: block; }

/* ── Misc ────────────────────────────────────── */
.icon-circle {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .3rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.platform-badge:hover { border-color: var(--accent); color: #fff; }

/* ── Order widget section ────────────────────── */

/* Центрируем контейнер формы на десктопе */
#order .shell > div {
  margin-left: auto;
  margin-right: auto;
}

/* Мобильник: убираем рамку/отступы тайла — виджет занимает 100% ширины */
#order .tile {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* sm+ : возвращаем карточку */
@media (min-width: 640px) {
  #order .tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
  }
}

/* Сам виджет-div — всегда на всю ширину контейнера */
[data-widget="vibe-order"] {
  width: 100%;
  min-width: 0;
  display: block;
}

/* ── Mobile accordion ────────────────────────── */
.mob-section { }

.mob-section-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem .75rem;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.mob-section-label {
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.mob-section.mob-open .mob-section-label { color: #F97316; }

.mob-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,.35);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mob-section.mob-open .mob-chevron { transform: rotate(180deg); }

.mob-section-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
  padding-left: .25rem;
  padding-bottom: 0;
}
.mob-section.mob-open .mob-section-panel {
  max-height: 240px;
  padding-bottom: .5rem;
}

.mob-section-link {
  display: block;
  padding: .55rem .75rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  border-radius: .5rem;
  transition: color .15s, background .15s;
}
.mob-section-link:hover,
.mob-section-link:active { color: #fff; background: rgba(255,255,255,.05); }
.mob-section-link.mob-active { color: #F97316; font-weight: 600; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
