@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Общие цвета и фон ---------- */
:root {
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-alt: #f9fafb;
  --bg-recommended: #eef3ff;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --accent-orange: #f97316;
  --text-main: #0f172a;
  --text-subtle: #6b7280;
  --pill-bg: #f3f4f6;
  --pill-bg-accent: rgba(37, 99, 235, 0.08);
  --pill-bg-ai: rgba(37, 99, 235, 0.1);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
  --radius-card: 26px;
  --radius-pill: 999px;
}

/* Чтобы цены-страница была белой и «айфоновской» */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #f9fbff 0, #f5f5f7 28%, #f4f4f5 100%);
  color: var(--text-main);
}

/* ---------- Обёртка страницы ---------- */

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* ---------- Шапка ---------- */

.header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 32px 40px;

  box-shadow: 0 10px 38px rgba(15, 23, 42, 0.06);

  /* NEW */
  width: 100%;
  margin: 0 auto 40px;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
}

.header-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.header-brand-subtitle {
  font-size: 13px;
  color: var(--text-subtle);
}

/* бейдж под брендом */

.badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-size: 12px;
  color: var(--text-subtle);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

/* заголовки */

.title {
  margin: 0;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #2563eb, #4f46e5, var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: #111827;
  /* для браузеров без background-clip:text цвет остаётся тёмным, градиент просто игнорируется */
}

.subtitle {
  margin: 0;
  max-width: 640px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.5;
}

/* подсказки + переключатели */

.hint {
  font-size: 12px;
  color: var(--text-subtle);
}

.region-lang-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 13px;
  color: var(--text-subtle);
}

.region-lang-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-lang-toggle select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 13px;
}

/* переключатель ежемесячно / ежегодно */

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  margin-top: 4px;
}

.billing-toggle button {
  position: relative;
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  background: transparent;
  color: var(--text-subtle);
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.billing-toggle button.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.billing-toggle .save-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
}

/* ---------- Сетка тарифов ---------- */

.plans-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Карточки тарифов ---------- */

.plan {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.plan::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
}

.plan--recommended {
  background: radial-gradient(circle at top left, #fff3e6 0, #eef3ff 40%, #ffffff 100%);
  box-shadow: var(--shadow-soft);
}

.plan--recommended::before {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 0 22px rgba(249, 115, 22, 0.15);
}

/* заголовки карточек */

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-name {
  font-weight: 600;
  font-size: 16px;
}

.plan-tagline {
  font-size: 13px;
  color: var(--text-subtle);
}

/* цена */

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.plan-price-main {
  font-size: 22px;
  font-weight: 600;
}

.plan-price-main small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-subtle);
  margin-left: 4px;
}

.plan-price-note {
  font-size: 12px;
  color: var(--text-subtle);
}

/* разделитель */

.plan-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.15),
    rgba(148, 163, 184, 0.02)
  );
  margin-top: 4px;
}

/* бейджи под ценой */

.plan-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  font-size: 11px;
  color: var(--text-subtle);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.pill--accent {
  background: var(--pill-bg-accent);
  color: var(--accent-strong);
}

.pill--ai {
  background: var(--pill-bg-ai);
  color: #1d4ed8;
}

/* список фичей */

.features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}

.feature-icon--ok {
  background: #dcfce7;
  color: #16a34a;
}

.feature-icon--neutral {
  background: #e5e7eb;
  color: #4b5563;
}

/* футер карточки */

.plan-footer {
  min-height:90px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-cta {
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
}

.plan-cta span {
  font-size: 16px;
}

.plan-cta--primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5, #f97316);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.plan-cta--primary:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
  opacity: 0.96;
}

.plan-cta--outline {
  background: #ffffff;
  color: var(--accent-strong);
  border: 1px solid rgba(37, 99, 235, 0.45);
}

.plan-cta--outline:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.18);
}

.plan-cta--ghost {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-main);
}

.plan-cta--ghost:hover {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.plan-note {
  font-size: 11px;
  color: var(--text-subtle);
}

/* подпись под сеткой */

.compare-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-subtle);
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.compare-note span {
  font-weight: 500;
  color: var(--accent-strong);
}