*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #7456f1;
  --accent-hover: #6243e0;
  --accent-soft: rgba(116, 86, 241, 0.1);
  --accent-light: #b3a3f7;
  --bg: #faf8f3;
  --surface: #ffffff;
  --lavender: #f0ecfb;
  --ink: #171221;
  --ink-2: #211a33;
  --text: #262031;
  --muted: #615a72;
  --on-dark: #ece9f4;
  --on-dark-muted: #a79fb8;
  --line: rgba(23, 18, 33, 0.1);
  --line-dark: rgba(255, 255, 255, 0.09);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-card: 0 24px 48px -24px rgba(23, 18, 33, 0.22);
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--lavender {
  background: var(--lavender);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section--dark .eyebrow {
  color: var(--accent-light);
}

.section--dark .eyebrow::before {
  background: var(--accent-light);
}

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
}

.section__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 68ch;
}

.section--dark .section__lead {
  color: var(--on-dark-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(116, 86, 241, 0.55);
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--ink);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.35);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 243, 0.96);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.logo__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.header__phone {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header__phone:hover {
  color: var(--accent);
}

.header__cta {
  padding: 12px 22px;
  font-size: 14.5px;
}

.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-left: auto;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 27px;
}

.burger.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) 24px 32px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* The header (and its burger) sits under the open menu, so the menu has its own close button
   in the burger's spot. */
.mobile-menu__close {
  position: absolute;
  top: calc((var(--header-h) - 44px) / 2);
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: #fff;
  transition: border-color 0.2s, color 0.2s;
}

.admin-bar .mobile-menu__close {
  top: calc((var(--header-h) - 44px) / 2 + 32px);
}

@media (max-width: 782px) {
  .admin-bar .mobile-menu__close {
    top: calc((var(--header-h) - 44px) / 2 + 46px);
  }
}

.mobile-menu__close:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.mobile-menu__close span {
  position: absolute;
  top: 21px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}

