/* Общие цвета, размеры, типографика и базовые элементы страницы. */
:root {
  --ink: #192647;
  --muted: #65718b;
  --blue: #2638dc;
  --blue-dark: #1d2d9d;
  --cyan: #1bd9e9;
  --soft: #f0f6ff;
  --card: #f7faff;
  --line: #dfe7f7;
  --white: #fff;
  --shadow: 0 16px 36px rgba(30,49,116,.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.55 Arial,Helvetica,sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  max-width: 100%;
}

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

h1,h2,h3 {
  line-height: 1.1;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2rem,3.4vw,3.55rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 0;
}

.container {
  width: min(100% - 64px,1320px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 100px;
  padding: 14px 22px;
  min-height: 48px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s,background .2s,box-shadow .2s;
}

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

.button span {
  font-size: 1.1em;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(38,56,220,.18);
}

.button-primary:hover {
  background: #1426c2;
}

.button-light {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.button-light:hover {
  background: #f3f6ff;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow-cyan {
  color: var(--cyan);
}

.eyebrow-white {
  color: #fff;
}

.brand {
  font-weight: 900;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.brand-dot {
  color: var(--cyan);
}

/* Шапка сайта: логотип, навигация, контакты и меню для узких экранов. */
.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand-header {
  font-size: 1.55rem;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}

.desktop-nav a {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}

.desktop-nav a:hover,.header-phone:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.header-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 6px;
}

.header-hours {
  font-size: .63rem;
  color: #c9cedb;
}

.header-phone {
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

.social-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
}

.social-link img {
  display: block;
}

.button-header {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.55);
  padding: 7px 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .75rem;
  box-shadow: none;
}

.button-header:hover {
  background: #fff;
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  width: 36px;
  height: 34px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.mobile-menu {
  display: none;
}

/* Первый экран: фотография, затемнение и текст поверх фона. */
.hero {
  position: relative;
  min-height: min(720px,100svh);
  color: #fff;
  background: #222;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/images/hero-desktop.webp') center 52%/cover no-repeat;
  pointer-events: none;
}

/* На компьютере фотография остаётся на месте при прокрутке страницы. */
@media (min-width: 851px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-backdrop {
    background-attachment: fixed;
  }
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.57) 52%,rgba(0,0,0,.64));
}

.hero-inner {
  min-height: min(720px,100svh);
  padding-top: 110px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10%;
  position: relative;
}

.hero-overline {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .19em;
  white-space: nowrap;
}

.hero-mark {
  font-weight: 900;
  font-size: clamp(4.5rem,9.8vw,10rem);
  line-height: .8;
  letter-spacing: -.095em;
  margin-top: 28px;
}

.hero-mark span {
  color: var(--cyan);
}

.hero-rule {
  display: block;
  margin-top: 52px;
  width: 72px;
  height: 4px;
  background: var(--cyan);
}

.hero-copy {
  max-width: 570px;
}

.hero-copy h1 {
  font-size: clamp(3.5rem,6.5vw,6.75rem);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 520px;
  font-size: 1.25rem;
  color: #ecf1f7;
  line-height: 1.45;
  margin-bottom: 28px;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #cdd4df;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-scroll span {
  width: 40px;
  height: 1px;
  background: #cdd4df;
}

/* Общие отступы, заголовки и контейнеры разделов. */
.section {
  padding: 110px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-intro {
  color: var(--muted);
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.split-heading>.section-intro {
  margin-bottom: 4px;
}

/* Карточки раздела «Почему мы?». */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 18px;
}

.why-card {
  grid-column: span 2;
  min-height: 220px;
  padding: 28px;
  background: var(--card);
  border: 1px solid #e3eafb;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.why-card:nth-child(4),.why-card:nth-child(5) {
  grid-column: span 3;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e4edff;
}

.icon-box img {
  display: block;
}

.card-index {
  color: #8a9bc4;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.why-card h3,.custom-card h3 {
  margin-bottom: 10px;
}

.why-card p,.custom-card p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

/* Этапы внедрения: карточки и кнопки горизонтального листания. */
.steps-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 1px 12px;
}

.steps-track::-webkit-scrollbar {
  display: none;
}

.step-card {
  position: relative;
  min-width: 0;
  min-height: 286px;
  scroll-snap-align: start;
  background: #fff;
  padding: 27px 24px;
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  font-size: .95rem;
}

.step-number {
  display: block;
  color: var(--blue);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.step-rule {
  display: block;
  width: 45px;
  height: 3px;
  background: var(--cyan);
  margin: 25px 0 20px;
}

.step-card h3 {
  margin-bottom: 11px;
}

.step-card p {
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.45;
}

.steps-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
}

.steps-bottom.has-overflow {
  justify-content: space-between;
}

.step-controls {
  display: flex;
  gap: 8px;
}

.step-controls[hidden] {
  display: none;
}

.step-controls button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #d5dff4;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 1.2rem;
}

