/* RussianCRM — главная, стиль как у лендинга (Manrope, палитра Finclix) */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1a2e2d;
  --muted: #5c6f6e;
  --accent: #32aaa8;
  --accent-2: #c5ef69;
  --dark: #144443;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 68, 67, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: max(5.75rem, var(--header-stack-height, 7rem));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Шапка + топбар: fixed, чтобы меню не перекрывалось контентом и не ломался sticky в браузерах */
#site-shell-top {
  min-height: 5.75rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
body.site-layout-loading #site-shell-top {
  min-height: 7rem;
}

/* Контейнер под inline-виджет CRM (kontakty и др.) */
.crm-inline-lead-host {
  margin-top: 0.25rem;
  min-height: 4rem;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* Отступ под fixed-шапку: :has — без класса из JS; .has-fixed-site-shell — запас; max() — если переменная обнулилась */
body:has(> #site-shell-top),
body.has-fixed-site-shell {
  padding-top: max(5.75rem, var(--header-stack-height, 7rem));
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}
.eyebrow--dark { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
.muted { color: var(--muted); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: 2.5rem 0; }
.section__head { margin-bottom: 2rem; max-width: 42rem; }

/* Top bar */
.topbar {
  background: var(--dark);
  color: #c5ddd9;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar a { color: #e8f5f4; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 1rem; }
.topbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
}
.topbar__links a:hover { color: #fff; text-decoration: underline; }
.topbar__sep { opacity: 0.65; user-select: none; }

/* Header (оболочка #site-shell-top уже fixed) */
.header {
  position: relative;
  z-index: 2;
  background: rgba(246, 248, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 68, 67, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: 0.85rem 0;
  flex-wrap: nowrap;
}
.header__nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
}
.header__cta {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.logo img { height: 36px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-start;
}
.nav--site {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav--site a.is-current {
  color: var(--accent);
  font-weight: 700;
}
.nav--site a.btn.is-current {
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--dark);
}
.header.is-menu-open {
  z-index: 1000;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(20, 68, 67, 0.06); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header.is-menu-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header.is-menu-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.header.is-menu-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 44, 43, 0.45);
  z-index: 90;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.nav-backdrop.is-visible { display: block; }

@media (max-width: 899px) {
  /* backdrop-filter на предке ломает position:fixed у выезжающего меню (панель цепляется к шапке, не к viewport) */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(246, 248, 247, 0.98);
  }
  .header__nav-cluster {
    justify-content: flex-end;
    gap: 0.5rem;
    padding-left: 0;
  }
  .header__inner {
    gap: 0.65rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
  }
  .header__cta {
    position: relative;
    z-index: 115;
    margin-left: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    min-height: 44px;
    align-items: center;
  }
  .nav-toggle { display: inline-flex; z-index: 120; }
  .nav--site {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 360px);
    max-width: calc(100vw - env(safe-area-inset-left, 0px));
    height: 100dvh;
    max-height: 100vh;
    margin: 0;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) calc(1.25rem + env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--surface);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header.is-menu-open .nav--site {
    transform: translateX(0);
  }
  .nav--site > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(20, 68, 67, 0.08);
    font-size: 1rem;
  }
  .nav--site > a:last-child { border-bottom: none; }
  .nav--site .btn--sm {
    margin-top: 0.5rem;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .nav-backdrop { display: none !important; }
  .nav--site {
    position: static;
    transform: none;
    box-shadow: none;
    height: auto;
    max-height: none;
    width: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
  }
}

body.nav-open {
  overflow: hidden;
}

.page-main {
  min-height: 40vh;
}

/* Появление блоков при скролле (класс has-reveal на <html> задаёт js/reveal-boot.js) */
.reveal {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.has-reveal .reveal:not(.reveal--visible) {
  opacity: 0;
  transform: translateY(1.1rem);
}
html.has-reveal .reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
@media (hover: hover) {
  html.has-reveal .card.reveal.reveal--visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(20, 68, 67, 0.12);
  }
  html.has-reveal .pill.reveal.reveal--visible:hover {
    border-color: rgba(20, 68, 67, 0.18);
    box-shadow: 0 10px 28px rgba(20, 68, 67, 0.07);
  }
}
html.has-reveal .card.reveal {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
html.has-reveal .pill.reveal {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button.btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
button.btn:hover {
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), #8fd4a8 40%, var(--accent));
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(50, 170, 168, 0.35);
}
.btn--primary:hover { text-decoration: none; box-shadow: 0 10px 28px rgba(50, 170, 168, 0.45); color: var(--dark); }
.btn--white {
  background: #fff;
  color: var(--dark);
  border: 2px solid rgba(255,255,255,0.9);
}
.btn--white:hover { text-decoration: none; background: rgba(255,255,255,0.95); }
.btn--ghost {
  background: var(--surface);
  color: var(--dark);
  border: 2px solid rgba(20, 68, 67, 0.15);
}
.btn--ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ========== ZERO BLOCK — первый экран ========== */
.zero {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.zero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.zero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(20, 68, 67, 0.94) 0%, rgba(26, 46, 45, 0.82) 42%, rgba(50, 170, 168, 0.35) 100%);
}
.zero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.zero .container { position: relative; z-index: 3; }
.zero__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
}
@media (min-width: 900px) {
  .zero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.zero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
  opacity: 0.95;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}
.zero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.zero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.zero__badge {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}
.zero__panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
}
.zero__panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-2);
}
.zero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.zero__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.95;
}
.zero__list svg { flex-shrink: 0; margin-top: 0.2rem; }

