/* ============================================================
   SITE2 — additions to match the official copydeck:
   nav dropdown, 5-col footer, ecosystem diagram, registry
   badge, doc tabs, price CTA, FAQ, news timeline, 404, forms.
   Loaded AFTER styles.css + product-styles.css.
   ============================================================ */

/* ---- Custom circle cursor ---- */
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--fg-rgb),.9);
  background: rgba(var(--fg-rgb),.06);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  /* width/height здесь осознанно: элемент 16px, fixed, вне потока — рефлоу
     затрагивает только его самого; попытки перевести на transform/scale
     конфликтуют с позиционированием из cursor-fx.js */
  transition: width .18s var(--ease-out-expo, ease), height .18s var(--ease-out-expo, ease),
              background .18s ease, border-color .18s ease;
}
.cursor-dot--active {
  width: 40px; height: 40px;
  background: rgba(var(--fg-rgb),.14);
  border-color: var(--fg);
}
.cursor-dot--down { background: rgba(var(--fg-rgb),.28); }

/* ---- NAV: dropdown + accent CTA ---- */
.nav-has-drop {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-has-drop > .nav-menu-item {
  display: flex;
  align-items: center;
}
.nav-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(16,16,18,.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(var(--fg-rgb),.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 120;
}
/* invisible bridge so the cursor can cross the gap without losing :hover.
   Placed on the parent (not the scrollable .nav-drop) so overflow doesn't clip it. */
.nav-has-drop::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 300px;
  height: 26px;
}
.nav-has-drop:hover .nav-drop,
.nav-has-drop:focus-within .nav-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: rgba(var(--fg-rgb),.78);
  transition: background .18s ease, color .18s ease;
}
.nav-drop a:hover { background: rgba(var(--fg-rgb),.07); color: var(--fg); }
.nav-drop a .sub {
  margin-left: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb),.35);
}
.nav-menu-item.has-caret::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
}
.nav-cta {
  background: var(--red);
  border-color: var(--red);
  color: var(--fg);
}
.nav-cta:hover { background: #ff2b33; border-color: #ff2b33; }

/* ---- 5-column footer (doc structure) ---- */
.footer-top.f5 {
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1fr;
}
@media (max-width: 1100px){ .footer-top.f5 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px){ .footer-top.f5 { grid-template-columns: 1fr 1fr; } }
.footer-brand .btn { margin-top: 28px; }
.footer-contact-line {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-small);
  color: rgba(var(--fg-rgb),.7);
}
.footer-contact-line b { display: block; color: var(--fg); font-weight: 600; }
.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--pad) 0;
  border-top: 1px solid rgba(var(--fg-rgb),.08);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  line-height: 1.9;
  letter-spacing: .04em;
  color: rgba(var(--fg-rgb),.4);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

/* ---- Registry badge (🏅 Реестр российского ПО) ---- */
.reestr-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,137,207,.16), rgba(0,137,207,.04));
  border: 1px solid rgba(0,137,207,.45);
  font-size: var(--fs-small);
  color: var(--fg);
  backdrop-filter: blur(10px);
}
.reestr-badge .medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none;
  box-shadow: none;
}
.reestr-badge small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb),.55);
}

