/* =========================================================
   Группа Наладки — сайт
   Тёмная индустриальная тема, оранжевый акцент
   ========================================================= */

:root {
  --bg: #0b0c0e;
  --bg-2: #0e1013;
  --panel: #12151a;
  --panel-2: #171b21;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f4f5f7;
  --muted: #9ba3ae;
  --muted-2: #7d8590;
  --accent: #ff6a2a;
  --accent-2: #ffb15c;
  --accent-soft: rgba(255, 106, 42, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1220px;
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Unbounded", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

::selection {
  background: var(--accent);
  color: #140b05;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--accent);
  color: #140b05;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- фоновая «пыль» ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 120;
  transition: width 0.08s linear;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, height 0.3s;
}
.header.is-scrolled {
  background: rgba(11, 12, 14, 0.92);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(255, 106, 42, 0.7);
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand__name { white-space: nowrap; }
.brand__text b { font-weight: 600; }
.brand__text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__phone {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, #ff8a45 0%, #ff5f1f 100%);
  color: #150b05;
  box-shadow: 0 14px 34px -14px rgba(255, 106, 42, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -16px rgba(255, 106, 42, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 42, 0.6);
  background: rgba(255, 106, 42, 0.07);
}

.btn--sm { height: 46px; padding: 0 20px; font-size: 0.87rem; }
.btn--full { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(50% 55% at 72% 30%, rgba(255, 106, 42, 0.16), transparent 70%),
    radial-gradient(40% 45% at 15% 10%, rgba(90, 120, 180, 0.1), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 10%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__glow { display: none; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 42, 0.15);
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, #ff9a5c 0%, #ff6a2a 55%, #ffc36e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34em;
  margin: 0 0 34px;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.sla {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.sla li {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}
.sla li:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}
.sla b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}
.sla span {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted-2);
}

/* ---- коллаж в hero ---- */
.hero__media {
  position: relative;
  min-height: 520px;
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e9ecf1;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 106, 42, 0.9);
  flex-shrink: 0;
}

.shot--main {
  position: absolute;
  inset: 34px 0 54px 0;
  border-radius: 26px;
  animation: floatA 9s ease-in-out infinite;
}
.shot--main figcaption {
  top: 12px;
  bottom: auto;
}
.shot--top {
  position: absolute;
  top: 0;
  right: -18px;
  width: 47%;
  aspect-ratio: 16 / 11;
  transform: rotate(2.5deg);
  animation: floatB 11s ease-in-out infinite;
}
.shot--bottom {
  position: absolute;
  bottom: 0;
  left: -26px;
  width: 52%;
  aspect-ratio: 16 / 10;
  transform: rotate(-2deg);
  animation: floatC 10s ease-in-out infinite;
}
@keyframes floatA { 50% { transform: translateY(-8px); } }
@keyframes floatB { 50% { transform: rotate(2.5deg) translateY(9px); } }
@keyframes floatC { 50% { transform: rotate(-2deg) translateY(-7px); } }

.hero__badge {
  position: absolute;
  right: -8px;
  bottom: 96px;
  z-index: 3;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(12, 14, 17, 0.78);
  border: 1px solid rgba(255, 106, 42, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
.hero__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2px;
}

/* =========================================================
   БЕГУЩАЯ СТРОКА
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  font-size: 0.5rem;
  color: var(--accent);
  opacity: 0.8;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   СЕКЦИИ
   ========================================================= */
.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 96px;
}
.section--panel {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: 84px 0; }

.section__head {
  max-width: 760px;
  margin: 0 auto 62px;
  text-align: center;
}
.section__head--left {
  margin: 0;
  text-align: left;
}
.section__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.section__lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}
.section__head .btn { margin-top: 28px; }

/* =========================================================
   УСЛУГИ
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 42, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 42, 0.38);
}
.service:hover::before { opacity: 1; }
.service > * { position: relative; }

.service__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 34px;
}
.service h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.service p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.service ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.service li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* =========================================================
   ПРОЦЕСС
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 80px;
  align-items: start;
}
.process .section__head { margin: 0; position: sticky; top: 110px; }
.process .section__head .btn { margin-top: 32px; }

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 14px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 106, 42, 0.55), rgba(255, 255, 255, 0.12) 40%, transparent);
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: border-color 0.3s, background 0.3s;
}
.step:hover .step__num {
  border-color: rgba(255, 106, 42, 0.6);
  background: rgba(255, 106, 42, 0.08);
}
.step h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 52ch;
}

/* =========================================================
   КЕЙСЫ
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -18px 0 38px;
}
.chip {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #150b05;
  font-weight: 600;
  transform: translateY(-1px);
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 42, 0.32);
}
.case[hidden] { display: none; }

.case__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.case__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 7, 9, 0.65));
  pointer-events: none;
}
.case__media:hover img {
  transform: scale(1.045);
  filter: saturate(1) brightness(1);
}
.case__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: rgba(12, 13, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.case__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.case__media:hover .case__play,
.video__media:hover .case__play,
.video-card:hover .case__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.case__media:hover .case__play::before,
.video__media:hover .case__play::before,
.video-card:hover .case__play::before { border-left-color: #150b05; }
.video-card__actions {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.video-card__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border-radius: 10px; font-size: .74rem; font-weight: 700;
  text-decoration: none; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); color:#fff; transition: .2s;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.video-card__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.video-card__btn--yt { background: #cc2a22; border-color: #cc2a22; }
.video-card__btn--yt:hover { background: #e03128; border-color: #e03128; }
.video-card__btn--rt { background: #1f3ea8; border-color: #1f3ea8; color:#fff; }
.video-card__btn--rt:hover { background: #2850d6; border-color: #2850d6; color:#fff; }
.video-card .case__play { z-index: 2; pointer-events: none; }

.case__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7eaef;
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.case__place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.case h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.case__body p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.case__links { display:flex; flex-wrap:wrap; gap:14px 18px; margin-top:auto; }
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.case__link span { color: var(--accent); transition: transform 0.25s var(--ease); }
.case__link:hover { color: var(--accent); }
.case__link:hover span { transform: translate(2px, -2px); }
.case__link--rt span { color:#8b86ff; }

.cases__more {
  margin: 34px 0 0;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 106, 42, 0.5);
  font-size: 0.9rem;
  color: var(--muted-2);
  max-width: 92ch;
}
.cases__more b { color: var(--muted); font-weight: 600; }

.geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 26px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255, 106, 42, 0.07), rgba(255, 255, 255, 0.015) 55%);
}
.geo__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.geo__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.geo__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.geo__code {
  padding: 3px 6px;
  border: 1px solid rgba(255, 106, 42, 0.35);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.geo__list b {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.geo__note {
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* =========================================================
   ВИДЕО / ЛИКБЕЗ
   ========================================================= */
.videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: border-color 0.3s;
}
.video__media:hover { border-color: rgba(255, 106, 42, 0.45); }
.video__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.9);
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.video__media:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.video__media .case__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.video__media .case__play::before { border-width: 7px 0 7px 12px; }
.video__tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.video h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.video p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted-2);
  line-height: 1.55;
}

