/* ===== Общие стили: шрифты, переменные, шапка, навигация, заголовок ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
:root {
  --blue: #1f7bff;
  --blue-deep: #0b5fd6;
  --text: #0f172a;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: #eef0f4;
  --bg-soft: #f5f6f8;
  --bg-card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Шапка */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 30px;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.nav {
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav a {
  color: #334155;
  font-size: 15px;
  padding: 6px 2px;
}
.nav a.active {
  color: #0f172a;
  font-weight: 600;
}
.header-right { /* пустая колонка для центровки навигации */ }

/* Заголовок страницы */
.page-title {
  font-size: 30px;
  font-weight: 800;
  margin: 36px 0 18px;
  letter-spacing: -0.5px;
}

/* Внутренние табы под заголовком */
.subtabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.subtabs a {
  padding: 10px 0;
  color: #94a3b8;
  font-size: 15px;
  position: relative;
}
.subtabs a.active {
  color: #0f172a;
}
.subtabs a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px; background: #0f172a;
  border-radius: 2px;
}

/* Подвал страницы */
.page-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  padding: 40px 0 60px;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.page-footer .left a,
.page-footer .right a {
  display: block;
  padding: 6px 0;
}
.page-footer .right { text-align: right; }

/* Универсальные карточки */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card-soft {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h3, .section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Поле «Лейбл / значение / действие» */
.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.field:last-child { border-bottom: none; }
.field .label { color: #94a3b8; font-size: 13px; }
.field .value { font-size: 15px; font-weight: 600; color: #0f172a; }
.field .action {
  font-size: 14px; color: #0f172a; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: 999px; border: 0;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 15px;
}
.btn:hover { background: var(--blue-deep); }
.btn-ghost {
  background: transparent; color: #0f172a;
  border: 1px solid var(--line);
}

/* Карточка карты оплаты */
.pay-row {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0;
}
.pay-icon {
  width: 36px; height: 24px; border-radius: 4px;
  background: linear-gradient(135deg,#ff5f5f,#ffb547);
  position: relative; flex: none;
}
.pay-icon::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.pay-num { font-weight: 700; letter-spacing: 0.5px; }
.pay-exp { color: #94a3b8; font-size: 13px; }
.badge {
  margin-left: auto;
  padding: 6px 10px; border-radius: 999px;
  background: #f1f5f9; color: #475569;
  font-size: 12px;
}

/* Список действий с иконкой и шевроном */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.row + .row { margin-top: 10px; }
.row .chev { margin-left: auto; color: #94a3b8; }
.row .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: #f1f5f9; display: grid; place-items: center;
  color: #64748b; font-size: 14px; flex: none;
}

/* Сеансы */
.session {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.session:last-child { border-bottom: none; }
.session .dev {
  width: 28px; height: 28px;
  border: 1px solid #cbd5e1; border-radius: 4px;
}
.session .meta { font-size: 14px; }
.session .meta b { font-weight: 600; }
.session .meta .sub { color: #94a3b8; font-size: 13px; }
.session .action {
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
  color: #0f172a;
}

/* Premium блок (картинка-собака рисуем через градиент-плейсхолдер) */
.premium {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #f5f6f8;
  border-radius: 18px;
  padding: 28px 28px 28px 32px;
  gap: 24px;
}
.premium h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.premium p { margin: 0 0 18px; color: #64748b; max-width: 320px; }
.dog {
  width: 180px; height: 130px;
  background:
    radial-gradient(circle at 30% 40%, #ff8aa1 0 14px, transparent 15px),
    radial-gradient(circle at 70% 50%, #3aa0ff 0 60px, transparent 61px);
  border-radius: 50%;
  position: relative;
}

/* Маленький утилитарный grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }

/* Возврат на главную (для всех вариантов) */
.back {
  position: fixed; left: 16px; bottom: 16px;
  background: #0f172a; color: #fff;
  padding: 10px 14px; border-radius: 999px;
  font-size: 13px; box-shadow: var(--shadow);
  z-index: 100;
}
.back:hover { background: #1e293b; }