/* ---- Big "только цифры" figure row ---- */
.figures {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid rgba(var(--fg-rgb),.08);
  border-bottom: 1px solid rgba(var(--fg-rgb),.08);
}
.figures.cols-3 { grid-template-columns: repeat(3, 1fr); }
.figure-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 76px);
  line-height: .9;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  color: var(--fg); /* сплошной цвет вместо градиентной заливки (skills: gradient-text) */
}
.figure-label {
  font-size: var(--fs-body);
  line-height: 1.45;
  color: rgba(var(--fg-rgb),.6);
  max-width: 260px;
}
@media (max-width: 900px){
  .figures, .figures.cols-3 { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---- Ecosystem radial diagram ("В центре / Вокруг") ---- */
.eco {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--pad) 72px;
}
.eco-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-width: 1100px;
  margin: 0 auto;
}
.eco-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(190px, 22vw, 290px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* glassy brand orb: soft top-left highlight over a red→blue sheen,
     resting on a deep base (dark theme). Re-themed below for light. */
  background:
    radial-gradient(130% 130% at 32% 26%, rgba(255,255,255,.16), transparent 44%),
    radial-gradient(circle at 50% 62%, rgba(237,28,36,.32), rgba(0,137,207,.28) 52%, rgba(10,12,20,.78) 100%);
  border: 1px solid rgba(var(--fg-rgb),.16);
  box-shadow:
    0 40px 90px -34px rgba(0,137,207,.55),
    inset 0 1px 26px rgba(255,255,255,.10),
    inset 0 -28px 60px rgba(0,0,0,.42);
}
/* lift the label toward the upper third of the orb */
.eco-hub b { margin-top: -8%; }
.eco-hub b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: -.02em;
  line-height: 1;
  padding: 0 10px;
}
.eco-hub span {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb),.55);
  margin-top: 8px;
}
.eco-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(18,18,22,.7);
  border: 1px solid rgba(var(--fg-rgb),.14);
  backdrop-filter: blur(10px);
  font-size: var(--fs-small);
  white-space: nowrap;
  color: rgba(var(--fg-rgb),.85);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
  will-change: transform;
}
.eco-chip:hover { border-color: var(--blue); background: rgba(0,137,207,.12); }
/* 3D orbital mode (eco-orbit.js) */
.eco-stage.eco-orbit-on { aspect-ratio: 16 / 9; max-width: 1180px; }
.eco-orbit-on .eco-chip {
  transition: border-color .3s ease, background .3s ease;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
}
.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.orbit-path {
  fill: none;
  stroke: rgba(var(--fg-rgb),.10);
  stroke-width: 1;
}
.orbit-conn {
  stroke: url(#orbit-conn-grad);
  stroke: rgba(var(--fg-rgb),.28);
  stroke-width: 1;
}
.eco-line {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(var(--fg-rgb),.22), transparent);
  pointer-events: none;
}
.eco-note {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  color: rgba(var(--fg-rgb),.5);
}

/* ---- Screenshots / interface gallery ---- */
.shots { max-width: 1180px; margin: 0 auto; padding: 8px var(--pad) 24px; }
.shots-head { margin-bottom: 40px; }
.shots-row {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.shots-row.shots-phones { perspective: 1800px; align-items: center; }
.shots-phones .phone-mockup { width: auto; height: clamp(400px, 50vh, 600px); margin: 0; }
.shot-fig { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shot-cap {
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .02em; /* обычный регистр (skills: all-caps-body) */
  color: rgba(var(--fg-rgb),.5);
  text-align: center;
}
/* desktop / browser screenshot frame */
.shot-desk {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb),.1);
  position: relative;
  background: var(--surf-1);
}
.shot-desk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots-desk { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,2.6vw,40px); }
.shots-desk .shot-fig { width: 100%; }
@media (max-width: 760px){ .shots-desk { grid-template-columns: 1fr; } }
/* striped placeholder fill (phone screen or desktop frame) */
.shot-ph {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(var(--fg-rgb),.05) 0 11px, transparent 11px 22px),
    radial-gradient(120% 90% at 50% 0%, rgba(0,137,207,.10), transparent 60%),
    var(--surf-1);
}
.shot-ph b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(var(--fg-rgb),.62);
  line-height: 1.7;
  display: block;
}
.shot-ph b small {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-meta);
  letter-spacing: .1em;
  color: rgba(var(--fg-rgb),.32);
}
.phone-mockup-screen .shot-ph { inset: 0; border-radius: 30px; }
@media (max-width: 720px){
  .eco-stage { aspect-ratio: auto; }
  /* orbital mode on phones: give it a taller, squarer stage so the rings
     spread out vertically, and shrink the chips so labels stop colliding */
  .eco-stage.eco-orbit-on { aspect-ratio: 3 / 4; max-width: 440px; }
  .eco-orbit-on .eco-chip { font-size: var(--fs-meta); padding: 7px 11px; }
  .eco-static {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-top: 32px;
  }
}

