/*
Theme Name: Otklikator Child
Description: Child theme for Astra - Otklikator site
Author: Otklikator
Template: astra
Version: 1.0.8
*/

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --accent:     #8B5CF6;
  --accent-ink: #ffffff;
  --accent-50:  #F5F3FF;
  --accent-100: #EDE9FE;
  --accent-600: #7C3AED;
  --accent-700: #6D28D9;

  --ink-900: #0F0F14;
  --ink-700: #2A2A33;
  --ink-500: #5B5B66;
  --ink-400: #8A8A95;
  --ink-300: #C7C7CE;
  --ink-200: #E7E7EC;
  --ink-100: #F2F2F5;
  --ink-50:  #F8F8FA;

  --bg:   #FCFCFD;
  --card: #FFFFFF;
  --line: #ECECF0;

  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(15,15,20,.04), 0 1px 1px rgba(15,15,20,.03);
  --shadow-md: 0 8px 24px -12px rgba(15,15,20,.12), 0 2px 6px rgba(15,15,20,.04);
  --shadow-lg: 0 24px 60px -24px rgba(76,29,149,.25), 0 8px 24px -16px rgba(15,15,20,.15);

  --container: 1200px;
}

/* ═══════════════════════════════════════════════════════
   BASE OVERRIDES (Astra reset)
═══════════════════════════════════════════════════════ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11','ss01';
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink-900);
}
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p  { color: var(--ink-700); }

::selection { background: var(--accent-100); color: var(--ink-900); }

/* Astra container width override */
.ast-container,
.ast-separate-container .ast-article-single,
.entry-content > .alignfull > *,
.entry-content > .alignwide {
  max-width: var(--container);
}

/* ═══════════════════════════════════════════════════════
   NAV / HEADER
═══════════════════════════════════════════════════════ */
#masthead,
.site-header {
  background: rgba(252,252,253,.78) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled,
.ast-header-break-point.scrolled #masthead {
  border-bottom-color: var(--line);
}

/* Logo */
.site-logo-img,
.custom-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Скрыть текстовое название сайта когда есть логотип */
.ast-site-identity .site-title,
.site-branding .site-title {
  display: none !important;
}

/* Распределяем хедер: лого слева, меню занимает всё оставшееся место */
.ast-builder-grid-row-has-sides {
  justify-content: space-between;
}
.site-header-primary-section-left {
  flex-shrink: 0;
}
.site-header-primary-section-right {
  flex: 1;
  justify-content: flex-end;
}
.ast-builder-menu-1 {
  flex: 1;
  justify-content: center;
}
.ast-builder-menu-1 .main-navigation {
  justify-content: center;
}
.ast-builder-menu-1 .main-header-menu {
  justify-content: center;
}

/* Nav links */
.main-navigation .menu-item > a,
.ast-builder-menu .menu-item > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 10px;
  padding: 8px 14px;
  transition: all .15s;
}
.main-navigation .menu-item > a:hover,
.main-navigation .current-menu-item > a {
  background: var(--ink-100);
  color: var(--ink-900);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.wp-block-button__link,
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px !important;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all .15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-accent,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  box-shadow: 0 1px 2px rgba(76,29,149,.25), 0 6px 18px -6px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-accent:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--accent-600) !important;
  transform: translateY(-1px);
}

.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--ink-900) !important;
  border: 1px solid var(--line) !important;
}
.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--ink-50) !important;
  border-color: var(--ink-300) !important;
}

.btn-lg { padding: 15px 26px !important; font-size: 16px !important; border-radius: 14px !important; }
.btn-sm { padding: 8px 14px !important; font-size: 13px !important; border-radius: 10px !important; }

/* Astra header button */
.ast-header-button .ast-button-wrap .ast-header-html-code a,
header .ast-builder-button-wrap a {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
}
header .ast-builder-button-wrap a:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

/* Header CTA buttons (injected via JS) */
.otk-hdr-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.otk-hdr-cta .btn {
  font-size: 14px !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
}

