/* ====================================================
   VARIABLES — CSS Custom Properties
   Зависит от: (базовый файл, подключается первым)
==================================================== */

:root {
  --ink: #092433;
  --ink-2: #061b28;
  --ink-3: #0d3144;
  --red: #eb4247;
  --red-2: #ff7b7f;
  --paper: #fff;
  --mist: #f1f1f1;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .08);
  --text: #fff;
  --muted: rgba(255, 255, 255, .68);
  --muted-2: rgba(255, 255, 255, .72);
  --green: #0ad088;
  --purple: #9c6dff;
  --max: 1240px;
  --radius: 18px;
  --shadow: 0 34px 90px rgba(0, 0, 0, .34);
}
/* ====================================================
   BASE — Reset & Foundation
   Зависит от: 1-variables.css
==================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-2);
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  background: var(--ink-2);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* ====================================================
   TYPOGRAPHY — Heading & Text Styles
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 0 0 28px;
  font-size: clamp(42px, 5.45vw, 76px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 900;
  text-wrap: balance;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.13;
  letter-spacing: -.028em;
  font-weight: 900;
  text-wrap: balance;
}

p {
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.nowrap {
  white-space: nowrap;
}

/* ── Correction overrides ── */
h1 {
  max-width: 690px;
  font-size: clamp(40px, 5.05vw, 70px);
  line-height: 1.04;
}
/* ====================================================
   COMPONENTS — Utility & UI Components
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
}

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

/* ── Visually hidden (accessible hiding) ── */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Container ── */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* ── Section ── */
.section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .42;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .24), #000);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ── Colour themes ── */
.dark {
  background: var(--ink-2);
}

.mid {
  background: var(--ink);
}

.deep {
  background: #041622;
}

/* ── Button ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #c92227;
  color: #fff;
  box-shadow: 0 18px 44px rgba(201, 34, 39, .28);
}

.button.primary:hover {
  background: #a81c20;
}

.button.ghost {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
}

/* ── News cards (legacy component) ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-copy {
  grid-column: 1 / -1;
  max-width: 820px;
  margin-bottom: 12px;
}

.news-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 18px;
}

.news-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--red-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.news-card p {
  font-size: 14px;
}

/* ── Cookies banner (1:1 Selectel) ── */
.cookies-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1050;
  background: #fff;
  border: 1px solid rgba(9, 36, 51, .1);
  border-radius: 16px;
  padding: 20px;
  width: calc(100vw - 48px);
  max-width: 532px;
  display: grid;
  grid-template-areas: "content close" "footer footer";
  grid-template-columns: 1fr 26px;
  row-gap: 16px;
  align-items: start;
  box-shadow: 0 8px 32px rgba(9, 36, 51, .1);
}

.cookies-banner[hidden] { display: none; }

.cookies-banner__content { grid-area: content; }

.cookies-banner__content h5 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #092433;
  line-height: 1.2;
}

.cookies-banner__content p {
  margin: 0;
  font-size: 14px;
  color: rgba(9, 36, 51, .8);
  line-height: 1.4;
}