/* ---- Documentation tabs ---- */
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.doc-tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb),.14);
  background: rgba(var(--fg-rgb),.02);
  font-size: var(--fs-small);
  color: rgba(var(--fg-rgb),.7);
  transition: all .2s ease;
}
.doc-tab.active, .doc-tab:hover { color: var(--fg); border-color: var(--blue); background: rgba(0,137,207,.12); }
.doc-panel { display: none; }
.doc-panel.active { display: block; }

/* ---- Legal info grid (Правовая информация) ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(var(--fg-rgb),.08);
  border: 1px solid rgba(var(--fg-rgb),.08);
  border-radius: 24px;
  overflow: hidden;
}
.info-cell { background: var(--bg); padding: 32px; }
.info-cell .k {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.info-cell .v { font-size: var(--fs-body); line-height: 1.5; color: rgba(var(--fg-rgb),.85); }
.info-cell .v b { color: var(--fg); }

/* ---- Price / consultation CTA ---- */
.price-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 100px) var(--pad);
}
.price-cta-inner {
  border-radius: 32px;
  border: 1px solid rgba(var(--fg-rgb),.1);
  background:
    radial-gradient(circle at 85% 10%, rgba(0,137,207,.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(237,28,36,.14), transparent 50%),
    linear-gradient(180deg, rgba(var(--fg-rgb),.04), rgba(var(--fg-rgb),.01));
  padding: clamp(48px, 7vw, 96px);
}
.price-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 80px);
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
  margin-bottom: 28px;
}
.price-cta p {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: rgba(var(--fg-rgb),.7);
  max-width: 720px;
  margin-bottom: 20px;
}
.price-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 38px);
  letter-spacing: -.02em;
  margin: 24px 0 40px;
}
.price-tag span { color: var(--blue); }

/* ---- Generic intro / statement band ---- */
.statement {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 100px) var(--pad);
}
.statement h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 76px);
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
  margin-bottom: 32px;
  max-width: 16ch;
}
.statement h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.statement p {
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.55;
  color: rgba(var(--fg-rgb),.72);
  max-width: 760px;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.statement.center { text-align: center; }
.statement.center h2, .statement.center p { margin-left: auto; margin-right: auto; }

/* ---- Split statement: text left + visual right (kills empty right space) ---- */
.statement--split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
}
.statement--split .statement-text { min-width: 0; }
.statement--split.rev .statement-text { order: 2; }
.statement--split.rev .statement-visual { order: 1; }
.statement-visual { position: relative; width: 100%; min-width: 0; }

/* Robot stage — brand-blue recoloured Spline robot */
.robot-stage {
  position: relative;
  width: 100%;
  height: clamp(380px, 36vw, 520px);
  isolation: isolate;
  background: transparent;
}
/* soft halo so the robot reads against the black page — no box, no border */
.robot-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(44% 44% at 50% 50%, rgba(0,137,207,.30), transparent 72%);
}
.robot-host { position: absolute; inset: 0; z-index: 1; }
.robot-host spline-viewer { width: 100%; height: 100%; display: block; }
.robot-host canvas { width: 100% !important; height: 100% !important; }

/* Framed browser screenshot */
.shot-frame {
  width: 100%; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb),.14); background: var(--surf-1);
  box-shadow: 0 36px 72px -28px rgba(0,0,0,.75);
}
.shot-frame.tilt { transform: rotate(-2.5deg); }

/* Gentle floating / parallax bob so the framed screenshot doesn't read as
   static. The visible resting state is the base transform; we animate around
   it. Disabled for reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .statement-visual .shot-frame {
    animation: shot-float 7s ease-in-out infinite;
    will-change: transform;
  }
  .statement-visual .shot-frame.tilt {
    animation-name: shot-float-tilt;
  }
  /* opposite-side blocks bob out of phase + mirror the tilt */
  .statement--split.rev .statement-visual .shot-frame { animation-delay: -3.5s; }
}
@keyframes shot-float {
  0%, 100% { transform: translateY(-9px) rotate(.4deg); }
  50%      { transform: translateY(9px)  rotate(-.4deg); }
}
@keyframes shot-float-tilt {
  0%, 100% { transform: translateY(-9px) rotate(-2.1deg); }
  50%      { transform: translateY(9px)  rotate(-2.9deg); }
}

