/* =========================================================
   Креативное агентство «Металл» — сайт агентства
   Дизайн-токены взяты из макета design_reference.pdf
   ========================================================= */

/* ---------- Шрифты ----------
   Plus Jakarta Sans не содержит русской кириллицы, поэтому
   латиница и цифры — Plus Jakarta Sans, кириллица — Manrope.
   Сменить пару можно в --font. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---------- Токены ---------- */
:root {
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --blue: #3d80a5;
  --blue-600: #336f90;
  --blue-700: #2a5d79;
  --blue-50: #ebf3f8;
  --blue-100: #d6e7f1;
  --slate: #384750;
  --graphite: #242e33;
  --graphite-2: #2c383e;
  --graphite-3: #36444b;

  --text: #222222;
  --text-2: #4a4f53;
  --muted: #6b7075;
  --line: #e3e3e3;
  --line-2: #eef0f1;
  --bg: #f3f5f6;
  --card: #ffffff;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.5);
  --line-dark: rgba(255, 255, 255, 0.14);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow: 0 4px 24px rgba(20, 32, 40, 0.07);
  --shadow-lg: 0 18px 50px rgba(20, 32, 40, 0.14);

  --container: 1360px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --header-top: 16px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --block-pad: clamp(28px, 5vw, 72px);
  --input-border: #868e94;
  --input-border-hover: #6b7075;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  html.smooth {
    scroll-behavior: smooth;
  }
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--blue-100);
  color: var(--text);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.bundle__card :focus-visible,
.video-section__card :focus-visible,
.contact__info :focus-visible,
.footer :focus-visible,
.modal :focus-visible {
  outline-color: #9cc9e2;
}
[hidden] {
  display: none !important;
}
dialog:not([open]) {
  display: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--blue-600);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Сетка ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section) 0;
}

/* ---------- Типографика ---------- */
.h1,
.h2,
.h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.h1 {
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
}
.h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.service__lead,
.checklist li,
.role__task,
.role__answer,
.vcard__desc,
.adv__text,
.wcase__desc,
.review__text,
.step3__text,
.pstep__text,
.qa__answer,
.photo-panel__text {
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head .eyebrow {
  margin-bottom: 20px;
}
.section-head .lead {
  max-width: 560px;
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--center .lead {
  max-width: 720px;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--blue-700);
  --btn-bd: var(--blue-700);
}
.btn:disabled {
  opacity: 0.75;
  cursor: progress;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bd: #fff;
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
}
.btn--light:hover {
  --btn-bg: var(--blue-50);
  --btn-bd: var(--blue-100);
}
.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  color: var(--blue-600);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg {
  width: 18px;
  height: 18px;
}
.link-arrow:hover {
  gap: 12px;
  color: var(--blue-700);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
  background: var(--blue-50);
  border-radius: 999px;
  white-space: nowrap;
}
.chip--dark {
  color: #fff;
  background: rgba(20, 28, 32, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: var(--header-top) 0 auto;
  z-index: 100;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 14px 0 24px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-scrolled .header__bar {
  box-shadow: 0 8px 30px rgba(20, 32, 40, 0.12);
}
.header__logo {
  flex: none;
  display: block;
  width: 152px;
}
.header__logo img {
  width: 100%;
  height: auto;
}
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
}
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--blue-600);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.header__cta {
  flex: none;
}
.burger {
  display: none;
  flex: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.burger span {
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -7px;
}
.burger span::after {
  top: 7px;
}
.burger[aria-expanded="true"] span {
  background: transparent;
}
.burger[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  pointer-events: auto;
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-top) + var(--header-h) + 16px);
}
.hero__frame {
  position: relative;
  min-height: min(86vh, 860px);
  min-height: min(86svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--graphite) center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero__media,
.hero__media picture,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media {
  z-index: -2;
}
.hero__media video {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero__media video.is-ready {
  opacity: 1;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 25, 29, 0.85) 0%, rgba(18, 25, 29, 0.7) 50%, rgba(18, 25, 29, 0.15) 100%),
    linear-gradient(0deg, rgba(18, 25, 29, 0.85) 0%, rgba(18, 25, 29, 0) 55%);
}
.hero__content {
  padding: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(28px, 4vw, 56px);
  max-width: 1180px;
}
.hero .eyebrow {
  color: #9cc9e2;
  margin-bottom: 22px;
}
.hero .h1 {
  color: #fff;
}
.hero__subtitle {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(18, 25, 29, 0.5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}
.hero__play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--graphite);
}
.hero__play-icon svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  background: rgba(18, 25, 29, 0.55);
}
.hero__stat {
  padding: 22px clamp(20px, 2.6vw, 36px);
  border-left: 1px solid var(--line-dark);
}
.hero__stat:first-child {
  border-left: 0;
}
.hero__stat-num {
  display: block;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  display: block;
  margin-top: 6px;
  text-wrap: pretty;
  font-size: 14px;
  line-height: 1.4;
  color: var(--on-dark-2);
}
.hero__motion {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 25, 29, 0.45);
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.hero__motion:hover {
  background: rgba(18, 25, 29, 0.7);
  border-color: #fff;
}
.hero__motion svg {
  width: 16px;
  height: 16px;
}
.hero__motion-icon--play,
.motion-paused .hero__motion-icon--pause {
  display: none;
}
.motion-paused .hero__motion-icon--play {
  display: block;
}
.motion-paused .marquee__track {
  animation-play-state: paused;
}

