/* =========================================================
   ТулаСА — дизайн-система
   Бумага, синие чернила, красная печать
   ========================================================= */

/* ---------- Шрифты ---------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Prata";
  src: url("../fonts/prata-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Prata";
  src: url("../fonts/prata-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */

:root {
  --navy: #203c8f;
  --navy-deep: #172c6b;
  --navy-soft: #e8ecf8;
  --red: #e1252f;
  --red-deep: #c41d26;
  --paper: #f7f3ec;
  --paper-2: #fffdf8;
  --paper-3: #f1ece2;
  --ink: #171a21;
  --muted: #62666e;
  --muted-2: #8a8d94;
  --line: #dcd4c6;
  --line-strong: #c9bfad;
  --white: #ffffff;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 44px rgba(23, 26, 33, 0.09);
  --shadow-soft: 0 8px 24px rgba(23, 26, 33, 0.06);
  --radius: 5px;
  --container: 1180px;
  --header-height: 84px;
}

/* ---------- Сброс ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(
    rgba(23, 26, 33, 0.038) 0.55px,
    transparent 0.55px
  );
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Сетка и типографика ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--paper-2 {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 54px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head > :last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}

h3 {
  font-size: clamp(21px, 2.3vw, 28px);
}

h4 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 720px;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

.text-red {
  color: var(--red);
}

.text-navy {
  color: var(--navy);
}

.small {
  font-size: 13px;
  line-height: 1.55;
}

.tiny {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.nowrap {
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
}

.eyebrow--light {
  color: #c9d3f5;
}

.eyebrow--light::before {
  background: #ff6b70;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(32, 60, 143, 0.24);
}

.btn--accent {
  background: var(--red);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--red-deep);
  box-shadow: 0 10px 24px rgba(225, 37, 47, 0.24);
}

.btn--outline {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--light {
  background: var(--paper-2);
  color: var(--navy);
}

.btn--light:hover {
  background: var(--white);
}

.btn--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}

.btn--wide {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Шапка ---------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__item svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}

.topbar__phone {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar__phone:hover {
  color: #ff9da2;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.93);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 30px rgba(23, 26, 33, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

/* Логотип */

.logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
}