/* Same gentle float for the canvas loop / map visuals that sit large
   beside the text (about, contacts, dobrosvyaz …). */
@media (prefers-reduced-motion: no-preference) {
  .statement-visual > .loop,
  .statement-visual .stmt-figure > .loop,
  .statement-visual .stmt-figure > canvas,
  .statement-visual .stmt-figure > .rusmap {
    animation: shot-float 8s ease-in-out infinite;
    will-change: transform;
  }
  .statement--split.rev .statement-visual > .loop,
  .statement--split.rev .statement-visual .stmt-figure > .loop,
  .statement--split.rev .statement-visual .stmt-figure > canvas,
  .statement--split.rev .statement-visual .stmt-figure > .rusmap {
    animation-delay: -4s;
  }
}

/* Standalone phone pairs bob independently at different speeds */
@media (prefers-reduced-motion: no-preference) {
  .shot-phones .phone-mockup { will-change: transform; }
  .shot-phones .phone-mockup:first-child { animation: shot-phone-a 6.5s ease-in-out infinite; }
  .shot-phones .phone-mockup:last-child  { animation: shot-phone-b 8.4s ease-in-out infinite; }
  .shot-phones--one .phone-mockup        { animation: shot-phone-solo 7.2s ease-in-out infinite; }
}
@keyframes shot-phone-a {
  0%, 100% { transform: rotate(-5deg) translateY(2px); }
  50%      { transform: rotate(-5deg) translateY(20px); }
}
@keyframes shot-phone-b {
  0%, 100% { transform: rotate(5deg) translateY(-2px); }
  50%      { transform: rotate(5deg) translateY(-22px); }
}
@keyframes shot-phone-solo {
  0%, 100% { transform: translateY(-9px); }
  50%      { transform: translateY(9px); }
}
.shot-frame-bar { display: flex; gap: 7px; padding: 11px 14px; background: rgba(var(--fg-rgb),.05); border-bottom: 1px solid rgba(var(--fg-rgb),.08); }
.shot-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--fg-rgb),.2); display: block; }
.shot-frame img { display: block; width: 100%; height: auto; }

/* Phone screenshot pair */
.shot-phones { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 28px); perspective: 1400px; }
.shot-phones .phone-mockup { width: auto; height: clamp(360px, 30vw, 470px); margin: 0; }
.shot-phones .phone-mockup:first-child { transform: rotate(-5deg) translateY(10px); }
.shot-phones .phone-mockup:last-child { transform: rotate(5deg) translateY(-10px); }
.shot-phones--one .phone-mockup { transform: none; height: clamp(380px, 32vw, 500px); }

/* Big accent figure */
.stmt-figure { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stmt-figure .big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(96px, 13vw, 210px); line-height: .86; letter-spacing: -.045em;
  color: var(--fg); /* сплошной цвет вместо градиентной заливки (skills: gradient-text) */
}
.stmt-figure .cap { color: rgba(var(--fg-rgb),.62); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; max-width: 30ch; }

@media (max-width: 1000px) {
  .statement--split { grid-template-columns: 1fr; gap: 44px; }
  .statement--split.rev .statement-text,
  .statement--split.rev .statement-visual { order: 0; }
  .robot-stage { height: clamp(320px, 72vw, 420px); }
  .shot-phones .phone-mockup { height: clamp(300px, 60vw, 400px); }
}

/* ---- FAQ accordion ---- */
.faq { max-width: 1000px; margin: 0 auto; padding: 80px var(--pad) 120px; }
.faq-item {
  border-bottom: 1px solid rgba(var(--fg-rgb),.1);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -.02em;
  color: var(--fg);
}
.faq-q .ic {
  flex-shrink: 0;
  width: 32px; height: 32px;
  position: relative;
}
.faq-q .ic::before, .faq-q .ic::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.faq-q .ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  /* height в px из скрипта: переход grid-template-rows (0fr→1fr) в Chromium
     на этом элементе не стартует вовсе — замерзает; height надёжен везде */
  height: 0;
  overflow: hidden;
  transition: height .4s var(--ease-out-expo, ease);
}
.faq-a-inner {
  padding: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(var(--fg-rgb),.7);
  max-width: 760px;
}
.faq-a-inner::after { content: ''; display: block; height: 32px; }
.faq-a-inner b { color: var(--fg); }

