:root {
  --bg: #080909;
  --bg-2: #101111;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.66);
  --muted-2: rgba(244, 241, 234, 0.42);
  --accent: #c9ff22;
  --accent-2: #9fe218;
  --black: #050505;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1440px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
}
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(201, 255, 34, 0.14), transparent 28%),
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #080909 0%, #050606 48%, #090a0a 100%);
  overflow-x: hidden;
  scroll-padding-top: 95px;
  min-height: 100%;
  padding-top: 82px;
}

@media (max-width: 860px) {
  body {
    padding-top: 64px;
  }

  section, [id] {
    scroll-margin-top: 80px;
  }
}

section, [id] {
  scroll-margin-top: 100px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 84px 84px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

main {
  overflow-x: hidden;
  width: 100%;
}

.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(8, 9, 9, 0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.header.is-scrolled {
  background: rgba(8, 9, 9, 0.7);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.header__inner {
  height: 82px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.logo span { color: var(--accent); }

.logo__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(201, 255, 34, 0.72);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 48px);
  color: var(--muted);
  font-size: 14px;
}

.nav a { transition: 0.2s ease; }
.nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.22s ease;
  font-weight: 600;
  line-height: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #101205;
  box-shadow: 0 0 0 1px rgba(201,255,34,0.2), 0 22px 70px rgba(201,255,34,0.18);
}

.btn--accent:hover { transform: translateY(-2px); background: #d5ff4c; }

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.03);
}

.btn--ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.075); }

.icon-btn {
  width: 40px;
  height: 40px;
  line-height: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  padding: 0 0 52px;
      margin-top: -30px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 60px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(201,255,34,0.14);
  border-radius: 48% 52% 50% 50%;
  transform: rotate(-12deg);
  opacity: 0.5;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.eyebrow::before {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.hero__content {
    padding: 0 12px;
}
.hero__title {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(62px, 7vw, 126px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.hero__title .accent {
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.1em;
}

.hero__text {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.64;
  letter-spacing: -0.025em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orb-text {
  position: absolute;
  right: 36px;
  top: 10px;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  border: 1px solid rgba(201,255,34,0.22);
  color: var(--accent);
  font-size: 12px;
  display: grid;
  place-items: center;
  transform: rotate(12deg);
  opacity: 0.75;
}

.device-stack {
  position: relative;
  width: min(100%, 650px);
  height: 460px;
}

.laptop {
  position: absolute;
  inset: 36px 0 auto auto;
  width: 545px;
  height: 335px;
  transform: rotate(7deg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #171818, #060606);
  box-shadow: 0 48px 160px rgba(0,0,0,0.55);
  overflow: hidden;
}

.laptop::before {
  content: "";
  display: block;
  height: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
}

.laptop__screen {
  margin: 26px;
  height: calc(100% - 86px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.1)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  filter: grayscale(1) contrast(1.05) brightness(0.76);
}

.laptop__screen::after {
  content: "Сайт и приложение для бизнеса";
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 240px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 0.98;
  color: #fff;
}

.phone {
  position: absolute;
  left: 38px;
  bottom: 0;
  width: 168px;
  height: 325px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #111;
  box-shadow: 0 42px 120px rgba(0,0,0,0.58);
  transform: rotate(-9deg);
  padding: 16px;
}

.phone::before {
  content: "";
  width: 56px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.24);
  display: block;
  margin: 0 auto 18px;
}

.phone__ui {
  height: calc(100% - 24px);
  border-radius: 24px;
  background: linear-gradient(180deg, #f6f6ef, #cbcec0);
  color: #111;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.phone__title { font-size: 14px; font-weight: 800; letter-spacing: -0.04em; }

.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.slot {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.11);
  font-size: 11px;
  display: grid;
  place-items: center;
}

.mini-card {
  position: absolute;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 17, 17, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 110px rgba(0,0,0,0.35);
}

.mini-card--seo {
  left: 230px;
  bottom: 44px;
  width: 190px;
  padding: 24px;
  transform: rotate(-3deg);
}

.mini-card--seo b {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 26px;
  letter-spacing: -0.05em;
}

.chart {
  height: 52px;
  margin-top: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(201,255,34,0.65) 18% 20%, transparent 20% 43%, rgba(201,255,34,0.65) 43% 45%, transparent 45% 64%, rgba(201,255,34,0.65) 64% 66%, transparent 66% 100%);
}

.mini-card--badge {
  right: 0;
  bottom: 102px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(6deg);
}

.badge-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
}

.logo-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
}

.logo-strip__inner {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 36px;
}

.logo-strip__label {
  color: var(--muted-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: center;
  color: rgba(244,241,234,0.35);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 28px);
  filter: grayscale(1);
}

.section {
  padding: 98px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section--light {
  color: #101010;
  background: #f4f1ea;
  border-bottom: 0;
  /*margin-inline: calc((100vw - min(100vw - 40px, var(--container))) / -2);
  padding-inline: calc((100vw - min(100vw - 40px, var(--container))) / 2);*/
  max-width: 100vw;
}

.section-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 46px;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.section-copy {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.section--light .section-copy { color: rgba(16,16,16,0.64); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 282px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0%, rgba(201,255,34,0.08), transparent 34%),
    rgba(255,255,255,0.025);
  display: grid;
  align-content: space-between;
  gap: 24px;
  transition: 0.24s ease;
}

.service-card:last-child { border-right: 0; }
.service-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }

.service-card__icon, .tile__icon, .reason__icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.service-card h3, .case h3, .reason h3, .process-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.service-card p, .case p, .reason p, .process-item p, .tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.section--light .service-card p, .section--light .case p { color: rgba(16,16,16,0.58); }

.arrow {
  color: var(--accent);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.28s ease;
}
span.arrow.service-card__trigger {
    line-height: 1;
}

/* === Service card CTA === */
.service-card {
  cursor: default;
}

.service-card__cta-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  white-space: nowrap;
}

.service-card:hover .service-card__cta-text {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.service-card:hover .arrow {
  transform: translate(2px, -2px);
}

.audience-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 44px;
  align-items: stretch;
}

.audience-text {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
}

.audience-text .link {
  color: var(--accent);
  font-weight: 700;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 196px;
  gap: 12px;
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #141515;
  isolation: isolate;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.84)),
    var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) brightness(0.62);
  z-index: -2;
  transition: 0.3s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(201,255,34,0.12), transparent 35%);
  z-index: -1;
}

