/* ???????-?????? (?? ????). ??????: visual.md */

:root {
  --primary: #1b5583;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --cta: #10aa60;
  --cta-hover: #0e9653;
  --container: 1200px;
  --container-content: 1040px; /* ????????: ?????? ?????????? hero (??? ????) */
  --content-shift-x: 25px; /* ??? ????? (????? hero) ?? 10px ????? hero-stack */
  --stack-width: calc(980px - 5cm); /* ?????? ??????: ???? 6 ???????? + ???? 7 ????? */
  --radius-card: 12px;
  --radius-btn: 8px;
  --header-line: rgba(0, 0, 0, 0.05);
  --line-primary: rgba(27, 85, 131, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
  --section-space: clamp(80px, 12vw, 120px);
  --inner-space: clamp(40px, 6vw, 60px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-y: scroll; /* fallback: ?? ??? ?????? "???????" ????? ?????????? */
}

/* ???????: ????? ?????? ???????? (???/???????? ???????? ?? ?????) */
.page-home {
  --page-shift-x: 2.75cm;
  --home-nudge-x: 0.4cm; /* ??? ???? ?? "??????" */
  /* ???????????? ?????? 3+ ??? ????? ??????? hero-????????/??? */
  --home-anchor-x: 10px;
  /* ????? ??????? ????? (?? ??????? ???/????????/????/?????) */
  --home-left-shift-x: -0.65cm;
  --frame-x: calc(var(--page-shift-x) + var(--home-nudge-x) + var(--home-left-shift-x));
  overflow-x: hidden;
}

/* Partners: ?????? ?????????? ????? ?? ????? ??????? hero-???????? */
.page-partners {
  --content-shift-x: 35px;
}

/* Partners: ???? 3 ? ????????? "???????" ?????? ? ????? */
.page-partners .partners-how-wrap {
  max-width: 19.5cm;
  margin-left: 0; /* ?? ?????? ????????? ?????????? */
  transform: translateX(0.3cm); /* ???? ???? 3 ?? 0.3?? ?????? */
}

/* Partners: ????????? ????? ??????? ??? ??????????? ?????? (??? ??????? ?? ??? ????????) */
.page-partners .partners-anchor {
  /* ????????? ??????? ????? ?????? ??????? ????????? page-inner */
  transform: translateX(calc(var(--frame-x) + 0.3cm)) !important;
}

/* ?????????? ????????: ?? ?? ????????? ??????/????????, ??? hero */
.page-inner {
  --page-shift-x: 2.75cm;
  /* ????????? ?????????? ???????? ??? ?????? ??????? */
  --home-nudge-x: 0.4cm;
  --home-left-shift-x: -0.65cm;
  --frame-x: calc(var(--page-shift-x) + var(--home-nudge-x) + var(--home-left-shift-x));
  overflow-x: hidden;
}

/* ???????? ?????? "??????????" ? ?????????, ? ?? ??????? ???? ?????? */
.page-home .header .container,
.page-home main .container,
.page-home .footer .container {
  transform: translateX(var(--frame-x));
}

/* ?? ?????????? ????????? ???????? ????? + ???????, ????? ?? ??????? */
.page-inner .header .container,
.page-inner main .container {
  transform: translateX(var(--frame-x));
}

/* ?????: ?????????? ????? ????? ??????? ? ?????????? ??? ?????? 7 */
.page-home .footer .container {
  transform: none;
}



.container {
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
}

/* ?????????? ?????? ??? ???? ??????, ????? hero */
.container--content {
  max-width: var(--container-content);
}

@media (min-width: 1025px) {
  .container--content {
    transform: translateX(var(--content-shift-x));
  }

  /* ?? ??????? ????????? ????? ?????, ???????? ???????????? content-shift */
  .page-home .container--content {
    transform: translateX(calc(var(--content-shift-x) + var(--frame-x)));
  }

  /* ???????: ????? 3 ? ???? ? ????????? ????? ????? (??? ?? ???????? "?????????") */
  .page-home .home-anchor {
    transform: translateX(
      calc(
        var(--content-shift-x) + var(--page-shift-x) + var(--home-nudge-x) + var(--home-left-shift-x) + var(--home-anchor-x)
      )
    ) !important;
  }

  /* ????? ?? ??????? ?? ???????? ?????? (????? ????? ??? ??????) */
  .page-home .footer .container--content {
    transform: none;
  }

  /* ?????????? ????????: ????? ??? ?? ??????? ? ??? ??????? */
  .page-inner .footer .container--content {
    transform: none;
  }

  /* ?????????? ????????: ????? ?? ???????? content-container */
  .page-inner .container--content {
    transform: translateX(calc(var(--content-shift-x) + var(--frame-x)));
  }

  /* Partners: ????? ??? ?????? ???? 3-??, ? ?????? content-shift */
  .page-partners .partners-anchor {
    transform: translateX(calc(var(--content-shift-x) + var(--frame-x) + 0.3cm)) !important;
  }
}

/* ???????: ?????????/??? media ? ????????? ??? ?? ????? */
.page-home .home-anchor {
  transform: translateX(
    calc(var(--page-shift-x) + var(--home-nudge-x) + var(--home-left-shift-x) + var(--home-anchor-x))
  ) !important;
}

/* ???????? ????????: ??????? "???????" */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(27, 85, 131, 0.08) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(27, 85, 131, 0.05) 100%
  );
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(1200px 800px at 22% 18%, rgba(27, 85, 131, 0.05), rgba(27, 85, 131, 0) 65%),
    radial-gradient(900px 700px at 78% 46%, rgba(27, 85, 131, 0.035), rgba(27, 85, 131, 0) 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cdefs%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12  0 0 0 0 0.22  0 0 0 0 0.32  0 0 0 0.08 0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 320px 320px;
  background-position: 0 0, 0 0, 0 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--header-line);
  transition: box-shadow 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: 96px;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transform: translateX(calc(-30px + 3cm - 7px));
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.logo-img {
  display: block;
  width: 220px;
  height: auto;
  margin-top: 4px;
}

.nav {
  position: absolute;
  /* ???????? ???? ????? ???, ????? ?????? ???? ???????????? ? ???? ???? */
  right: calc(195px + 4cm - 10px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 6px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--primary);
  background: transparent;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: clamp(48px, 8vw, 96px) 0 var(--section-space);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--bg-soft) center / cover no-repeat;
  background-image: url("./assets/main/hero.png");
  background-image: image-set(
    url("./assets/main/hero.webp") type("image/webp"),
    url("./assets/main/hero.png") type("image/png")
  );
  z-index: 0;
}

/* Partners: ??? hero ??? ?? ??????? (?????? ?????? 3D-???????) */

/* Partners: hero ???/???????? ??? ?? ??????? */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.60) 55%,
    rgba(255, 255, 255, 0.72) 100%
  );
  backdrop-filter: blur(10px);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-stack {
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
  transform: translateX(35px);
}

/* Partners: hero ????????? 1?1 ??? ?? ??????? */
.page-partners .hero-stack {
  transform: translateX(35px) translateY(0.5cm);
}

/* Blog: hero ????????? 1?1 ??? ?? ????????? */
.page-blog .hero-stack {
  transform: translateX(35px) translateY(0.5cm);
}

/* Contacts: hero ????????? ??? ?? ?????????/????? */
.page-contacts .hero-stack {
  transform: translateX(35px) translateY(0.5cm);
  min-height: 0;
  padding-bottom: 0;
  gap: 1cm; /* ???????? - ??? */
}

.page-contacts .hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  height: 733.578px;
}

/* Contacts: ?????? ????? ? ????????? ??????? ?? ???????? */
.page-contacts .hero-main {
  /* ??? ? ?????/????????? ? ????? ????? ????????? 1?1 */
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
}

.page-contacts .hero-shield {
  position: absolute;
  top: 50%;
  left: clamp(-24px, -3vw, 0px);
  right: auto;
  /* +7.5?? ?????? */
  transform: translateX(10.5cm) translateY(-50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.page-contacts .hero-shield-img {
  /* +15% */
  width: min(580px, 50.7vw);
  max-height: 414px;
  object-fit: contain;
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: translateX(0);
}

.page-partners .hero-utp {
  position: relative;
  z-index: 4;
  transform: translateY(0.1cm);
}

.page-partners .hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  height: 733.578px;
}

/* Blog: ?? ?? ??????/????????? hero, ??? ?? ????????? */
.page-blog .hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  height: 733.578px;
}

/* Partners hero: ????????? ??? ?? ??????? (??? ????? ??? ?????????) */
.page-partners .hero-inner {
  align-items: flex-start;
}

/* Blog hero: ???????? ??????, ?????? ?? ?????? ??? ? ????????? */
.page-blog .hero-inner {
  align-items: flex-start;
}

.page-partners .hero-stack {
  min-height: 0;
  padding-bottom: 0;
  gap: 1cm; /* ???????? - ??? */
}

/* Blog: ???????? + ??????, ?????? gap ?? ????? */
.page-blog .hero-stack {
  min-height: 0;
  padding-bottom: 0;
  gap: 1cm; /* ???????? - ??? */
}

.hero-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Partners: 3D-??????????? ?? ?????? ??????????? ??? */
.page-partners .hero-main {
  position: relative;
}