/* ═══════════════════════════════════════════════════════
   PILLS & BADGES
═══════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--accent-100);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,.2);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(139,92,246,.08); }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS / LAYOUT
═══════════════════════════════════════════════════════ */
.otk-section { padding: 80px 0; }
.otk-section-alt { padding: 80px 0; background: var(--ink-50); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-500);
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.otk-hero {
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.otk-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.otk-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-500);
  margin: 24px 0 32px;
  max-width: 540px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  color: var(--ink-500);
  font-size: 13px;
}
.hero-avatars { display: flex; }
.hero-avatars > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  color: #fff;
}
.hero-avatars > span:first-child { margin-left: 0; }

/* ═══════════════════════════════════════════════════════
   TELEGRAM MOCK
═══════════════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  height: 560px;
}
.phone {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 32px;
  box-shadow:
    0 50px 100px -30px rgba(76,29,149,.35),
    0 30px 60px -20px rgba(15,15,20,.15),
    0 0 0 1px var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tg-header {
  background: #517DA2;
  padding: 14px 16px 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.tg-title  { font-weight: 600; font-size: 15px; }
.tg-status { font-size: 12px; opacity: .85; }
.tg-body {
  flex: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(139,92,246,.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,.06), transparent 40%),
    #E5EBEE;
  padding: 18px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 85%;
  padding: 9px 13px 8px;
  font-size: 14px;
  line-height: 1.38;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  animation: msgIn .5s ease-out backwards;
}
.msg.bot  { background: #fff; color: var(--ink-900); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: #EFFDDE; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .time { font-size: 10px; color: var(--ink-400); float: right; margin-left: 8px; margin-top: 4px; }
.msg:nth-child(1) { animation-delay: .1s; }
.msg:nth-child(2) { animation-delay: .3s; }
.msg:nth-child(3) { animation-delay: .55s; }
.msg:nth-child(4) { animation-delay: .8s; }
.msg:nth-child(5) { animation-delay: 1.1s; }
.msg:nth-child(6) { animation-delay: 1.35s; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.msg-card {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  color: var(--ink-700);
  line-height: 1.5;
}
.msg-card b { color: var(--accent-700); font-weight: 600; }
.msg-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-600);
  background: var(--accent-50);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════
   COUNTER STRIP
═══════════════════════════════════════════════════════ */
.counter-strip {
  background: var(--ink-900);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  margin: 0 0 80px;
  position: relative;
  overflow: hidden;
}
.counter-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(139,92,246,.25), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(139,92,246,.15), transparent 40%);
  pointer-events: none;
}
.counter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  flex-wrap: wrap;
}
.counter-label {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ADE80;
  box-shadow: 0 0 12px #4ADE80;
  animation: pulse-green 2s infinite;
  display: inline-block;
}
@keyframes pulse-green {
  0%,100% { opacity: 1; box-shadow: 0 0 12px #4ADE80; }
  50%      { opacity: .5; box-shadow: 0 0 4px #4ADE80; }
}
.counter-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.counter-item { text-align: center; flex: 1; min-width: 160px; }
.counter-item .k { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════
   PAINS
═══════════════════════════════════════════════════════ */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .2s;
}
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-200); }
.pain-num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.pain-icon.clock  { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.pain-icon.inbox  { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); }
.pain-icon svg    { width: 24px; height: 24px; }
.pain h3          { margin-bottom: 10px; }
.pain p           { font-size: 15px; color: var(--ink-500); }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS (4 steps on home)
═══════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink-900);
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.step h4 { margin-bottom: 8px; font-size: 17px; }
.step p  { font-size: 14px; color: var(--ink-500); line-height: 1.5; }
.step-visual {
  margin-top: 18px;
  height: 120px;
  background: var(--ink-50);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Step visual internals */
.sv-connect { display: flex; align-items: center; gap: 12px; padding: 16px; }
.sv-connect .chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
}
.sv-connect .chip.hh { color: #D81920; }
.sv-connect .arrow   { color: var(--ink-400); font-weight: 700; }

.sv-criteria { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; }
.sv-criteria .row {
  display: flex; justify-content: space-between;
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  color: var(--ink-500); padding: 4px 10px;
  background: #fff; border-radius: 6px; border: 1px solid var(--line);
}
.sv-criteria .row b { color: var(--ink-900); font-weight: 600; }

.sv-bot { width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sv-bot .bar {
  height: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; position: relative; overflow: hidden;
}
.sv-bot .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); width: var(--w, 50%);
  animation: barGrow 2.5s ease-out infinite;
}
.sv-bot .bar:nth-child(1)::after { --w: 85%; animation-delay: 0s; }
.sv-bot .bar:nth-child(2)::after { --w: 65%; animation-delay: .3s; }
.sv-bot .bar:nth-child(3)::after { --w: 92%; animation-delay: .6s; }
.sv-bot .bar:nth-child(4)::after { --w: 48%; animation-delay: .9s; }
.sv-bot .bar:nth-child(5)::after { --w: 78%; animation-delay: 1.2s; }
@keyframes barGrow {
  0%       { transform: translateX(-100%); }
  60%,100% { transform: translateX(0); }
}

