/* ОГЭ на 100 — pay.oge-tutor.ru · DESIGN_SYSTEM v3 (строгая) */

:root {
  --ink: #101418;
  --ink-2: #39434e;
  --ink-3: #4a5560;
  --ink-4: #68727e;
  --ink-5: #9aa3ac;
  --line: rgba(16, 20, 24, 0.1);
  --line-2: rgba(16, 20, 24, 0.12);
  --line-btn: rgba(16, 20, 24, 0.18);
  --bg: #fff;
  --bg-2: #fbfbfc;
  --bg-warm: #fbf7f3;
  --bg-inert: #f1f2f4;
  --accent: #e8641c;
  --accent-hover: #c2560f;
  --accent-promo: #f2870f;
  --ok: #1f7a45;
  --ok-bg: #f2f9f4;
  --err: #b8442a;
  --err-bg: #fdf3f1;
  --blue: #2e6db5;
  --r: 10px;
  --r-card: 14px;

  /* aliases for existing class names */
  --orange: var(--accent);
  --orange-hover: var(--accent-hover);
  --orange-soft: var(--bg-warm);
  --orange-bright: var(--accent-promo);
  --bg-cream: var(--bg-2);
  --bg-cream-deep: var(--bg-inert);
  --bg-card: var(--bg);
  --border: var(--line);
  --border-accent: var(--line-2);
  --text: var(--ink);
  --text-muted: var(--ink-3);
  --ink-mid: var(--ink-2);
  --ink-soft: var(--ink-3);
  --ink-faint: var(--ink-4);
  --ok-soft: var(--ok-bg);
  --ok-dark: var(--ok);
  --danger: var(--err);
  --shadow: none;
  --shadow-hero: none;
  --shadow-btn: none;
  --radius: var(--r-card);
  --radius-card: var(--r-card);
  --radius-sm: var(--r);
  --radius-xs: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hover);
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: #ffe0cc;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Длинные абзацы — читаемая ширина строки; карточки тянутся на весь wrap */
.page-intro,
.lead,
.wrap > p:not(.muted) {
  max-width: 640px;
}

.page-intro {
  margin-left: auto;
  margin-right: auto;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-warm);
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent);
}

.header-links {
  display: flex;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.header-links a {
  color: var(--ink-3);
  text-decoration: none;
}

.header-links a:hover {
  color: var(--accent-hover);
}

/* Shared marketing / legal */
.page-intro {
  text-align: center;
  padding: 24px 0 8px;
}

.page-intro .sub {
  color: var(--ink-3);
  margin-top: 6px;
  font-size: 1.05rem;
}

h2 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 28px 0 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 10px 0;
}

.lead {
  font-size: 1.08rem;
}

.muted {
  color: var(--ink-3);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
}

.feature b {
  display: block;
  margin-bottom: 2px;
  font-weight: 800;
}

.feature small {
  color: var(--ink-3);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 860px) {
  .tiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier.best {
  border-color: var(--accent);
  background: var(--bg-warm);
}

.badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.tier .name {
  font-weight: 800;
  font-size: 1.05rem;
}

.tier .price-old {
  font-size: 0.9rem;
  color: var(--ink-4);
  text-decoration: line-through;
  margin-top: 4px;
}

.tier .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 2px;
  letter-spacing: -0.03em;
}

.tier .note {
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 10px;
}

.price-daily {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  margin: 2px 0 6px;
}

.pay-trust {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.pay-trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-logo.robokassa {
  background: var(--bg-warm);
  border-color: rgba(232, 100, 28, 0.25);
  color: var(--accent-hover);
}

.pay-trust-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.steps {
  counter-reset: s;
  padding: 0;
  margin: 16px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  margin-top: 16px;
}

.box.contacts {
  background: var(--bg-2);
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--r);
  margin-top: 12px;
  transition: background 0.15s var(--ease);
}

.cta:hover {
  color: #fff;
  text-decoration: none;
  background: var(--accent-hover);
}

.req {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 0.92rem;
}

ul.clean {
  padding-left: 20px;
  margin: 8px 0;
}

ul.clean li {
  margin: 6px 0;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--ink-3);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--accent);
}

.legal-doc h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin-top: 32px;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink);
}

.legal-doc .muted {
  color: var(--ink-3);
  font-size: 0.92rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.back:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-doc ol > li {
  margin: 8px 0;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc ul li {
  margin: 6px 0;
}

/* ── Checkout ── */
.co-page,
.checkout-loading {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.co-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
  animation: rise-in 0.45s var(--ease) both;
}

.co-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 16px;
  border-radius: var(--r-card);
  background: var(--bg-warm);
  border: 1px solid var(--line);
}

.co-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.co-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.co-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

.co-sub {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.45;
  text-wrap: balance;
}

.co-mascot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
}

.co-mascot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.co-trust {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.co-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}

.co-trust li svg {
  color: var(--ok);
  flex-shrink: 0;
}

.co-campaign {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--bg-warm);
  border: 1px solid rgba(232, 100, 28, 0.28);
}

.co-campaign-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.co-campaign-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
}

.co-card {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--bg);
  border: 1px solid var(--line);
}

.co-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-tier {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s;
}

.co-tier:hover {
  border-color: rgba(232, 100, 28, 0.45);
}

.co-tier.is-selected {
  border-color: var(--accent);
  background: var(--bg-warm);
}

.co-tier.is-featured {
  padding-top: 28px;
}

.co-tier-badge {
  position: absolute;
  top: -1px;
  left: 14px;
  right: auto;
  max-width: calc(100% - 28px);
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.co-tier.is-featured .co-tier-price-col {
  align-self: center;
  padding-top: 0;
}

.co-tier-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-tier-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.co-tier-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.3;
}

.co-tier-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.co-tier-old {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-4);
  text-decoration: line-through;
  line-height: 1;
}

.co-tier-now {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.co-tier.is-selected .co-tier-now {
  color: var(--accent-hover);
}

.offer-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.4;
}

.offer-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.offer-check a {
  font-weight: 800;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), opacity 0.15s;
}

.btn-pay:not(:disabled):hover {
  background: var(--accent-hover);
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: 1.5px solid var(--line-btn);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(232, 100, 28, 0.5);
  background: var(--bg-warm);
}

.co-stars {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-4);
}

.co-stars a {
  font-weight: 800;
}

.co-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.co-methods span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
}

.checkout-error,
.checkout-info {
  padding: 12px 14px;
  border-radius: var(--r);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-error {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid rgba(184, 68, 42, 0.22);
}

.checkout-info {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(31, 122, 69, 0.28);
}

.checkout-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-3);
  font-weight: 700;
}

.status-page {
  text-align: center;
  padding: 48px 20px 64px;
  max-width: 520px;
  margin: 0 auto;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.status-icon.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(31, 122, 69, 0.28);
}

.status-icon.is-fail {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid rgba(184, 68, 42, 0.22);
}

.status-page h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.status-page p {
  color: var(--ink-3);
  margin: 0 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .co-page {
    animation: none !important;
  }

  .co-tier,
  .btn-pay,
  .btn-secondary,
  .cta {
    transition: none !important;
  }
}
