:root {
  --paper: #ffffff;
  --surface: #f3f5f6;
  --surface-2: #e7ebee;
  --ink: #14181c;
  --ink-soft: #566270;
  --ink-faint: #7c8791;
  --rule: #d6dce1;
  --rule-strong: #b7c0c8;
  --accent: #b4530b;
  --accent-strong: #93430a;
  --accent-soft: #fdf1e4;
  --accent-bright: #f2a25c;
  --graphite: #191e23;
  --graphite-ink: #eef1f4;
  --graphite-soft: #a9b4bd;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --header-h: 64px;
  --section-y: 48px;
  --gap: 16px;
}

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

html {
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

h1 {
  max-width: min(15em, 100%);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 40;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 64px);
}

.section {
  padding: var(--section-y) 0;
  scroll-margin-top: 96px;
}

.section-alt { background: var(--surface); }

.section-intro {
  max-width: 64ch;
  margin-bottom: 32px;
}

.section-intro .label { margin-bottom: 10px; }
.section-intro h2 { margin-bottom: 12px; }

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.nav-details { margin-left: auto; }
.desktop-nav { display: none; }

.nav-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0 4px 0 12px;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 16px/1.25 var(--font);
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary:hover,
.button-primary:active { background: var(--accent-strong); }

.button-bright {
  background: var(--accent-bright);
  color: var(--ink);
}