/* =========================================================
   TELEGRAM
   ========================================================= */
.telegram {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.telegram__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.telegram__facts {
  display: flex;
  gap: 34px;
  margin: 42px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.telegram__facts div { display: flex; flex-direction: column; gap: 4px; }
.telegram__facts dt {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.telegram__facts dd {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted-2);
}

.telegram__feed {
  position: relative;
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 106, 42, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.feed__label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.feed__head .feed__label { margin-bottom: 0; }

.feed__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-2);
}
.feed__status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #5ad18f;
  box-shadow: 0 0 8px rgba(90, 209, 143, 0.75);
}
.feed__status.is-stale::before {
  background: var(--muted-2);
  box-shadow: none;
}

/* свежие кадры из канала */
.tg-media {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.tg-media__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.tg-media__head .feed__label { margin-bottom: 0; }
.tg-media__all {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.tg-media__all:hover { color: var(--accent); }
.tg-media__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tg-media__item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0d10;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tg-media__item:hover {
  border-color: rgba(255, 106, 42, 0.5);
  transform: translateY(-2px);
}
.tg-media__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.94);
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.tg-media__item:hover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.tg-media__item.is-empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: rgba(255,255,255,0.03);
}
.tg-media__item.is-empty::before {
  content: "Открыть в Telegram ↗";
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.tg-media__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(9, 10, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.tg-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 9, 0.9));
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
  color: #eef1f5;
}
.tg-media__item.is-empty {
  background: linear-gradient(150deg, #1b2028, #0c0e12);
}
.tg-media__item.is-empty::before {
  content: "TG";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.tip {
  display: grid;
  grid-template-columns: 26px 1fr 18px;
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.2s;
}
.tip:hover { opacity: 0.95; }
.tip__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--accent);
  padding-top: 3px;
}
.tip__body b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.tip:hover .tip__body b { color: var(--accent-2); }
.tip__body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}
.tip__arrow {
  color: var(--muted-2);
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease), color 0.25s;
}
.tip:hover .tip__arrow { transform: translate(2px, -2px); color: var(--accent); }
.feed__note {
  margin: 14px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* =========================================================
   ПОЧЕМУ МЫ
   ========================================================= */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why__item {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, background 0.3s;
}
.why__item:hover {
  border-color: rgba(255, 106, 42, 0.3);
  background: rgba(255, 106, 42, 0.035);
}
.why__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 42, 0.3);
  background: rgba(255, 106, 42, 0.08);
  color: var(--accent);
  font-size: 1rem;
}
.why__item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.why__item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.faq .section__head { margin: 0; position: sticky; top: 110px; }