.tile:hover::before {
  transform: scale(1.06);
  filter: grayscale(0.12) brightness(0.78);
}

.tile__icon {
  position: absolute;
  left: 22px;
  top: 22px;
}

.tile h3 {
  margin: 0 0 7px;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.cases-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  cursor: grab;
  overscroll-behavior-x: contain;
  position: relative;
  z-index: 5;
}

.cases-grid:active {
  cursor: grabbing;
}

.cases-grid::-webkit-scrollbar {
  height: 6px;
}

.cases-grid::-webkit-scrollbar-track {
  background: transparent;
}

.cases-grid::-webkit-scrollbar-thumb {
  background: rgba(201, 255, 34, 0.4);
  border-radius: 3px;
  transition: background 0.2s;
}

.cases-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.cases-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cases-gradient--left {
  left: 0;
  background: linear-gradient(90deg, #f4f1ea 0%, rgba(244, 241, 234, 0.97) 60%, rgba(244, 241, 234, 0.8) 80%, rgba(244, 241, 234, 0) 100%);
}

.cases-gradient--right {
  right: -70px;
  background: linear-gradient(-90deg, #f4f1ea 60%, rgba(244, 241, 234, 0.97) 68%, rgba(244, 241, 234, 0.8) 75%, rgba(244, 241, 234, 0) 100%);
}

.cases-gradient.is-visible {
  opacity: 1;
}

.case {
  flex: 0 0 380px;
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(16,16,16,0.12);
  background: #fffdf8;
  color: #101010;
  min-height: 430px;
  display: grid;
  gap: 22px;
  transition: 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.case::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(201,255,34,0.7), rgba(16,16,16,0.06) 40%, rgba(16,16,16,0.06) 60%, rgba(201,255,34,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.case:hover {
  transform: translateY(-5px);
}

.case:hover::before {
  opacity: 1;
}

.case__image {
  height: 220px;
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.32)),
    var(--img);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.case__image::after {
  content: "↗";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.8);
  color: #fff;
}

.case__body {
  padding: 0 12px 12px;
  display: grid;
  gap: 16px;
}

.case__meta {
  color: rgba(16,16,16,0.42);
  font-size: 13px;
}

.case__stats {
  display: flex;
  gap: 28px;
  margin-top: 4px;
}

.stat { display: grid; gap: 5px; }

.stat b {
  color: #6fa500;
  font-size: 28px;
  letter-spacing: -0.06em;
}

.stat span {
  color: rgba(16,16,16,0.56);
  font-size: 13px;
}

.process {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
  padding-top: 18px;
}

.process-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  border-top: 1px dashed rgba(201,255,34,0.32);
}

.process-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
}