/* ---- News timeline ---- */
.news-rail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.news-pill {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 26px;
  border-radius: 18px;
  border: 1px solid rgba(var(--fg-rgb),.1);
  background: rgba(var(--fg-rgb),.02);
  min-width: 220px;
}
.news-pill .date {
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue);
}
.news-pill .head { font-size: var(--fs-body); color: var(--fg); }

/* ---- News cards grid ---- */
.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--pad) 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(var(--fg-rgb),.1);
  background: rgba(var(--fg-rgb),.02);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .35s, box-shadow .35s;
}
.news-card:hover {
  border-color: rgba(var(--fg-rgb),.22);
  box-shadow: 0 26px 64px -26px rgba(0,0,0,.85);
}
.news-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.news-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.news-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.news-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-card-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.news-card-meta .num { color: rgba(var(--fg-rgb),.45); }
.news-card-meta .date { color: var(--blue); }
.news-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--fg);
}
.news-card-excerpt {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: rgba(var(--fg-rgb),.62);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.news-card-more .arrow { transition: transform .3s; }
.news-card:hover .news-card-more .arrow { transform: translate(3px,-3px); }

/* ---- News card: inline accordion expand ---- */
.news-card-full { display: none; }
.news-card-full p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: rgba(var(--fg-rgb),.74);
  margin-bottom: 16px;
  max-width: 780px;
}
.news-card.is-active {
  grid-column: 1 / -1;
  transform: none;
  border-color: rgba(var(--fg-rgb),.2);
  box-shadow: 0 40px 120px -50px rgba(0,0,0,.9);
}
.news-card.is-active:hover { transform: none; }
.news-card.is-active .news-card-cover { aspect-ratio: auto; height: clamp(280px, 30vw, 460px); }
.news-card.is-active .news-card-cover img { transform: none; }
.news-card.is-active .news-card-body { padding: clamp(32px, 3vw, 56px); }
.news-card.is-active .news-card-title {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.news-card.is-active .news-card-excerpt { display: none; }
.news-card.is-active .news-card-full { display: block; }
.news-card-more .lbl-close { display: none; }
.news-card.is-active .news-card-more { margin-top: 18px; color: var(--blue); }
.news-card.is-active .news-card-more .lbl-open { display: none; }
.news-card.is-active .news-card-more .lbl-close { display: inline; }

@media (max-width: 800px){
  .news-grid { grid-template-columns: 1fr; }
}

/* Rubber/elastic morph for the expand/collapse via View Transitions */
::view-transition-group(*) {
  animation-duration: .45s;
  animation-timing-function: var(--ease-out-expo, cubic-bezier(.16,1,.3,1));
}
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: .42s;
  animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: .001s; }
}

/* ---- Form (Обсудить проект / Контакты) ---- */
.form-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px var(--pad) 120px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: var(--fs-small);
  color: rgba(var(--fg-rgb),.6);
}
.form-field label .req { color: var(--red); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--fg);
  background: rgba(var(--fg-rgb),.03);
  border: 1px solid rgba(var(--fg-rgb),.14);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0,137,207,.06);
}
.form-field select option { background: var(--surf-1); }
.file-drop {
  border: 1px dashed rgba(var(--fg-rgb),.25);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: rgba(var(--fg-rgb),.6);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--blue); background: rgba(0,137,207,.04); }
