:root {
  --color-bg: #ffffff;
  --color-surface: #f8faf9;
  --color-surface-strong: #ffffff;
  --color-accent: #6e888f;
  --color-accent-dark: #516c73;
  --color-ink: #1f2d2f;
  --color-muted: #667477;
  --color-line: rgba(31, 45, 47, 0.14);
  --color-clay: #b79a64;
  --color-error: #9b4f42;
  --shadow-soft: 0 18px 48px rgba(31, 45, 47, 0.1);
  --container: 1180px;
  --header-height: 104px;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(110, 136, 143, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header .brand-logo {
  width: 87px;
  height: 87px;
}

.brand-name {
  font-size: 20px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-muted);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(81, 108, 115, 0.2);
}

.button:disabled,
.button:disabled:hover,
.button:disabled:focus-visible {
  background: rgba(110, 136, 143, 0.38);
  border-color: rgba(110, 136, 143, 0.22);
  color: rgba(31, 45, 47, 0.58);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.nav-request {
  display: none;
}

.button--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(31, 45, 47, 0.24);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

.button--light {
  background: var(--color-bg);
  color: var(--color-ink);
  border-color: var(--color-bg);
}

.button--outline-light {
  background: transparent;
  color: var(--color-bg);
  border-color: rgba(255, 255, 255, 0.58);
}

.button--outline-light:hover,
.button--outline-light:focus-visible,
.button--light:hover,
.button--light:focus-visible {
  background: #ffffff;
  color: var(--color-ink);
  border-color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 82px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section--soft {
  background: rgba(248, 250, 249, 0.72);
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.42) 78%, rgba(255, 255, 255, 0.18) 100%),
    url("img/firstBlockBg.jpg") center / cover no-repeat;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 56px;
  font-weight: 760;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  font-weight: 740;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 720;
}

.hero-subtitle {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: 21px;
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  margin-bottom: 5px;
  font-size: 20px;
}

.hero-facts span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(31, 45, 47, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 136, 143, 0.18), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #edf2ef 100%);
  box-shadow: var(--shadow-soft);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 7% auto auto;
  width: 52%;
  height: 20%;
  border-top: 1px solid rgba(31, 45, 47, 0.12);
  border-bottom: 1px solid rgba(31, 45, 47, 0.08);
  opacity: 0.7;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(31, 45, 47, 0.1);
}

.visual-machine {
  position: absolute;
  right: 8%;
  bottom: 13%;
  z-index: 2;
  width: 48%;
  height: 60%;
  background: linear-gradient(180deg, #f9fbf8, #dfe8e3);
  border: 1px solid rgba(31, 45, 47, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 42px rgba(31, 45, 47, 0.12);
}

.visual-door {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle, rgba(110, 136, 143, 0.3), rgba(110, 136, 143, 0.08) 54%, rgba(31, 45, 47, 0.14) 55%, rgba(31, 45, 47, 0.08) 62%, transparent 63%);
  border: 10px solid #f8faf6;
  box-shadow: inset 0 0 0 1px rgba(31, 45, 47, 0.12);
}

.visual-panel {
  position: absolute;
  top: 9%;
  left: 9%;
  right: 9%;
  height: 12%;
  background:
    linear-gradient(90deg, rgba(31, 45, 47, 0.12) 0 18%, transparent 18% 32%, rgba(31, 45, 47, 0.1) 32% 54%, transparent 54%),
    rgba(255, 255, 255, 0.7);
  border-radius: 5px;
}

.visual-linen {
  position: absolute;
  left: 7%;
  bottom: 14%;
  z-index: 3;
  width: 42%;
  height: 35%;
}

.visual-linen span {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(31, 45, 47, 0.08);
  box-shadow: 0 12px 24px rgba(31, 45, 47, 0.08);
}

.visual-linen span:nth-child(1) {
  bottom: 0;
  background: #f7f9f8;
}

.visual-linen span:nth-child(2) {
  bottom: 19%;
  left: 6%;
  right: 3%;
  background: #ffffff;
}

.visual-linen span:nth-child(3) {
  bottom: 38%;
  left: 1%;
  right: 8%;
  background: #edf3ef;
}

.visual-linen span:nth-child(4) {
  bottom: 57%;
  left: 9%;
  right: 0;
  background: #ffffff;
}

.visual-tag {
  position: absolute;
  left: 7%;
  top: 9%;
  z-index: 4;
  max-width: 260px;
  padding: 11px 14px;
  border: 1px solid rgba(31, 45, 47, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-ink);
  font-weight: 650;
  box-shadow: 0 12px 26px rgba(31, 45, 47, 0.08);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
}

.section-heading--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.audience-card {
  position: relative;
  isolation: isolate;
  grid-column: span 4;
  min-height: 314px;
  overflow: hidden;
  border: 1px solid rgba(31, 45, 47, 0.14);
  border-radius: 8px;
  background: var(--color-surface-strong);
  box-shadow: 0 14px 34px rgba(31, 45, 47, 0.07);
}

.audience-card:nth-child(4) {
  grid-column: 2 / span 5;
}

.audience-card:nth-child(5) {
  grid-column: 7 / span 5;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 32%, rgba(255, 255, 255, 0.68) 55%, rgba(255, 255, 255, 0.08) 100%);
}