.process-num {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,255,34,0.45);
  background: #090a0a;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.reason {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-height: 220px;
  display: grid;
  gap: 16px;
  align-content: start;
  background: rgba(255,255,255,0.025);
}

.cta {
  padding: 90px 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 50%, rgba(201,255,34,0.18), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  display: grid;
  grid-template-columns: auto 1.1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.cta__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cta__col--left {
  justify-content: flex-end;
}

.cta__col--right p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 4px;
}

.cta__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cta__contact:hover {
  color: var(--accent);
}

.cta__contact-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 255, 34, 0.1);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.cta__contact:hover .cta__contact-icon {
  background: rgba(201, 255, 34, 0.18);
}

.cta__contact-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.cta::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 520px;
  height: 300px;
  border: 1px solid rgba(201,255,34,0.22);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.cta h2 {
  margin: -5px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 400;
}

.footer {
  padding: 62px 0 34px;
  background: #050606;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-soft);
}

.footer .logo img {
  height: 50px;
}

.footer p, .footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--accent);
}
.footer__bottom a {
    font-size: 13px;
}

.footer h4 {
  margin: 0 0 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13px;
}

.mobile-only { display: none; }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-menu__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 340px);
  background: #080909;
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__content {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu__header .logo img {
  height: 24px;
  width: auto;
  display: block;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  transition: 0.2s ease;
}

.mobile-menu__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.mobile-menu__btn {
  width: 100%;
  margin-top: auto;
}

/* Модальное окно (попап) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0f1010;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.is-open .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 10;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal__header {
  margin-bottom: 24px;
}

.modal.is-success .modal__header {
  display: none;
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.modal__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #747471;
  font-size: 15px;
  font-family: inherit;
  transition: 0.2s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-2);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.form-input.error,
.form-textarea.error {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.form-input.error:focus,
.form-textarea.error:focus {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.08);
}

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

.modal__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

.form-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note a:hover {
  color: var(--accent);
}

.modal__success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: rgba(201, 255, 34, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 32px;
  font-weight: 700;
}

.modal__success h4 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--text);
}

.modal__success p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Горизонтальный скролл кейсов */
.cases-wrapper {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
}

.cases-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  position: relative;
  z-index: 20;
}

.cases-nav {
  display: flex;
  gap: 10px;
}

.cases-nav__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: #101205;
  cursor: pointer;
  transition: 0.3s ease;
  flex-shrink: 0;
}

.cases-nav__btn:hover {
  background: transparent;
  color:#b0eb00;
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(201, 255, 34, 0.25);
  transform: scale(1.05);
}

.cases-nav__btn:active {
  transform: scale(0.95);
}