.file-drop small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: var(--fs-meta); color: rgba(var(--fg-rgb),.4); }
.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(var(--fg-rgb),.65);
  margin: 28px 0 12px;
}
.form-consent input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.form-fineprint {
  font-size: var(--fs-meta);
  line-height: 1.6;
  color: rgba(var(--fg-rgb),.4);
  margin-bottom: 28px;
}
.form-success {
  text-align: center;
  padding: 80px 24px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.form-success p { font-size: var(--fs-lead); color: rgba(var(--fg-rgb),.7); max-width: 520px; margin: 0 auto 12px; line-height: 1.5; }
@media (max-width: 720px){ .form-grid { grid-template-columns: 1fr; } }

/* ---- Modal (Обсудить проект) ---- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--surf-1);
  border: 1px solid rgba(var(--fg-rgb),.12);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal-card { transform: none; }

/* When the lead modal is open, the custom blend-mode cursor can vanish
   against the blurred dark overlay — hide it and hand control back to a
   real, context-correct native cursor inside the form. */
.lead-modal-open .cursor-dot,
.lead-modal-open .cursor-glow { opacity: 0 !important; }
.lead-modal-open.has-custom-cursor,
.lead-modal-open.has-custom-cursor .modal-overlay,
.lead-modal-open.has-custom-cursor .modal-overlay * { cursor: auto !important; }
.lead-modal-open.has-custom-cursor .modal-overlay a,
.lead-modal-open.has-custom-cursor .modal-overlay button,
.lead-modal-open.has-custom-cursor .modal-overlay label,
.lead-modal-open.has-custom-cursor .modal-overlay select,
.lead-modal-open.has-custom-cursor .modal-overlay .file-drop,
.lead-modal-open.has-custom-cursor .modal-overlay input[type="checkbox"],
.lead-modal-open.has-custom-cursor .modal-overlay .modal-close { cursor: pointer !important; }
.lead-modal-open.has-custom-cursor .modal-overlay input[type="text"],
.lead-modal-open.has-custom-cursor .modal-overlay input[type="tel"],
.lead-modal-open.has-custom-cursor .modal-overlay input[type="email"],
.lead-modal-open.has-custom-cursor .modal-overlay textarea { cursor: text !important; }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--fg-rgb),.15);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lead); color: var(--fg);
}
.modal-close:hover { background: rgba(var(--fg-rgb),.08); }
.modal-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.modal-card .sub { font-size: var(--fs-body); color: rgba(var(--fg-rgb),.65); line-height: 1.5; margin-bottom: 32px; max-width: 560px; }
.modal-card .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px){ .modal-card .form-grid { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad);
  position: relative;
  z-index: 1;
}
.notfound .code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 360px);
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--fg); /* сплошной цвет вместо градиентной заливки (skills: gradient-text) */
  margin-bottom: 24px;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.notfound p { font-size: var(--fs-lead); color: rgba(var(--fg-rgb),.65); max-width: 540px; margin: 0 auto 40px; line-height: 1.5; }

/* ---- Solutions/projects index (cases page) ---- */
.solutions { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad) 80px; }
.solution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid rgba(var(--fg-rgb),.1);
  background: linear-gradient(180deg, rgba(var(--fg-rgb),.04), rgba(var(--fg-rgb),.01));
  overflow: hidden;
  transition: box-shadow .4s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.solution-card:hover { box-shadow: 0 28px 66px -28px rgba(0,0,0,.85); border-color: rgba(var(--fg-rgb),.25); }
.solution-card.big { min-height: 460px; }
.solution-card .tag {
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .02em; /* обычный регистр (skills: all-caps-body) */
  color: rgba(var(--fg-rgb),.5); margin-bottom: 16px;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.solution-card p { font-size: var(--fs-body); line-height: 1.5; color: rgba(var(--fg-rgb),.65); max-width: 460px; margin-bottom: 24px; }
.solution-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-body); color: var(--fg);
  transition: gap .25s ease;
}
.solution-card:hover .more { gap: 14px; }
@media (max-width: 900px){ .solution-row { grid-template-columns: 1fr; } }

/* ---- checklist (✓) ---- */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 32px; }
.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: var(--fs-body);
  color: rgba(var(--fg-rgb),.85);
  line-height: 1.4;
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.4);
  font-size: var(--fs-meta);
}
@media (max-width: 700px){ .checklist { grid-template-columns: 1fr; } }