/* Marquee — две .marquee__track в HTML или дублирование через main.js */
.marquee-wrap {
  overflow: hidden;
  background: var(--dark);
  color: #e8f5f4;
  padding: 0.85rem 0;
}
.marquee {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 2.5rem;
  animation: marquee-move var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}
.marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
@keyframes marquee-move {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card__media {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3f2, #c5ddd9);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card__media--tall { height: 180px; }
.card__body { padding: 1.35rem 1.5rem 1.5rem; }
.card__body p { margin: 0; color: var(--muted); }

.pill {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 68, 67, 0.08);
}
.pill--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pill__media {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--dark);
}
.pill__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pill--media .pill__body {
  padding: 1.25rem;
}
.pill h4 { margin-bottom: 0.35rem; }
.pill p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  min-width: 0;
}
.split > * {
  min-width: 0;
}
.split img:not(.section-icon) {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  position: relative;
  background: var(--surface);
  padding: 1.35rem 1.35rem 1.35rem 3.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
}

.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.stats .num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
}
.stats .label { font-size: 0.9rem; color: var(--muted); margin: 0; }

details.faq {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  border: 1px solid rgba(20, 68, 67, 0.08);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.15rem;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { border-bottom: 1px solid rgba(20, 68, 67, 0.08); }
details.faq .faq__body { padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: 0.95rem; }

.faq-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 2.5rem;
    max-width: none;
  }
}
.faq-layout__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-height: 320px;
  background: var(--dark);
}
.faq-layout__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.faq-layout__content { min-width: 0; }

.process-banner {
  margin: -0.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 200px;
  background: var(--dark);
}
.process-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}


.testimonials {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
}
.quote__top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.quote__top img { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.quote__role { font-size: 0.85rem; color: var(--muted); margin: 0; }
.quote__top + .muted { margin: 0; }

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post__body { padding: 1.1rem 1.25rem 1.35rem; }
.post__meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.tabs__list button {
  border: 1px solid rgba(20, 68, 67, 0.15);
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.tabs__list button[aria-selected="true"] {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.section-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer {
  background: var(--dark);
  color: #c5ddd9;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer a { color: var(--accent-2); }
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 0.4rem; }

/* Team */
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-card img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.team-card .role { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ========== Мобильная оптимизация ========== */
@media (max-width: 639px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }
  .topbar {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .topbar__links {
    justify-content: flex-start;
    width: 100%;
  }
  .logo {
    font-size: 1.05rem;
  }
  .logo img {
    height: 32px;
  }
  h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.75rem);
    word-wrap: break-word;
  }
  h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.85rem);
  }
  .section {
    padding: clamp(2rem, 5vw, 3.25rem) 0;
  }
  .section--tight {
    padding: 1.65rem 0;
  }
  .section__head {
    margin-bottom: 1.35rem;
  }
  .zero {
    min-height: min(88vh, 780px);
    min-height: min(88svh, 780px);
  }
  .zero__grid {
    gap: 1.5rem;
    padding: clamp(2.25rem, 7vw, 3.5rem) 0 clamp(1.75rem, 5vw, 2.75rem);
  }
  .zero__lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .zero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .zero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .zero__panel {
    padding: 1.15rem 1.15rem 1.35rem;
  }
  .marquee__item {
    font-size: 0.85rem;
  }
  .marquee-wrap {
    padding: 0.65rem 0;
  }
  .footer {
    padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.88rem;
  }
  .tabs__list button {
    min-height: 44px;
    padding: 0.45rem 0.95rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
  .btn {
    min-height: 44px;
  }
  .btn--sm {
    min-height: 44px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .pill--media .pill__media {
    height: 120px;
  }
  .card__media {
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee {
    animation-duration: 90s;
  }
}

/* Страница вакансий */
.vacancies-page .vacancy-block.reveal {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}
.vacancies-page .vacancies-intro {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}
.vacancies-page .vacancies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}
.vacancy-block {
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(20, 68, 67, 0.12);
  border-radius: var(--radius);
}
@media (hover: hover) {
  .vacancies-page .vacancy-block.reveal.reveal--visible:hover {
    box-shadow: 0 12px 36px rgba(20, 68, 67, 0.08);
    transform: translateY(-2px);
  }
}
.vacancy-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}
.vacancy-block__title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.vacancy-block__lead {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.vacancies-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 68, 67, 0.12);
  background: var(--surface);
}
.vacancies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.vacancies-table th,
.vacancies-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(20, 68, 67, 0.08);
  transition: background-color 0.2s ease;
}
.vacancies-table tbody tr {
  transition: background-color 0.2s ease;
}
@media (hover: hover) {
  .vacancies-table tbody tr:hover th,
  .vacancies-table tbody tr:hover td {
    background-color: rgba(20, 68, 67, 0.04);
  }
}
.vacancies-table th {
  background: rgba(20, 68, 67, 0.06);
  font-weight: 600;
  color: var(--dark);
  width: 40%;
}
.vacancies-table tr:last-child th,
.vacancies-table tr:last-child td {
  border-bottom: none;
}
.vacancies-tip {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: rgba(50, 170, 168, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--muted);
}
.vacancies-tip strong {
  color: var(--text);
  font-weight: 600;
}
