/* ============================================================
   OK GO — Переиспользуемые компоненты
   Nav · Button · SectionHeader · Chip · Highlight · PillarCard
   FeatureCard · RegionCard · FAQ · RegionBanner · Ping · Footer
   ============================================================ */

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--px);
  background: var(--nav);
  border-bottom: 1px solid var(--line-dark);
}

.nav__logo { display: inline-flex; }
.nav__logo img { height: 36px; width: auto; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wh-soft);
}

.nav__links a { transition: color var(--t-fast) ease; }
.nav__links a:hover { color: var(--wh); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

@media (max-width: 480px) {
  .nav { padding: 12px 20px; }
  .nav__logo img { height: 28px; }
  .nav .btn--small { padding: 9px 16px; font-size: 12.5px; }
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease,
              background var(--t-fast) ease, border-color var(--t-fast) ease,
              color var(--t-fast) ease;
}

.btn--primary {
  background: var(--or);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(254, 78, 4, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--wh);
  border-color: rgba(255, 255, 255, .28);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

.btn--ghost-ink {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 59, 48, .25);
}

.btn--ghost-ink:hover {
  border-color: rgba(14, 59, 48, .55);
  transform: translateY(-2px);
}

.btn--small { padding: 10px 22px; font-size: 13px; }

/* ---------- SectionHeader ---------- */

.section-header {
  max-width: 800px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header .eyebrow { margin-bottom: 24px; }
.section-header .lead { margin-top: 20px; max-width: 640px; }
.section-header--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  color: var(--wh-soft);
}

/* ---------- Highlight (фирменный блок с левой линией) ---------- */

.highlight {
  border-left: 3px solid var(--go);
  border-radius: var(--r-highlight);
  background: rgba(3, 184, 90, .09);
  padding: 22px 28px;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.5;
}

.highlight--orange {
  border-left-color: var(--or);
  background: rgba(254, 78, 4, .07);
}

/* ---------- PillarCard (три опоры платформы) ---------- */

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--r-card);
  padding: 32px 30px;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(14, 59, 48, .08);
}

.pillar-card__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--go);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.pillar-card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- FeatureCard (возможности, на тёмном) ---------- */

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-card);
  padding: 30px 28px;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease,
              transform var(--t-fast) ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(234, 242, 238, .22);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(3, 184, 90, .14);
  color: var(--go-text);
}

.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--wh);
}

.feature-card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--wh-faint);
}

/* ---------- WhyItem (отличия) ---------- */

.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
}

.why-item:last-child { border-bottom: 1px solid var(--line-light); }

.why-item__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--or);
  line-height: 1.9;
}

.why-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink);
  margin-bottom: 8px;
}

.why-item__text {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- RegionCard ---------- */

.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--r-card);
  padding: 34px 32px;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

a.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(14, 59, 48, .10);
}

.region-card__code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--go);
}

.region-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
}

.region-card__url {
  font-size: 14px;
  color: var(--ink-faint);
}

.region-card__url a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast) ease;
}

.region-card__url a:hover { color: var(--ink); }

.region-card__arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 184, 90, .12);
  color: var(--g0);
  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
}

a.region-card:hover .region-card__arrow {
  background: rgba(3, 184, 90, .22);
  transform: rotate(45deg);
}

.region-card--soon {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(20, 58, 48, .22);
  background: transparent;
}

.region-card--soon .region-card__name { color: var(--ink-soft); }

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

.faq-item {
  border-top: 1px solid var(--line-light);
}

.faq-item:last-child { border-bottom: 1px solid var(--line-light); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink);
  transition: color var(--t-fast) ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--g1); }

.faq-item__chevron {
  flex: none;
  width: 22px; height: 22px;
  color: var(--go);
  transition: transform .3s var(--ease-out);
}

.faq-item[open] .faq-item__chevron { transform: rotate(45deg); }

.faq-item__body {
  max-width: 720px;
  padding: 0 4px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-item__body p + p { margin-top: 12px; }

.faq-item__body a {
  color: var(--g1);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- RegionBanner (предложение региональной версии) ---------- */

.region-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 250;
  max-width: 420px;
  background: var(--g2);
  color: var(--wh);
  border: 1px solid rgba(234, 242, 238, .16);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}

.region-banner.in { opacity: 1; transform: none; }

.region-banner__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.region-banner__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--wh-faint);
  margin-bottom: 18px;
}

.region-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .region-banner { opacity: 1; transform: none; transition: none; }
}

/* ---------- Radar ping ---------- */

.ping {
  position: relative;
  width: 8px; height: 8px;
  flex: none;
}

.ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--or);
}

.ping__ring {
  position: absolute;
  inset: -3px;
  border: 1.5px solid var(--or);
  border-radius: 50%;
  animation: ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}

.ping__ring:nth-child(2) { animation-delay: 1.3s; }

@keyframes ping {
  0%   { transform: scale(1); opacity: .65; }
  100% { transform: scale(4); opacity: 0; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--g2);
  color: var(--wh);
  padding: 56px var(--px) 48px;
  border-top: 1px solid var(--line-dark);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { height: 26px; width: auto; }

.footer__tagline {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wh-ghost);
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--wh-ghost);
}

.footer__meta a { color: var(--wh-soft); transition: color var(--t-fast) ease; }
.footer__meta a:hover { color: var(--wh); }