.faq__item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.faq__item[open] summary { color: var(--accent-2); }
.faq__item[open] summary::after {
  transform: rotate(45deg);
  border-color: rgba(255, 106, 42, 0.5);
  color: var(--accent);
}
.faq__item p {
  margin: 14px 0 2px;
  max-width: 62ch;
  font-size: 0.94rem;
  color: var(--muted);
}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contact { padding-top: 96px; }
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 106, 42, 0.13), transparent 55%),
    radial-gradient(80% 100% at 100% 100%, rgba(90, 120, 180, 0.08), transparent 60%),
    linear-gradient(180deg, #12151a, #0d0f12);
  overflow: hidden;
}
.contact__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 0% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 0% 0%, #000, transparent 75%);
  pointer-events: none;
}
.contact__intro,
.form { position: relative; }

.contact__list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact__list span {
  width: 170px;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact__list a {
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.2s;
}
.contact__list a:hover { color: var(--accent); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 7, 9, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e11;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #5c636d; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 106, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.14);
  background: #0e1014;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239ba3ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { background: #0c0e11; color: var(--text); }
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }

.form__note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted-2);
}
.form__note a { color: var(--accent-2); border-bottom: 1px solid rgba(255, 177, 92, 0.3); }
.form__error {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #ff8a8a;
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  position: relative;
  padding: 68px 0;
  border-top: 1px solid var(--line);
  background: #090a0c;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 48px;
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.86rem;
  color: var(--muted-2);
}
.footer__nav {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer__nav a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__contacts {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}
.footer__contacts > a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__contacts > a:hover { color: var(--accent); }
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.footer__socials a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer__socials a:hover { color: var(--accent); border-color: rgba(255, 106, 42, 0.4); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer__bottom p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted-2);
}

/* =========================================================
   МОБИЛЬНАЯ ПАНЕЛЬ
   ========================================================= */
.mobile-bar { display: none; }

