/* Тариф 86 — local styles, no external fonts or CDN */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #eef0f3;
  --text: #1f2328;
  --text-muted: #5c6570;
  --border: #d9dee5;
  --accent: #c62828;
  --accent-hover: #a61f1f;
  --accent-soft: #fdecea;
  --focus: #1a73e8;
  --shadow: 0 8px 24px rgba(31, 35, 40, 0.08);
  --shadow-sm: 0 2px 8px rgba(31, 35, 40, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --space: 1.25rem;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(198, 40, 40, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(31, 35, 40, 0.04), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  color: var(--accent);
}

.header-nav {
  display: none;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--text);
}

.btn.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--surface-muted);
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }

  .btn.header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #b8c0ca;
  background: var(--surface-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  padding: 2.25rem 0 2rem;
}

.hero-content {
  max-width: 40rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero-title-line {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-lead-line {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.45rem;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 2.75rem 0 2.25rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Tariffs */

.tariff-grid {
  display: grid;
  gap: 1.25rem;
}

.tariff-grid--single {
  justify-items: center;
}

.tariff-grid--single .tariff-card {
  width: 100%;
  max-width: 22.5rem;
}

@media (min-width: 800px) {
  .tariff-grid:not(.tariff-grid--single) {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.tariff-card.featured {
  border-color: rgba(198, 40, 40, 0.35);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.tariff-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.tariff-name {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.tariff-discount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.tariff-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.price-current {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.tariff-features {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tariff-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-top: 1px solid var(--surface-muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.tariff-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.tariff-note {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activation-note {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Steps */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.step-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Form */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 640px;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label,
.field .field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.tariff-fixed {
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: var(--accent);
}

.field-error {
  display: none;
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: 0.875rem;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--accent);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.checkbox-field input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.checkbox-copy {
  min-width: 0;
}

.checkbox-field label {
  display: block;
  font-weight: 400;
  margin: 0;
}

.form-links {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.form-status.is-error {
  background: var(--accent-soft);
  color: #8b1a1a;
  border: 1px solid #f5c6c2;
}

.form-actions {
  margin-top: 0.5rem;
}

/* Links */

.links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.links-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.links-list a:hover {
  border-color: rgba(198, 40, 40, 0.35);
  color: var(--accent);
}

.banner-placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-status p {
  margin: 0;
  line-height: 1.55;
  max-width: 40rem;
}

.footer-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.15rem 0.85rem 0.15rem;
}

.footer-details summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

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

.footer-details summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.footer-details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}

.footer-details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.footer-contacts {
  padding: 0 0 0.95rem;
}

.footer-org {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-contacts dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-contacts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.footer-contacts dd {
  margin: 0;
  color: var(--text);
}

.footer-doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-doc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-doc-list a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.45fr 1fr 0.95fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Legal pages */

.page-content {
  padding: 2.5rem 0 3rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
}

.prose h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .prose {
    padding: 2rem 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