.step-controls button:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}

.step-controls button:disabled {
  opacity: .45;
  cursor: default;
}

/* Акцентный раздел со встроенной формой заявки. */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: linear-gradient(110deg,#2937da 5%,#2e55e9 65%,#158acb);
  color: #fff;
}

.contact-section::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.035),0 0 0 150px rgba(255,255,255,.035);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 7%;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(2rem,3.4vw,3.6rem);
  margin-bottom: 16px;
}

.contact-copy>p:last-child {
  color: #e0e9ff;
  max-width: 410px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 11px;
}

.lead-form label>span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: .76rem;
  font-weight: 700;
}

.lead-form input:not([type=checkbox]) {
  display: block;
  width: 100%;
  height: 51px;
  padding: 13px 16px;
  border: 1px solid #dce3f3;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: .92rem;
  outline: none;
}

.lead-form input:not([type=checkbox]):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,217,233,.2);
}

.lead-form input::placeholder {
  color: #9aa6b8;
}

.lead-form input[aria-invalid=true] {
  border-color: #d63c61;
}

.inline-submit {
  height: 51px;
  min-height: 51px;
  padding-inline: 20px;
  font-size: .78rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: #dfe8ff;
  font-size: .72rem;
  line-height: 1.35;
}

.consent input {
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: none;
}

.consent span {
  margin: 0!important;
  font-size: inherit!important;
  font-weight: 400!important;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-feedback {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 700;
}

.form-feedback[data-state=error] {
  color: #ffd9dd;
}

.form-feedback[data-state=success] {
  color: #d9fff3;
}

/* Тарифы: карточки, годовые цены и перечни возможностей. */
.tariff-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.tariff-heading h2 {
  margin-bottom: 15px;
}

.annual-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfcafb;
  border-radius: 100px;
  padding: 10px 17px;
  background: #eef1ff;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 490px;
  padding: 29px 24px 24px;
  border: 1px solid #dfe5ff;
  border-radius: 19px;
  background: #f6f8ff;
  box-shadow: var(--shadow);
}

.tariff-featured {
  border: 2px solid var(--blue);
  background: #fff;
  padding: 28px 23px 23px;
}

.popular-badge {
  position: absolute;
  right: 17px;
  top: -17px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  padding: 6px 13px;
  font-size: .7rem;
  font-weight: 800;
}

.tariff-top {
  min-height: 122px;
  border-bottom: 1px solid var(--line);
}

.tariff-top h3 {
  font-size: 1.22rem;
  margin-bottom: 15px;
}

.tariff-top p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.tariff-details {
  display: grid;
  gap: 3px;
  align-content: start;
  min-height: 152px;
  padding: 25px 0 15px;
  border-bottom: 1px solid var(--line);
}

.tariff-details strong {
  font-size: 1.13rem;
  line-height: 1.1;
}

.tariff-details span {
  color: #8d99b0;
  font-size: .73rem;
  margin-bottom: 10px;
}