.sv-report { width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sv-report .metric { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.sv-report .metric .v {
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--accent-700);
}

/* ═══════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { padding: 40px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { color: var(--accent); }
.stat-label { font-size: 15px; color: var(--ink-500); margin-top: 12px; }
.stat-note  { font-size: 12px; color: var(--ink-400); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

/* ═══════════════════════════════════════════════════════
   LOGOS STRIP
═══════════════════════════════════════════════════════ */
.logos-section {
  background: var(--ink-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.logos-label {
  text-align: center;
  font-size: 13px; font-weight: 500;
  color: var(--ink-500); margin-bottom: 24px; letter-spacing: 0.03em;
}
.logos-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
}
.logo-item {
  text-align: center; font-family: 'Inter Tight', sans-serif;
  font-weight: 700; font-size: 18px; color: var(--ink-400);
  letter-spacing: -0.02em; padding: 8px 4px; opacity: .75; transition: opacity .2s;
}
.logo-item:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   CASES / TESTIMONIALS
═══════════════════════════════════════════════════════ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; position: relative;
}
.case-quote {
  font-size: 17px; line-height: 1.45; color: var(--ink-900);
  margin-bottom: 20px; font-weight: 500; letter-spacing: -0.01em; flex: 1;
}
.case-person {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.case-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-700);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.case-name { font-weight: 600; font-size: 14px; }
.case-role { font-size: 13px; color: var(--ink-500); }
.case-tag {
  position: absolute; top: 28px; right: 28px;
  font-size: 11px; font-weight: 600; color: var(--accent-700);
  background: var(--accent-50); padding: 4px 8px; border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   PRICING TEASER (HOME)
═══════════════════════════════════════════════════════ */
.pricing-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
  max-width: 520px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--ink-700);
}
.pricing-features svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Price card */
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; box-shadow: var(--shadow-lg); overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-50), transparent 70%);
  pointer-events: none;
}
.price-card .badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent-700); background: var(--accent-50);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.price-card h3   { font-size: 22px; margin-bottom: 6px; }
.price-card .desc{ font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price-row .val {
  font-family: 'Inter Tight', sans-serif;
  font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.price-row .cur { font-size: 24px; font-weight: 600; color: var(--ink-500); }
.price-row .per { font-size: 15px; color: var(--ink-500); margin-left: 6px; }
.price-card .trial {
  background: var(--ink-50); border: 1px dashed var(--ink-300);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--ink-700);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.price-card .trial .gift { color: var(--accent); }
.price-card .btn { width: 100%; }
.price-card ul {
  list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px;
}
.price-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-700); }
.price-card ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.otk-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .2s;
}
.faq-item:hover { border-color: var(--ink-300); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; width: 100%; text-align: left;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 17px; color: var(--ink-900);
  background: none; border: none; cursor: pointer;
}
.faq-q-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink-100); display: grid; place-items: center;
  color: var(--ink-700); transition: all .2s; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-q-icon {
  background: var(--accent); color: #fff; transform: rotate(45deg);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 24px 22px; font-size: 15px; color: var(--ink-500); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   FINAL CTA BLOCK
═══════════════════════════════════════════════════════ */
.otk-cta {
  background: var(--ink-900); border-radius: var(--radius-lg);
  padding: 72px 48px; color: #fff; position: relative; overflow: hidden; text-align: center;
}
.otk-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(139,92,246,.35), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(139,92,246,.25), transparent 50%);
}
.otk-cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.otk-cta h2    { color: #fff; margin-bottom: 20px; }
.otk-cta p     { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 32px; }
.cta-meta {
  margin-top: 20px; display: flex; justify-content: center; gap: 24px;
  font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap;
}
.cta-meta span { display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════════════ */
.page-hero {
  padding: 64px 0 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, var(--accent-50), transparent 60%);
}
.page-hero h1 { font-size: clamp(36px, 4vw, 56px); }
.page-hero p  { font-size: 19px; color: var(--ink-500); max-width: 640px; margin-top: 16px; }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS — DETAIL PAGE
═══════════════════════════════════════════════════════ */
.process-steps  { display: flex; flex-direction: column; gap: 60px; }
.process-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.process-step.reverse .process-content { order: 2; }
.process-content h2 { margin-bottom: 16px; }
.process-content p  { font-size: 17px; color: var(--ink-500); margin-bottom: 20px; }
.process-visual {
  aspect-ratio: 4/3; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════
   PRICING PAGE — DETAIL
═══════════════════════════════════════════════════════ */
.pricing-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.pricing-detail .free-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
}

.compare-table {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  max-width: 900px; margin: 80px auto 0;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th { background: var(--ink-50); font-weight: 600; font-size: 13px; color: var(--ink-700); }
.compare-table td:first-child { font-weight: 500; color: var(--ink-700); }
.compare-table td.check { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════ */
.blog-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px;
}
.blog-grid .article:first-child { grid-row: span 2; }
.article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: all .2s;
}
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.article-cover .cover-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-400); text-align: center; padding: 0 20px;
}
.article.big .article-cover { aspect-ratio: 16/10; }
.article-body  { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-tag   { font-size: 12px; font-weight: 600; color: var(--accent-700); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.article h3    { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.article.big h3{ font-size: 26px; line-height: 1.2; }
.article-excerpt { font-size: 14px; color: var(--ink-500); line-height: 1.5; flex: 1; }
.article-meta {
  margin-top: 16px; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-400);
}

/* Cover gradients */
.cv1 { background: linear-gradient(135deg, #F5F3FF 0%, #FCE7F3 100%); }
.cv2 { background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%); }
.cv3 { background: linear-gradient(135deg, #FEF3C7 0%, #FFEDD5 100%); }
.cv4 { background: linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 100%); }
.cv5 { background: linear-gradient(135deg, #D1FAE5 0%, #DBEAFE 100%); }
.cv-pattern {
  background-image: repeating-linear-gradient(
    45deg, rgba(0,0,0,.03) 0, rgba(0,0,0,.03) 1px, transparent 1px, transparent 12px
  );
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; }
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm);
}
.otk-field { margin-bottom: 18px; }
.otk-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.otk-field input,
.otk-field textarea,
.otk-field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: var(--bg); transition: all .15s;
}
.otk-field input:focus,
.otk-field textarea:focus,
.otk-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100); background: #fff;
}
.otk-field textarea { min-height: 120px; resize: vertical; }

.channels { display: flex; flex-direction: column; gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); transition: all .15s; text-decoration: none; color: inherit;
}
.channel:hover { border-color: var(--accent); background: var(--accent-50); }
.channel-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-50); color: var(--accent-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.channel-title { font-weight: 600; font-size: 15px; }
.channel-meta  { font-size: 13px; color: var(--ink-500); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer,
footer.site-footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--ink-500); margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-400); margin-bottom: 16px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 14px; color: var(--ink-700); transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-400); flex-wrap: wrap; gap: 12px;
}