.cookies-banner__content a {
  color: #092433;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies-banner__nowrap { white-space: nowrap; }

.cookies-banner__close {
  grid-area: close;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(9, 36, 51, .05);
  cursor: pointer;
  color: #092433;
  border-radius: 4px;
  padding: 0;
  flex-shrink: 0;
}

.cookies-banner__close:hover { background: rgba(9, 36, 51, .12); }

.cookies-banner__footer {
  grid-area: footer;
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.cookies-banner__accept {
  padding: 7px 20px;
  border-radius: 6px;
  border: none;
  background: #092433;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.cookies-banner__accept:hover { background: #00101f; }

.cookies-banner__more {
  padding: 7px 20px;
  border-radius: 6px;
  border: 1px solid rgba(9, 36, 51, .3);
  background: transparent;
  color: #092433;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.cookies-banner__more:hover { background: rgba(9, 36, 51, .06); }

@media (max-width: 600px) {
  .cookies-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
  }
  .cookies-banner__nowrap { white-space: normal; }
  .cookies-banner__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cookies-banner__accept,
  .cookies-banner__more {
    text-align: center;
    white-space: normal;
  }
}
/* ====================================================
   LAYOUT — Header, Nav & Footer
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

/* ── Site header ── */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 76px;
  background: rgba(6, 27, 40, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

/* ── Brand ── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -.035em;
}

.brand-mark {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

.brand-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.brand-mark i:nth-child(1) {
  left: 1px;
  top: 1px;
}

.brand-mark i:nth-child(2) {
  right: 1px;
  top: 1px;
}

.brand-mark i:nth-child(3) {
  left: 1px;
  bottom: 1px;
}

.brand-mark i:nth-child(4) {
  right: 1px;
  bottom: 1px;
}

.brand-selectel {
  display: block;
  flex-shrink: 0;
}

.brand-cross {
  font-size: 18px;
  color: rgba(255, 255, 255, .38);
  margin-top: 3px;
}

.brand-itmo {
  font-size: 18px;
  color: var(--red);
  letter-spacing: .05em;
  margin-top: 3px;
}

/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
}

.nav a:hover {
  color: #fff;
}

.nav .button {
  min-height: 42px;
  padding: 11px 16px;
  color: #fff;
}

/* ── Mobile menu button ── */
.menu-button {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: transparent;
  color: #fff;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

body.menu-open {
  overflow: hidden;
}

/* ── Footer ── */
footer {
  padding: 36px 0;
  background: #061b28;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.footer-legal {
  margin-top: 6px;
}

.footer-legal a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--muted);
}
/* ====================================================
   HERO — Первый экран
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.hero {
  min-height: 860px;
  padding: 150px 0 94px;
  background:
    radial-gradient(circle at 88% 68%, rgba(235, 66, 71, .2), transparent 28%),
    linear-gradient(135deg, #061b28, #092433 58%, #061b28);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr);
  gap: 46px;
  align-items: stretch;
}

.hero-copy p {
  max-width: 650px;
  font-size: 19px;
  line-height: 1.62;
}

.hero-key {
  max-width: 650px;
  margin: 28px 0;
  padding-left: 22px;
  border-left: 4px solid var(--red);
  color: #fff;
  font-size: 18px;
  line-height: 1.54;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Hero visual ── */
.hero-visual {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 66px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 132px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

/* ── Visual core ── */
.visual-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.visual-core > div {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .28);
}

.visual-core b {
  display: block;
  font-size: 48px;
  letter-spacing: -.05em;
}

.visual-core span {
  display: block;
  margin-top: -18px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  letter-spacing: .24em;
}

/* ── Agent cards ── */
.agent {
  position: absolute;
  z-index: 3;
  width: 178px;
  height: 145px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(6, 27, 40, .75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.agent::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--red);
  margin-bottom: 14px;
}

.agent b {
  display: block;
  font-size: 14px;
}

.agent small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.42;
}

.a1 {
  left: 70px;
  top: 70px;
}

.a2 {
  right: 70px;
  top: 70px;
}

.a3 {
  left: 26px;
  bottom: 190px;
}

.a4 {
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
}

.a5 {
  right: 26px;
  bottom: 190px;
}

/* ── Hero caption ── */
.hero-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
}
/* ====================================================
   PLATFORM — Слои платформы Selectel × ИТМО
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

/* ── Section head ── */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

/* ── Platform map ── */
.platform-map {
  display: grid;
  grid-template-columns: 290px minmax(320px, 1fr) 300px;
  gap: 28px;
  align-items: center;
}

/* ── Layers ── */
.layers {
  display: grid;
  gap: 16px;
}

.layer-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .03);
  border-radius: 14px;
}

.layer-item span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.layer-item b {
  display: block;
  font-size: 15px;
}

.layer-item small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Platform art ── */
.accent-itmo {
  background: var(--red);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
}

.accent-selectel {
  background: var(--red);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
}

.platform-art {
  margin: 0;
  display: grid;
  place-items: center;
}

.platform-art img {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 32px 62px rgba(0, 0, 0, .42));
}

/* ── Platform callouts ── */
.platform-callouts {
  display: grid;
  gap: 34px;
}

.callout {
  padding: 23px 0 23px 28px;
  border-left: 2px solid var(--red);
  position: relative;
}

.callout::before,
.callout::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 30px;
  height: 2px;
  background: var(--red);
}

.callout::before {
  top: 0;
}

.callout::after {
  bottom: 0;
}

.callout b {
  display: block;
  font-size: 25px;
  line-height: 1.12;
}

.callout p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* ── Platform equation ── */
.platform-equation {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 0;
  margin-top: 36px;
}

.platform-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .028);
}

.platform-card.outcome {
  border-color: rgba(235, 66, 71, .72);
  background: linear-gradient(135deg, rgba(235, 66, 71, .09), rgba(255, 255, 255, .025));
}

.platform-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(235, 66, 71, .62);
  border-radius: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.platform-card h3 {
  font-size: 26px;
}

.platform-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, .64);
  font-size: 14px;
}

.platform-card li + li {
  margin-top: 8px;
}

.platform-card li::marker {
  color: var(--red);
}

.platform-sign {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
}

/* ── Correction overrides ── */
.platform-map {
  grid-template-columns: 290px minmax(330px, 1fr) 260px;
  align-items: center;
}

.platform-art img {
  width: min(100%, 480px);
  height: auto;
}

.callout b {
  font-size: 24px;
}