.mobile-menu__close span + span {
  transform: rotate(-45deg);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.mobile-menu__link:hover {
  color: var(--accent-light);
  padding-left: 10px;
}

.mobile-menu__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu__phone {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.mobile-menu__socials {
  display: flex;
  gap: 12px;
}

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.hero__note svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.doc-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.doc-card--main {
  top: 8%;
  right: 4%;
  width: min(340px, 88%);
  animation: float-a 7s ease-in-out infinite;
}

.doc-card--stat {
  bottom: 10%;
  left: 0;
  width: min(240px, 70%);
  animation: float-b 8s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.doc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.doc-card__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-card__badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.doc-row:first-of-type {
  border-top: 0;
}

.doc-row__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--lavender);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.doc-row__icon svg {
  width: 15px;
  height: 15px;
}

.doc-row__status {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #1c8a4c;
  background: rgba(28, 138, 76, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.doc-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.doc-card__caption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.hero__chip {
  position: absolute;
  top: 0;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  animation: float-b 9s ease-in-out infinite;
}

.hero__chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
}

.stats {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(48px, 6vw, 72px) 0;
  position: relative;
  overflow: hidden;
}

.stats::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(116, 86, 241, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.stat__value sup {
  font-size: 0.55em;
  color: var(--accent-light);
  margin-left: 2px;
}

.stat__label {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--on-dark-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 34px 30px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(116, 86, 241, 0.45);
  box-shadow: var(--shadow-card);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-card__text {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.service-card__link {
  margin-top: auto;
}

.service-card__icon {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease);
}

.service-card__icon svg {
  width: 19px;
  height: 19px;
}

.service-card:hover .service-card__icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-8deg);
}

.banner {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 32px;
  align-items: center;
}

.banner--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.banner--dark::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(116, 86, 241, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.banner--accent {
  background: var(--accent);
  color: #fff;
}

.banner--accent::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.banner__content {
  position: relative;
  z-index: 1;
}

.banner__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #fff;
  margin-bottom: 16px;
}

.banner__title em {
  font-style: normal;
  color: var(--accent-light);
}

.banner--accent .banner__title em {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.banner__text {
  color: var(--on-dark-muted);
  max-width: 60ch;
}

.banner--accent .banner__text {
  color: rgba(255, 255, 255, 0.88);
}

.banner__price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.banner__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.director {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.director__photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--lavender) 0%, #e2d9fa 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.director__monogram {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}

.director__photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(116, 86, 241, 0.25);
  border-radius: calc(var(--radius-l) - 10px);
  pointer-events: none;
}

.director__tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.director__tag span {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.director__quote {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
  position: relative;
  padding-top: 44px;
}

.director__quote::before {
  content: "«";
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}

.director__name {
  margin-top: 28px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.director__role {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(116, 86, 241, 0.35);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  margin-bottom: 22px;
  border-radius: var(--radius-s);
  background: linear-gradient(160deg, var(--lavender) 0%, #e2d9fa 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(116, 86, 241, 0.22);
  border-radius: calc(var(--radius-s) - 4px);
  pointer-events: none;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__monogram {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}

.team-card__name {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.team-card__role {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-card__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

.team-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.team-card__meta svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  gap: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature-card:hover {
  border-color: rgba(116, 86, 241, 0.5);
  transform: translateY(-4px);
}

.feature-card--light {
  background: var(--surface);
  border-color: var(--line);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: grid;
  place-items: center;
}

.feature-card--light .feature-card__icon {
  color: var(--accent);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 15px;
  color: var(--on-dark-muted);
}

.feature-card--light .feature-card__text {
  color: var(--muted);
}

.video {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 16 / 7.5;
  background:
    radial-gradient(ellipse 60% 90% at 75% 30%, rgba(116, 86, 241, 0.35) 0%, transparent 60%),
    linear-gradient(150deg, #241c3a 0%, var(--ink) 70%);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
}

.video__pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 75%);
}

.video__inner {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.video__play {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.video__play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.video__play:hover {
  transform: scale(1.07);
  background: var(--accent-hover);
}

.video__caption {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
}

.video__sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--on-dark-muted);
}

.telegram-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px);
}

.telegram-strip__icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.telegram-strip__icon svg {
  width: 30px;
  height: 30px;
}

.telegram-strip__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 6px;
}

.telegram-strip__text {
  color: var(--muted);
  font-size: 15.5px;
}

.telegram-strip .btn {
  margin-left: auto;
  flex: none;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 18px;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
}

.review-card__text {
  font-size: 15.5px;
  color: var(--text);
  margin-bottom: 24px;
}

.review-card__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.review-card__name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.review-card__company {
  font-size: 13.5px;
  color: var(--muted);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border-radius: var(--radius-m);
  padding: 30px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 80% -10%, rgba(116, 86, 241, 0.4) 0%, transparent 60%);
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(116, 86, 241, 0.55);
}

.case-card:hover::before {
  opacity: 1;
}

.case-card > * {
  position: relative;
}

.case-card__tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(116, 86, 241, 0.16);
  border: 1px solid rgba(116, 86, 241, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: auto;
}

.case-card__title {
  font-size: 1.15rem;
  color: #fff;
  margin: 26px 0 18px;
}

.case-card__link {
  color: var(--accent-light);
}

/* Cases from the blog carry the post's featured image, darkened towards the title. */
.case-card > .case-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.case-card--image::before {
  z-index: 1;
  opacity: 1;
  background:
    linear-gradient(0deg, rgba(23, 18, 33, 0.96) 0%, rgba(23, 18, 33, 0.78) 42%, rgba(23, 18, 33, 0.2) 100%),
    radial-gradient(ellipse 90% 70% at 80% -10%, rgba(116, 86, 241, 0.35) 0%, transparent 60%);
}

.case-card--image > :not(.case-card__img) {
  z-index: 2;
}

.case-card--image:hover > .case-card__img {
  transform: scale(1.05);
}

.case-card--image .case-card__tag {
  color: #fff;
  background: rgba(23, 18, 33, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cta {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(116, 86, 241, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.cta__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: #fff;
  margin-bottom: 18px;
}

.cta__text {
  color: var(--on-dark-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 32px;
}

.cta__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta__contact-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: grid;
  place-items: center;
}

.cta__contact-icon svg {
  width: 20px;
  height: 20px;
}

.cta__contact-label {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.cta__contact-value {
  font-weight: 800;
  font-size: 16.5px;
  color: #fff;
  transition: color 0.2s;
}

a.cta__contact-value:hover {
  color: var(--accent-light);
}

.footer {
  background: #100c19;
  color: var(--on-dark-muted);
  padding: clamp(56px, 7vw, 88px) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer__about {
  font-size: 14.5px;
  max-width: 34ch;
  margin-bottom: 24px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer__contacts a {
  color: var(--on-dark);
  font-weight: 600;
  transition: color 0.2s;
}

.footer__contacts a:hover {
  color: var(--accent-light);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer__list a {
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.footer__list a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.footer__bottom a {
  color: var(--on-dark);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--accent-light);
}

.float-contacts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-contacts__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -12px rgba(23, 18, 33, 0.35);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.float-contacts__btn svg {
  width: 22px;
  height: 22px;
}

.float-contacts__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 25, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 40px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: var(--lavender);
  color: var(--ink);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.modal__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 26px;
}

.form__field {
  margin-bottom: 16px;
}

.form__label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form__input::placeholder {
  color: #a39dae;
}

.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 22px;
}

.form__consent input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex: none;
}

.form__consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__submit {
  width: 100%;
}

.form__success {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}

.form__success.is-visible {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.form__success-icon svg {
  width: 28px;
  height: 28px;
}

.form__success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form__success-text {
  font-size: 14.5px;
  color: var(--muted);
}

.modal__messengers {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.modal__messengers .btn {
  flex: 1;
  padding: 13px 16px;
  font-size: 14.5px;
}

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumbs a {
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.page-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 22px;
}

.page-hero__lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 34px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero__card {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-m);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.page-hero__card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(116, 86, 241, 0.35) 0%, transparent 65%);
}

.page-hero__card-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.page-hero__card-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.page-hero__card-text {
  position: relative;
  font-size: 14.5px;
  color: var(--on-dark-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.split__sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
}

.check-list li svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

.section--dark .check-list li svg {
  color: var(--accent-light);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.client-logo {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Carousel dots (main.js) — shown on phones only. */
.swipe-dots {
  display: none;
}

.client-logo:hover {
  color: var(--accent);
  border-color: rgba(116, 86, 241, 0.45);
  transform: translateY(-3px);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 36px 30px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(116, 86, 241, 0.4);
}

.step-card__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.step-card__title {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.step-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
}

.step-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.price-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
  white-space: nowrap;
}

.price-card__per {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

.price-card__note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.reasons__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.reason-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  font-size: 15.5px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.reason-card:hover {
  border-color: rgba(116, 86, 241, 0.45);
  transform: translateY(-3px);
}

.reason-card svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq__item.is-open {
  border-color: rgba(116, 86, 241, 0.5);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 24px 28px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  transition: color 0.2s;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--lavender);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.faq__icon svg {
  width: 16px;
  height: 16px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-content {
  padding: 0 28px 26px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 70ch;
}

.faq__a-content p + p {
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .services__grid,
  .reviews__grid,
  .cases__grid,
  .team__grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 920px) {
  .nav,
  .header__phone,
  .header__cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero__grid,
  .page-hero__grid,
  .director,
  .cta__inner,
  .split,
  .price-card,
  .banner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    min-height: 380px;
    max-width: 480px;
  }
  .banner__side {
    align-items: flex-start;
  }
  .split__sticky {
    position: static;
  }
  .telegram-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .telegram-strip .btn {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .services__grid,
  .reviews__grid,
  .cases__grid,
  .steps,
  .features__grid,
  .reasons__grid {
    grid-template-columns: 1fr;
  }
  /* Phones: logos and team cards become swipe carousels — one per slide, the next peeking. */
  .clients__grid,
  .team__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 4px 24px 8px;
    scroll-padding: 0 24px;
  }
  .clients__grid::-webkit-scrollbar,
  .team__grid::-webkit-scrollbar {
    display: none;
  }
  .clients__grid > *,
  .team__grid > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .clients__grid > .client-logo {
    min-height: 150px;
  }
  .clients__grid > :hover,
  .team__grid > :hover {
    transform: none;
  }
  .swipe-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  .swipe-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.2s, width 0.2s;
  }
  .swipe-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--accent);
  }
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Phones: just the «Оформление персонала» card, in the flow, no overlapping chip/price. */
  .hero__visual {
    min-height: 0;
    max-width: none;
  }
  .hero__chip,
  .doc-card--stat {
    display: none;
  }
  .doc-card--main {
    position: static;
    width: 100%;
    animation: none;
  }
  .modal__dialog {
    padding: 32px 24px;
  }
  .modal__messengers {
    flex-direction: column;
  }
  .float-contacts {
    right: 14px;
    bottom: 14px;
  }
  .float-contacts__btn {
    width: 46px;
    height: 46px;
  }
  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }
}