/* ═══════════════════════════════════════════════════════
   FULL WIDTH PAGE TEMPLATE
═══════════════════════════════════════════════════════ */
.otk-fullwidth-page {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.otk-fullwidth-page .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Убираем title страницы на full-width шаблоне */
.page-template-page-fullwidth .entry-header,
.page-template-page-fullwidth .ast-page-builder-template .entry-header {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   ASTRA LAYOUT FIXES — CRITICAL
═══════════════════════════════════════════════════════ */

/* 1. Фон — убираем Astra/Twenty Twenty бежевый */
html, body, .site, .ast-site-content-wrap, .entry {
  background-color: var(--bg) !important;
  background: var(--bg) !important;
}
.hfeed { background: var(--bg) !important; }

/* 2. Полная ширина для страниц (убираем сайдбар и отступы) */
.page #primary,
.page .content-area,
.page .site-content,
.ast-no-sidebar .site-main,
.ast-no-sidebar #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Убираем внутренние отступы Astra ТОЛЬКО в content-area
   (НЕ в хедере — его .ast-container должен иметь свои паддинги) */
.page #content .ast-container,
.page .site-content > .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* 3. Убираем паддинги entry-content */
.page .entry-content,
.page article.page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* 4. Убираем заголовок страницы */
.page .entry-header,
.page-title,
.ast-page-header-wrap {
  display: none !important;
}

/* 5. Убираем лишние паддинги Astra вокруг контента */
.page.ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.ast-separate-container .page.ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
}

/* 6. Сайдбар — полностью убрать */
#secondary, .widget-area, .ast-right-sidebar, .ast-left-sidebar {
  display: none !important;
}