.tariff-bottom {
  padding-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.old-price {
  color: #9ba8c1;
  text-decoration: line-through;
  font-size: .78rem;
}

.new-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.price-note {
  display: block;
  margin: 3px 0 19px;
  color: var(--muted);
  font-size: .73rem;
}

.tariff-bottom .button {
  width: 100%;
  min-height: 43px;
  font-size: .78rem;
  padding: 10px 13px;
}

.tariff-features {
  padding-top: 18px;
}

.tariff-features h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: .81rem;
  letter-spacing: .02em;
}

.tariff-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(130,153,206,.15);
  font-size: .78rem;
}

.tariff-features li:last-child {
  border-bottom: 0;
}

.tariff-feature-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  line-height: 1.25;
}

.tariff-feature-label > span:first-child {
  overflow-wrap: anywhere;
}

.tariff-feature-badge {
  flex: none;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: .52rem;
  font-weight: 800;
  white-space: nowrap;
}

.feature-meter {
  display: flex;
  flex: none;
  width: 31px;
  height: 14px;
  gap: 2px;
  padding: 2px;
  border: 1px solid #a8c8fb;
  border-radius: 4px;
  background: #f7fbff;
}

.feature-meter span {
  flex: 1;
  border-radius: 1px;
}

.feature-meter .is-filled {
  background: #58b6ed;
}

.tariff-featured .feature-meter .is-filled {
  background: var(--blue);
}

.tariff-footnote {
  margin-top: 22px;
  color: #8d99ad;
  font-size: .76rem;
}

.tariff-footnote a {
  text-decoration: underline;
}

/* Карточки доработки Битрикс24 под процессы компании. */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.custom-card {
  min-height: 270px;
  padding: 32px;
  background: #fff;
  border: 1px solid #e0e7f7;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.custom-card .icon-box {
  margin-bottom: 44px;
}