/* ---------- Клиенты ---------- */
.clients {
  padding-top: 40px;
}
.clients__label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__list {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 56px;
  border-radius: 50%;
  background: var(--blue-100);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Услуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--graphite);
}
.service__media img,
.service__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service:hover .service__media img {
  transform: scale(1.04);
}
.service__media .chip {
  position: absolute;
  left: 16px;
  top: 16px;
}
.service__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}
.service__lead {
  margin-top: 12px;
  color: var(--text-2);
}
.checklist {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.45;
}
.checklist li {
  position: relative;
  padding-left: 30px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233d80a5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.service__link {
  margin-top: auto;
  padding-top: 26px;
}

/* Мокап сайта в карточке услуги */
.mock-browser {
  position: absolute;
  inset: 60px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: #eef1f3;
  flex: none;
}
.mock-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd6da;
}
.mock-browser__bar i:first-child {
  background: #e7816f;
}
.mock-browser__bar i:nth-child(2) {
  background: #eec169;
}
.mock-browser__bar i:nth-child(3) {
  background: #7cc58d;
}
.mock-browser__url {
  margin-left: 10px;
  height: 14px;
  flex: 1;
  max-width: 180px;
  border-radius: 7px;
  background: #fff;
}
.mock-browser__screen {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.mock-browser__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Связка «всё из одних рук» ---------- */
.bundle__card {
  position: relative;
  overflow: hidden;
  padding: var(--block-pad);
  border-radius: var(--r-xl);
  background: var(--graphite);
  color: #fff;
  isolation: isolate;
}
.bundle__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bundle__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.3);
}
.bundle__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 46, 51, 0.5), var(--graphite) 85%);
}
.bundle .h2 {
  color: #fff;
}
.bundle .eyebrow {
  color: #9cc9e2;
}
.bundle .lead {
  color: var(--on-dark-2);
}
.steps3 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: s3;
}
.step3 {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.step3__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
}
.step3__num svg {
  width: 26px;
  height: 26px;
}
.step3__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.step3__text {
  margin-top: 10px;
  color: var(--on-dark-2);
}
.step3:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  right: -21px;
  width: 22px;
  height: 22px;
  z-index: 2;
  border-radius: 50%;
  background: var(--graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cc9e2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line-dark);
}

