/* ==========================================================================
   SecondarySales — вторичные продажи
   Дизайн-система: тёмно-синий + бирюза + зелёный (по логотипу)
   ========================================================================== */

/* 1. Переменные ---------------------------------------------------------- */
:root {
  --navy: #0a2a4a;
  --navy-800: #071d33;
  --navy-600: #123c66;
  --teal: #0fa3a1;
  --teal-700: #0b8c8a;
  --teal-100: #e4f6f5;
  --green: #57c13c;
  --green-100: #edf9e9;

  --ink: #10222f;
  --muted: #5b7285;
  --line: #dfe9f0;
  --bg: #f5f9fb;
  --white: #fff;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 74px;

  --shadow-sm: 0 2px 10px rgba(10, 42, 74, .06);
  --shadow: 0 18px 44px -20px rgba(10, 42, 74, .35);
  --shadow-lg: 0 40px 80px -40px rgba(7, 29, 51, .55);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
}

/* 2. Сброс и база -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

code {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--navy-600);
}

::selection { background: rgba(15, 163, 161, .22); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* 3. Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
    background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn svg { flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(15, 163, 161, .9);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(15, 163, 161, .95);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .55);
}

.btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* 4. Шапка --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 42, 74, .8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-mark { height: 46px; width: auto; }
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--navy);
}
.brand-text em { font-style: normal; color: var(--teal); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--navy-600);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy); font-weight: 650; }

.nav-cta { margin-left: 6px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 80% 6%, rgba(15, 163, 161, .34), transparent 62%),
    radial-gradient(680px 420px at 4% 96%, rgba(87, 193, 60, .16), transparent 62%),
    linear-gradient(158deg, #06172a 0%, #0a2a4a 46%, #0b3a52 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse at 55% 35%, #000 25%, transparent 76%);
  mask-image: radial-gradient(ellipse at 55% 35%, #000 25%, transparent 76%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 56px;
  padding-top: 76px;
  padding-bottom: 44px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .86);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(87, 193, 60, .22);
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.032em;
  color: #fff;
  max-width: 18ch;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #3fe0d6 0%, #7ee07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: 17.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .77);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Скриншот в «окне» */
.hero-visual { position: relative; }

.window {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: #eef3f7;
  border-bottom: 1px solid #e2ebf1;
}
.window-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cfdbe4;
}
.window-bar i:nth-child(1) { background: #ff6058; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: #7c93a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window img { width: 100%; }

.float-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 40px -22px rgba(7, 29, 51, .8);
  backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.float-chip span { font-size: 11.5px; color: var(--muted); }
.float-chip--tl { top: -20px; left: -22px; }
.float-chip--br { right: -18px; bottom: -22px; animation-delay: -3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 30px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero-stats strong {
  display: block;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-stats span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .62);
}

/* 6. Секции -------------------------------------------------------------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg); }
.section--tight { padding-top: 72px; }

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section-title {
  font-size: clamp(27px, 3.3vw, 40px);
  letter-spacing: -.028em;
}

.section-sub {
  margin: 16px auto 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--muted);
}

/* 7. Автоматизация ------------------------------------------------------- */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.auto-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.auto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfe3ee;
}
.auto-card h3 {
  font-size: 19px;
  letter-spacing: -.02em;
}
.auto-card p { font-size: 15px; color: var(--muted); }

.auto-card__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
}
.auto-card__tag--green { background: var(--green-100); color: #3d8f28; }
.auto-card__tag--navy { background: #e8effa; color: var(--navy-600); }

.report-list { display: grid; gap: 8px; margin-top: 2px; }
.report-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.report-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.report-list code { font-size: 11.5px; word-break: break-all; }
.report-list span { flex: 0 0 auto; color: var(--muted); font-size: 12.5px; }

.auto-flow {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
  margin-top: 64px;
}

.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px -14px rgba(15, 163, 161, .95);
}
.step h4 { font-size: 16.5px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--muted); }

.frame {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; border-radius: 10px; }
.frame--wide { margin-top: 34px; }
.frame figcaption {
  margin-top: 10px;
  padding: 0 4px 2px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.callout {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--teal-100);
  border-left: 4px solid var(--teal);
  font-size: 14.5px;
  color: #0b5c5a;
}
.callout svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal-700); }