/* 7. Content layout row - убрать flex gap (только не на блог-архиве) */
.ast-container .ast-row {
  flex-wrap: nowrap;
}
.blog .ast-container .ast-row,
.archive .ast-container .ast-row {
  flex-wrap: wrap !important;
}

/* 8. Sticky header */
#masthead, .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* 9. Артикль shadow и button */
.ast-separate-container .ast-article-single {
  box-shadow: 0 8px 24px -12px rgba(15,15,20,.12);
}
.wp-block-button__link { border-radius: 12px !important; font-weight: 600; }

/* 10. Remove top padding/margin from site content on pages */
.page .site-content,
.page #page,
.page .ast-site-content-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 11. WP block HTML wrapper no padding */
.page .wp-block-html,
.page .entry-content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 11b. Восстанавливаем паддинги наших .container
   (Astra может обнулять padding через свои правила) */
.entry-content .container {
  padding-left: 32px !important;
  padding-right: 32px !important;
}
@media (max-width: 768px) {
  .entry-content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* 12. Gutenberg оборачивает HTML-комментарии в <p> — скрываем везде */
/* Прямые <p> внутри grid/flex контейнеров нашего дизайна */
.otk-hero-grid > p,
.pains-grid > p,
.how-grid > p,
.steps-list > p,
.stats > p,
.cases > p,
.pricing-wrap > p,
.pricing-grid > p,
.faq-list > p,
.blog-grid > p,
.contact-channels > p,
.footer-grid > p,
.container > p,
/* Прямые <p> в entry-content на страницах — там наш контент
   всегда внутри <section>/<div>, а не голые параграфы */
.page .entry-content > p {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .otk-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual   { height: 500px; max-width: 400px; margin: 0 auto; }
  .how-grid      { grid-template-columns: repeat(2, 1fr); }
  .pains         { grid-template-columns: 1fr; }
  .stats         { grid-template-columns: 1fr; }
  .stat          { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .cases         { grid-template-columns: 1fr; }
  .pricing-wrap  { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-grid     { grid-template-columns: 1fr 1fr; }
  .blog-grid .article:first-child { grid-row: auto; grid-column: span 2; }
  .contact-grid  { grid-template-columns: 1fr; }
  .process-step,
  .process-step.reverse { grid-template-columns: 1fr; gap: 32px; }
  .process-step.reverse .process-content { order: 0; }
  .logos-row { grid-template-columns: repeat(3, 1fr); }
  .pricing-detail { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   BLOG ARCHIVE — минимальные правки поверх стандарта Astra
   (Astra сама делает 3 колонки через theme_mod blog-grid=3,
    выставленный фильтром в functions.php)
═══════════════════════════════════════════════════════ */

/* Сетка через CSS Grid — равные колонки, равные высоты, нормальный gap */
.blog .ast-row,
.archive .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  margin: 0 !important;
}
.blog .ast-article-post,
.archive .ast-article-post {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  align-self: start !important;        /* не тянуться по высоте grid-cell */
}
.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner,
.blog .ast-article-post .post-content,
.archive .ast-article-post .post-content {
  height: auto !important;
}
@media (max-width: 1024px) {
  .blog .ast-row,
  .archive .ast-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .blog .ast-row,
  .archive .ast-row { grid-template-columns: 1fr !important; }
}

/* Заголовок в две строки максимум, чтобы все карточки одной высоты */
.blog .otk-blog-title,
.archive .otk-blog-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* Карточка — мягкая рамка и тень при ховере (нативный Astra стиль остаётся) */
.blog .ast-article-post,
.archive .ast-article-post {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Картинка-обёртка — фиксированный контейнер 16:9, картинка cover.
   Все исходники у нас 16:9 (1374×766), так что cover ничего не обрежет.
   Hover-zoom (Астровский transform: scale(1.1)) отключаем. */
.blog .ast-blog-featured-section,
.archive .ast-blog-featured-section,
.blog .post-thumb-img-content,
.archive .post-thumb-img-content {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f4f5f7;
  margin: 0 !important;
}
.blog .ast-blog-featured-section img,
.archive .ast-blog-featured-section img,
.blog .post-thumb-img-content img,
.archive .post-thumb-img-content img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transform: none !important;
  transition: none !important;
}
.blog .post-thumb-img-content,
.archive .post-thumb-img-content { position: relative !important; }
.blog .post-thumb-img-content,
.archive .post-thumb-img-content,
.blog .ast-blog-featured-section,
.archive .ast-blog-featured-section {
  margin: 0 !important;                /* Астра задавала отрицательный margin */
}

/* Наш собственный заголовок поста */
.blog .otk-blog-title,
.archive .otk-blog-title {
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  margin: 16px 20px 8px !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.blog .otk-blog-title a,
.archive .otk-blog-title a {
  color: var(--ink-900) !important;
  text-decoration: none !important;
}
.blog .otk-blog-title a:hover,
.archive .otk-blog-title a:hover {
  color: var(--accent) !important;
}

/* Meta (категория) под заголовком */
.blog .entry-header .entry-meta,
.archive .entry-header .entry-meta {
  display: block !important;
  margin: 0 20px 16px !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-400);
}
.blog .entry-header .entry-meta a,
.archive .entry-header .entry-meta a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Скрываем автора и дату на одиночных постах ─────────
   ВАЖНО: только .single, чтобы не убить категорию на архиве */
.single .entry-meta,
.single .ast-post-meta,
.single .posted-on,
.single .byline,
.single .author,
.single .entry-footer,
.single .ast-blog-single-element.ast-blog-date,
.single .ast-blog-single-element.ast-blog-author,
.post-navigation,
.navigation.post-navigation { display: none !important; }

@media (max-width: 640px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .otk-section,
  .otk-section-alt { padding: 56px 0; }
  .otk-cta   { padding: 48px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .article:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Скрываем Telegram-мок на мобильных — занимает пустое место */
  .hero-visual { display: none !important; }

  /* Хиро на мобильном — меньше паддинг */
  .otk-hero { padding: 48px 0 56px; }
  .hero-sub  { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