.audience-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.audience-card__content {
  position: relative;
  z-index: 2;
  width: min(64%, 360px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 28px;
}

.audience-card__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  color: #1f5fa8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-card h3 {
  margin-bottom: 14px;
  color: #1f5fa8;
  font-size: 27px;
  font-weight: 780;
}

.audience-card p {
  margin-bottom: 0;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.55;
}

.audience-card:hover .audience-card__image {
  transform: scale(1.035);
}

.info-card,
.service-card,
.benefit-item {
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.info-card,
.service-card {
  padding: 24px;
}

.info-card:hover,
.service-card:hover,
.benefit-item:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 136, 143, 0.38);
  background: var(--color-surface);
  box-shadow: 0 16px 34px rgba(31, 45, 47, 0.08);
}

.info-card p,
.service-card p,
.benefit-item p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(110, 136, 143, 0.12);
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.benefits-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

.section-heading--sticky {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

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

.benefit-item {
  padding: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

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

.price-table th,
.price-table td {
  padding: 20px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 45, 47, 0.1);
}

.price-table th {
  background: rgba(110, 136, 143, 0.1);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 750;
}

.price-table td:last-child {
  font-weight: 760;
  white-space: nowrap;
}

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

.section-note {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 54px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.process-list span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--color-clay);
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 0;
  font-size: 19px;
}

@media (min-width: 681px) {
  .process-list li:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .process-list li:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .process-list li:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
  }

  .process-list li:nth-child(1)::after,
  .process-list li:nth-child(2)::after,
  .process-list li:nth-child(4)::after,
  .process-list li:nth-child(5)::after,
  .process-list li:nth-child(3)::after,
  .process-list li:nth-child(1)::before,
  .process-list li:nth-child(2)::before,
  .process-list li:nth-child(4)::before,
  .process-list li:nth-child(5)::before,
  .process-list li:nth-child(3)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.68;
  }

  .process-list li:nth-child(1)::after,
  .process-list li:nth-child(2)::after {
    top: 50%;
    right: -40px;
    width: 26px;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
  }

  .process-list li:nth-child(1)::before,
  .process-list li:nth-child(2)::before {
    top: 50%;
    right: -42px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    transform: translateY(-50%) rotate(45deg);
  }

  .process-list li:nth-child(3)::after {
    left: 50%;
    bottom: -23px;
    width: 2px;
    height: 18px;
    background: var(--color-accent);
    transform: translateX(-50%);
  }

  .process-list li:nth-child(3)::before {
    left: 50%;
    bottom: -27px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translateX(-50%) rotate(45deg);
  }

  .process-list li:nth-child(4)::after,
  .process-list li:nth-child(5)::after {
    top: 50%;
    left: -40px;
    width: 26px;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
  }

  .process-list li:nth-child(4)::before,
  .process-list li:nth-child(5)::before {
    top: 50%;
    left: -42px;
    width: 9px;
    height: 9px;
    border-left: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-50%) rotate(45deg);
  }
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button span {
  font-size: 30px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  background: #ffffff;
}

.icon-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.logo-carousel {
  overflow: hidden;
}

.logo-track {
  display: flex;
  gap: 16px;
  transition: transform 320ms ease;
  will-change: transform;
}

.partner-logo {
  flex: 0 0 calc((100% - 48px) / 4);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-logo:hover,
.partner-logo:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(110, 136, 143, 0.45);
  box-shadow: 0 16px 34px rgba(31, 45, 47, 0.08);
}