/* =========================================================
   МОДАЛКА ВИДЕО
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.modal__dialog {
  position: relative;
  width: min(1020px, 100%);
  background: #0d0f12;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95);
  animation: popIn 0.3s var(--ease);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.modal__meta { display:flex; flex-direction:column; gap:8px; min-width:0; }
.modal__head p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal__tabs { display:flex; gap:8px; flex-wrap:wrap; }
.modal__tab {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--text-soft); font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.modal__tab:hover:not(:disabled) { color: var(--text); border-color: rgba(255,255,255,0.24); }
.modal__tab.is-active { color:#0b0c0e; background: var(--accent); border-color: var(--accent); }
.modal__tab:disabled { opacity:.35; cursor:not-allowed; }
.modal__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.modal__close:hover { color: var(--accent); border-color: rgba(255, 106, 42, 0.5); transform: rotate(90deg); }
.modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal__foot { padding: 12px 18px; border-top: 1px solid var(--line); display:flex; justify-content:flex-end; }
.modal__external { font-size: .74rem; font-weight:600; color: var(--accent-2); }
.modal__external:hover { color: var(--accent); }
.modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 460px);
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 106, 42, 0.4);
  background: rgba(16, 18, 22, 0.96);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s var(--ease) var(--d, 0s),
    transform 0.75s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1320px) {
  .header__phone { display: none; }
}

@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
  .hero__media { min-height: 460px; }
  .process, .faq, .telegram { gap: 52px; }
  .contact__grid { padding: 44px; gap: 44px; }
  .videos { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 28px 28px;
    background: rgba(10, 11, 13, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 15px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: inline-flex; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .hero__title br { display: none; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; max-width: 620px; }
  .shot--main { inset: 0; }
  .shot--top, .shot--bottom { display: none; }
  .hero__badge { right: 12px; bottom: 12px; }

  .section { padding: 84px 0; }
  .process, .faq { grid-template-columns: 1fr; gap: 44px; }
  .process .section__head, .faq .section__head { position: static; }
  .telegram { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contacts { justify-items: start; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .section__head { margin-bottom: 40px; }
  .header__actions .btn { display: none; }

  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .sla { gap: 18px 0; }
  .sla li { padding-right: 18px; margin-right: 18px; }
  .sla b { font-size: 0.86rem; }
  .sla span { font-size: 0.7rem; }

  .marquee span { font-size: 0.8rem; }

  .services { grid-template-columns: 1fr; gap: 12px; }
  .service { padding: 24px 20px; }
  .service__num { margin-bottom: 22px; }

  .cases { grid-template-columns: 1fr; }
  .case__body { padding: 20px; }

  .geo {
    gap: 12px;
    padding: 16px 16px;
  }
  .geo__list { flex-direction: column; align-items: stretch; width: 100%; }
  .geo__list li { border-radius: 12px; }

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

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

  .telegram__feed { padding: 22px 20px; }
  .telegram__facts { flex-wrap: wrap; gap: 22px; }
  .telegram__actions .btn { flex: 1 1 auto; }

  .tg-media { margin-top: 40px; }
  .tg-media__head { align-items: center; }
  .tg-media__all { display: none; }
  .tg-media__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tg-media__grid::-webkit-scrollbar { display: none; }
  .tg-media__item {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }
  .tg-media__caption { font-size: 0.7rem; padding: 22px 11px 10px; }

  .contact { padding-top: 60px; }
  .contact__grid { padding: 28px 20px; border-radius: 24px; }
  .contact__list span { width: 100%; }
  .form { padding: 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  /* 16px не даёт iOS Safari зумить страницу при фокусе */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  .footer { padding-bottom: 100px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 11, 13, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .mobile-bar__btn--ghost {
    border: 1px solid var(--line-strong);
    color: var(--text);
  }
  .mobile-bar__btn--main {
    background: linear-gradient(135deg, #ff8a45, #ff5f1f);
    color: #150b05;
  }
  .toast { bottom: 84px; }
  .modal { padding: 12px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 2.05rem; }
  .btn { height: 52px; padding: 0 20px; font-size: 0.9rem; }
  .brand__text small { display: none; }
}

/* Запасной вариант для браузеров без aspect-ratio (Safari < 15) */
@supports not (aspect-ratio: 1 / 1) {
  .case__media,
  .video__media,
  .tg-media__item {
    height: 0;
    padding-top: 56.25%;
  }
  .case__media img,
  .video__media img,
  .tg-media__item img {
    position: absolute;
    inset: 0;
  }
  .shot--top { height: 210px; }
  .shot--bottom { height: 230px; }
}

/* =========================================================
   ДОСТУПНОСТЬ / ПРЕДПОЧТЕНИЯ
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .mobile-bar, .modal, .toast, .grain, .progress, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