/* ---------- Видео ---------- */
.video-section__card {
  padding: var(--block-pad);
  border-radius: var(--r-xl);
  background: var(--graphite);
  color: #fff;
}
.video-section .h2 {
  color: #fff;
}
.video-section .eyebrow {
  color: #9cc9e2;
}
.video-section .lead {
  color: var(--on-dark-2);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.vcard {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  text-align: left;
  color: inherit;
}
.vcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--graphite-2);
}
.vcard__media img,
.vcard__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}
.vcard__media video {
  opacity: 0;
}
.vcard.is-previewing .vcard__media video {
  opacity: 1;
}
.vcard:hover .vcard__media img {
  transform: scale(1.05);
}
.vcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 50%);
  transition: opacity 0.3s;
}
.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--graphite);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.vcard__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.vcard:hover .vcard__play,
.vcard:focus-visible .vcard__play {
  transform: scale(1);
  background: #fff;
}
.vcard__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.vcard__tag {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9cc9e2;
}
.vcard__title {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.vcard__desc {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-2);
}
.vcard--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.vcard--feature .vcard__media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 320px;
  border-radius: var(--r-lg);
}
.vcard--feature .vcard__media::after {
  background: linear-gradient(0deg, rgba(14, 19, 22, 0.9) 0%, rgba(14, 19, 22, 0.7) 32%, rgba(14, 19, 22, 0) 62%);
}
.vcard__meta {
  display: block;
}
.vcard--feature .vcard__meta {
  display: none;
}
/* плитка-призыв в конце сетки роликов */
.vcard--cta .vcard__cta-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 180px;
  border-radius: var(--r-md);
  padding: 22px 22px 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s;
}
.vcard--cta:hover .vcard__cta-box,
.vcard--cta:focus-visible .vcard__cta-box {
  border-color: #9cc9e2;
  background: rgba(255, 255, 255, 0.06);
}
.vcard__cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
}
.vcard__cta-icon svg {
  width: 20px;
  height: 20px;
}
.vcard__cta-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.vcard__cta-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--on-dark-2);
}
.vcard__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 650;
  color: #9cc9e2;
}
.vcard__cta-link svg {
  width: 18px;
  height: 18px;
}
.video-more {
  display: none;
  justify-content: center;
  margin-top: 24px;
}
.vcard--feature .vcard__play {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
}
.vcard--feature .vcard__play svg {
  width: 28px;
  height: 28px;
}
.vcard__overlay {
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 88px 24px 26px;
}
.vcard__overlay .vcard__title {
  font-size: clamp(20px, 2vw, 28px);
}