.callout p {
  font-size: 14px;
  line-height: 1.5;
}
/* ====================================================
   PRODUCTS — Карточки продуктов (Сигнал, Карта, Цех)
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.sp-head {
  max-width: 980px;
  margin-bottom: 44px;
}

.sp-head p {
  max-width: 900px;
  color: var(--muted);
  font-size: 17px;
}

/* ── Products grid ── */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ── Product card ── */
.sp-card {
  --sp-accent: #4da3e4;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 740px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .028));
  overflow: hidden;
  transition: .24s ease;
}

.sp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--sp-accent), transparent 75%);
}

.sp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 24px 58px -32px #000;
}

.sp-card--01 { --sp-accent: #4da3e4; }
.sp-card--02 { --sp-accent: #9c6dff; }
.sp-card--03 { --sp-accent: #0ad088; }

/* ── Card top row ── */
.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sp-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sp-num b {
  color: var(--sp-accent);
}

.sp-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: var(--sp-accent);
}

.sp-icon svg {
  width: 23px;
  height: 23px;
}

/* ── Card body ── */
.sp-name {
  font-size: 27px;
  line-height: 1.12;
}

.sp-desc {
  margin-top: 8px;
  color: var(--sp-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sp-lead {
  margin-top: 15px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.62;
}

/* ── Metrics ── */
.sp-metrics-label {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
}

.sp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.sp-metric .v {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.sp-metric .l {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.28;
}

/* ── Moments list ── */
.sp-moments {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 18px 0 0;
  list-style: none;
  padding: 0;
}

.sp-moments li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
}

.sp-moments li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--sp-accent);
  transform: rotate(45deg);
}

/* ── Pills ── */
.sp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sp-pill {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.sp-pill b {
  color: #fff;
}

/* ── CTA link ── */
.sp-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.sp-cta::after {
  content: "→";
  color: var(--sp-accent);
}

.sp-cta:hover {
  border-color: var(--sp-accent);
  background: rgba(255, 255, 255, .055);
}

/* ── Footer row ── */
.sp-foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: baseline;
}

.sp-foot p {
  max-width: 790px;
  font-size: 13.5px;
  color: var(--muted);
}

.sp-foot .sp-tag {
  font-size: 12px;
  color: var(--muted-2);
}
/* ====================================================
   COMPARE — Сравнительная таблица и рыночные карточки
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.comparison-grid {
  display: grid;
  gap: 28px;
}

/* ── Table wrapper ── */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td {
  color: var(--muted);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: #fff;
}

/* ── Market cards ── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.market-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.market-card b {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.market-card a {
  color: var(--red-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ====================================================
   EVOLUTION — Самоэволюция платформы
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.evolution-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 46px;
}

.evolution-grid h2 {
  font-size: clamp(26px, 2.9vw, 42px);
}

/* ── Tag row ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ── Evolution cards ── */
.evo-cards {
  display: grid;
  gap: 14px;
}

.evo-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 18px;
}

.evo-card p {
  margin: 0;
  font-size: 15px;
}
/* ====================================================
   TECHNOLOGY — Архитектура, методы, размещение
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

/* ── Shared card containers ── */
.architecture,
.cto-card,
.deployment {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 18px;
  overflow: hidden;
}

/* ── Architecture card ── */
.arch-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.arch-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.arch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-tabs span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.arch-row {
  display: grid;
  grid-template-columns: 58px 245px 1fr;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line-2);
}

.arch-row:last-child {
  border-bottom: 0;
}

.arch-num {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.arch-name small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 900;
}

.arch-name strong {
  font-size: 22px;
  line-height: 1.12;
}

.arch-copy p {
  margin: 0 0 12px;
  font-size: 14px;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.arch-tags span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, .12);
}

/* ── CTO card ── */
.cto-card {
  padding: 28px;
  border-color: rgba(235, 66, 71, .38);
  background: linear-gradient(180deg, rgba(235, 66, 71, .08), rgba(255, 255, 255, .03));
}

.cto-card h3 {
  font-size: 30px;
}

.cto-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.cto-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cto-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.cto-item b {
  display: block;
  margin-bottom: 6px;
}

.cto-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

/* ── Method grid ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 24px;
}

.method-card {
  min-height: 210px;
  padding: 26px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
}

.method-card:nth-child(3n) {
  border-right: 0;
}

.method-card:nth-last-child(-n+3) {
  border-bottom: 0;
}

.method-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--red-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.method-card h3 {
  font-size: 22px;
}

.method-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Deployment section ── */
.deployment {
  margin-top: 34px;
  padding: 30px;
}

.deployment-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.deployment-head h3 {
  font-size: 34px;
}

.deploy-tree {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
}

.deploy-root {
  padding: 24px;
  border: 1px solid rgba(235, 66, 71, .55);
  background: rgba(235, 66, 71, .08);
  border-radius: 16px;
}