.page-partners .hero-shield {
  position: absolute;
  top: 50%;
  right: clamp(-24px, -3vw, 0px);
  transform: translateY(-50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.page-blog .hero-shield {
  position: absolute;
  top: 50%;
  right: clamp(-24px, -3vw, 0px);
  transform: translateY(-50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(36px, 5vw, 52px) clamp(32px, 4vw, 48px);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hero-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  max-width: 42ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-hero-airy {
  padding: 15px 28px;
  border-radius: 10px;
  color: #ffffff;
  border: 1px solid rgba(15, 61, 92, 0.14);
  background: linear-gradient(168deg, #7ad4ae 0%, #45c48c 26%, #1fb575 62%, #10aa60 100%);
  box-shadow:
    0 8px 28px rgba(16, 170, 96, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.btn-hero-airy:hover {
  filter: brightness(1.03);
  box-shadow:
    0 12px 34px rgba(16, 170, 96, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-1px);
}

.hero-shield {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  margin-left: clamp(-140px, -14vw, -48px);
  margin-right: clamp(-24px, -3vw, 0px);
  pointer-events: none;
}

.hero-shield-img {
  display: block;
  width: min(741px, 65.6vw);
  height: auto;
  filter: none;
  transform: translateX(calc(-3% + 5px));
}

/* Partners: ????? 3D-??????? ???? ?????????? ???? */
.page-partners .hero-shield-img {
  width: min(739px, 65.2vw);
  transform: translateX(calc(-3% + 5px - 0.5cm));
  max-height: 459px;
  object-fit: contain;
  filter: brightness(0.95) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Blog: ?????? ????????? ??? ? ????????? */
.page-blog .hero-shield-img {
  /* -45% ?? ???????? (?.?. 55%) */
  /* +15% ? ???????? ??????? */
  /* +5% */
  width: min(515px, 45.6vw);
  transform: translateX(calc(-3% + 5px - 1.7cm));
  max-height: 290px;
  object-fit: contain;
  filter: brightness(0.95) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Blog: 3D ???? ?????, ????? ???????? ?? ???????? */
.page-blog .hero-shield {
  right: clamp(8px, 1.6vw, 22px);
}

/* ??? ??? hero */
.hero-utp {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: clamp(16px, 2.4vw, 24px);
  width: fit-content;
  max-width: min(1040px, 100%);
  align-self: flex-start;
}

/* Blog: ????????? ????? ? ?????? ??? ????? ???? hero-???????? */
.page-blog #blog-list .container--content,
.page-blog .section[aria-label="??????"] .container--content {
  transform: translateX(calc(35px + 1.9cm));
}

/* ?????? ??????: ??? +0.6?? ?????? */
.page-blog .section[aria-label="??????"] .container--content {
  transform: translateX(calc(35px + 1.9cm + 0.6cm));
}

@media (max-width: 1024px) {
  .page-blog #blog-list .container--content,
  .page-blog .section[aria-label="??????"] .container--content {
    transform: none;
  }
}

.utp-card {
  display: grid;
  grid-template-columns: 1fr 4fr;
  align-items: center;
  gap: 0;
  min-height: 82px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-card);
  width: max-content;
  max-width: 100%;
}

.utp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 15px;
  border-right: 1px solid rgba(27, 85, 131, 0.12);
  min-height: 50px;
}

.utp-icon img {
  display: block;
  width: 50px;
  height: auto;
  max-width: 100%;
}

.utp-body {
  padding-left: 15px;
  min-width: 0;
}

.utp-title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.utp-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

/* ?????? */
.section {
  /* ?????? ????: ?????????? ????? ??????? ? 2 ???? ?????? */
  padding: calc(var(--section-space) / 2) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.partners-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 5.3cm);
  column-gap: 1.45cm;
  row-gap: 0;
  margin-top: 24px;
  justify-content: start;
}

.partners-how__item {
  position: relative;
  min-height: 260px;
  /* ??? "?????????" ???????? ? ?????? ????? ?? ????? ????? */
  padding: 0;
  border-radius: 14px;
  background: transparent;
  overflow: visible;
}

.partners-how__num {
  position: absolute;
  inset: auto auto 6px 0;
  font-size: clamp(120px, 14vw, 180px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(27, 85, 131, 0.12);
  pointer-events: none;
  user-select: none;
}

.partners-how__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.partners-how__text {
  margin: 0;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.partners-who {
  margin-top: clamp(26px, 4vw, 40px);
}

.partners-who__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.partners-who__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 18px;
  max-width: 64ch;
}

.partners-who__divider {
  width: 1px;
  height: 100%;
  min-height: 78px;
  background: rgba(47, 94, 143, 0.22);
}

.partners-who__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.partners-who__list li {
  position: relative;
  padding-left: 14px;
}

.partners-who__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(27, 85, 131, 0.25);
}

.partners-who-inline {
  /* 2 ???. ??????? ?????? ????? ?????? */
  margin-top: calc(clamp(18px, 3vw, 28px) + 24px);
  transform: translateY(-0.4cm);
}

.partners-who-inline__line {
  height: 1px;
  background: rgba(47, 94, 143, 0.18);
  margin: 0 0 28px;
}

.partners-who-inline__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 19.5cm;
}

.partners-who-inline__text strong {
  color: var(--text);
  font-weight: 600;
  font-size: 20px;
  display: block;
}

.partners-who-inline__items {
  display: block;
  margin-top: 12px; /* ??? ?????? ????????? > ????? ? ????????? */
}

.partners-who-inline__sep {
  display: inline-block;
  margin: 0 10px;
  color: rgba(47, 94, 143, 0.55);
}

.nowrap {
  white-space: nowrap;
}

/* Partners: ???? "??? ???? ???????" */
.page-partners .partners-clients.section {
  padding-bottom: max(0px, calc((var(--section-space) / 2) - 0.4cm));
}

.page-partners .partners-clients-wrap {
  transform: translateX(0.4cm); /* +0.1?? ?????? */
}

.page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(1) {
  transform: translateY(-0.2cm);
}

/* Partners: ???? 5 ? "?????? ??? ????????" */
.page-partners .partners-trust-wrap {
  max-width: 19.5cm;
  transform: translateX(0.3cm); /* ???????????? ??? ???? 3 */
}

/* Partners: ???? 6 ? ????? ?? ????? ?????, ?????? ?? ?????? ???????? ????? 5 */
.page-partners .partners-lead-wrap {
  max-width: 19.5cm;
  transform: translateX(0.3cm);
}

.page-partners #lead .cta-panel {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-partners #lead .lead-grid--partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

@media (max-width: 1024px) {
  .page-partners #lead .lead-grid--partners {
    grid-template-columns: 1fr;
  }
}

.page-partners .partners-trust-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .page-partners .partners-trust-grid {
    grid-template-columns: 1fr;
  }
}

.page-partners .partners-clients__grid {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  margin-top: calc(22px + 0.5cm);
}

.page-partners .partners-clients__visual {
  max-width: 262px;
}

.page-partners .partners-clients__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 262px;
  margin: 0;
  transform: translateY(-0.5cm);
}

.page-partners .partners-clients__content {
  transform: none;
  padding-top: 1.3cm;
}

.page-partners .partners-clients__kinds {
  display: block; /* ??????? grid-gap, ????? margin-top ??????? 1-?-1 */
}

.page-partners .partners-clients__kind + .partners-clients__kind {
  margin-top: 1cm;
}

.page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(2) {
  margin-top: calc(1cm + 0.1cm) !important;
  transform: translateY(-0.3cm);
}

.page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(3) {
  margin-top: calc(1cm + 0.3cm) !important;
  transform: translateY(-0.2cm);
}

.page-partners .partners-clients__debts {
  margin-top: calc(18px + 0.3cm) !important;
  transform: translateY(-0.5cm);
}

.page-partners .partners-clients__kind {
  padding: 0;
}

.page-partners .partners-clients__kind-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-partners .partners-clients__kind-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
}

.page-partners .partners-clients__rule {
  height: 1px;
  background: rgba(47, 94, 143, 0.18);
  width: calc(100% - 3.0cm);
  margin: 0 0 16px;
}

.page-partners .partners-clients__debts-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-partners .partners-clients__debts-line {
  margin: 0;
  color: rgba(15, 23, 42, 0.82);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 72ch;
}

.page-partners .partners-clients__debts-line + .partners-clients__debts-line {
  margin-top: 8px;
}

.page-partners .partners-clients__sep {
  display: inline-block;
  margin: 0 10px;
  color: rgba(47, 94, 143, 0.55);
}

/* Partners: ????? ???????? ??? ??????? ? ?? ?????? >640px ??????, ?????????? ?????? ?? ???????? */
.partners-who-inline__items--mobile {
  display: none;
}

.partners-clients__debts-mobile {
  display: none;
}

.partners-how__text--profit-mobile {
  display: none;
  margin: 0;
}

/* ?????? ?????????: ? ?????? ???????? ?? ?????, ?????? ????????????????? ????? contents */
.page-partners .partners-clients__kind-row {
  display: contents;
}

.page-partners .partners-clients__kind-icon {
  display: none;
}

@media (max-width: 1024px) {
  .page-partners .partners-clients__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .partners-how__grid {
    grid-template-columns: 1fr;
  }

  .partners-how__item {
    min-height: 0;
  }

  .partners-who__split {
    grid-template-columns: 1fr;
  }

  .partners-who__divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
    background: rgba(47, 94, 143, 0.18);
  }
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ???? 3: "? ???" ? ??????? ????????? ??? ????????? ?????? ?????? */
#about > .container > h2 {
  transform: translateY(-0.5cm);
}

/* ???????: ????????? ??????? ?????? ????? 3 ? 2 ???? */
.page-home #about.section {
  padding-top: calc(var(--section-space));
  padding-bottom: calc(var(--section-space) / 2);
}

/* ?????: ????????? ????? ???????? ?? ?????? ?????? ?? ?????? */

.section-intro {
  margin: 0 0 40px;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.steps-visual {
  margin: 18px 0 26px;
}

.steps-visual img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
  transform: translateX(-2.25cm);
}

.steps-pack {
  /* ???? ??????????? ?? ????? ????????: ?????? ??????? ?? 5?? */
  width: 100%;
}

.steps-flow {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(22px, 3.6vw, 34px);
  align-items: start;
  padding-right: 5cm;
  box-sizing: border-box;
  transform: translateY(-0.7cm);
}

.step {
  position: relative;
  padding-top: 12px;
}

.step + .step {
  padding-left: clamp(22px, 3.6vw, 34px);
}

.step + .step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 64px;
  height: 104px;
  width: 1px;
  background: rgba(47, 94, 143, 0.18);
}

.step-top {
  position: relative;
  display: none;
}

.step-num {
  width: 37px;
  height: 37px;
  border-radius: 999px;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 94, 143, 0.26);
  color: rgba(47, 94, 143, 0.9);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.step--final .step-num {
  border-color: rgba(16, 170, 96, 0.55);
  color: rgba(16, 170, 96, 0.95);
}

.step-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
  /* ????????? ????? ??????? ?????? ?????? ??? ??????????? */
  min-height: calc(1.2em * 2);
}

/* ???? 6: ?????? ?? (?????? ???? ????) */
.whyus {
  background: transparent;
}

.whyus-headspace {
  height: clamp(52px, 6vw, 78px);
  display: flex;
  align-items: center;
}

.whyus-headspace h2 {
  transform: translateY(-0.7cm);
  color: var(--text);
  text-shadow: none;
}

.whyus-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  /* ?????? ?? ?????????? ?????? ?????? "????" (??????????? ??? ??????????) */
  max-width: var(--stack-width);
  margin-left: 0;
  margin-right: auto;
}

.whyus-card {
  position: relative;
  /* ?????? "????-?????????????" ??????? ??? ?????/??? */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(27, 85, 131, 0.05));
  border-radius: var(--radius-card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.whyus-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.10),
    0 6px 14px rgba(16, 170, 96, 0.20);
}

.whyus-card--tall {
  min-height: 368px;
}

/* ???????????? ?????? ?????? ????? ?????????? */
.whyus-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
  min-height: calc(1.2em * 2);
}

/* Partners: ???? 5 ? ??? ????? ?????????? ? ??????? ??? ? ????????? ????????? */
.page-partners #trust .whyus-title {
  margin-bottom: 10px;
  min-height: 0;
}

.whyus-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .whyus-grid {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
}


.step-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 34ch;
}

.about-rhythm {
  max-width: 76ch;
  border-left: 1px solid rgba(47, 94, 143, 0.26);
  padding-left: 22px;
  margin-top: 18px;
}

.about-rhythm p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 28px 28px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Blog: ?????? ? ???????? ?????? (???????????? ?????) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blog-post-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  padding: 1cm;
  padding-bottom: calc(1cm + 18px); /* ????? ??? ???? ?????? ????? */
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  /* ????????? ?????? ?????? ?? 8.1?? */
  max-width: calc(100% - 8.1cm);
  margin-right: auto;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* ?????? ??????: ???????? ????????, ??? hover-???????? */
.page-blog .section[aria-label="??????"] .blog-post-card {
  transition: none;
}

/* ?????: ????????? ???????? ?????? ?????? (+1.9??), ????? ????????? ?? ??????? */
.page-blog #blog-list .blog-post-card {
  max-width: calc(100% - 6.2cm); /* ???? -8.1cm, +1.9cm ???? */
}

.page-blog .section[aria-label="??????"] .blog-post-card:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.blog-post-card > picture {
  display: block;
  width: 100%;
}

.blog-post-cover {
  width: 100%;
  border-radius: 12px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px; /* ????????? ??? ???????? */
}

.blog-post-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.blog-post-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ?????? ??????: ???????????? ?????? (? ????? ??????? ?????) */
.page-blog .section[aria-label="??????"] .blog-post-subtitle {
  color: var(--text);
}

.blog-post-date {
  position: absolute;
  right: 1cm;
  bottom: 0.7cm;
  margin: 0;
  font-size: 13.5px;
  color: rgba(15, 23, 42, 0.62);
}

.blog-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-post-link:hover {
  text-decoration: none;
}

/* ?????? ??????: ??????? + keywords + CTA */
.blog-post-content {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
}

.blog-post-content > *:first-child {
  margin-top: 0;
}