/* Завершающий призыв обсудить задачу. */
.closing-section {
  padding: 95px 0;
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 65px;
  border: 1px solid #dce7ff;
  border-radius: 24px;
  background: linear-gradient(110deg,#eef4ff,#eefdff);
}

.closing-card h2 {
  margin-bottom: 13px;
}

.closing-card p:last-child {
  max-width: 650px;
  color: var(--muted);
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: none;
}

.closing-actions a {
  color: var(--blue);
  font-weight: 800;
}

/* Подвал с контактами и ссылкой на политику. */
.site-footer {
  padding: 65px 0 22px;
  background: linear-gradient(115deg,#182469,#2a61d6);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 80px;
  padding-bottom: 70px;
}

.footer-brand {
  font-size: 1.9rem;
}

.footer-about p {
  max-width: 360px;
  margin-top: 18px;
  color: #c2cce9;
  font-size: .88rem;
}

.footer-contact,.footer-address {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .9rem;
}

.footer-label {
  margin-bottom: 6px;
  color: #a9bce8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-phone {
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #7699e5;
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid #6179c5;
  color: #c2cce9;
  font-size: .75rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Всплывающая форма заявки и её затемнённая подложка. */
.application-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  overflow: auto;
  place-items: center;
}

.application-modal[open] {
  display: grid;
}

.application-modal::backdrop {
  background: rgba(10,21,55,.66);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(100%,520px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5,14,52,.3);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
  padding: 22px 28px 10px;
}

.modal-brand {
  font-size: 1.43rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.modal-close:hover {
  background: #dae6ff;
}

.modal-scroll {
  overflow-y: auto;
  padding: 20px 36px 32px;
}

.modal-scroll h2 {
  font-size: 2.45rem;
  margin-bottom: 12px;
}

.modal-description {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.45;
  margin-bottom: 26px;
}

.modal-form {
  display: grid;
  gap: 15px;
}

.modal-form label>span:first-child {
  color: var(--ink);
}

.modal-form .consent {
  color: var(--muted);
  margin-top: 0;
}

.modal-submit {
  width: 100%;
  margin-top: 2px;
}

.modal-form .form-feedback {
  margin-top: -7px;
}

.modal-form .form-feedback[data-state=error] {
  color: #ba254a;
}

.modal-form .form-feedback[data-state=success] {
  color: #0f8b64;
}

.modal-phone-note {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: .83rem;
}

.modal-phone-note a {
  color: var(--blue);
  font-weight: 800;
}

/* Отдельная страница политики и страница ошибки 404. */
.privacy-page .site-header {
  background: #172667;
}

.privacy-main {
  background: #f0f6ff;
}

.privacy-hero {
  padding: 180px 0 75px;
  background: linear-gradient(110deg,#152366,#2863d3);
  color: #fff;
}

.privacy-hero h1 {
  font-size: clamp(2.5rem,5vw,5rem);
  margin-bottom: 16px;
}

.privacy-hero p:last-child {
  max-width: 660px;
  color: #dce7ff;
  font-size: 1.05rem;
}

.privacy-content-section {
  padding: 38px 0 100px;
}

.privacy-container {
  max-width: 1050px;
}

.back-link {
  display: inline-block;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.privacy-paper {
  padding: 65px 75px;
  background: #fff;
  border: 1px solid #e2eaf8;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.privacy-notice {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 14px;
  border-radius: 100px;
  background: #e8eeff;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.privacy-paper h2 {
  font-size: 2.4rem;
  margin-bottom: 32px;
}

.privacy-paper p {
  margin-bottom: 18px;
  color: #47536c;
  line-height: 1.75;
}

.privacy-paper .privacy-bottom-note {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #7786a2;
  font-size: .85rem;
}

.not-found {
  min-height: 70vh;
  padding: 190px 0 110px;
}

.not-found h1 {
  font-size: 4rem;
}

.not-found p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
}

.privacy-hero h1,.privacy-paper h2 {
  overflow-wrap: anywhere;
}

.not-found-page .site-header {
  background: #172667;
}

/* Адаптация: две колонки тарифов и упрощение шапки на средней ширине. */
@media (max-width: 1150px) {
  .header-inner {
    gap: 20px;
  }
  .desktop-nav {
    gap: 16px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-hours {
    display: none;
  }
  .tariff-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .tariff-card {
    min-height: 455px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-copy {
    max-width: 700px;
  }
}

/* Адаптация: компактная навигация и горизонтальный список этапов. */
@media (max-width: 850px) {
  .desktop-nav,.header-actions .social-link,.button-header {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-phone {
    font-size: .85rem;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 32px 24px;
    background: #1a2b7a;
    box-shadow: 0 16px 30px rgba(0,0,0,.25);
  }
  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mobile-menu a {
    font-weight: 700;
  }
  .mobile-menu-socials {
    display: flex;
    gap: 25px;
    margin-top: 5px;
  }
  .hero-inner {
    gap: 6%;
  }
  .hero-mark {
    font-size: clamp(4.5rem,10vw,7rem);
  }
  .split-heading {
    display: block;
  }
  .split-heading>.section-intro {
    margin-top: 18px;
  }
  .why-card,.why-card:nth-child(4),.why-card:nth-child(5) {
    grid-column: span 3;
  }
  .steps-track {
    grid-auto-columns: minmax(230px,45%);
  }
  .custom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .custom-card:last-child {
    grid-column: span 2;
  }
  .footer-grid {
    gap: 35px;
  }
  .closing-card {
    padding: 42px;
  }
}

/* Адаптация для телефонов: одна колонка, мобильное фото и компактные тарифы. */
@media (max-width: 700px) {
  .container {
    width: min(100% - 32px,540px);
  }
  .site-header .container {
    width: min(100% - 32px,540px);
  }
  .header-inner {
    min-height: 68px;
  }
  .brand-header {
    font-size: 1.28rem;
  }
  .header-phone {
    font-size: .74rem;
  }
  .hero {
    min-height: 790px;
  }
  .hero-backdrop {
    background-image: url('/assets/images/hero-mobile.webp');
    background-position: 50% center;
  }
  .hero-backdrop::after {
    background: linear-gradient(180deg,rgba(0,0,0,.68),rgba(0,0,0,.59) 44%,rgba(0,0,0,.7));
  }
  .hero-inner {
    min-height: 790px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 58px;
    padding-top: 100px;
    padding-bottom: 75px;
  }
  .hero-overline {
    font-size: .64rem;
    letter-spacing: .12em;
  }
  .hero-mark {
    margin-top: 18px;
    font-size: clamp(5rem,23vw,8rem);
  }
  .hero-rule {
    margin-top: 29px;
    width: 52px;
  }
  .hero-copy h1 {
    font-size: clamp(3.6rem,14vw,5.4rem);
    margin-bottom: 12px;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .hero-scroll {
    bottom: 25px;
  }
  .section {
    padding: 75px 0;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 2.55rem;
  }
  .section-intro {
    font-size: .96rem;
  }
  .why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .why-card,.why-card:nth-child(4),.why-card:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
    padding: 23px;
  }
  .card-top {
    margin-bottom: 23px;
  }
  .steps-track {
    grid-auto-columns: minmax(248px,83%);
    margin-right: -16px;
    padding-right: 16px;
  }
  .step-card {
    min-height: 265px;
  }
  .steps-bottom {
    margin-top: 19px;
  }
  .contact-section {
    padding: 70px 0;
  }
  .contact-inner {
    display: block;
  }
  .contact-copy {
    margin-bottom: 30px;
  }
  .contact-copy h2 {
    font-size: 2.8rem;
  }
  .inline-fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .inline-submit {
    width: 100%;
    margin-top: 4px;
  }
  .tariff-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .tariff-heading h2 {
    font-size: 2.6rem;
  }
  .annual-badge {
    margin-top: 5px;
  }
  .tariff-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .tariff-card {
    min-height: 0;
    padding: 27px;
  }
  .tariff-top {
    min-height: 0;
    padding-bottom: 20px;
  }
  .tariff-details {
    min-height: 0;
    padding: 22px 0 10px;
  }
  .tariff-bottom {
    padding-top: 16px;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .tariff-features {
    display: none;
  }
  .custom-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .custom-card,.custom-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 25px;
  }
  .custom-card .icon-box {
    margin-bottom: 30px;
  }
  .closing-section {
    padding: 65px 0;
  }
  .closing-card {
    display: block;
    padding: 30px 24px;
  }
  .closing-card h2 {
    font-size: 2.5rem;
  }
  .closing-actions {
    align-items: stretch;
    margin-top: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 50px;
  }
  .site-footer {
    padding-top: 55px;
  }
  .footer-bottom {
    gap: 15px;
    flex-wrap: wrap;
  }
  .privacy-hero {
    padding: 135px 0 55px;
  }
  .privacy-hero h1 {
    font-size: clamp(2rem,8vw,2.7rem);
  }
  .privacy-content-section {
    padding: 27px 0 70px;
  }
  .privacy-paper {
    padding: 29px 22px;
    border-radius: 17px;
  }
  .privacy-paper h2 {
    font-size: 1.75rem;
  }
  .application-modal {
    padding: 16px;
  }
  .modal-card {
    max-height: calc(100dvh - 32px);
    border-radius: 19px;
  }
  .modal-top {
    padding: 17px 20px 8px;
  }
  .modal-scroll {
    padding: 15px 23px 25px;
  }
  .modal-scroll h2 {
    font-size: 2rem;
  }
  .modal-description {
    margin-bottom: 20px;
  }
  .modal-form {
    gap: 12px;
  }
}

/* Дополнительные размеры для самых узких телефонов. */
@media (max-width: 390px) {
  .brand-header {
    font-size: 1.1rem;
  }
  .header-phone {
    font-size: .67rem;
  }
  .hero-mark {
    font-size: 22vw;
  }
  .hero-copy h1 {
    font-size: 13vw;
  }
  .step-card {
    padding: 23px;
  }
  .contact-copy h2 {
    font-size: 2.45rem;
  }
}

/* Уменьшаем анимации, если это выбрано в настройках устройства. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}