.deploy-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deploy-mode {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .13);
  border-radius: 16px;
}

.deploy-mode strong {
  display: block;
  font-size: 21px;
}

.deploy-mode p {
  font-size: 13px;
}
/* ====================================================
   PRINCIPLES — Инженерные принципы
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

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

.principle {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 18px;
}

.principle-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(235, 66, 71, .52);
  border-radius: 50%;
  color: var(--red);
  font-size: 20px;
}

.principle h3 {
  font-size: 23px;
}

.principle p {
  margin: 0;
  font-size: 14px;
}
/* ====================================================
   CONTACT — Форма обратной связи
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.contact::before {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(440px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-key {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 16px;
}

/* ── Form card ── */
.form-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .32);
}

.form-card h3 {
  color: var(--ink);
  font-size: 30px;
}

.form-card p {
  color: #56606a;
}

/* ── Form grid ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* ── Field ── */
.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: #294353;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd6dc;
  border-radius: 9px;
  background: #fff;
  color: #092433;
  padding: 12px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.required {
  color: var(--red);
}

/* ── Captcha ── */
.form-captcha {
  margin-top: 18px;
}

/* ── Form footer ── */
.form-footer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 18px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  color: #294353;
  flex: 1;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #092433;
  cursor: pointer;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
}

.form-consent a:hover {
  color: #092433;
}

/* ── Form status messages ── */
.form-success {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #e8f7f1;
  color: #01744b;
  font-weight: 700;
}

.form-error {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #fde8e8;
  color: #c92227;
  font-weight: 700;
}

.field-error {
  display: block;
  color: #c92227;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.4;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c92227;
  outline-color: #c92227;
}
/* ====================================================
   FAQ — Часто задаваемые вопросы
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(420px, 1fr);
  gap: 48px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 14px;
  overflow: hidden;
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 20px;
  font-weight: 800;
  cursor: pointer;
}

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

summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14px;
}
/* ====================================================
   RESPONSIVE — Media Queries
   Зависит от: 1-variables.css, 2-base.css
==================================================== */

/* ── Breakpoint 1120px ── */
@media (max-width: 1120px) {
  .hero-grid,
  .section-head,
  .platform-map,
  .evolution-grid,
  .tech-grid,
  .deployment-head,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 650px;
  }

  .platform-map {
    gap: 34px;
  }

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

  .platform-callouts {
    grid-template-columns: 1fr 1fr;
  }

  .platform-equation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-sign {
    min-height: 28px;
  }

  .sp-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .sp-card {
    min-height: auto;
  }

  .market-grid,
  .method-grid,
  .principle-grid,
  .deploy-branches,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deploy-tree {
    grid-template-columns: 1fr;
  }

  .arch-row {
    grid-template-columns: 44px 1fr;
  }

  .arch-copy {
    grid-column: 2;
  }

  .news-copy {
    grid-column: 1 / -1;
  }
}

/* ── Breakpoint 960px — навигация переходит в бургер ── */
@media (max-width: 960px) {
  .site-header {
    height: 68px;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    background: #061b28;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 24px;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav .button {
    justify-content: center;
  }

  .menu-button {
    display: flex;
  }

  body.menu-open .nav {
    display: flex;
  }

  .brand-selectel {
    font-size: 19px;
  }

  .brand-itmo {
    font-size: 15px;
  }
}

/* ── Breakpoint 760px ── */
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    padding-top: 116px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-visual {
    min-height: auto;
    padding: 26px 14px;
  }

  .agent {
    position: relative;
    inset: auto !important;
    transform: none !important;
    width: auto;
    height: auto;
    margin: 10px 0;
  }

  .visual-core {
    position: relative;
    min-height: 140px;
  }

  .visual-core > div {
    width: 128px;
    height: 128px;
  }

  .visual-core b {
    font-size: 38px;
  }

  .visual-core span {
    margin-top: -12px;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .layers,
  .platform-callouts,
  .market-grid,
  .method-grid,
  .principle-grid,
  .deploy-branches,
  .news-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .arch-top {
    display: block;
  }

  .arch-tabs {
    margin-top: 14px;
  }

  .arch-row {
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .sp-metrics {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .footer-inner {
    display: grid;
    text-align: left;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .sp-card:hover,
  .button:hover {
    transform: none;
  }
}

/* ── Correction responsive overrides ── */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .hero-key,
  h1 {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .platform-map {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-visual {
    min-height: auto;
    padding: 28px 14px 18px;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .visual-core {
    position: relative;
    inset: auto;
    margin: 0 auto 18px;
  }

  .agent {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto;
    margin: 10px 0;
  }

  .hero-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 12px 0 0;
    text-align: left;
  }

  .platform-callouts {
    grid-template-columns: 1fr;
  }
}