.blog-post-content > *:last-child {
  margin-bottom: 0;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin: 1.35em 0 0.55em;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.blog-post-content h2 {
  font-size: 1.35rem;
}

.blog-post-content h3 {
  font-size: 1.15rem;
}

.blog-post-content p {
  margin: 0 0 0.85em;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.blog-post-content ul {
  list-style: disc;
}

.blog-post-content ol {
  list-style: decimal;
}

.blog-post-content li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.blog-post-content li::marker {
  color: rgba(27, 85, 131, 0.75);
}

.blog-post-content strong,
.blog-post-content b {
  font-weight: 700;
  color: var(--text);
}

.blog-post-content em,
.blog-post-content i {
  font-style: italic;
}

.blog-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-editor__btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}

.blog-editor__btn:hover {
  border-color: rgba(16, 170, 96, 0.35);
  box-shadow: 0 0 0 2px rgba(16, 170, 96, 0.1);
}

.blog-editor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.blog-editor__source {
  min-height: 280px;
  font-family: inherit;
  line-height: 1.55;
}

.blog-editor__preview-wrap {
  min-width: 0;
}

.blog-editor__preview {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .blog-editor__grid {
    grid-template-columns: 1fr;
  }
}

.blog-post-keywords {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-keyword {
  font-size: 13.5px;
  color: rgba(27, 85, 131, 0.9);
  border: 1px solid rgba(27, 85, 131, 0.16);
  background: rgba(27, 85, 131, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
}

.blog-cta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ?????? ??????: CTA ?? ?????? */
.page-blog .section[aria-label="??????"] .blog-cta {
  justify-content: center;
}

.btn-hero-airy.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 9px;
}

.blog-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.55);
  color: #111111;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px; /* ??? ? ???????? ???? */
  transition: box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blog-help-btn:hover {
  color: #000000;
  border-color: rgba(16, 170, 96, 0.22);
  box-shadow: 0 0 0 2px rgba(16, 170, 96, 0.14);
}

.blog-help-btn:active {
  box-shadow: 0 0 0 2px rgba(16, 170, 96, 0.18);
}

.blog-sentinel {
  height: 1px;
}

@media (max-width: 1024px) {
  .blog-post-card {
    max-width: 100%;
  }
}

/* ???? 4: "??????" ????? ? ??? ????????, ?? ? ??????????? hover */
.pain-zigzag {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
  max-width: 980px;
}

.pain-item {
  position: relative;
  padding: 6px 0;
  /* ????????? ?????? ?????, ????? ??????? ????? ????????????? */
  width: min(560px, 74vw);
  --pain-x: 0px;
  will-change: transform;
  transition: transform 180ms ease;
  transform: translate3d(var(--pain-x), 0, 0);
  backface-visibility: hidden;
}

/* ????????? "??????": A/? ?????, ?/? ??????; ???. ????? ?????? ?????? ??? ?/? */
.pain-item:nth-child(odd) {
  justify-self: start;
  margin-left: max(0px, calc(clamp(20px, 4vw, 100px) - 2.5cm));
  margin-right: 0;
}
.pain-item:nth-child(even) {
  justify-self: end;
  margin-left: 0;
  margin-right: max(0px, calc(clamp(40px, 6vw, 140px) - 3cm));
}

/* ???????? ?????? ?? ????????? (?/?/?/?) ? ??? ????? ??????? ??????????? */
.pain-item:nth-child(1),
.pain-item:nth-child(3) {
  /* ? ? ?: ????? ?? 10px */
  --pain-x: -10px;
}
.pain-item:nth-child(2),
.pain-item:nth-child(4) {
  /* ? ? ?: ????? ?? 2.7?? */
  --pain-x: -2.7cm;
}

.pain-item:hover {
  /* ??? scale ? ??? ????? ?? "???????" ????? hover */
  transform: translate3d(var(--pain-x), -2px, 0);
}

.pain-content {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.pain-item:hover .pain-title,
.pain-item:hover .pain-sub {
  text-shadow: none;
}

/* ???? ???????????: ????? hover ?? ?????? ??????????? "??????" */
.pain-title,
.pain-sub {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.pain-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  /* ????????????? ??? background-clip (?????? ????? ??? "????") */
  color: var(--primary);
  text-shadow: none;
}

.pain-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pain-title span::before,
.pain-title span::after {
  content: "";
  height: 1px;
  width: 24px;
  background: rgba(47, 94, 143, 0.26);
}

.pain-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.pain-summary {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 14px 0 0;
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  position: relative;
}

.pain-summary::before {
  content: "";
  position: absolute;
  left: 0;
  right: 5cm;
  top: 0;
  height: 1px;
  background: rgba(47, 94, 143, 0.26);
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.steps-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
}

.steps-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--line-primary);
  background: rgba(255, 255, 255, 0.85);
}

.steps-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.steps-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* CTA panel */
.section--cta {
  /* ?????????: ??? ??? ???? ? ???? ?????? */
  padding-bottom: calc(var(--section-space) / 2);
}

.cta-panel {
  padding: var(--inner-space);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-card-hover);
  max-width: 720px;
  margin: 0 auto;
}

/* ???? 7: ????? ? ?????? ??? ???? 6 + ?????????? */
#lead .cta-panel {
  width: 100%;
  max-width: var(--stack-width);
  box-sizing: border-box;
  font-size: 15px; /* -2pt ?? ???????? */
  transform: none;
  padding: 20px;
  margin-left: 0;
  margin-right: auto;
}

#lead .cta-panel h2 {
  font-size: calc(clamp(26px, 3vw, 32px) - 2px);
  text-align: center;
}

.cta-sub {
  margin: 0 0 28px;
  color: var(--text-secondary);
}

#lead .cta-sub {
  margin-bottom: 14px;
  font-size: 16px; /* -2pt */
  line-height: 1.55;
  text-align: center;
}

/* ?????????????? ?????? ????? ??????????/????????????? ? ?????? */
#lead .lead-form {
  margin-top: 18px;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; /* ?????? ???????????? ?????? ????? ??????? */
  position: relative;
  width: 100%;
  justify-items: stretch;
}

/* ????? ?????????: ????? 2x2, ?????? ??????????? */
#lead .lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
  align-items: stretch;
}

#lead .lead-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

/* Email ? ????? ????? ???? ???? */
#lead .lead-left > .field:nth-child(3),
#lead .lead-left > .field:nth-child(4) {
  position: relative;
  top: -10px;
}

#lead .lead-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#lead .lead-right .field {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

/* ?????? ????????? ?????? ??????????? (??? ????????? ????????? ?????? ?????) */
#lead .lead-right .field__input--textarea {
  box-sizing: border-box;
  height: calc(100% + 0.5cm);
  min-height: 0;
  max-height: none;
  resize: none;
  overflow: auto;
  /* "???????????" (placeholder) ???? ???? */
  padding-top: 11px;
}

#lead .field {
  gap: 6px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field__input::placeholder,
.field__input--textarea::placeholder {
  color: rgba(107, 114, 128, 0.85);
}

.field__input--textarea::placeholder {
  color: rgba(107, 114, 128, 0.75);
}

.field__input::placeholder {
  letter-spacing: 0.01em;
}

.field__input--textarea::placeholder {
  letter-spacing: 0.01em;
}

.field__input:focus::placeholder,
.field__input--textarea:focus::placeholder {
  color: rgba(107, 114, 128, 0.55);
}

#lead .field__label {
  display: none;
}

.req {
  color: var(--cta);
}

.field__input {
  font: inherit;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

/* ??? ???? (????? "???????????") ?????? ?? ~30% */
#lead .field__input:not(.field__input--textarea) {
  padding: 10px 11px;
}

@media (max-width: 1024px) {
  #lead .lead-grid {
    grid-template-columns: 1fr;
  }

  #lead .lead-left {
    grid-template-columns: 1fr;
  }

  #lead .lead-left > .field:nth-child(3),
  #lead .lead-left > .field:nth-child(4) {
    top: 0;
  }

}

.field__input:focus {
  border-color: rgba(27, 85, 131, 0.32);
  box-shadow: 0 0 0 4px rgba(27, 85, 131, 0.10);
}

/* Blog admin: превью слева, редактор по центру, список справа */
.page-blog-admin .container--content {
  max-width: min(1520px, calc(100vw - 32px));
}

.page-blog-admin .blog-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr) minmax(240px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.page-blog-admin .blog-admin-layout__title {
  margin: 0 0 14px;
  font-size: 18px;
}

.page-blog-admin .blog-admin-preview-card,
.page-blog-admin .blog-admin-list-card {
  padding: 18px;
}

.page-blog-admin .blog-admin-preview-card {
  position: sticky;
  top: 24px;
}

.page-blog-admin .blog-admin-preview {
  min-height: calc(100vh - 200px);
  max-height: none;
  overflow: auto;
  padding: 22px 26px;
  font-size: 17px;
  line-height: 1.72;
  border-radius: 12px;
}

.page-blog-admin .blog-admin-preview.blog-post-content h2 {
  font-size: 1.45rem;
}

.page-blog-admin .blog-admin-preview__empty {
  margin: 0;
  padding: 18px 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-blog-admin .blog-admin-preview-card--has-content .blog-admin-preview__empty {
  display: none;
}

.page-blog-admin .blog-admin-layout__editor .blog-editor__source {
  min-height: 360px;
}

.page-blog-admin .blog-admin-status {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.page-blog-admin .blog-admin-cover-preview {
  display: block;
  width: min(100%, 320px);
  margin-top: 10px;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-blog-admin .blog-admin-cover-preview[hidden] {
  display: none;
}

.page-blog-admin .blog-admin-layout__list .blog-admin-item__row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.page-blog-admin .blog-admin-layout__list .blog-admin-item__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.page-blog-admin .blog-admin-layout__list .blog-admin-item__meta {
  min-width: 0;
  justify-items: start;
  align-items: start;
  grid-auto-flow: column;
  gap: 10px;
}

@media (max-width: 1180px) {
  .page-blog-admin .blog-admin-layout {
    grid-template-columns: 1fr;
  }

  .page-blog-admin .blog-admin-preview-card {
    position: static;
  }

  .page-blog-admin .blog-admin-preview {
    min-height: 420px;
    max-height: 70vh;
  }
}

.page-blog-admin.blog-admin--login .blog-admin-layout__preview,
.page-blog-admin.blog-admin--login .blog-admin-layout__list {
  display: none !important;
}

.page-blog-admin.blog-admin--login .blog-admin-layout {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.page-blog-admin.blog-admin--login .blog-admin-layout__editor .blog-admin-layout__title,
.page-blog-admin.blog-admin--login .section-intro {
  display: none;
}

.page-blog-admin.blog-admin--login .container--content > h1 {
  text-align: center;
  margin-bottom: 22px !important;
}

.page-blog-admin.blog-admin--login .blog-admin-layout__editor > .card {
  width: 100%;
}

.page-blog-admin .field__input:focus {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.page-blog-admin .btn,
.page-blog-admin .card,
.page-blog-admin .blog-admin-item {
  transition: none !important;
  transform: none !important;
}

.page-blog-admin .btn:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ???????: ?????? ????/????????? ?? ??????? (?????????/???????) */
.page-blog-admin .btn-hero-airy {
  box-shadow: none !important;
}

.page-blog-admin .btn-hero-airy:hover,
.page-blog-admin .btn-hero-airy:focus {
  box-shadow: none !important;
  filter: none !important;
}

/* file input button: ?????? ?????? ? ?????? */
.page-blog-admin input[type="file"].field__input {
  padding: 10px 11px;
}

.page-blog-admin input[type="file"].field__input::file-selector-button {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-soft);
  padding: 10px 12px;
  margin-right: 10px;
  cursor: pointer;
}

/* ???????: file-input ??????, ???????? ?????? ?? ?????? */
.page-blog-admin #coverFile {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ?????? ?????? (???????): ????? ???????? ??? ??????? */
.blog-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-admin-item {
  width: 100%;
  text-align: left;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  padding: 12px 12px;
  cursor: pointer;
  color: var(--text);
}

.blog-admin-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.blog-admin-item__title {
  font-weight: 600;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-admin-item__meta {
  display: grid;
  grid-auto-flow: row;
  gap: 6px;
  align-items: end;
  justify-items: end;
  flex: 0 0 auto;
  min-width: 140px;
}

.blog-admin-item__date {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
}

.blog-admin-item__status {
  font-size: 13px;
  color: rgba(27, 85, 131, 0.9);
}

.field__input--textarea {
  resize: vertical;
}

.field__error {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.2;
  color: rgba(185, 28, 28, 0.92);
  min-height: 1.2em;
}

.is-invalid {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.10) !important;
}

.form-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(27, 85, 131, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

#lead .form-consent {
  padding: 10px 10px;
  /* ????????? ?????? ????? ?????? ? ????????? */
  margin-top: calc(0px - 0.5cm);
}

/* ?????? ???????? ? ?? ?????? ????? */
#lead [data-lead-submit] {
  justify-self: center;
  width: auto;
  min-width: 260px;
  box-shadow: none;
  /* ????????? ?????? ????? ????????? ? ??????? */
  margin-top: calc(0px - 0.3cm);
}

#lead [data-lead-submit]:hover {
  box-shadow: none;
}

.form-consent__box {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cta);
}

.form-consent__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.82);
}

.form__success {
  grid-column: 1 / -1;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(16, 170, 96, 0.25);
  background: rgba(16, 170, 96, 0.10);
  color: rgba(10, 70, 41, 0.95);
  font-weight: 600;
  text-align: center;
}

/* Cookie consent banner (????????? 1:1, ????? ???) */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.18));
}

.consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 85, 131, 0.12);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 12px;
  align-items: center;
}