/* ---------- Модальные окна ---------- */
.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(10, 14, 16, 0.92);
}
.modal[open] {
  display: flex;
  animation: modal-in 0.25s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
  }
}
.modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px clamp(12px, 4vw, 72px) 28px;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.2s;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal__close svg {
  width: 22px;
  height: 22px;
}
.modal__video {
  width: min(100%, calc((100vh - 170px) * 16 / 9));
  width: min(100%, calc((100dvh - 170px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
}
.modal__caption {
  width: min(100%, calc((100vh - 170px) * 16 / 9));
  width: min(100%, calc((100dvh - 170px) * 16 / 9));
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}
.modal__title {
  font-size: 18px;
  font-weight: 700;
}
.modal__meta {
  font-size: 14px;
  color: var(--on-dark-2);
}
.lightbox__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.2s;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox__nav svg {
  width: 24px;
  height: 24px;
}
.lightbox__nav--prev {
  left: clamp(8px, 2vw, 24px);
}
.lightbox__nav--next {
  right: clamp(8px, 2vw, 24px);
}
.lightbox__caption {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-size: 15px;
  color: var(--on-dark-2);
  text-align: center;
}
.lightbox__count {
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-3);
}

/* ---------- Фото ---------- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.tab {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover {
  color: var(--blue-600);
}
.tab[aria-selected="true"] {
  background: var(--blue-600);
  color: #fff;
}
.tab__count {
  margin-left: 2px;
  font-weight: 600;
  color: var(--muted);
}
.tab[aria-selected="true"] .tab__count {
  color: #fff;
}
.photo-panel:focus-visible {
  outline-offset: 6px;
}
.photo-panel__text {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--text-2);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 230px);
  grid-auto-flow: dense;
  gap: 12px;
}
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--line);
}
.photo--wide {
  grid-column: span 2;
}
.photo--big {
  grid-column: span 2;
  grid-row: span 2;
}
.photo button {
  display: block;
  width: 100%;
  height: 100%;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.photo:hover img {
  transform: scale(1.04);
}
.photo button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--blue-700);
  border-radius: var(--r-md);
}
.photo__cap {
  overflow-wrap: anywhere;
  hyphens: auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.photo:hover .photo__cap,
.photo button:focus-visible .photo__cap {
  opacity: 1;
  transform: none;
}
.photo.is-hidden {
  display: none;
}
.photo-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Сайты ---------- */
.web-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.wcase {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wcase__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), #dfe9ef);
}
.wcase__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
}
.wcase__type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.wcase__title {
  margin-top: 8px;
}
.wcase__client {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
.wcase__desc {
  margin-top: 12px;
  color: var(--text-2);
}
.wcase__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 18px;
}
.wcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* мокап: сайт */
.wm-site {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  bottom: -2%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 24px 50px rgba(20, 32, 40, 0.22);
  transition: transform 0.6s var(--ease);
}
.wcase:hover .wm-site {
  transform: translateY(-6px);
}
.wm-site__screen {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.wm-site__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* мокап: телефон рядом с сайтом */
.wm-phone {
  position: absolute;
  right: 5%;
  bottom: -6%;
  z-index: 2;
  width: 22%;
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border: 5px solid #1b2327;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
}
.wm-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* ---------- Аудитория ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.role {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.role__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.role__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.role:hover .role__media img {
  transform: scale(1.04);
}
.role__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 28px;
}
.role__task {
  font-size: 15.5px;
  color: var(--text-2);
}
.role__answer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.role__answer b {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}

/* ---------- Преимущества ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.adv {
  padding: 30px 28px 32px;
}
.adv__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
}
.adv__icon svg {
  width: 26px;
  height: 26px;
}
.adv__text {
  margin-top: 10px;
  color: var(--text-2);
}

/* ---------- Цифры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  overflow: hidden;
}
.stat {
  padding: 32px 30px;
  border-left: 1px solid var(--line-2);
}
.stat:first-child {
  border-left: 0;
}
.stat__num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-2);
}

/* ---------- Этапы ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.pstep {
  position: relative;
  padding-top: 32px;
}
.pstep::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--blue-600);
  font-size: 17px;
  font-weight: 750;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 8px var(--bg);
}
.pstep::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 56px;
  right: -20px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 14px);
}
.pstep:last-child::after {
  display: none;
}
.pstep__title {
  font-size: 20px;
}
.pstep__text {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--text-2);
}

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
}
@media (min-width: 641px) {
  .review {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
  }
  .review .review__author {
    margin-top: 0;
  }
}
.review__mark {
  width: 36px;
  height: 36px;
  color: var(--blue-100);
}
.review__text {
  margin-top: 18px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text);
}
.review__author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 750;
}
.review__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review__name {
  font-weight: 700;
  line-height: 1.3;
}
.review__role {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px 80px;
  align-items: start;
}
.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + var(--header-top) + 40px);
}
.faq__aside .eyebrow {
  margin-bottom: 20px;
}
.faq__aside .lead {
  margin-top: 20px;
}
.faq__aside .btn {
  margin-top: 30px;
}
.faq__list {
  display: grid;
  gap: 12px;
}
.qa {
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-lg);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.qa__icon::after {
  transform: rotate(90deg);
}
.qa[open] .qa__icon {
  background: var(--blue);
  transform: rotate(180deg);
}
.qa[open] .qa__icon::before,
.qa[open] .qa__icon::after {
  background: #fff;
}
.qa[open] .qa__icon::after {
  transform: rotate(0deg);
}
.qa__answer {
  padding: 0 26px 24px;
  color: var(--text-2);
}

/* ---------- Контакты и форма ---------- */
.contact__card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact__info {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--block-pad);
  background: var(--graphite);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 46, 51, 0.6), var(--graphite) 75%);
}
.contact__info .eyebrow {
  color: #9cc9e2;
  margin-bottom: 20px;
}
.contact__info .h2 {
  color: #fff;
}
.contact__info .lead {
  margin-top: 20px;
  color: var(--on-dark-2);
}
.contact__direct {
  margin-top: auto;
  padding-top: 40px;
}
.contact__direct-label {
  font-size: 14px;
  color: var(--on-dark-3);
}
.contact__mail {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s;
}
.contact__mail:hover {
  border-color: #fff;
}
.form {
  padding: var(--block-pad);
}
.form__required {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.form__hint {
  margin: 4px 0 -6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.field__label sup {
  position: relative;
  top: -0.2em;
  line-height: 0;
  vertical-align: baseline;
  color: var(--blue-600);
  font-size: 1em;
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  border: 1.5px solid var(--input-border);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.input:hover {
  border-color: var(--input-border-hover);
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 128, 165, 0.15);
}
textarea.input {
  min-height: 120px;
  resize: vertical;
}
.field.has-error .input {
  border-color: #c9473a;
}
.field.has-error .input:focus {
  border-color: #c9473a;
  box-shadow: 0 0 0 4px rgba(201, 71, 58, 0.18), 0 0 0 1px var(--blue-700);
}
.field__error {
  display: none;
  font-size: 13.5px;
  color: #b23a2e;
}
.field.has-error .field__error {
  display: block;
}
.field.choices {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choices legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--input-border);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choice:hover span {
  border-color: var(--blue-100);
  background: var(--blue-50);
}
.choice input:checked + span {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.choice input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
}
.form__note {
  font-size: 13.5px;
  color: var(--muted);
}
.form__status:empty {
  margin: 0;
  padding: 0;
}
.form__status {
  display: block;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.5;
}
.form__status.is-ok {
  display: block;
  background: #e9f5ee;
  color: #1f6a3a;
}
.form__status.is-error {
  display: block;
  background: #fbeceb;
  color: #9b2f25;
}
.form.is-sending .btn[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Футер ---------- */
.footer {
  margin-top: var(--section);
}
.footer__card {
  padding: clamp(36px, 5vw, 64px) var(--block-pad) 32px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--graphite);
  color: #fff;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__logo {
  width: 190px;
}
.footer__tagline {
  margin-top: 18px;
  max-width: 380px;
  font-size: 15.5px;
  color: var(--on-dark-2);
}
.footer__title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}
.footer__links {
  display: grid;
  gap: 0;
  font-size: 15px;
}
.footer__links a,
.footer__legal a {
  display: inline-block;
  padding: 8px 0;
}
.footer__links a {
  color: var(--on-dark-2);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #fff;
}
.footer__bottom {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 26px;
  font-size: 14px;
  color: var(--on-dark-3);
}
.footer__bottom a {
  color: var(--on-dark-2);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer__bottom a:hover {
  color: #fff;
}

/* ---------- Появление при скролле ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.shot .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.shot .hero__frame {
  min-height: 760px;
}

/* ---------- Страница политики ---------- */
.doc {
  padding-top: calc(var(--header-top) + var(--header-h) + 48px);
}
.doc__card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 72px);
}
.doc__card h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.doc__card h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.doc__card p,
.doc__card li {
  color: var(--text-2);
}
.doc__card p + p {
  margin-top: 12px;
}
.doc__card ul,
.doc__card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
  list-style: disc;
}
.doc__card ol {
  list-style: decimal;
}
.doc__meta {
  color: var(--muted);
  font-size: 15px;
}
.doc__card a:not(.btn) {
  color: var(--blue-600);
  text-decoration: underline;
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  .nav__list {
    gap: 18px;
  }
  .nav__link {
    font-size: 14.5px;
  }
  /* 3 колонки: главный ролик 2×2 + 7 роликов + плитка-призыв = 12 ячеек без дыр */
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .pstep:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 64px;
    --header-top: 12px;
  }
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .header__bar {
    padding: 0 8px 0 20px;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    scroll-padding-top: calc(var(--header-top) + var(--header-h) + 12px);
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-top) + var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s var(--ease);
  }
  .mobile-menu__list {
    display: grid;
    gap: 4px;
  }
  .mobile-menu__link {
    display: block;
    padding: 14px 4px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn {
    margin-top: 28px;
  }
  .mobile-menu__mail {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 0;
    color: var(--muted);
  }
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  /* услуги: горизонтальные карточки во всю ширину */
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .service__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviews {
    gap: 16px;
  }
  .review {
    padding: 26px 24px;
  }
  .review__text {
    font-size: 16.5px;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .faq__aside {
    position: static;
  }
  .contact__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .form__actions .btn {
    white-space: normal;
    text-align: center;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__stat:nth-child(3) {
    border-left: 0;
  }
  .hero__stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
  .steps3 {
    grid-template-columns: 1fr;
  }
  .step3:not(:last-child)::after {
    top: auto;
    bottom: -21px;
    right: 50%;
    margin-right: -11px;
    transform: rotate(90deg);
  }
  /* окно браузера в горизонтальной карточке услуги — по центру, а не вытянутой полосой */
  .service .mock-browser {
    inset: auto 24px;
    top: 50%;
    transform: translateY(-50%);
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }
  /* 2 колонки: главный ролик на всю строку, подпись под видео, дальше 7 + плитка-призыв */
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vcard--feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .vcard--feature .vcard__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: var(--r-md);
  }
  .vcard--feature .vcard__media::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 50%);
  }
  .vcard--feature .vcard__overlay {
    display: none;
  }
  .vcard--feature .vcard__meta {
    display: block;
  }
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviews > .review:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  /* этапы: вертикальная лента с номерами слева */
  .process {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .pstep {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    padding: 0 0 28px;
  }
  .pstep::before {
    grid-row: span 2;
    margin: 0;
  }
  .pstep::after,
  .pstep:nth-child(3)::after {
    display: block;
    top: 56px;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1.5px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--blue-100) 0 8px, transparent 8px 14px);
  }
  .pstep:last-child::after {
    display: none;
  }
  .pstep__title {
    align-self: center;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .header__logo {
    width: 132px;
  }
  .hero__frame {
    min-height: calc(100vh - var(--header-top) - var(--header-h) - 28px);
    min-height: calc(100svh - var(--header-top) - var(--header-h) - 28px);
    border-radius: var(--r-lg);
  }
  .hero__frame::after {
    background: linear-gradient(0deg, rgba(18, 25, 29, 0.92) 0%, rgba(18, 25, 29, 0.6) 55%, rgba(18, 25, 29, 0.55) 100%);
  }
  .hero__motion {
    top: 12px;
    right: 12px;
  }
  .hero__content {
    padding-top: 68px;
  }
  .hero .eyebrow {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  }
  .hero .eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.06em;
    gap: 8px;
  }
  .hero .eyebrow::before {
    width: 16px;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .hero__stat {
    padding: 16px 18px;
  }
  .hero__stat-label {
    font-size: 13px;
  }
  .marquee__item {
    padding: 0 18px;
  }
  .marquee__item::after {
    margin-left: 36px;
  }
  .service {
    grid-template-columns: 1fr;
  }
  .service__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .service .mock-browser {
    inset: 60px 28px 0;
    top: 60px;
    transform: none;
    aspect-ratio: auto;
    border-radius: 10px 10px 0 0;
  }
  .service__body,
  .wcase__body,
  .adv,
  .review {
    padding: 24px 22px 26px;
  }
  .bundle__card,
  .video-section__card {
    border-radius: var(--r-lg);
    padding: 32px 20px;
  }
  /* ролики: на телефоне сначала 4, остальные по кнопке */
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .video-grid:not(.is-expanded) > .vcard:nth-child(n + 5) {
    display: none;
  }
  .video-more {
    display: flex;
  }
  .vcard--feature .vcard__play {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
  }
  .vcard--feature .vcard__play svg {
    width: 20px;
    height: 20px;
  }
  .web-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
    gap: 8px;
  }
  .photo--big {
    grid-column: span 2;
    grid-row: span 2;
  }
  .photo:not(.photo--big) .photo__cap {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0;
    border-bottom: 14px solid transparent;
    background-origin: border-box;
  }
  /* вкладки: первая во всю ширину, две другие под ней */
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .tab {
    padding: 10px 12px;
  }
  .tab:first-child {
    grid-column: 1 / -1;
  }
  .roles,
  .adv-grid,
  .reviews {
    grid-template-columns: 1fr;
  }
  .qa summary {
    padding: 18px 20px;
    font-size: 16.5px;
  }
  .qa__answer {
    padding: 0 20px 20px;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__actions .btn {
    width: 100%;
  }
  .choice span {
    border-radius: 22px;
  }
  .contact__card {
    border-radius: var(--r-lg);
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__card {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .modal__inner {
    padding: 64px 0 20px;
  }
  .modal__video {
    border-radius: 0;
  }
  .modal__caption {
    padding: 0 16px;
  }
  .lightbox__nav {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }
}

@media (max-width: 400px) {
  .tab {
    padding: 10px 8px;
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  .tab {
    padding: 10px 6px;
    font-size: 13px;
  }
  .hero .eyebrow {
    align-items: flex-start;
    line-height: 1.35;
  }
  .hero .eyebrow::before {
    flex: none;
    margin-top: 0.6em;
  }
}

/* ноутбуки с невысоким окном: первый экран целиком, с полосой цифр */
@media (min-width: 1081px) and (max-height: 820px) {
  .hero__frame {
    min-height: min(calc(100vh - var(--header-top) - var(--header-h) - 24px), 860px);
    min-height: min(calc(100svh - var(--header-top) - var(--header-h) - 24px), 860px);
  }
  .hero__content {
    padding-top: 32px;
    padding-bottom: 28px;
  }
  .hero .eyebrow {
    margin-bottom: 14px;
  }
  .hero .h1 {
    font-size: clamp(40px, 7.4vh, 76px);
  }
  .hero__subtitle {
    margin-top: 16px;
  }
  .hero__actions {
    margin-top: 24px;
  }
  .hero__stat {
    padding-block: 14px;
  }
}

/* мобильное меню на невысоком экране и в ландшафте */
@media (max-width: 1080px) and (max-height: 700px) {
  .mobile-menu__link {
    padding: 10px 4px;
    font-size: 22px;
  }
}
@media (max-width: 1080px) and (orientation: landscape) and (max-height: 500px) {
  .mobile-menu__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

/* невысокие телефоны: главная кнопка остаётся на первом экране */
@media (max-width: 640px) and (max-height: 700px) {
  .hero__motion {
    top: 8px;
    right: 8px;
  }
  .hero__content {
    padding-top: 50px;
  }
  .hero .eyebrow {
    margin-bottom: 12px;
  }
  .hero__subtitle {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.42;
  }
  .hero__actions {
    margin-top: 16px;
    gap: 10px;
  }
}

/* телефон в ландшафте: плеер и фото на весь экран */
@media (orientation: landscape) and (max-height: 500px) {
  .modal__inner {
    padding: 8px 56px;
  }
  .modal__caption,
  .lightbox__caption {
    display: none;
  }
  .modal__video {
    width: min(100%, calc((100vh - 16px) * 16 / 9));
    width: min(100%, calc((100dvh - 16px) * 16 / 9));
  }
  .lightbox__img {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .lightbox__nav {
    top: 50%;
    bottom: auto;
    margin-top: -26px;
  }
}

@media (hover: none) {
  .photo__cap {
    opacity: 1;
    transform: none;
    font-size: 13px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.72) 60%, rgba(0, 0, 0, 0) 100%);
  }
}

/* режим высокой контрастности: выбранная вкладка и отмеченные варианты */
@media (forced-colors: active) {
  .tab {
    border: 1px solid ButtonText;
  }
  .tab[aria-selected="true"],
  .choice input:checked + span {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .tab[aria-selected="true"] .tab__count {
    color: HighlightText;
  }
  .header__logo img {
    forced-color-adjust: none;
    background: #fff;
    border-radius: 6px;
    padding: 2px 4px;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .header,
  .hero__media video,
  .hero__motion {
    display: 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;
  }
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee__list[aria-hidden="true"] {
    display: none;
  }
  .marquee__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================================
   Посадочные страницы услуг (/video/, /photo/, /web/)
   ========================================================= */
/* хлебные крошки в первом экране */
.crumbs {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs__list li {
  display: flex;
  align-items: center;
  color: var(--on-dark-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.crumbs__list li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.crumbs a {
  display: inline-block;
  padding: 6px 0;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.crumbs a:hover {
  text-decoration-color: #fff;
}

/* карточки объектов: 3 в ряд, если их три */
.roles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* что входит в работу */
.includes__card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px 64px;
  align-items: center;
  padding: var(--block-pad);
}
.includes__head .eyebrow {
  margin-bottom: 20px;
}
.includes__head .lead {
  margin-top: 20px;
}
.includes__cta {
  margin-top: 32px;
}
.includes__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 16.5px;
}
.includes__list li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-2);
  padding-left: 32px;
}
.includes__list li::before {
  top: 15px;
}

/* перекрёстные ссылки на другие услуги */
.xsell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.xsell__item {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.xsell__item:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.xsell__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--graphite-3);
}
.xsell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.xsell__item:hover .xsell__media img {
  transform: scale(1.04);
}
.xsell__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
}
.xsell__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
/* вся карточка — ссылка, но читается только заголовок */
.xsell__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
@supports selector(:has(*)) {
  .xsell__title a:focus-visible {
    outline: none;
  }
  .xsell__item:has(a:focus-visible) {
    outline: 3px solid #9cc9e2;
    outline-offset: 3px;
  }
}
.xsell__text {
  margin-top: 10px;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.xsell__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 650;
  color: #9cc9e2;
  transition: gap 0.2s var(--ease);
}
.xsell__item:hover .xsell__more {
  gap: 12px;
}
.xsell__more svg {
  width: 18px;
  height: 18px;
}

/* из чего складывается стоимость */
.factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.factors--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.factors--5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.factors--5 .factor {
  grid-column: span 2;
}
.factors--5 .factor:nth-child(-n + 2) {
  grid-column: span 3;
}
.factor {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  padding: 24px 24px 26px;
}
.factor__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
}
.factor__icon svg {
  width: 22px;
  height: 22px;
}
.factor__title {
  align-self: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.factor__text {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--text-2);
  text-wrap: pretty;
}
.pricing__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 20px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--blue-50);
}
.pricing__note p {
  max-width: 780px;
  font-size: 17px;
  text-wrap: pretty;
}

/* отзывы: один или два на посадочной */
.reviews--1 {
  grid-template-columns: minmax(0, 880px);
}
.reviews--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* футер с колонкой «Услуги» */
.footer__top--4 {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

/* вторая ссылка в карточке услуги на главной — на посадочную */
.service__link {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

@media (max-width: 1200px) {
  .factors--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1080px) {
  .includes__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .factors,
  .factors--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .factors--5 .factor,
  .factors--5 .factor:nth-child(-n + 2) {
    grid-column: auto;
  }
  .factors--5 .factor:last-child {
    grid-column: 1 / -1;
  }
  .footer__top--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .roles--3,
  .xsell {
    grid-template-columns: minmax(0, 1fr);
  }
  .xsell__media {
    aspect-ratio: 16 / 7;
  }
  .pricing__note {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .crumbs {
    margin-bottom: 14px;
    font-size: 13px;
  }
  .includes__list,
  .factors,
  .factors--4,
  .factors--5,
  .reviews--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .factors--5 .factor:last-child {
    grid-column: auto;
  }
  .includes__list {
    font-size: 16px;
  }
  .xsell__body,
  .factor {
    padding: 22px 20px 24px;
  }
  .pricing__note {
    padding: 24px 20px;
  }
  .pricing__note .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .footer__top--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) and (max-height: 700px) {
  .crumbs {
    margin-bottom: 8px;
  }
}