/* 8. Табы «Возможности» -------------------------------------------------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--navy-600);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tab svg { width: 17px; height: 17px; opacity: .75; }
.tab:hover { background: #eef5f9; }
.tab.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 42, 74, .9);
}
.tab.is-active svg { opacity: 1; }

.tabs-panels { margin-top: 44px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .38s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: start;
  gap: 48px;
}
.panel-copy h3 { font-size: 23px; letter-spacing: -.025em; margin-bottom: 6px; }
.panel-copy h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0;
  margin-bottom: 16px;
}
.panel-copy p { font-size: 15.5px; color: #3d5468; }
.panel-copy ul { display: grid; gap: 8px; margin: 4px 0 16px; }
.panel-copy ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #3d5468;
}
.panel-copy ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.panel-copy strong { color: var(--navy); }

.panel-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.panel-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.scenario {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.scenario b { color: var(--navy); }
.scenario p { margin: 4px 0 0; font-size: 14.5px; }

/* 9. F.A.Q. -------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: rgba(15, 163, 161, .45);
  box-shadow: 0 14px 34px -24px rgba(10, 42, 74, .6);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8c8a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .22s ease, background-color .22s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }

.faq-answer {
  padding: 0 22px 22px;
  font-size: 14.8px;
  color: var(--muted);
}
.faq-answer ul { display: grid; gap: 6px; margin: 10px 0; }
.faq-answer ul li {
  position: relative;
  padding-left: 18px;
}
.faq-answer ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* 10. Новости ------------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-grid--wide { grid-template-columns: repeat(2, 1fr); }

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.news-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.news-date {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eef5f9;
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 700;
}
.news-title {
  font-size: 18.5px;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.news-card p { font-size: 14.5px; color: var(--muted); }

.news-media { margin: 0; order: -1; background: #f1f6f9; }
.news-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top center;
}
.news-media--contain img {
  height: auto;
  max-height: 260px;
  object-fit: contain;
  padding: 14px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}
.news-gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.powerbi {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.powerbi iframe { display: block; width: 100%; border: 0; }

.news-actions { margin-top: 40px; text-align: center; }

/* Фильтр новостей */
.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}
.filter button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-600);
  cursor: pointer;
  transition: all .18s ease;
}
.filter button:hover { border-color: var(--teal); color: var(--teal-700); }
.filter button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.empty-state.is-visible { display: block; }

/* 11. Контакты ----------------------------------------------------------- */
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 30px; letter-spacing: -.03em; }
.contact-role {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.contact-item svg { color: var(--teal-700); }
.contact-item:hover { border-color: var(--teal); color: var(--teal-700); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* 12. Подвал ------------------------------------------------------------- */
.site-footer {
  padding: 60px 0 26px;
  background: linear-gradient(170deg, #071d33 0%, #0a2a4a 100%);
  color: rgba(255, 255, 255, .72);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text em { color: #3fe0d6; }
.footer-tagline { font-size: 13px; color: rgba(255, 255, 255, .55); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-nav a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .74);
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

/* 13. Кнопка «наверх» ---------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.to-top:hover { color: #fff; background: var(--teal-700); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* 14. Анимация появления -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 15. Адаптив ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav-link { font-size: 14px; }
  .nav { gap: 16px; }
  .auto-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-flow { grid-template-columns: 1fr; gap: 36px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 40px -30px rgba(10, 42, 74, .8);
  }
  .nav.is-open { display: flex; }
  .nav-link {
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid #eef4f8;
  }
  .nav-link::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 620px; }
  .float-chip--tl { left: 0; top: -16px; }
  .float-chip--br { right: 0; bottom: -16px; }

  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel-media { position: static; order: -1; }
  .faq { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .contact-card { padding: 36px 26px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero-inner { padding-top: 46px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stats strong { font-size: 23px; }
  .auto-grid { grid-template-columns: 1fr; }
  .news-grid, .news-grid--wide { grid-template-columns: 1fr; }
  .brand-text { font-size: 18px; }
  .brand-mark { height: 40px; }
  .section-head { margin-bottom: 36px; }
  .section-sub { font-size: 16px; }
  .step { grid-template-columns: 36px 1fr; gap: 13px; }
  .step-num { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .tabs-nav { width: 100%; border-radius: 16px; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
  .contact-row { flex-direction: column; align-items: stretch; }
  .contact-item { justify-content: center; }
  .float-chip { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 16. Внутренние страницы ------------------------------------------------ */
.page-hero {
  padding: 60px 0 36px;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(29px, 3.8vw, 44px); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-lead {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 17px;
  color: var(--muted);
}

/* 17. Блок e-commerce ---------------------------------------------------- */
.auto-wide {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 30px 34px;
  border: 1px solid #d3eae8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf7f6 0%, #f2faf0 100%);
}
.auto-wide h3 { font-size: 21px; margin: 10px 0 8px; }
.auto-wide p { font-size: 15px; color: #3d5468; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d3eae8;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-700);
}

.news-body .btn { align-self: flex-start; margin-top: 6px; }

@media (max-width: 960px) {
  .auto-wide { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
}
@media (max-width: 720px) {
  .page-hero { padding: 44px 0 28px; }
}