.consent__text {
  color: rgba(15, 23, 42, 0.82);
  font-size: 13.5px;
  line-height: 1.55;
}

.consent__link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__btn {
  justify-self: start;
}

/* Lead modal (???-?? ? ?????? ?????? ??? ?????) */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.lead-modal__panel {
  position: relative;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  width: min(432px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(27, 85, 131, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  padding: 14px 14px 10px;
}

.lead-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(27, 85, 131, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__content {
  padding-top: calc(10px + 0.35cm);
  padding-bottom: 0;
}

/* ????? ?????: ????????? ? ???????????? ??? ? ????? ?? ??????? (#lead) */
.lead-modal__intro {
  margin: 0 0 12px;
}

.lead-modal__intro-title {
  margin: 0 0 8px;
  font-size: clamp(15px, 2.4vw, 17px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.lead-modal__intro-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-secondary);
}

/* ?????: ??? ???????? ??? ??????, ?????? placeholder ?????? */
.lead-modal .field span,
.lead-modal .field__label {
  display: none !important;
}

.lead-modal .field {
  gap: 0;
}

.lead-modal .lead-grid,
.lead-modal .lead-left,
.lead-modal .lead-right {
  gap: 0.5cm;
  row-gap: 0.5cm;
}

.lead-modal .field__input {
  margin-top: 0;
  padding: 10px 12px;
  font-size: 14px;
}

.lead-modal .field__input--textarea {
  min-height: 72px;
}

/* ?????: ???????? ?????, ????? gap ??????? */
.lead-modal .lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.lead-modal .lead-left {
  display: grid;
  grid-template-columns: 1fr;
}

.lead-modal .lead-right {
  display: grid;
  grid-template-columns: 1fr;
}

/* ???????? ? ?????? ? ?? ??? ??????, ? ???? ??????? ? ?????? */
.lead-modal .lead-form {
  justify-items: stretch;
  gap: 0.5cm;
  row-gap: 0.5cm;
}

.lead-modal .form-consent {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  border-radius: var(--radius-btn);
  padding: 12px 12px;
}

.lead-modal .field__error[data-error-for="consent"] {
  justify-self: stretch;
  text-align: left;
  min-height: 0;
  margin-top: 0;
}

/* ?????? ?????? ?????? ?? ???????? ????? ? ????? (????? ??????? gap ?? ??????) */
.lead-modal .field__error[data-error-for="consent"]:empty {
  display: none;
}

.lead-modal .field__error[data-error-for="consent"]:not(:empty) {
  min-height: 1.2em;
  margin-top: 4px;
}

.lead-modal [data-lead-submit] {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
}

.lead-modal .btn-block {
  width: 100%;
}

.lead-modal .form__success {
  justify-self: stretch;
  text-align: center;
}

.lead-modal .form__success[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}

@media (min-width: 860px) {
  .consent__inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .consent__btn {
    justify-self: end;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input,
.field textarea {
  font: inherit;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-soft);
  color: var(--text);
}

.field-full {
  grid-column: 1 / -1;
}

.btn-block {
  width: 100%;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--header-line);
  background: transparent;
}

.footer-inner {
  display: grid;
  gap: 18px;
  max-width: var(--stack-width); /* ?????? ??? ????? (???? 7) */
  margin: 0 auto;
}

/* (?????? ???? ?????? ?????? ?????? ? ??????, ?????? ???????????? ?????????????) */

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 22px;
}

.footer-col--brand {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.footer-logo__img {
  display: block;
  width: 280px; /* ?????? ??? ? ?????? */
  height: auto;
}

.footer-h {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.footer-link {
  display: inline-block;
  padding: 4px 0;
  color: rgba(15, 23, 42, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: none;
  color: var(--primary);
}

/* Footer messengers (TG / MAX) */
.footer-messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.footer-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-messenger__img {
  display: block;
  width: 35px;  /* ~15% bigger than 30px */
  height: 35px;
}

/* ?????????: ?? 1 ????? ?????? */
.footer-col--docs .footer-link {
  font-size: 13px;
  display: block;
  text-align: center;
  line-height: 1.35;
  /* ??????? ???????? ? 2 ?????? */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.footer-legal-wrap {
  margin-top: 18px;
  border-top: 1px solid rgba(47, 94, 143, 0.18);
  transform: translateY(-0.5cm); /* ??????? ????? ? ??.???? ???? */
}

.footer-legal {
  padding-top: 1cm;
  color: rgba(15, 23, 42, 0.60);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center; /* ??? ???? ??? ????????????? footer-inner */
}

.footer-bottom,
.footer-muted {
  display: none !important;
}

@media (min-width: 860px) {
  .footer-cols {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }

  /* 1) ???????: ????? + ????? */
  .footer-col--brand {
    transform: translateX(-1.3cm) translateY(-0.7cm);
  }

  /* ???? ?????, ????????? ??????, ???????? ?????? ?? ?????? */
  .footer-cols > .footer-col:nth-child(2) {
    flex: 1;
    text-align: center;
    /* 2) ????????: ????? ????? */
    transform: translateX(-2.30cm);
  }

  .footer-cols > .footer-col:nth-child(3) {
    text-align: left;
    /* 3) ?????????: ???? ????? ??????? ???? */
    transform: translateX(-1.75cm);
    max-width: 380px;
  }

  .footer-cols > .footer-col:nth-child(3) .footer-link {
    text-align: left; /* ?????? ?????? "?????????" ?? ?????? ???? */
  }
}

/* ??????? ?????????????? ????? + ??.???? */
.footer-legal {
  transform: translateY(-0.6cm);
}

/* (partners-specific footer tweaks removed ? reverted to shared footer) */

/* ?????????: ?????? ????? ? ?????? ? ???? ?????? */
.footer-col--docs .footer-link:first-of-type {
  white-space: nowrap;
  -webkit-line-clamp: 1;
}

/* 3-? ???????? (policy) ?????????? ????????? ? ?????? ? 2 ?????? */
.footer-col--docs .footer-link[href$="policy.pdf"] {
  overflow: visible;
  display: block;
  -webkit-line-clamp: initial;
  /* ?? ??? ?????? ?????? ???????????? ? ?????? */
  white-space: nowrap;
}

/* ?????: ???????? ??? ????????? (???????/?????) */
.footer-cols > .footer-col:nth-child(2) .footer-link[href^="tel:"],
.footer-cols > .footer-col:nth-child(2) .footer-link[href^="mailto:"] {
  white-space: nowrap;
}

/* ?????: "?????????" ? ????????? ?? ??????, ?????? ????? */
.footer-col--docs .footer-h {
  text-align: center;
}

/* -- ?????? ????? ????? ? tap-highlight ????????? -- */
html {
  -webkit-tap-highlight-color: transparent;
}

*:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none !important;
}


.footer-inner {
  color: var(--text-secondary);
  font-size: 15px;
}

/* =======================================================================
   TABLET  <= 980px
   ======================================================================= */
@media (max-width: 1024px) {

  /* -- Reset desktop transforms/shifts -- */
  .page-home .header .container,
  .page-home main .container,
  .page-home .footer .container,
  .page-inner .header .container,
  .page-inner main .container {
    transform: none !important;
  }

  .container--content {
    transform: none !important;
  }

  /* ?????? .container--content: ????? ?????/????? ???????? ? ???? ????????? ?????? ?????? */
  .page-home .home-anchor {
    transform: none !important;
  }

  .logo {
    transform: none !important;
  }

  .hero-stack,
  .page-partners .hero-stack,
  .page-blog .hero-stack,
  .page-contacts .hero-stack {
    transform: none !important;
  }

  .steps-visual img {
    transform: none !important;
    max-width: 100%;
  }

  .steps-flow {
    transform: none !important;
    padding-right: 0;
  }

  .whyus-headspace h2 {
    transform: none !important;
  }

  #about > .container > h2 {
    transform: none !important;
  }

  .page-partners .partners-how-wrap,
  .page-partners .partners-anchor,
  .page-partners .partners-trust-wrap,
  .page-partners .partners-lead-wrap,
  .page-partners .partners-clients-wrap,
  .page-partners .partners-clients__content,
  .page-partners .partners-clients__visual img,
  .page-partners .partners-who-inline {
    transform: none !important;
    max-width: 100%;
  }

  .pain-summary::before {
    right: 0;
  }

  /* -- Scroll freeze fix: clip ?? ??????? ????????? ? ?? ?????? sticky/fixed -- */
  .page-home,
  .page-inner {
    overflow-x: clip;
  }

  /* -- Global spacing -- */
  :root {
    --section-space: 72px;
    --inner-space: 36px;
  }

  .container {
    padding: 0 20px;
  }

  /* -- Header + hero hit-test: ????????? ?? ???? ????????? (??????? ? ??????????), ?????? ? 980px */
  .header {
    z-index: 10000;
  }

  .header-inner {
    height: 88px;
    transform: none;
    position: relative;
    z-index: 10001;
  }

  .hero-media,
  .hero-overlay {
    pointer-events: none !important;
  }

  .hero-inner,
  .hero-card,
  .hero-utp,
  .hero-utp a,
  .hero-utp button {
    pointer-events: auto;
  }

  /* Logo: x2.5 bigger than compact mobile baseline */
  .logo-img {
    height: 56px;
    width: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10002;
    pointer-events: auto;
  }

  /* Dropdown: half-width panel on the right side */
  .nav {
    display: block;
    position: absolute;
    left: auto;
    right: 12px;
    width: 48%;
    min-width: 180px;
    top: calc(100% + 3px);
    transform: none;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 200;
  }

  .nav-open .nav {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
    color: var(--text);
    text-align: right;
  }

  .nav a + a {
    margin-top: 4px;
  }

  .nav a:hover {
    background: rgba(27, 85, 131, 0.05);
    color: var(--primary);
  }

  /* -- Typography -- */
  h2 {
    font-size: clamp(22px, 4.5vw, 28px);
    line-height: 1.22;
  }

  /* -- Hero -- */
  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
    height: auto !important;
  }

  .hero-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  /* Contacts: ????????????? ???? ?????? .hero-main ? ?????????????? ???? */
  .page-contacts .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: none;
    position: relative;
    z-index: 2;
  }

  /* Shield: atmospheric fragment bleeding right */
  .hero-shield,
  .page-partners .hero-shield,
  .page-blog .hero-shield,
  .page-contacts .hero-shield {
    position: absolute !important;
    top: 0 !important;
    right: -24px !important;
    left: auto !important;
    bottom: 0 !important;
    transform: none !important;
    margin: 0;
    width: 50vw;
    max-width: 360px;
    display: flex;
    align-items: center;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
  }

  .hero-shield-img,
  .page-partners .hero-shield-img,
  .page-blog .hero-shield-img,
  .page-contacts .hero-shield-img {
    width: 100% !important;
    max-height: none !important;
    transform: none !important;
    object-fit: contain;
    filter: none !important;
  }

  /* UTP: 2-col grid on tablet */
  .hero-utp {
    display: grid;
    grid-auto-flow: unset;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: none;
    gap: 14px;
    align-self: auto;
  }

  /* -- Steps -- */
  .steps-pack {
    max-width: 100%;
  }

  .steps-flow {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 28px;
    margin-top: 16px;
  }

  .step {
    position: relative;
    isolation: isolate;
    padding: 0;
  }

  .step + .step {
    padding-left: 0;
  }

  .step + .step::before {
    display: none;
  }

  .step-title {
    min-height: 0;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
  }

  .step-text {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
  }

  /* ?????????? ?????????? ?????? ????? ?? ???????? (??? ?? ???????) */
  .step-top {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    pointer-events: none;
  }

  .step-num {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    z-index: 0;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    padding: 0 2px 0 0;
    border-radius: 0;
    font-size: clamp(64px, 18vw, 110px);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: -0.05em;
    color: rgba(27, 85, 131, 0.12);
    user-select: none;
  }

  .step--final .step-num {
    color: rgba(27, 85, 131, 0.12);
  }

  /* -- Why Us: 2x2 -- */
  .whyus-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100%;
    padding-right: 0;
  }

  .whyus-card--tall {
    min-height: 0;
  }

  /* -- Pain: left-axis editorial -- */
  .pain-zigzag {
    gap: 0;
    margin-top: 24px;
  }

  .pain-item,
  .pain-item:nth-child(odd),
  .pain-item:nth-child(even) {
    justify-self: stretch !important;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --pain-x: 0px;
    transform: none !important;
    padding: 16px 0;
    border-left: none;
    margin-bottom: 8px;
    text-align: left;
  }

  .pain-item:hover {
    transform: none !important;
  }

  .pain-content {
    text-align: left;
  }

  .pain-title span::before,
  .pain-title span::after {
    display: none;
  }

  .pain-sub {
    font-size: 16px;
    line-height: 1.6;
  }

  /* -- Cards / Grids -- */
  .card {
    padding: 20px 20px 18px;
    border-radius: 14px;
  }

  .grid-2,
  .cta-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* -- Partners: "??? ??? ????????" -- */
  /* ??????????? ?????? ?????: ????? 120px+ absolute-??????????????? ????? */
  .partners-how__item {
    min-height: 190px;
  }

  /* ???? ?????? ?????? ????? ?? ???????? */
  .partners-how__num {
    font-size: clamp(100px, 13vw, 140px);
  }

  /* "??? ???? ????????": ?? ???????? ?????????? ????????? ????????? (??? ????????????-|) */
  .partners-who-inline__items--desktop {
    display: none !important;
  }

  .partners-who-inline__items--mobile {
    display: block !important;
    margin-top: 0;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row {
    display: block;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row--first {
    margin-top: 12px;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row--second {
    margin-top: 10px;
  }

  .partners-who-inline__text {
    max-width: 100%;
  }

  /* -- Partners: "??? ???? ???????" -- */
  .page-partners .partners-clients__kind + .partners-clients__kind,
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(2),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(3),
  .page-partners .partners-clients__debts {
    margin-top: 20px !important;
    transform: none !important;
  }

  .page-partners .partners-clients__rule {
    width: 100%;
  }

  /* trust: 2 ??????? ?? ???????? (??? whyus-grid) */
  .page-partners .partners-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* clients visual: ?????? ? ???????????? layout ???????? */
  .page-partners .partners-clients__visual {
    display: none;
  }

  /* clients content: ??? ???????? ????? ? ??????? ??????? ?????? */
  .page-partners .partners-clients__content {
    padding-top: 0;
  }

  /* -- Blog cards -- */
  .blog-post-card {
    max-width: 100%;
    padding: 16px;
    padding-bottom: calc(16px + 24px);
  }

  /* -- Forms -- */
  #lead .lead-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #lead .lead-left {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #lead .lead-left > .field:nth-child(3),
  #lead .lead-left > .field:nth-child(4) {
    top: 0;
  }

  #lead .lead-right .field__input--textarea {
    min-height: 104px;
  }

  #lead .lead-form {
    gap: 12px;
  }

  /* -- Modal: по центру экрана -- */
  .lead-modal {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lead-modal__panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: min(432px, calc(100% - 32px));
    border-radius: 14px;
    padding: 17px 12px 15px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
  }

  .lead-modal__content {
    padding-top: calc(10px + 0.35cm);
  }

  .lead-modal__close {
    top: 8px;
    right: 8px;
  }

  .lead-modal .lead-grid,
  .lead-modal .lead-left,
  .lead-modal .lead-right {
    gap: 8px;
    row-gap: 8px;
  }

  /* -- Footer -- */
  .footer-logo__img {
    width: 220px;
  }

  .footer-col--brand,
  .footer-cols > .footer-col:nth-child(2),
  .footer-cols > .footer-col:nth-child(3) {
    transform: none !important;
  }

  .footer-legal-wrap {
    transform: none;
  }

  .footer-legal {
    transform: none;
  }
}


/* =======================================================================
   TABLET FORMAT 2 ? 821px?1024px  (??????????? ?????? ????????)
   ??????????: iPad Pro landscape, Surface Pro, ??????? Android ????????
   ???????: desktop-like, ???? ??????????, ??? ?????????????? ???????????
   ??????????? ???? ? ?? ?????? ?? Format 1, mobile, desktop
   ======================================================================= */
@media (min-width: 821px) and (max-width: 1024px) {

  /* =====================================================================
     TABLET FORMAT 2 (821–1024px)
     Основа — десктоп. Блок @media (max-width: 1024px) сбрасывает сетку;
     здесь возвращаем десктопную геометрию и слегка масштабируем под viewport.
     Format 1 / mobile / desktop (1025px+) не трогаем.
     ===================================================================== */

  /* --- Сетка: жёсткие поля 2.5cm, без frame-x / content-shift --- */
  :root {
    --section-space: 80px;
    --inner-space: 44px;
    --f2-gutter: 2.5cm;
  }

  .page-home,
  .page-inner {
    overflow-x: hidden !important;
  }

  .hero,
  .section {
    overflow-x: hidden;
  }

  .page-home .header .container,
  .page-home main .container,
  .page-home .footer .container,
  .page-inner .header .container,
  .page-inner main .container,
  .page-inner .footer .container {
    transform: none !important;
    padding-left: var(--f2-gutter) !important;
    padding-right: var(--f2-gutter) !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .container--content,
  .page-home .container--content,
  .page-inner .container--content {
    transform: none !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-home .home-anchor,
  #steps .home-anchor,
  .page-partners .partners-how-wrap,
  .page-partners .partners-anchor,
  .whyus-headspace h2,
  #about > .container > h2,
  .steps-flow {
    transform: none !important;
  }

  .page-partners .partners-how-wrap {
    max-width: 100%;
    margin-left: 0;
  }

  /* --- Хедер: десктопная раскладка (высота полоски не меняется) --- */
  .header-inner {
    height: 96px !important;
    min-height: 96px;
    max-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: visible;
  }

  .logo {
    display: flex !important;
    transform: none !important;
    align-items: center;
    flex-shrink: 0;
    height: 96px;
    overflow: visible !important;
  }

  .logo-img {
    display: block;
    width: 220px;
    height: 146.66px;
    max-height: none !important;
    margin-top: 3px;
    object-fit: contain;
    object-position: left center;
    transform: none;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    position: static !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px 10px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    width: auto !important;
    min-width: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .nav a {
    display: inline-block !important;
    text-align: left !important;
    padding: 8px 10px !important;
    font-size: 14px;
    border-radius: 8px;
  }

  .nav a + a {
    margin-top: 0;
  }

  /* --- Hero: десктопная композиция (карточка + щит + УТП) --- */
  .hero {
    padding-top: clamp(48px, 7vw, 80px);
    padding-bottom: var(--section-space);
    height: auto !important;
  }

  .hero-stack {
    width: 100%;
    max-width: 100%;
    transform: none !important;
    gap: clamp(16px, 2.2vw, 22px);
    box-sizing: border-box;
  }

  .page-partners .hero-stack,
  .page-blog .hero-stack,
  .page-contacts .hero-stack {
    transform: none !important;
    gap: clamp(16px, 2.2vw, 22px);
    width: 100%;
    max-width: 100%;
  }

  .hero-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(175px, 0.82fr) !important;
    align-items: center !important;
    gap: 0;
    overflow: visible;
  }

  .hero-card {
    width: calc(110.5% + 1cm);
    max-width: none;
    justify-self: start;
    box-sizing: border-box;
    padding: clamp(32px, 4.5vw, 44px) clamp(28px, 3.5vw, 40px);
    position: relative;
    z-index: 2;
  }

  .page-partners .hero,
  .page-blog .hero,
  .page-contacts .hero {
    height: auto !important;
    padding-top: clamp(48px, 7vw, 80px);
  }

  .hero-card h1 {
    font-size: clamp(28px, 3.4vw, 38px);
  }

  .hero-card .btn {
    width: auto;
    display: inline-flex;
  }

  /* Щит: десктопный overlap, масштаб под 1024px */
  .hero-shield {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    opacity: 1 !important;
    justify-self: end;
    align-self: center;
    margin-left: clamp(-200px, -20vw, -80px);
    margin-right: 0;
    pointer-events: none;
    z-index: 2;
    transform: none !important;
  }

  .hero-shield-img {
    width: min(582px, 55.76vw) !important;
    height: auto !important;
    max-height: none !important;
    transform: translateX(calc(-2% + 20px + 3cm)) !important;
    filter: none !important;
    object-fit: contain;
  }

  .hero-utp {
    display: grid !important;
    grid-auto-flow: unset;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: none;
    gap: clamp(14px, 2vw, 18px);
    align-self: auto;
  }

  .page-partners .hero-utp {
    transform: translateY(0.1cm);
    position: relative;
    z-index: 4;
  }

  .utp-card {
    width: 100%;
    max-width: 100%;
    min-height: 82px;
    padding: 16px 18px;
    box-sizing: border-box;
  }

  /* =====================================================================
     ГЛАВНАЯ — блоки ниже hero (Format 2)
     ===================================================================== */

  /* «Как мы работаем»: без картинки, 2×2 + цифры справа (как Format 1) */
  .page-home .steps-visual {
    display: none !important;
  }

  #steps .steps-flow {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 24px;
    row-gap: 32px;
    margin-top: 16px;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  #steps .step + .step {
    padding-left: 0;
  }

  #steps .step + .step::before {
    display: none;
  }

  #steps .step-top {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  #steps .step-num {
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-end;
    border: none;
    background: transparent;
    font-size: clamp(72px, 12vw, 100px);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: -0.05em;
    color: rgba(27, 85, 131, 0.12);
  }

  #steps .step-title,
  #steps .step-text {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-right: 0;
  }

  #steps .step-title {
    min-height: 0;
    font-size: 17px;
  }

  /* «Почему мы»: 2 + 1 по центру (как Format 1) */
  .page-home .whyus-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .page-home .whyus-grid .whyus-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }

  .page-home .whyus-headspace h2 {
    transform: none !important;
  }

  /* Форма: уже, больше воздуха, единые разделители */
  #lead .cta-panel {
    width: 100%;
    max-width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(36px, 5vw, 52px) clamp(40px, 5vw, 56px);
    transform: none !important;
    box-sizing: border-box;
  }

  #lead .lead-form {
    --lead-field-gap: 14px;
    --lead-divider: rgba(47, 94, 143, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 22px;
  }

  #lead .lead-grid,
  #lead .lead-left,
  #lead .lead-right {
    display: contents;
  }

  #lead .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: none;
    padding-bottom: var(--lead-field-gap);
    margin-bottom: var(--lead-field-gap);
    border-bottom: none;
    box-sizing: border-box;
  }

  #lead .field__error:empty {
    display: none;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0;
    padding: 0;
    border: none;
  }

  #lead .field__input,
  #lead .field__input--textarea {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  #lead .lead-right .field {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  #lead .lead-right .field__input--textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
  }

  #lead .form-consent {
    margin-top: 6px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  #lead .lead-form > .field__error[data-error-for="consent"]:empty {
    display: none;
    margin: 0;
    min-height: 0;
    border: none;
  }

  #lead [data-lead-submit] {
    width: auto;
    display: block;
    margin: 18px auto 0;
  }

  /* «Знакомая ситуация»: зигзаг как на десктопе, масштаб под планшет */
  .page-home .pain-zigzag {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4.5vw, 40px);
    max-width: 100%;
  }

  .page-home .pain-item,
  .page-home .pain-item:nth-child(odd),
  .page-home .pain-item:nth-child(even) {
    position: relative;
    padding: 6px 0;
    width: min(500px, 90%);
    max-width: 100%;
    --pain-x: 0px;
    transform: translate3d(var(--pain-x), 0, 0) !important;
    text-align: center;
    border-left: none;
    margin-bottom: 0;
  }

  .page-home .pain-item:nth-child(odd) {
    justify-self: start !important;
    margin-left: max(0px, calc(clamp(16px, 3vw, 56px) - 1.2cm)) !important;
    margin-right: 0 !important;
  }

  .page-home .pain-item:nth-child(even) {
    justify-self: end !important;
    margin-left: 0 !important;
    margin-right: max(0px, calc(clamp(20px, 4vw, 72px) - 1.8cm)) !important;
  }

  .page-home .pain-item:nth-child(1),
  .page-home .pain-item:nth-child(3) {
    --pain-x: -8px;
  }

  .page-home .pain-item:nth-child(2),
  .page-home .pain-item:nth-child(4) {
    --pain-x: -1.9cm;
  }

  .page-home .pain-item:hover {
    transform: translate3d(var(--pain-x), -2px, 0) !important;
  }

  .page-home .pain-content {
    text-align: center;
    width: 100%;
  }

  .page-home .pain-title span::before,
  .page-home .pain-title span::after {
    display: inline-block;
  }

  .page-home .pain-title {
    color: var(--primary);
    font-size: 18px;
  }

  .page-home .pain-sub {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-home .pain-summary {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 14px;
    font-size: 18px;
    position: relative;
  }

  .page-home .pain-summary::before {
    left: 0;
    right: 3.5cm;
    top: 0;
    height: 1px;
    background: rgba(47, 94, 143, 0.26);
  }

  /* Футер: лого +10%, поднять к заголовку «Контакты» */
  .footer-cols {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px 40px;
  }

  .footer-col--brand {
    display: flex;
    align-items: flex-start;
    transform: translateY(calc(-0.55cm - 8px)) !important;
  }

  .footer-logo__img {
    width: 308px !important;
    height: auto;
  }

  .footer-cols > .footer-col:nth-child(2) {
    flex: 1;
    text-align: center;
    transform: translateX(-1.6cm) !important;
    padding-top: 0;
  }

  .footer-cols > .footer-col:nth-child(2) .footer-h {
    margin-top: 0;
    padding-top: 0;
  }

  .footer-cols > .footer-col:nth-child(3) {
    text-align: left;
    transform: translateX(-1.2cm) !important;
    max-width: 340px;
  }

  /* =====================================================================
     СТРАНИЦА: ПАРТНЁРАМ — Format 2
     ===================================================================== */

  /* Hero: секция 1024×593.42, композиция по центру (как на главной) */
  .page-partners .hero {
    height: 593.42px !important;
    min-height: 593.42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-partners .hero-inner {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .page-partners .hero-stack {
    width: min(835px, 100%);
    max-width: 835px;
    gap: clamp(16px, 2.2vw, 22px);
    transform: none !important;
    margin: 0;
  }

  .page-partners .hero-main {
    width: 100%;
    max-width: 835px;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 0.935fr) minmax(240px, auto) !important;
    overflow: visible;
    align-items: center;
  }

  .page-partners .hero-card {
    width: 93.5%;
    max-width: 93.5%;
    height: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }

  .page-partners .hero-card .btn {
    width: auto;
    max-width: fit-content;
    align-self: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-partners .hero-shield {
    height: auto;
    max-height: none;
    align-self: center;
    margin-left: clamp(-240px, -24vw, -110px);
    z-index: 4;
  }

  .page-partners .hero-shield-img {
    width: auto !important;
    height: 390.81px !important;
    max-height: 390.81px !important;
    max-width: min(488.88px, 60.14vw) !important;
    object-fit: contain;
    transform: translateX(calc(-2% + 20px - 0.5cm))
      translateY(calc(-1 * clamp(16px, 2.2vw, 22px) - 10px)) !important;
  }

  .page-partners .hero-utp {
    width: min(835px, 100%);
    max-width: 835px;
    transform: none !important;
  }

  /* «Как это работает»: 3 шага в одну линию, ширина колонок как у «Профит» */
  .page-partners .partners-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 5.3cm);
    column-gap: 1.45cm;
    row-gap: 0;
    margin-top: 24px;
    justify-content: start;
    width: 100%;
    max-width: 100%;
  }

  .page-partners .partners-how__item {
    min-height: 0;
    padding-bottom: 8px;
  }

  .page-partners .partners-how__num {
    left: auto;
    right: 0;
    transform: none;
    font-size: clamp(100px, 12vw, 140px);
  }

  .page-partners .partners-how__item .partners-how__text {
    max-width: none;
  }

  .page-partners .partners-how__text--profit-desktop {
    display: none !important;
  }

  .page-partners .partners-how__text--profit-mobile {
    display: block !important;
  }

  /* «Кто наши партнёры»: десктопная строка с разделителями */
  .page-partners .partners-who-inline {
    transform: none !important;
  }

  .page-partners .partners-who-inline__text {
    max-width: none;
  }

  .page-partners .partners-who-inline__text strong {
    display: block;
    margin-bottom: 10px;
  }

  .page-partners .partners-who-inline__items--desktop {
    display: block !important;
    margin-top: 0;
  }

  .page-partners .partners-who-inline__items--mobile {
    display: none !important;
  }

  /* «Кто наши клиенты»: 3 категории в линию, иконки сверху (как Format 1) */
  .page-partners .partners-clients__visual {
    display: none !important;
  }

  .page-partners .partners-clients__grid {
    grid-template-columns: 1fr !important;
    gap: clamp(18px, 3vw, 28px);
    margin-top: calc(22px + 0.2cm);
  }

  .page-partners .partners-clients__content {
    padding-top: 0 !important;
    transform: none !important;
  }

  .page-partners .partners-clients__kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    align-items: start;
  }

  .page-partners .partners-clients__kind + .partners-clients__kind,
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(1),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(2),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(3) {
    margin-top: 0 !important;
    transform: none !important;
  }

  .page-partners .partners-clients__kind-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .page-partners .partners-clients__kind-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
  }

  .page-partners .partners-clients__kind-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
  }

  .page-partners .partners-clients__kind-icon img {
    display: block;
    width: clamp(56px, 10vw, 72px);
    height: auto;
    object-fit: contain;
  }

  .page-partners .partners-clients__kind-title {
    margin: 0;
  }

  .page-partners .partners-clients__kind-text {
    margin: 0;
    max-width: none;
  }

  .page-partners .partners-clients__debts {
    margin-top: clamp(20px, 3vw, 28px) !important;
    transform: none !important;
  }

  .page-partners .partners-clients__debts-desktop {
    display: block !important;
    width: 100%;
    max-width: 100%;
  }

  .page-partners .partners-clients__debts-mobile {
    display: none !important;
  }

  .page-partners .partners-clients__debts-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    margin: 0;
    max-width: none !important;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.82);
    white-space: nowrap;
  }

  .page-partners .partners-clients__debts-line + .partners-clients__debts-line {
    margin-top: 8px;
  }

  .page-partners .partners-clients__debts-line > span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-partners .partners-clients__debts-line .partners-clients__sep {
    margin: 0 10px;
    flex: 0 0 auto;
  }

  /* Форма заявки: как на главной — уже и с воздухом */
  .page-partners .partners-lead-wrap {
    max-width: none;
    transform: none !important;
  }

  .page-partners #lead .cta-panel {
    width: 100%;
    max-width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(36px, 5vw, 52px) clamp(40px, 5vw, 56px);
    transform: none !important;
    box-sizing: border-box;
  }

  .page-partners #lead .lead-form {
    --lead-field-gap: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 22px;
  }

  .page-partners #lead .lead-grid--partners {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .page-partners #lead .lead-grid--partners .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: none;
    padding-bottom: var(--lead-field-gap);
    margin-bottom: var(--lead-field-gap);
    border-bottom: none;
    box-sizing: border-box;
  }

  .page-partners #lead .field__input {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .page-partners #lead .form-consent {
    margin-top: 6px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .page-partners #lead [data-lead-submit] {
    width: auto;
    display: block;
    margin: 18px auto 0;
  }

  /* =====================================================================
     СТРАНИЦА: БЛОГ — Format 2
     ===================================================================== */

  /* Hero: как «Партнёрам» (593.42px, карточка + изображение 835px) */
  .page-blog .hero {
    height: 593.42px !important;
    min-height: 593.42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-blog .hero-inner {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .page-blog .hero-stack {
    width: min(835px, 100%);
    max-width: 835px;
    gap: clamp(16px, 2.2vw, 22px);
    transform: none !important;
    margin: 0;
  }

  .page-blog .hero-main {
    width: 100%;
    max-width: 835px;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 0.935fr) minmax(240px, auto) !important;
    overflow: visible;
    align-items: center;
  }

  .page-blog .hero-card {
    width: 93.5%;
    max-width: 93.5%;
    height: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }

  .page-blog .hero-shield {
    height: auto;
    max-height: none;
    align-self: center;
    margin-left: clamp(-220px, -22vw, -96px);
    z-index: 4;
  }

  /* Изображение: как у партнёров, уменьшено в 1,2 раза */
  .page-blog .hero-shield-img,
  .page-blog .blog-visual-img {
    width: auto !important;
    height: 325.68px !important;
    max-height: 325.68px !important;
    max-width: min(407.4px, 50.12vw) !important;
    object-fit: contain;
    transform: translateX(calc(-2% + 20px - 0.5cm))
      translateY(calc(-1 * clamp(16px, 2.2vw, 22px) - 10px)) !important;
  }

  /* Лента статей: на всю ширину контентной области */
  .page-blog #blog-list .container--content {
    transform: none !important;
    max-width: 100%;
  }

  .page-blog .blog-list {
    width: 100%;
    max-width: 100%;
  }

  .page-blog .blog-post-card,
  .page-blog #blog-list .blog-post-card,
  .page-blog .blog-list .blog-post-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* =====================================================================
     СТРАНИЦА: КОНТАКТЫ — Format 2
     ===================================================================== */

  /* Hero: как «Партнёрам» (593.42px, карточка + изображение + УТП 835px) */
  .page-contacts .hero {
    height: 593.42px !important;
    min-height: 593.42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-contacts .hero-inner {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .page-contacts .hero-stack {
    display: flex !important;
    flex-direction: column !important;
    width: min(835px, 100%);
    max-width: 835px;
    gap: 0.5cm !important;
    row-gap: 0.5cm !important;
    transform: none !important;
    margin: 0;
    overflow: visible;
  }

  .page-contacts .hero-main {
    width: 100%;
    max-width: 835px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0 !important;
    padding-bottom: 0;
    grid-template-columns: minmax(0, 0.935fr) minmax(240px, auto) !important;
    overflow: visible;
    align-items: center;
  }

  .page-contacts .hero-card {
    width: 93.5%;
    max-width: 93.5%;
    height: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }

  .page-contacts .hero-shield {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    height: auto;
    max-height: none;
    align-self: center;
    margin-left: clamp(-250px, -25vw, -115px);
    margin-right: 0;
    margin-bottom: 0;
    transform: none !important;
    z-index: 4;
    overflow: visible;
    pointer-events: none;
  }

  /* Изображение: база ÷1,2 + 7%; заезд на правый край карточки */
  .page-contacts .hero-shield-img {
    width: auto !important;
    height: 348.48px !important;
    max-height: 348.48px !important;
    max-width: min(435.92px, 53.63vw) !important;
    object-fit: contain;
    transform: translateX(calc(-2% + 20px - 1.2cm))
      translateY(calc(-1 * clamp(16px, 2.2vw, 22px) - 10px)) !important;
  }

  .page-contacts .hero-utp {
    width: min(835px, 100%);
    max-width: 835px;
    margin-top: 0 !important;
    padding-top: 0;
    position: relative;
    z-index: 6;
    transform: translateY(-1.1cm) !important;
    overflow: visible;
    pointer-events: auto;
  }

}


/* =======================================================================
   TABLET FORMAT 1 ? 641px?820px  (??????????? ?????? ???????)
   ??????????: iPad mini, iPad Air portrait, ????????? Android ????????
   ???????: mobile-like, ?????? ???????, ???? ???? ???????
   ??????????? ???? ? ?? ?????? ?? Format 2, mobile, desktop
   ======================================================================= */
@media (min-width: 641px) and (max-width: 820px) {

  /* =====================================================================
     ГЛОБАЛЬНЫЕ ПРАВИЛА — действуют на все страницы в Format 1 (641–820px)
     ===================================================================== */

  /* Боковые поля 3cm на всех страницах */
  .container {
    padding-left: 3cm;
    padding-right: 3cm;
  }

  /* Hero-inner: принудительный padding, без горизонтального переполнения */
  .hero-inner {
    padding-left: 3cm !important;
    padding-right: 3cm !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* === ХЕДЕР: фиксированный, прозрачный, только кнопка меню === */
  .header,
  .header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent !important;
    border-bottom-color: transparent;
    box-shadow: none !important;
    z-index: 10000;
  }

  .header-inner {
    height: 88px;
    padding-left: 20px !important;
    padding-right: 3cm !important;
    position: relative;
    z-index: 10001;
    justify-content: flex-end;
    gap: 0;
  }

  .logo {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
  }

  /* === МЕНЮ: компактный дропдаун под кнопкой (правый край совпадает с toggle) === */
  .nav {
    right: 3cm;
    width: 220px;
    min-width: 0;
  }

  /* === HERO: отступ сверху под фиксированный хедер, все страницы === */
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 88px) !important;
    padding-bottom: 56px !important;
    height: auto !important;
    overflow: hidden;
  }

  /* Убрать 3D-щит (есть на всех страницах) */
  .hero-shield {
    display: none !important;
  }

  /* Карточки hero вписываются в ширину страницы */
  .hero-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transform: none !important;
    gap: clamp(14px, 2vw, 20px);
  }

  /* Сброс transform и gap inner-страниц (partners/blog/contacts) */
  .page-partners .hero-stack,
  .page-blog .hero-stack,
  .page-contacts .hero-stack {
    transform: none !important;
    min-height: 0;
    padding-bottom: 0;
    gap: clamp(14px, 2vw, 20px) !important;
  }

  /* Сброс align-items inner-страниц */
  .page-partners .hero-inner,
  .page-blog .hero-inner,
  .page-contacts .hero-inner {
    align-items: stretch;
  }

  /* Сброс transform УТП inner-страниц */
  .page-partners .hero-utp,
  .page-blog .hero-utp,
  .page-contacts .hero-utp {
    transform: none !important;
    position: static;
  }

  .hero-main {
    display: block !important;
    grid-template-columns: unset !important;
    width: 100%;
    overflow: hidden;
  }

  /* !! Основная карточка — не трогать !! */
  .hero-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-card .btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* УТП: строго в ширину hero-stack */
  .hero-utp {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* === УТП-карточки: компактный стиль === */
  .utp-card {
    width: 100%;
    min-height: 70px;
    padding: 12px 14px;
    box-sizing: border-box;
  }

  .utp-icon {
    padding-right: 12px;
    min-height: 40px;
  }

  .utp-icon img {
    width: 38px;
  }

  .utp-body {
    padding-left: 12px;
  }

  .utp-title {
    font-size: 14.5px;
    margin-bottom: 2px;
  }

  .utp-sub {
    font-size: 12.5px;
    line-height: 1.3;
  }

  /* === ФУТЕР: лого по центру, контакты и документы на одной строке === */
  .footer-cols {
    display: grid;
    grid-template-areas:
      "brand brand"
      "contacts docs";
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }

  .footer-col--brand {
    grid-area: brand;
    justify-content: center;
    text-align: center;
    transform: none !important;
  }

  .footer-logo__img {
    width: 440px;
    max-width: 100%;
  }

  .footer-cols > .footer-col:nth-child(2) {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: none !important;
  }

  .footer-cols > .footer-col:nth-child(3) {
    grid-area: docs;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: none !important;
  }

  .footer-col--docs .footer-link {
    text-align: center;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .footer-cols > .footer-col:nth-child(2) .footer-h,
  .footer-cols > .footer-col:nth-child(3) .footer-h {
    text-align: center;
  }

  /* =====================================================================
     СТРАНИЦА: ГЛАВНАЯ — уникальные правила
     ===================================================================== */

  /* Убрать 3D-визуал из блока "Как мы работаем" */
  .page-home .steps-visual {
    display: none;
  }

  /* "Почему мы": 3-я карточка по центру между двумя верхними */
  .page-home .whyus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .whyus-grid .whyus-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }

  /* === ФОРМА: единый вертикальный ритм всех полей === */
  #lead .lead-form {
    --lead-stack-gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
    gap: var(--lead-stack-gap);
  }

  #lead .lead-grid,
  #lead .lead-left,
  #lead .lead-right {
    display: contents;
  }

  #lead .field {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
  }

  #lead .field__error:empty {
    display: none;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  #lead .lead-form > .field__error[data-error-for="consent"]:empty {
    display: none;
    margin: 0;
    min-height: 0;
  }

  #lead .field__input,
  #lead .field__input--textarea {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  #lead [data-lead-submit] {
    width: auto;
    display: block;
    margin: 0 auto;
  }

  #lead .lead-right .field {
    height: auto;
  }

  #lead .lead-right .field__input--textarea {
    height: auto;
    min-height: 110px;
  }

  #lead .form-consent {
    margin-top: 4px;
  }


  /* =====================================================================
     СТРАНИЦА: ПАРТНЁРАМ — блок "Как это работает"
     ===================================================================== */

  /* Цифры вправо (по центру текста шага), как на главной */
  .page-partners .partners-how__num {
    left: auto;
    right: 0;
    transform: none;
  }

  /* Снять ограничение ширины текста */
  .page-partners .partners-how__item .partners-how__text {
    max-width: none;
  }

  /* Убрать фиксированную высоту */
  .page-partners .partners-how__item {
    min-height: 0;
    padding-bottom: 8px;
  }

  /* Шаг "Профит": скрыть десктопный вариант с <br>, показать обычный текст */
  .page-partners .partners-how__text--profit-desktop {
    display: none !important;
  }

  .page-partners .partners-how__text--profit-mobile {
    display: block !important;
  }

  /* =====================================================================
     СТРАНИЦА: ПАРТНЁРАМ — блок "Кто наши клиенты"
     ===================================================================== */

  /* Скрыть 3D-картинку, один столбец */
  .page-partners .partners-clients__visual {
    display: none !important;
  }

  .page-partners .partners-clients__grid {
    grid-template-columns: 1fr !important;
    gap: clamp(18px, 3vw, 28px);
    margin-top: calc(22px + 0.2cm);
  }

  .page-partners .partners-clients__content {
    padding-top: 0 !important;
  }

  .page-partners .partners-clients__debts {
    transform: none !important;
  }

  /* Карточка клиента: иконка слева, заголовок рядом, текст под обоими */
  .page-partners .partners-clients__kind-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }

  .page-partners .partners-clients__kind-copy {
    display: contents;
  }

  .page-partners .partners-clients__kind-icon {
    grid-row: 1;
    grid-column: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
  }

  .page-partners .partners-clients__kind-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    align-self: center;
  }

  .page-partners .partners-clients__kind-text {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
    align-self: start;
  }

  .page-partners .partners-clients__kind-icon img {
    display: block;
    width: clamp(56px, 10vw, 72px);
    height: auto;
    object-fit: contain;
  }

  /* Сбросить десктопные transforms на карточках */
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(1),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(2),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(3) {
    transform: none !important;
  }

  .page-partners .partners-clients__kind + .partners-clients__kind {
    margin-top: 1cm !important;
  }

  /* Долги: скрыть десктопный вариант, показать мобильный */
  .page-partners .partners-clients__debts-desktop {
    display: none !important;
  }

  .page-partners .partners-clients__debts-mobile {
    display: block !important;
  }

  .page-partners .partners-clients__debts-row {
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(15, 23, 42, 0.82);
    font-size: 14.5px;
    line-height: 1.65;
  }

  .page-partners .partners-clients__debts-row:last-child {
    margin-bottom: 0;
  }

  .page-partners .partners-clients__debts-pipe {
    flex: 0 0 auto;
    color: rgba(47, 94, 143, 0.55);
    font-weight: 500;
  }

  /* =====================================================================
     СТРАНИЦА: БЛОГ — все правки Format 1
     ===================================================================== */

  /* 1. Ширина карточек ленты = ширине hero-карточки (3cm отступ с каждой стороны) */
  .blog-post-card,
  .page-blog #blog-list .blog-post-card {
    max-width: 100%;
    width: 100%;
    margin-right: 0;
    padding: 16px;
    border-radius: 14px;
  }

  /* Дата: статичная (не абсолютная), как в мобилке */
  .page-blog .blog-post-date {
    position: static;
    right: auto;
    bottom: auto;
    text-align: right;
    margin-top: 10px;
    display: block;
  }

  /* 2. Внутри статьи — отступ сверху под фиксированный хедер (88px + воздух) */
  .page-blog .section[aria-label="Статья"] {
    padding-top: calc(88px + 24px) !important;
  }

  /* 3. Кнопка "Помощь во взыскании долгов" — по центру */
  .page-blog .blog-cta {
    justify-content: center;
  }

  .page-blog .blog-cta .btn {
    display: block;
    text-align: center;
  }

  /* 4. Попап — по центру экрана (сброс bottom-sheet из ≤1024px) */
  .lead-modal {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lead-modal__panel {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0;
    width: min(520px, calc(100% - 6cm));
    border-radius: 12px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 14px;
  }

  .lead-modal__content {
    padding-top: calc(10px + 0.35cm);
  }
}