/* ============================================================
   DISPLAY-HEADING CARET — blinking bar at the end of large
   headings, matching the hero typewriter caret (.tw-cursor).
   Excludes .page-hero h1 / .hero-title (those get the live JS caret).
   ============================================================ */
.section-title::after,
.statement h2::after,
.statement-text h2::after,
.price-cta-inner h2::after,
.bigclaim h2::after,
.notfound h1::after {
  content: '';
  display: inline-block;
  width: .07em;
  height: .82em;
  background: currentColor;
  margin-left: .06em;
  vertical-align: -0.04em;
  border-radius: 1px;
  animation: hdr-caret-blink 1.05s steps(1) infinite;
}
@keyframes hdr-caret-blink { 50% { opacity: 0; } }

/* When a heading ends in the red italic accent (<em>), the trailing caret
   should match that red instead of the heading's dark colour. */
.section-title:has(em:last-child)::after,
.statement h2:has(em:last-child)::after,
.statement-text h2:has(em:last-child)::after,
.price-cta-inner h2:has(em:last-child)::after,
.bigclaim h2:has(em:last-child)::after { color: var(--accent-italic, var(--red)); }
@media (prefers-reduced-motion: reduce) {
  .section-title::after,
  .statement h2::after,
  .statement-text h2::after,
  .price-cta-inner h2::after,
  .bigclaim h2::after,
  .notfound h1::after { display: none; }
}

/* Headings taken over by the live typewriter (typewriter.js) get a JS
   caret that always matches the colour of the letter next to it —
   hide the static CSS caret so there aren't two. */
.tw-typing::after { display: none !important; }

/* ============================================================
   OFFICE & BUILDING — gallery section on the About page
   ============================================================ */
.office { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad) 64px; }

/* Exactly-3-card grids: two on top, the third centred underneath */
.page-section-grid:has(> .page-card:last-child:nth-child(3)) {
  grid-template-columns: repeat(2, 1fr);
}
.page-section-grid:has(> .page-card:last-child:nth-child(3)) > .page-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 11px);
  margin-inline: auto;
}

/* Hero split: copy + address card on the left, building photo on the right */
.office-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}
.office-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.office-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 60px);
  letter-spacing: -.035em;
  line-height: .98;
  margin: 14px 0 22px;
}
.office-text h2 em {
  font-family: var(--font-italic);
  font-style: italic; font-weight: 400; color: var(--red);
}
.office-text p {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  color: rgba(var(--fg-rgb), .68);
  max-width: 46ch;
  text-wrap: pretty;
  margin-bottom: 14px;
}
.office-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(var(--fg-rgb), .1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(var(--fg-rgb), .1);
}
.office-meta div { background: var(--bg); padding: 18px 20px; }
.office-meta .k {
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .02em; /* обычный регистр (skills: all-caps-body) */
  color: var(--blue); margin-bottom: 8px;
}
.office-meta .v { font-size: var(--fs-small); line-height: 1.4; color: rgba(var(--fg-rgb), .9); }
.office-meta .v b { color: var(--fg); font-weight: 600; }

.office-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb), .1);
  min-height: 360px;
  box-shadow: 0 36px 72px -34px rgba(0,0,0,.8);
}
.office-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
}

/* Mosaic of interior + team photos */
.office-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(132px, 15vw, 210px);
  gap: clamp(12px, 1.2vw, 18px);
}
.office-tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb), .08);
  background: var(--surf-1);
  margin: 0;
}
.office-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.office-tile:hover img { transform: scale(1.055); }
.office-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 13px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: linear-gradient(0deg, rgba(0,0,0,.66), rgba(0,0,0,0));
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.office-tile:hover figcaption { opacity: 1; transform: translateY(0); }
.office-tile.t-open { grid-column: span 4; grid-row: span 2; }
.office-tile.t-meet { grid-column: span 2; grid-row: span 2; }
.office-tile.t-team { grid-column: span 3; grid-row: span 2; }
.office-tile.t-dev  { grid-column: span 3; grid-row: span 2; }
.office-tile.t-rec  { grid-column: span 4; grid-row: span 2; }
.office-tile.t-fac  { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1000px) {
  .office-hero { grid-template-columns: 1fr; }
  .office-photo { min-height: 300px; }
}
@media (max-width: 720px) {
  .office-meta { grid-template-columns: 1fr; }
  .office-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 40vw, 220px); }
  .office-tile.t-open, .office-tile.t-meet, .office-tile.t-team,
  .office-tile.t-dev, .office-tile.t-rec, .office-tile.t-fac {
    grid-column: span 2; grid-row: span 1;
  }
  .office-tile figcaption { opacity: 1; transform: none; }
}