.partner-image {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 45, 47, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.partner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.partner-name {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  color: var(--color-ink);
  font-weight: 650;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.cta-section {
  padding: 68px 0;
  background: var(--color-ink);
  color: var(--color-bg);
}

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

.cta-inner h2 {
  margin-bottom: 10px;
}

.cta-inner p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: start;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  font-style: normal;
}

.contact-list a,
.contact-list div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.contact-list a {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(110, 136, 143, 0.45);
  box-shadow: 0 14px 30px rgba(31, 45, 47, 0.08);
}

.contact-list span {
  color: var(--color-muted);
  font-size: 14px;
}

.contact-list strong {
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  background: #182426;
  color: var(--color-bg);
  padding: 42px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  gap: 32px;
  align-items: center;
}

.brand--footer .brand-logo {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.footer-brand p {
  max-width: 460px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contacts {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: #ffffff;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.lead-modal {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
}

.lead-modal::backdrop {
  background: rgba(24, 36, 38, 0.58);
  backdrop-filter: blur(5px);
}

.modal-card {
  padding: 30px;
  border: 1px solid rgba(31, 45, 47, 0.12);
  border-radius: 8px;
  background: var(--color-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 28px;
  line-height: 1;
}

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

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.form-field label {
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 45, 47, 0.18);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 12px 13px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.form-field input:hover,
.form-field textarea:hover,
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  background: #ffffff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(110, 136, 143, 0.12);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(155, 79, 66, 0.1);
}

.field-error {
  min-height: 18px;
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.35;
}

.form-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 18px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-consent span {
  min-width: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--color-accent-dark);
  font-weight: 650;
}

.form-status.is-success {
  color: var(--color-accent-dark);
}

.form-status.is-error {
  color: #b3261e;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 36px;
  }

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

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(110, 136, 143, 0.1);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-request {
    display: inline-flex;
    width: calc(100% - 24px);
    margin: 8px auto 4px;
    justify-self: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .button {
    display: none;
  }

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

  .hero-grid,
  .benefits-layout,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card,
  .audience-card:nth-child(4),
  .audience-card:nth-child(5) {
    grid-column: 1 / -1;
  }

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

  .section-heading--sticky {
    position: static;
  }

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

  .partner-logo {
    flex-basis: calc((100% - 32px) / 3);
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 92px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-header .brand-logo {
    width: 75px;
    height: 75px;
  }

  .brand-name {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding: 48px 0 54px;
  }

  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-subtitle,
  .section-heading p:not(.eyebrow),
  .section-note,
  .cta-inner p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions,
  .cta-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .cards-grid--four,
  .cards-grid--three,
  .audience-grid,
  .benefits-list,
  .process-list,
  .contact-list,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .process-list {
    gap: 28px;
  }

  .process-list li {
    min-height: auto;
  }

  .process-list li:not(:last-child)::after,
  .process-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.68;
  }

  .process-list li:not(:last-child)::after {
    left: 31px;
    bottom: -22px;
    width: 2px;
    height: 16px;
    background: var(--color-accent);
  }

  .process-list li:not(:last-child)::before {
    left: 27px;
    bottom: -27px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
  }

  .audience-card,
  .audience-card:nth-child(4),
  .audience-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .audience-card::before {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 44%, rgba(255, 255, 255, 0.76) 74%, rgba(255, 255, 255, 0.18) 100%);
  }

  .audience-card__content {
    width: min(92%, 380px);
    padding: 26px 22px;
  }

  .audience-card__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
  }

  .audience-card h3 {
    font-size: 24px;
  }

  .hero-facts li {
    min-height: auto;
  }

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

  .visual-tag {
    max-width: 220px;
  }

  .visual-machine {
    width: 56%;
    right: 5%;
  }

  .visual-linen {
    width: 48%;
    left: 5%;
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-logo {
    flex-basis: calc((100% - 16px) / 2);
  }

  .contact-list a,
  .contact-list div {
    min-height: 104px;
  }

  .modal-card {
    padding: 22px;
  }

  .modal-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 440px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 26px;
  }

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

  .visual-tag {
    left: 6%;
    top: 6%;
    font-size: 14px;
  }

  .partner-logo {
    flex-basis: 100%;
  }

  .price-table th,
  .price-table td {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logo-track {
    transition: none;
  }
}