/* =======================================================================
   MOBILE  <= 640px
   ======================================================================= */
@media (max-width: 640px) {
  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
  }

  /* Hero: ??? hero.png ??? ?? ????????; blur ??????? ??????? ??????????? (perf) */
  .hero-overlay {
    backdrop-filter: none;
  }

  .nav {
    backdrop-filter: none;
  }

  .consent__inner {
    backdrop-filter: none;
  }

  .consent__btn {
    justify-self: center;
  }

  body.modal-open .header {
    display: none !important;
  }

  /* Footer: messengers align left on mobile */
  .footer-messengers {
    justify-content: flex-start;
  }

  /* ?????: ??????????, ?????? hero (??? ?????? ????? ? ??????) */
  .header,
  .header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent !important;
    border-bottom-color: transparent;
    box-shadow: none !important;
    z-index: 10000;
  }

  .header-inner {
    position: relative;
    z-index: 10001;
    justify-content: flex-end;
    gap: 0;
  }

  .nav-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
  }

  .logo {
    display: none;
  }

  :root {
    --section-space: 56px;
    --inner-space: 28px;
  }

  .container {
    padding: 0 16px;
  }

  /* -- Typography -- */
  h2 {
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .section-intro {
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  /* -- Hero: ?????? ?????? ??? ????. ????? + safe-area -- */
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
    padding-bottom: 56px;
    overflow: hidden;
  }

  /* Overlay slightly more transparent so background breathes */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.46) 0%,
      rgba(255, 255, 255, 0.52) 55%,
      rgba(255, 255, 255, 0.70) 100%
    );
  }

  .hero-stack {
    gap: 18px;
  }

  .hero-main {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Card sits above shield */
  .hero-card {
    max-width: none;
    padding: 28px 20px 24px;
    border-radius: 18px;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(8px);
  }

  /* ????????: ???????? ?? ?????? ????????? ??-?? ?????????? ?????? */
  .page-contacts .hero-main {
    grid-template-columns: 1fr;
  }

  .page-contacts .hero-card {
    max-width: none;
    width: 100%;
  }

  .hero-card h1 {
    font-size: clamp(25px, 7.5vw, 30px);
    line-height: 1.14;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 44ch;
    color: rgba(15, 23, 42, 0.78);
  }

  /* Button full-width */
  .hero-card .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 4;
  }

  /* ????? 5: ?????? 3D-??????? ? hero ?????? ?? ????????? */
  .hero-shield,
  .page-partners .hero-shield,
  .page-blog .hero-shield,
  .page-contacts .hero-shield {
    display: none !important;
  }

  /* hero-main: ???????? + ??? ???????? ??? ?????? */
  .hero-main {
    grid-template-columns: 1fr;
  }

  /* hero ??????: auto ?? ?????????? ?????????; padding-bottom = 56px (??? ?? ???????) */
  .page-partners .hero,
  .page-blog .hero,
  .page-contacts .hero {
    height: auto !important;
    padding-bottom: 56px;
  }

  /* UTP: 1 col */
  .hero-utp {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: unset;
    gap: 12px;
    width: 100%;
    max-width: none;
    position: relative;
    z-index: 3;
  }

  .utp-card {
    width: 100%;
    min-height: 0;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .utp-icon img {
    width: 44px;
  }

  .utp-title {
    font-size: 15.5px;
  }

  .utp-sub {
    font-size: 13.5px;
    line-height: 1.4;
  }

  /* -- About: editorial minimal -- */
  #about.section {
    padding-top: var(--section-space);
  }

  .about-rhythm {
    max-width: 100%;
    margin-top: 14px;
  }

  .about-rhythm p {
    font-size: 16px;
    line-height: 1.75;
  }

  /* -- Pain: left-axis, vertical rhythm -- */
  .pain-zigzag {
    gap: 0;
    margin-top: 20px;
  }

  .pain-item,
  .pain-item:nth-child(odd),
  .pain-item:nth-child(even) {
    justify-self: stretch !important;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --pain-x: 0px;
    transform: none !important;
    padding: 14px 0;
    border-left: none;
    margin-bottom: 6px;
    text-align: left;
  }

  .pain-item:hover {
    transform: none !important;
  }

  .pain-content {
    text-align: left;
  }

  .pain-title {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.25;
  }

  .pain-title span {
    gap: 0;
    display: block;
  }

  .pain-title span::before,
  .pain-title span::after {
    display: none;
  }

  .pain-sub {
    font-size: 15px;
    line-height: 1.6;
  }

  .pain-summary {
    padding-left: 0;
    font-size: 16px;
    margin-top: 6px;
  }

  .pain-summary::before {
    right: 0;
  }

  /* -- Steps: ????? ?????? ????? ?????? ????, ??? ??????? (z-index), ??? ?????/???????? -- */
  #steps .home-anchor {
    display: block;
  }

  #steps .steps-visual {
    display: none !important;
  }

  #steps .steps-pack {
    display: block;
  }

  #steps .steps-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 14px;
    padding-right: 0;
    transform: none !important;
    width: 100%;
    min-width: 0;
  }

  #steps .step {
    position: relative;
    isolation: isolate;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  #steps .step + .step {
    padding-left: 0;
  }

  #steps .step + .step::before {
    display: none;
  }

  #steps .step-top {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 0;
    pointer-events: none;
  }

  #steps .step-num {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    z-index: 0;
    width: auto;
    height: auto;
    min-height: 0;
    border: none;
    background: transparent;
    padding: 0 2px 0 0;
    border-radius: 0;
    font-size: clamp(76px, 24vw, 128px);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: -0.05em;
    color: rgba(27, 85, 131, 0.12);
    user-select: none;
  }

  #steps .step--final .step-num {
    color: rgba(27, 85, 131, 0.12);
  }

  #steps .step-title {
    position: relative;
    z-index: 2;
    font-size: 18px;
    min-height: 0;
    margin: 0 0 8px;
    padding-right: 0;
  }

  #steps .step-text {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  /* -- Why Us: 1 col -- */
  .whyus-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .whyus-card {
    padding: 20px 18px 18px;
  }

  .whyus-card--tall {
    min-height: 0;
  }

  /* ??????? ??? / ??????? ??? ????????: ???? ? ?? ?? ????????? ????????? ????? (--whyus-glow + ??????) */
  .page-home .whyus-title,
  .page-partners .partners-trust-grid .whyus-title {
    margin-bottom: 6px;
  }

  .page-home .whyus-card,
  .page-partners .partners-trust-grid .whyus-card {
    --whyus-glow: 0;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(16, 170, 96, calc(0.026 + 0.42 * var(--whyus-glow, 0)));
  }

  .page-home .whyus-card:hover,
  .page-partners .partners-trust-grid .whyus-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(16, 170, 96, 0.49);
  }

  /* -- Grids -- */
  .grid-2,
  .grid-3,
  .cta-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* -- Partners -- */
  .partners-how__item {
    padding-bottom: 8px;
  }

  /* Partners (?????? ???????): hero ??? ?? ??????? ? ????? ?????? ???, ??? ?? ???? hero-stack / ???-???????? */
  .page-partners .hero-stack,
  .page-blog .hero-stack,
  .page-contacts .hero-stack {
    gap: 18px;
    transform: none;
  }

  .page-partners .hero-utp {
    transform: none !important;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: unset;
    gap: 12px;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .page-partners .hero-inner {
    align-items: stretch;
    width: 100%;
  }

  /* Partners: «Как это работает» — цифры по центру шага, как «Как мы работаем» на главной */
  .page-partners .partners-how__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 14px;
    grid-template-columns: none;
  }

  .page-partners .partners-how__item {
    position: relative;
    isolation: isolate;
    min-height: 0 !important;
    padding-bottom: 0;
    overflow: visible;
  }

  .page-partners .partners-how__num {
    position: absolute;
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: clamp(76px, 24vw, 128px);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: -0.05em;
    z-index: 0;
    pointer-events: none;
  }

  .page-partners .partners-how__title,
  .page-partners .partners-how__text {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-right: 0;
  }

  /* Partners: «Почему нам доверяют» — вертикальная лента, как «Почему мы» на главной */
  .page-partners .partners-trust-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-width: 100%;
  }

  .page-partners .partners-how__text--profit-desktop {
    display: none !important;
  }

  .page-partners .partners-how__text--profit-mobile {
    display: block !important;
  }

  /* Partners: ???? ???? ????????? ? ??? ?????? */
  .partners-who-inline__items--desktop {
    display: none !important;
  }

  .partners-who-inline__items--mobile {
    display: block !important;
    margin-top: 0;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row {
    display: block;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row--first {
    margin-top: 12px;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row--second {
    margin-top: 10px;
  }

  .partners-who-inline__items--mobile .partners-who-inline__row--second .partners-who-inline__sep {
    display: inline-block;
    margin: 0 10px;
    color: rgba(47, 94, 143, 0.55);
  }

  /* Partners: ?????? ????? ? 6 ????? ? | */
  .page-partners .partners-clients__debts-desktop {
    display: none !important;
  }

  .page-partners .partners-clients__debts-mobile {
    display: block !important;
  }

  .page-partners .partners-clients__debts-row {
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(15, 23, 42, 0.82);
    font-size: 14.5px;
    line-height: 1.65;
  }

  .page-partners .partners-clients__debts-row:last-child {
    margin-bottom: 0;
  }

  .page-partners .partners-clients__debts-pipe {
    flex: 0 0 auto;
    color: rgba(47, 94, 143, 0.55);
    font-weight: 500;
  }

  /* Partners: ???? ???? ???????? ? ??? 3D; ?????? 1: ?????? + ?????????; ?????? 2: ????? ? ?????? ???? (??? ?????) */
  .page-partners .partners-clients__visual {
    display: none !important;
  }

  .page-partners .partners-clients__grid {
    grid-template-columns: 1fr !important;
    gap: clamp(18px, 3vw, 28px);
    margin-top: calc(22px + 0.2cm);
  }

  .page-partners .partners-clients__content {
    padding-top: 0 !important;
  }

  .page-partners .partners-clients__debts {
    transform: none !important;
  }

  .page-partners .partners-clients__kind-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 8px;
    /* ????????? ?? ????????? ?? ?????? ???????????? ?????? */
    align-items: center;
  }

  .page-partners .partners-clients__kind-copy {
    display: contents;
  }

  .page-partners .partners-clients__kind-icon {
    grid-row: 1;
    grid-column: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
  }

  .page-partners .partners-clients__kind-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    align-self: center;
  }

  .page-partners .partners-clients__kind-text {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
    align-self: start;
  }

  .page-partners .partners-clients__kind-icon img {
    display: block;
    width: clamp(56px, 14vw, 72px);
    height: auto;
    object-fit: contain;
  }

  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(1),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(2),
  .page-partners .partners-clients__kinds > .partners-clients__kind:nth-child(3) {
    transform: none !important;
  }

  .page-partners .partners-clients__kind + .partners-clients__kind {
    margin-top: 1cm !important;
  }

  /* -- Blog: financial media feel -- */
  .blog-post-card,
  .page-blog #blog-list .blog-post-card {
    max-width: 100%;
    width: 100%;
    margin-right: 0;
    padding: 16px;
    padding-bottom: 16px;
    border-radius: 14px;
  }

  .blog-post-date {
    position: static;
    right: auto;
    bottom: auto;
    text-align: right;
    margin-top: 10px;
    display: block;
  }

  .page-blog .blog-post-card:first-child .blog-post-title {
    font-size: clamp(19px, 5.5vw, 22px);
    line-height: 1.18;
  }

  .blog-post-title {
    font-size: 17.5px;
    line-height: 1.2;
  }

  .blog-post-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  /* -- Forms: ???????????? ???? 10px (??? gap ????? email ? ?????? ? #lead .lead-left) -- */
  #lead .cta-panel {
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
  }

  #lead .form__success[hidden] {
    display: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  #lead .cta-sub {
    margin-bottom: 10px;
  }

  #lead .lead-form {
    --lead-stack-gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
    gap: var(--lead-stack-gap);
    row-gap: var(--lead-stack-gap);
  }

  #lead .lead-grid,
  #lead .lead-left,
  #lead .lead-right {
    display: contents;
  }

  #lead .lead-form > .field__error[data-error-for="consent"]:empty {
    display: none;
    margin: 0;
    min-height: 0;
  }

  #lead .field {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  #lead .field__error:empty {
    display: none;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  #lead .field__error:not(:empty) {
    margin-top: 4px;
  }

  #lead .field__input,
  #lead .field__input--textarea {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  #lead .cta-panel h2,
  #lead .cta-sub {
    text-align: left;
  }

  .lead-modal__intro-title,
  .lead-modal__intro-sub {
    text-align: left;
  }

  #lead .lead-right .field {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    grid-template-rows: unset;
  }

  #lead .lead-right .field__input--textarea {
    height: 2cm;
    min-height: 2cm;
    flex: 0 0 auto;
    max-height: none;
  }

  #lead .lead-left > .field:nth-child(3),
  #lead .lead-left > .field:nth-child(4) {
    top: 0;
  }

  #lead .form-consent {
    margin-top: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  #lead [data-lead-submit] {
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    justify-self: unset;
    align-self: stretch;
    box-sizing: border-box;
  }

  #lead .form__success:not([hidden]) {
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  /* -- Header: ??????? +150%, ????? ?? ????? -- */
  .logo-img {
    height: 80px;
    width: auto;
    max-width: none;
  }

  /* -- ?????: ?????? ????? 1cm, ?????? gap, ????? placeholder -2pt -- */
  .field__input:not(.field__input--textarea) {
    height: 1cm;
    line-height: 1cm;
    padding: 0 12px;
    font-size: 15px;
  }

  .field__input--textarea {
    height: 2cm;
    min-height: 2cm;
    padding: 8px 12px;
    font-size: 15px;
  }

  .field__input::placeholder,
  .field__input--textarea::placeholder {
    font-size: 15px;
  }

  .field__label {
    font-size: 12px;
  }

  /* ??????? ?????: ??? ?? ???? 10px ? ???????????? ?????, ??? ? #lead */
  .lead-modal .lead-form {
    --lead-stack-gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    gap: var(--lead-stack-gap);
    row-gap: var(--lead-stack-gap);
  }

  .lead-modal .lead-grid,
  .lead-modal .lead-left,
  .lead-modal .lead-right {
    display: contents;
  }

  .lead-modal .lead-form > .field__error[data-error-for="consent"]:empty {
    display: none;
    margin: 0;
    min-height: 0;
  }

  .lead-modal .field {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .lead-modal .field__error:empty {
    display: none;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0;
    overflow: hidden;
  }

  .lead-modal .field__error:not(:empty) {
    margin-top: 4px;
  }

  .lead-modal .lead-right .field {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .lead-modal .lead-right .field__input--textarea {
    height: 2cm;
    min-height: 2cm;
  }

  /* -- Outline ??? ?????: ?????? ?? ????????? -- */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  *:focus {
    outline: none !important;
    box-shadow: none;
  }

  /* ???????? ???? ? ????????? ?????? ??? ????? ????? */
  .field__input:focus {
    border-color: rgba(27, 85, 131, 0.32);
    box-shadow: 0 0 0 3px rgba(27, 85, 131, 0.10);
    outline: none !important;
  }

  /* -- Footer -- */
  /* ??????? ???? ????? ??????? */
  .footer {
    transform: translateY(-0.6cm);
  }

  .footer-logo__img {
    width: 260px;
  }

  .footer-inner {
    font-size: 14px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 22px;
  }

  .footer-col--brand {
    transform: none !important;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-cols > .footer-col:nth-child(2),
  .footer-cols > .footer-col:nth-child(3) {
    transform: none !important;
    max-width: 100%;
    text-align: left;
  }

  /* ????????: ??????? ? email ?????? ? ??????? */
  .footer-cols > .footer-col:nth-child(2) .footer-link {
    display: block;
    white-space: normal;
  }

  .footer-col--docs .footer-h {
    text-align: left;
  }

  .footer-col--docs .footer-link,
  .footer-col--docs .footer-link:first-of-type,
  .footer-col--docs .footer-link[href$="policy.pdf"] {
    text-align: left !important;
    white-space: normal;
    -webkit-line-clamp: initial;
    overflow: visible;
    display: block;
  }

  .footer-legal-wrap {
    transform: none;
    margin-top: 10px;
  }

  .footer-legal {
    transform: none;
    text-align: left;
    font-size: 12.5px;
    padding-top: 14px;
  }

  /* Статья в блоге: отступ сверху под фиксированный хедер мобилки */
  .page-blog .section[aria-label="Статья"] {
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px + 24px) !important;
  }
}