.logo__word {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.logo__tula {
  color: var(--navy);
}

.logo__sa {
  color: var(--red);
}

.logo__sub {
  margin-top: 5px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.logo--footer .logo__tula {
  color: var(--white);
}

.logo--footer .logo__sa {
  color: #ff5a61;
}

.logo--footer .logo__sub {
  color: rgba(255, 255, 255, 0.48);
}

/* Навигация */

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 94px) 0 clamp(44px, 6vw, 76px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero__lead {
  max-width: 570px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 12px;
}

.hero__meta strong {
  color: var(--ink);
}

.hero__meta .stars {
  color: var(--red);
  letter-spacing: 1px;
}

/* Композиция из документов */

.hero__visual {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
}

.doc-stack {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 0.94;
}

.doc {
  position: absolute;
  overflow: visible;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.doc--back {
  inset: 7% 1% 11% 15%;
  transform: rotate(-7deg);
  background: var(--paper-3);
}

.doc--mid {
  inset: 3% 9% 7% 3%;
  transform: rotate(4.5deg);
}

.doc--front {
  inset: 12% 6% 9% 9%;
  transform: rotate(-1.5deg);
}

.doc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.doc__label {
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.doc__code {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.doc__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

.doc__photo {
  width: 74px;
  height: 92px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--paper-3), var(--paper));
  position: relative;
}

.doc__photo::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 28px;
  border-radius: 50% 50% 0 0;
  background: rgba(32, 60, 143, 0.14);
}

.doc__line {
  height: 1px;
  margin: 9px 0;
  background: var(--line);
}

.doc__line--short {
  width: 58%;
}

.doc__line--mid {
  width: 78%;
}

.doc__mrz {
  display: flex;
  gap: 4px;
  margin-top: 18px;
}

.doc__mrz span {
  display: block;
  height: 6px;
  flex: 1;
  background: var(--ink);
  opacity: 0.16;
}

.doc__stamp {
  position: absolute;
  right: -26px;
  bottom: -22px;
  width: 156px;
  transform: rotate(-13deg);
  filter: drop-shadow(0 6px 8px rgba(225, 37, 47, 0.08));
}

.doc__tag {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 7px 12px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 0 5px 14px rgba(225, 37, 47, 0.25);
}

.doc__note {
  position: absolute;
  right: 0;
  bottom: 1%;
  z-index: 3;
  max-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  transform: rotate(2deg);
}

.doc__note strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

/* ---------- Полоса доверия ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.trust__item {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}

.trust__item:first-child {
  border-left: 0;
}

.trust__value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1;
}

.trust__label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ---------- Карточки ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.card__num {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.card h3 {
  margin: 14px 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
}

.card__price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.card__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card:hover .card__link::after {
  transform: translateX(3px);
}

/* Карточка-сценарий */

.card--scenario {
  position: relative;
  min-height: 100%;
  padding-top: 34px;
}

.card--scenario h3 {
  font-size: clamp(22px, 2.2vw, 27px);
}

.card--scenario .card__price {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
}

.card--scenario .card__price strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.card--scenario .card__price span {
  display: block;
  margin-top: 4px;
  text-align: left;
}

.card--featured {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.card--featured h3,
.card--featured .card__price strong {
  color: var(--white);
}

.card--featured p,
.card--featured .card__price span {
  color: rgba(255, 255, 255, 0.7);
}

.card--featured .card__price {
  border-color: rgba(255, 255, 255, 0.2);
}

.card--featured .card__link {
  color: #fff;
}

.card--featured:hover {
  border-color: var(--navy-deep);
}

.card__badge {
  position: absolute;
  top: 0;
  right: 18px;
  padding: 6px 10px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

/* ---------- Синяя секция «Патент» ---------- */

.patent {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

.patent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.55;
  pointer-events: none;
}

.patent .container {
  position: relative;
  z-index: 1;
}

.patent h2 {
  color: var(--white);
}

.patent p {
  color: rgba(255, 255, 255, 0.74);
}

.patent .card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  color: var(--white);
}

.patent .card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.patent .card p {
  color: rgba(255, 255, 255, 0.7);
}

.patent .card__price {
  border-color: rgba(255, 255, 255, 0.18);
}

.patent .card__price strong,
.patent .card__price span {
  color: var(--white);
}

.patent .card__price span {
  color: rgba(255, 255, 255, 0.6);
}

.patent .card__link {
  color: var(--white);
}

.patent__stamp {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 310px;
  opacity: 0.13;
  transform: rotate(14deg);
  pointer-events: none;
}

.patent__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.patent__head p {
  max-width: 480px;
}

.patent__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* ---------- Таблицы цен ---------- */

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.price-table th,
.price-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-table td {
  font-size: 15px;
}

.price-table td:first-child {
  font-weight: 600;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.price-table .price {
  color: var(--navy);
  font-weight: 800;
}

.price-table .term {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.price-table tr.is-featured td {
  background: var(--navy-soft);
}

.price-table .price-group th {
  padding: 30px 14px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price-table .price-group:first-child th {
  padding-top: 18px;
}

.table-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.step {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__num {
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Языки ---------- */

.langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.langs__group {
  padding-top: 16px;
  border-top: 2px solid var(--navy);
}

.langs__group h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.langs__group p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- Почему мы ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.why__item {
  padding: 30px;
  background: var(--paper-2);
}

.why__item h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.why__item p {
  color: var(--muted);
  font-size: 14px;
}

.why__num {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.why-aside {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
}

.why-aside img {
  width: 190px;
  margin: 0 auto 22px;
  transform: rotate(-7deg);
}

.why-aside p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Отзывы ---------- */

.rating-big {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.rating-big__value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 76px);
  line-height: 0.9;
}

.rating-big__meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.stars {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}

.review {
  position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.review::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1;
  opacity: 0.22;
}

.review__text {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.65;
}

.review__author {
  margin-top: 18px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review__author span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-weight: 500;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  max-width: 820px;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.contact-list li,
.contact-list__row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-list dd a:hover {
  color: var(--navy);
}

.contact-list .small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.map {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.map iframe {
  display: block;
  width: 100%;
  height: 290px;
  border: 0;
  filter: grayscale(0.2) contrast(0.96);
}

.map__fallback {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.map__fallback a {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- CTA-полоса ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 54px);
  background: var(--navy);
  color: var(--white);
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 40px);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.cta-band__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Внутренние страницы ---------- */

.page-hero {
  padding: clamp(44px, 6vw, 78px) 0 clamp(34px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--navy);
}

.breadcrumbs span {
  color: var(--line-strong);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
}

.page-hero .lead {
  max-width: 760px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--paper-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pill--navy {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.pill--red {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.pill--ghost {
  background: transparent;
}

.notice {
  padding: 18px 20px;
  border-left: 3px solid var(--red);
  background: rgba(225, 37, 47, 0.055);
  font-size: 14px;
  line-height: 1.6;
}

.notice strong {
  color: var(--red);
}

.notice--navy {
  border-left-color: var(--navy);
  background: var(--navy-soft);
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 1.4em;
  font-size: clamp(26px, 3vw, 36px);
}

.prose h3 {
  margin-top: 1.3em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
  transform: rotate(-45deg);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.info-band__item {
  padding: 24px;
  background: var(--paper-2);
}

.info-band__value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
}

.info-band__label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Подвал ---------- */

.footer {
  padding: 62px 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}

.footer__brand p {
  max-width: 320px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.65;
}

.footer__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.footer__rating span {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 500;
}

.footer h3 {
  margin: 4px 0 16px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col a,
.footer__col p {
  display: block;
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.5;
}

.footer__col p {
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

/* ---------- Мобильная панель ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(10px);
}

.mobile-bar__btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mobile-bar__btn--accent {
  background: var(--red);
}

/* ---------- Анимации ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 16px;
    font-size: 12px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .footer__top {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .topbar__item:first-child {
    display: none;
  }

  .header__inner {
    gap: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .header {
    backdrop-filter: none;
    background: var(--paper);
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) + 39px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .header__actions .btn {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
    order: 2;
  }

  .doc-stack {
    width: min(380px, 88%);
  }

  .trust__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust__item:nth-child(4) {
    border-left: 0;
  }

  .grid-3,
  .grid-4,
  .langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    padding: 22px 22px 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    border-bottom: 0;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-aside {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
  }

  .why-aside img {
    width: 120px;
    margin: 0;
    flex-shrink: 0;
  }

  .contact-grid,
  .patent__head {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .topbar__inner {
    justify-content: center;
    min-height: 36px;
  }

  .topbar__group:first-child,
  .topbar__item--email {
    display: none;
  }

  .topbar__group {
    display: flex;
    gap: 14px;
  }

  .header__actions .btn {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .page-hero h1 {
    font-size: clamp(32px, 8.5vw, 42px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    min-height: 320px;
  }

  .doc-stack {
    width: min(340px, 94%);
  }

  .doc {
    padding: 20px;
  }

  .doc__stamp {
    width: 124px;
    right: -18px;
    bottom: -14px;
  }

  .doc__note {
    right: 2%;
    bottom: -2%;
    max-width: 140px;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__item:nth-child(3),
  .trust__item:nth-child(5) {
    border-left: 0;
  }

  .trust__item:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .langs,
  .why {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding-right: 0;
    border-right: 0;
  }

  .step:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }


  .contact-list li {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .why-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    padding: 28px 22px;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 68px;
  }
}

/* ---------- Дополнения для внутренних страниц ---------- */

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.contact-grid > *,
.split > *,
.why-layout > *,
.review-grid > *,
.steps > * {
  min-width: 0;
}

.table-wrap {
  max-width: 100%;
}

.sticky-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.price-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.price-card__label {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-card__value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
}

.price-card__value small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.price-card__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.price-card .btn {
  margin-top: 18px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.contact-card__phone {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.contact-card__phone a:hover {
  color: var(--red);
}

.contact-card .btn-row {
  margin-top: 18px;
}

.btn--max {
  background: linear-gradient(135deg, #5B5FEF, #8A3FE0);
  color: #fff;
  border-color: transparent;
}

.btn--max:hover {
  filter: brightness(1.08);
}

.max-qr {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.max-qr img {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.max-qr h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.max-qr p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.calc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.calc h2 {
  margin: 4px 0 10px;
}

.calc p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.calc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .calc {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .max-qr {
    flex-direction: column;
    text-align: center;
  }
}

.phone-big {
  display: inline-block;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.phone-big:hover {
  color: var(--red);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-cloud .pill {
  background: var(--paper-2);
  font-weight: 700;
}

.not-found {
  display: flex;
  min-height: 58vh;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.error-code {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 210px);
  line-height: 0.8;
}

.not-found h1 {
  margin-top: 24px;
  font-size: clamp(30px, 4vw, 44px);
}

.prose .notice {
  margin: 24px 0;
}

.prose .card {
  margin: 24px 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .sticky-aside {
    position: static;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .card__price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .card__price span {
    text-align: left;
  }

  .price-table {
    min-width: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .price-table td,
  .price-table th {
    padding: 0;
    border: 0;
    text-align: left !important;
    white-space: normal;
  }

  .price-table td:first-child {
    margin-bottom: 4px;
  }

  .price-table td:nth-child(2),
  .price-table td:last-child {
    display: inline-block;
    width: auto;
    margin-top: 4px;
    margin-right: 16px;
  }

  .price-table td:nth-child(2) {
    color: var(--muted);
    font-size: 13px;
  }

  .price-table .price-group th {
    display: block;
    padding: 24px 0 8px;
  }
}

.contact-menu {
  position: relative;
}

.contact-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.contact-menu.is-open .contact-menu__list {
  display: block;
}

.contact-menu__list a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-menu__list a:hover {
  background: var(--paper-3);
  color: var(--navy);
}

.langs__group--request {
  border-style: dashed;
}

@media print {
  .topbar,
  .header,
  .mobile-bar,
  .footer,
  .btn,
  .contact-card {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }
}