.cases-nav__btn:disabled,
.cases-nav__btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 860px) {
  /* Блокируем горизонтальный скролл.
     Используем clip вместо hidden — hidden превращает элемент в scroll-контейнер
     (overflow-y вычисляется как auto), что ломает position: sticky.
     clip обрезает overflow, но не создаёт scroll-контейнер. */
  html, body {
    overflow-x: clip;
    width: 100%;
  }
  main {
    overflow-x: clip;
    width: 100%;
  }

  /* Отключаем скроллбары на мобильных */
  ::-webkit-scrollbar {
    display: none;
  }
  * {
    scrollbar-width: none !important;
  }

  /* Скрываем всё, что выходит за пределы экрана */
  .page, .section, .hero__visual, .device-stack, .laptop, .cta {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page * {
    max-width: 100%;
  }

  .page {
    width: 100%;
    padding: 0 16px;
  }

  .header__inner {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .nav, .header__actions .btn {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  /* Hero секция */
  .hero {
    padding: 32px 0 40px;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__content, .hero__visual {
    overflow-x: hidden;
  }

  .hero__title {
    font-size: clamp(40px, 12vw, 64px);
  }

  .hero__text {
    font-size: 16px;
    margin-top: 24px;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 24px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    display: none;
    min-height: 320px;
    overflow: hidden;
  }

  .device-stack {
    height: 300px;
    max-width: 100%;
    transform: scale(0.55);
    transform-origin: center top;
  }

  .laptop {
    right: 0;
    transform: rotate(0deg);
    max-width: 100%;
  }

  .orb-text,
  .phone,
  .mini-card {
    display: none;
  }

  /* Логотипы */
  .logo-strip {
    overflow-x: hidden;
  }

  .logo-strip__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: hidden;
  }

  .logo-strip__label {
    font-size: 11px;
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-size: 13px;
  }

  /* Секции */
  .section {
    padding: 48px 0;
    max-width: 100%;
  }

  .section--light {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    max-width: 100%;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .section-copy {
    font-size: 15px;
  }

  /* Процесс */
  .process, .process-line {
    overflow-x: hidden;
  }

  /* Услуги */
  .services-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 12px;
    overflow-x: hidden;
  }

  .service-card {
    border: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
    min-height: auto;
    padding: 24px;
    max-width: 100%;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  /* Аудитория */
  .audience-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    overflow-x: hidden;
  }

  .audience-text {
    min-height: auto;
    padding-top: 0;
    gap: 15px;
  }

  .tiles {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
    overflow-x: hidden;
  }

  .tile {
    min-height: 180px;
  }

  /* Кейсы - горизонтальный скролл */
  .cases-wrapper {
    margin: 0 auto;
    padding: 0;
    overscroll-behavior-x: contain;
  }

  .cases-header {
    display: none;
  }

  .cases-gradient--left {
    display: none;
  }

  .cases-gradient--right {
        width: 80px;
        right: -30px;
        background: linear-gradient(-90deg, #f4f1ea 45%, rgba(244, 241, 234, 0.97) 0, rgba(244, 241, 234, 0.8) 55%, rgba(244, 241, 234, 0) 100%);
  }

  .cases-grid {
    gap: 12px;
    padding-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .cases-grid::-webkit-scrollbar {
    display: none;
  }

  .case {
    flex: 0 0 80vw;
    max-width: 320px;
    min-height: 380px;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Процесс */
  .process-line {
    grid-template-columns: 1fr;
    gap: 24px;
    overflow-x: hidden;
  }
  .process-line::before {
    content:unset;
  }

  /* Sticky head — кикер и заголовок прилипают под хедером до конца секции.
     Сбрасываем overflow у всех предков, иначе sticky не сработает. */
  #process,
  #process > .page,
  #process .process {
    overflow: visible;
  }
  .sticky-head {
    position: sticky;
    top: 64px;
    z-index: 10;
    background: var(--bg);
    padding: 14px 16px;
    margin: 0 -16px 20px;
  }

  /* Причины */
  .reasons {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: hidden;
  }

  .reason {
    min-height: auto;
  }

  /* CTA */
  .cta {
    padding: 48px 24px;
    grid-template-columns: 1fr;
    gap: 32px;
    border-radius: var(--radius-lg);
  }

  .cta__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cta__col--left {
    align-items: flex-start;
    order: 3;
  }

  .cta__col--right p {
    font-size: 15px;
  }

  .cta__contacts {
    flex-direction: column;
    gap: 16px;
  }

  .cta__contact {
    font-size: 14px;
  }

  /* Футер */
  .footer {
    padding: 40px 0 24px;
    overflow-x: hidden;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  /* Блокируем горизонтальный скролл через clip, чтобы не ломать position: sticky */
  html, body {
    overflow-x: clip;
    width: 100%;
  }
  main {
    overflow-x: clip;
    width: 100%;
  }

  /* Скрываем всё, что выходит за пределы экрана */
  .page, .section, .hero__visual, .device-stack, .laptop, .cta {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page * {
    max-width: 100%;
  }

  .page {
    width: 100%;
    padding: 0 12px;
  }

  .hero {
    padding: 60px 0 32px;
    overflow-x: hidden;
  }

  .hero__content, .hero__visual {
    overflow-x: hidden;
  }

  .hero__title {
    font-size: clamp(32px, 11vw, 48px);
  }

  .hero__visual {
    min-height: 240px;
  }

  .device-stack {
    height: 220px;
    transform: scale(0.42);
  }

  .logo-strip {
    padding: 16px 0;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 12px;
  }

  .section {
    padding: 40px 0;
    max-width: 100%;
  }

  .section--light {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    max-width: 100%;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .sticky-head {
    position: sticky;
    top: 64px;
    z-index: 10;
    background: var(--bg);
    padding: 12px 12px;
    margin: 0 -12px 16px;
  }

  .cta {
    padding: 36px 20px;
  }

  .cta__contacts {
    flex-direction: column;
    gap: 14px;
  }

  .footer {
    padding: 40px 0 24px;
    overflow-x: hidden;
  }

  .logo-strip, .audience-layout, .tiles, .process-line, .reasons, .services-grid {
    overflow-x: hidden;
  }
}