/* ---- Vacancy list (Career page) ---- */
.vac-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border-radius: 20px;
  background: rgba(var(--fg-rgb), .025);
  border: 1px solid rgba(var(--fg-rgb), .08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s cubic-bezier(.2,.7,.3,1);
}
.vac-row:hover {
  border-color: rgba(var(--fg-rgb), .2);
  background: rgba(var(--fg-rgb), .05);
  box-shadow: 0 22px 56px -30px rgba(0,0,0,.8);
  transform: translateY(-2px);
}
.vac-main { min-width: 0; }
.vac-main h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.vac-main p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(var(--fg-rgb), .62);
  max-width: 62ch;
  text-wrap: pretty;
}
.vac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 230px;
}
.vac-tags span {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), .14);
  color: rgba(var(--fg-rgb), .8);
  white-space: nowrap;
}
.vac-tags span:first-child {
  color: var(--blue);
  border-color: rgba(0,137,207,.35);
  background: rgba(0,137,207,.08);
}
@media (max-width: 760px) {
  .vac-row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .vac-tags { justify-content: flex-start; max-width: none; }
}

/* ============================================================
   GLOBAL MOBILE SPACING — trim the big desktop section paddings on
   phones so sections sit close together on every page.
   ============================================================ */
@media (max-width: 700px) {
  /* uniform TIGHT top padding on every section so the divider sits close
     to the section header everywhere; moderate bottom padding for rhythm */
  .statement,
  .price-cta { padding: 12px var(--pad) 40px; }
  .page-section { padding: 12px var(--bleed) 40px; }
  .section { padding: 12px var(--bleed) 44px; }
  .cases { padding: 12px var(--bleed) 44px; }
  .why { padding: 12px var(--bleed) 44px; }
  .mintsifra { padding: 12px var(--bleed) 44px; }
  .brands { padding-top: 12px; }
  .page-hero { padding: 88px var(--bleed) 44px; }
  /* MOBILE ONLY: every content card is a full-width rectangle (override the
     2-up / auto-fit grids, incl. inline grid-template-columns) */
  .page-section-grid { grid-template-columns: 1fr !important; }
  .page-section-grid > .page-card { width: auto !important; grid-column: auto !important; }
  /* contacts & other inline 2-col grids → stack on mobile */
  .form-wrap > div { grid-template-columns: 1fr !important; gap: 40px !important; }
  .page-section > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* dividers tight to the content that follows (base rule loads later in
     styles.css and was overriding the earlier mobile rule) */
  .section-divider { padding: 14px var(--bleed) !important; gap: 16px !important; }
  /* MOBILE ONLY: redraw the card badges (В реестре / Проект) as a single
     horizontal row — desktop keeps its original stacked look */
  .page-card .num { display: inline-flex; align-items: center; white-space: nowrap; }
  .page-card .num .neon-ic,
  .page-card .num .neon-svg { height: 1.2em; margin-right: .3em; flex: 0 0 auto; }
  /* About hero heading: pull up so it sits just under the nav like other heroes */
  .page-hero--robot .page-hero-copy { padding-top: 88px !important; min-height: 74vh !important; }
  /* footer CTA: one line, just smaller (inline style needs !important to beat) */
  .footer-brand .btn { white-space: nowrap !important; padding: 13px 20px !important; font-size: var(--fs-small) !important; }
  /* keep the two footer columns equal — the nowrap button was forcing
     the brand column's min-content wider (grid items default min-width:auto) */
  .footer-top.f5 { grid-template-columns: 1fr 1fr !important; }
  .footer-top.f5 > * { min-width: 0 !important; }
}