.button-bright:hover,
.button-bright:active { background: #f7b478; }

.button-secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover,
.button-secondary:active { background: var(--accent-soft); }

/* Первый экран */

.hero-grid {
  display: grid;
  min-width: 0;
  gap: 34px;
  align-items: start;
}

.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lead { margin-bottom: 26px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .button { width: 100%; }

.hero-note {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* Панель шасси */

.chassis-plate {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
}

.plate-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.chassis {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0;
}

.chassis-face {
  fill: #f7f9fa;
  stroke: #98a3ad;
  stroke-width: 1.5;
}

.chassis-ear {
  fill: #e2e7ea;
  stroke: #98a3ad;
  stroke-width: 1.5;
}

.chassis-hole { fill: #98a3ad; }
.chassis-power { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.chassis-led { fill: var(--accent); }
.chassis-led-off { fill: #c3cbd1; }
.chassis-vents rect { fill: #d3d9de; }

.chassis-port {
  fill: #dde2e6;
  stroke: #b7c0c8;
  stroke-width: 1;
}

.chassis-bay {
  fill: var(--paper);
  stroke: #98a3ad;
  stroke-width: 1.5;
}

.chassis-handle { fill: #d3d9de; }
.chassis-sep { stroke: #c3cbd1; stroke-width: 1.5; }

.plate-specs { margin: 0; }

.plate-specs div {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.plate-specs dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.plate-specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.plate-caption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Тарифы */

.plan-grid {
  display: grid;
  gap: var(--gap);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}

.plan-main {
  display: grid;
  align-content: start;
  gap: 12px;
}

.plan-side {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.plan-head h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}

.plan-code {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.plan-positioning {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.plan-specs { margin: 0; }

.plan-specs div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.plan-specs dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.plan-specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.plan-price-value {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.plan-price-period {
  color: var(--ink-soft);
  font-size: 14px;
}

.plan-note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.plan-conditions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-conditions li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.plan-conditions li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.plan-highlight {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--graphite-ink);
}

.plan-highlight .plan-code,
.plan-highlight .plan-positioning,
.plan-highlight .plan-price-period,
.plan-highlight .plan-note,
.plan-highlight .plan-conditions li { color: var(--graphite-soft); }

.plan-highlight .plan-specs div { border-color: rgba(238, 241, 244, 0.16); }
.plan-highlight .plan-specs dt { color: var(--graphite-soft); }
.plan-highlight .plan-specs dd { color: var(--graphite-ink); }
.plan-highlight .plan-conditions li::before { background: var(--accent-bright); }

.plan-highlight .badge {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: var(--ink);
}

.plan-highlight :focus-visible { outline-color: var(--accent-bright); }

/* Что входит в тариф */

.included {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.included-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.included-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-term {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.included-detail {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.placement {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.placement-city { margin-right: 20px; }

.placement-sep {
  margin-right: 20px;
  color: var(--rule-strong);
}

.placement-zones {
  color: var(--ink);
  font-family: var(--font-mono);
}

/* Сравнение */

.compare { border-top: 1px solid var(--rule-strong); }

.compare-head { display: none; }

.compare-row {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.compare-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.compare-cell {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.compare-cell-accent { color: var(--ink); }

.compare-cell-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}

/* Сценарии */

.usecases {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.usecase {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.usecase-tag {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent);
}

.usecase-head h3 { margin-bottom: 0; }

.usecase-text {
  max-width: 70ch;
  color: var(--ink-soft);
}

/* Особенности */

.feature-grid {
  display: grid;
  gap: 26px;
}

.feature {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.feature h3 { margin-bottom: 10px; }

.feature p {
  max-width: 46ch;
  color: var(--ink-soft);
}

/* Инфраструктура */

.fact-list { margin: 0; }

.fact-list > div {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.fact-list dt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.fact-list dd {
  margin: 0;
  max-width: 70ch;
  color: var(--ink-soft);
}

/* Шаги подключения */

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.steps p {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 15px;
}

/* FAQ */

.faq-wrap { max-width: 1180px; }

.faq-list { border-top: 1px solid var(--rule); }

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-question {
  font-size: 17px;
  line-height: 1.4;
}

.faq-item p {
  max-width: 70ch;
  padding-bottom: 18px;
  color: var(--ink-soft);
}

.faq-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-mark::before,
.faq-mark::after {
  position: absolute;
  background: var(--accent);
  content: "";
}

.faq-mark::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.faq-mark::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-mark::after { display: none; }

/* Финальный блок */

.final-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

.final-panel h2 { margin-bottom: 10px; }

.final-panel p {
  max-width: 60ch;
  color: var(--ink-soft);
}

/* Подвал */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer p { margin-top: 8px; }

.footer-note {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 560px) {
  .plate-specs div {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }

  .plan-specs div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button { width: auto; }
}

@media (min-width: 640px) {
  .included-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 720px) {
  :root {
    --section-y: 64px;
    --gap: 20px;
  }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-highlight {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 36px;
  }

  .plan-highlight .plan-main { grid-column: 1; }
  .plan-highlight .plan-side { grid-column: 2; }
}

@media (min-width: 860px) {
  .compare-head {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--rule);
  }

  .compare-head-label,
  .compare-head-col {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-soft);
  }

  .compare-head-col { font-size: 14px; font-weight: 600; }
  .compare-head-col-accent { color: var(--accent); }

  .compare-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .compare-cell-tag { display: none; }

  .usecase {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }

  .fact-list > div {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
  }

  .steps[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .final-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: 44px;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
    --section-y: 80px;
    --gap: 24px;
  }

  body { font-size: 17px; }
  h1 { font-size: 50px; }
  h2 { font-size: 34px; }
  h3 { font-size: 21px; }
  .lead { font-size: 19px; }

  .nav-details { display: none; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
  }

  .desktop-nav .nav-list {
    display: flex;
    gap: 24px;
  }

  .nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
  }

  .included-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-highlight {
    display: flex;
    grid-column: auto;
    grid-template-columns: none;
  }

  .plan-highlight .plan-main,
  .plan-highlight .plan-side { grid-column: auto; }
}

@media (min-width: 1440px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    gap: 72px;
  }

  .section-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    column-gap: 72px;
    align-items: start;
    max-width: none;
  }

  .section-intro .label { grid-column: 1; grid-row: 1; }
  .section-intro h2 { grid-column: 1; grid-row: 2; text-wrap: normal; }
  .section-intro .lead { grid-column: 2; grid-row: 2; max-width: 72ch; }

  /* Заголовок без вводного текста занимает всю ширину полосы. */
  .section-intro:not(:has(.lead)) h2 { grid-column: 1 / -1; }

  .usecase {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 72px;
  }

  .fact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 72px;
  }
}

@media (max-width: 1023px) {
  .nav-details[open] > .nav-panel {
    position: absolute;
    z-index: 21;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 8px;
    max-height: calc(100vh - var(--header-h));
    padding: 8px 0 20px;
    overflow: auto;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .nav-panel .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
