:root {
  --bg-main: #070709;
  --bg-section: #0a0a0d;
  --bg-card: #101014;
  --bg-card-hover: #14141a;
  --text-primary: #f7f7f8;
  --text-secondary: #a3a3ad;
  --text-muted: #6f6f79;
  --accent-primary: #7c5cff;
  --accent-secondary: #16d9e3;
  --accent-blue: #3d7bff;
  --accent-success: #20d98b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-default: rgba(255, 255, 255, 0.11);
  --border-active: rgba(124, 92, 255, 0.55);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.13), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(22, 217, 227, 0.07), transparent 28%),
    var(--bg-main);
  color: var(--text-primary);
  font-family: Inter, Geist, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(7, 7, 9, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 230px;
  height: 70px;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.18));
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a,
.login-link,
.footer a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .brand img {
  width: 210px;
  height: 58px;
}

.main-nav a:hover,
.login-link:hover,
.footer a:hover {
  color: var(--text-primary);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.15;
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 250ms cubic-bezier(0.22, 1, 0.36, 1),
    background 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-compact {
  background: #f5f5f7;
  color: #08080a;
}

.btn-primary:hover,
.btn-compact:hover {
  background: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: rgba(124, 92, 255, 0.45);
}

.btn-compact {
  min-height: 38px;
  padding: 10px 15px;
}

.section {
  padding: 126px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.96), rgba(7, 7, 9, 0.96));
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 120px 0 95px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-secondary);
  box-shadow: 0 0 28px rgba(22, 217, 227, 0.8);
  opacity: 0.65;
  pointer-events: none;
  animation: orbitNode 18s ease-in-out infinite;
}

.hero::before {
  top: 255px;
  left: 13%;
}

.hero::after {
  right: 14%;
  bottom: 250px;
  animation-delay: -4s;
}

.hero-content {
  max-width: 930px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-secondary);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 4.8vw, 67px);
  line-height: 0.96;
  font-weight: 740;
}

h1 span,
h2 span {
  color: transparent;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 680;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 18px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bonus-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-product {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px) 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 58px;
}

.hero-lines {
  position: absolute;
  inset: 110px 0 auto;
  height: 520px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 5%, rgba(61, 123, 255, 0.16), transparent 42%),
    linear-gradient(270deg, transparent 5%, rgba(22, 217, 227, 0.13), transparent 42%);
  filter: drop-shadow(0 0 14px rgba(61, 123, 255, 0.3));
  animation: lineBreath 14s ease-in-out infinite;
}

.model-column {
  display: grid;
  gap: 16px;
}

.model-column span,
.hero-badges span,
.template-board span,
.assistant-tools span {
  border: 1px solid var(--border-subtle);
  background: rgba(16, 16, 20, 0.82);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.model-column span {
  padding: 10px 14px;
  font-size: 13px;
}

.left span:nth-child(2),
.right span:nth-child(3) {
  border-color: rgba(124, 92, 255, 0.38);
  color: var(--text-primary);
}

.prompt-panel,
.workflow-card,
.assistant-panel,
.code-panel,
.bonus-panel,
.final-cta {
  background: linear-gradient(180deg, #111116 0%, #0b0b0f 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.prompt-panel {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.panel-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-top img {
  width: 170px;
  height: 58px;
  border-radius: 6px;
  object-fit: contain;
}

.panel-top small {
  display: block;
  color: var(--text-muted);
  line-height: 1.35;
}

.prompt-input {
  margin: 18px 0;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: #0a0a0d;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-tabs span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #0d0d11;
  color: var(--text-muted);
  font-size: 12px;
}

.mode-tabs .active {
  color: #fff;
  background: rgba(124, 92, 255, 0.28);
}

.generation-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

.generation-flow i,
.workflow-arrow {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(61, 123, 255, 0.65) 0 4px, transparent 4px 9px);
  filter: drop-shadow(0 0 6px rgba(61, 123, 255, 0.45));
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.brand-cloud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.brand-cloud span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.brand-cloud span::after,
.media-feature::after,
.prompt-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: scanSweep 13s ease-in-out infinite;
  pointer-events: none;
}

.brand-cloud img {
  max-width: 126px;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1) contrast(1.35) drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
  opacity: 0.9;
}

.hero-badges span {
  padding: 8px 12px;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.section-head {
  max-width: 790px;
  text-align: center;
  margin-bottom: 46px;
}

.section-head p {
  font-size: 17px;
}

.model-grid,
.feature-grid,
.timeline,
.pricing-panel {
  display: grid;
  gap: 14px;
}

.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-grid article,
.feature-grid article,
.timeline article,
.pricing-panel article {
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(16, 16, 20, 0.8);
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 250ms cubic-bezier(0.22, 1, 0.36, 1),
    background 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.model-grid article:hover,
.feature-grid article:hover,
.timeline article:hover,
.pricing-panel article:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.35);
  background: var(--bg-card-hover);
}

.model-grid b,
.model-grid span,
.model-grid i {
  display: block;
}

.model-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  float: right;
  margin-left: 10px;
  border-radius: 0;
  filter: grayscale(1) brightness(0) invert(1) contrast(1.35);
  opacity: 0.88;
}

.model-grid span {
  color: var(--text-muted);
  font-size: 13px;
}

.model-grid i {
  width: fit-content;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22, 217, 227, 0.1);
  color: var(--accent-secondary);
  font-size: 11px;
  font-style: normal;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid span,
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: var(--accent-secondary);
  font-size: 12px;
  font-weight: 700;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.media-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.media-feature,
.result-gallery figure,
.video-wall figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #111116 0%, #0b0b0f 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.media-feature {
  min-height: 420px;
  display: grid;
  align-items: end;
}

.media-feature video,
.video-wall video,
.result-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-feature:hover video,
.video-wall figure:hover video,
.result-gallery figure:hover img {
  transform: scale(1.018);
}

.media-feature video {
  position: absolute;
  inset: 0;
  opacity: 0.82;
}

.media-feature div {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 9, 0.88) 38%, rgba(7, 7, 9, 0.96));
}

.media-feature span,
.result-gallery span {
  color: var(--accent-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.result-gallery figure {
  aspect-ratio: 3 / 4;
  animation: floatCard 16s ease-in-out infinite;
}

.result-gallery figure:nth-child(2),
.video-wall figure:nth-child(2n) {
  animation-delay: -1.4s;
}

.result-gallery figure:nth-child(3),
.video-wall figure:nth-child(3n) {
  animation-delay: -2.6s;
}

.result-gallery figcaption,
.video-wall figcaption {
  position: absolute;
  inset: auto 10px 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(7, 7, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.result-gallery b,
.result-gallery span {
  display: block;
}

.video-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-wall figure {
  aspect-ratio: 16 / 10;
  animation: floatCard 18s ease-in-out infinite;
}

.video-wall figcaption {
  color: var(--text-primary);
  font-size: 13px;
}

.video-wall::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(22, 217, 227, 0.55) 0 5px, transparent 5px 12px);
  filter: drop-shadow(0 0 8px rgba(22, 217, 227, 0.5));
  animation: lineBreath 12s ease-in-out infinite;
}

.use-cases {
  display: grid;
  gap: 18px;
}

.use-cases article {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-left: 2px solid rgba(124, 92, 255, 0.65);
  background: linear-gradient(90deg, rgba(16, 16, 20, 0.92), rgba(16, 16, 20, 0.45));
  border-radius: var(--radius-md);
}

.use-cases div {
  color: var(--accent-secondary);
  font-size: 13px;
}

.workflow-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  padding: 24px;
}

.upload-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(22, 217, 227, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(22, 217, 227, 0.16), rgba(16, 16, 20, 0.9));
  color: var(--text-primary);
}

.result-stack {
  display: grid;
  gap: 12px;
}

.result-stack span {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #0d0d11;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.steps {
  padding-left: 20px;
  color: var(--text-secondary);
}

.steps li {
  margin: 8px 0;
}

.template-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.template-board span,
.assistant-tools span {
  padding: 14px;
}

.assistant-panel {
  padding: 24px;
}

.message {
  max-width: 82%;
  margin-bottom: 14px;
  padding: 15px;
  border-radius: var(--radius-md);
}

.message.user {
  margin-left: auto;
  background: rgba(124, 92, 255, 0.22);
}

.message.bot {
  background: #0d0d11;
  color: var(--text-secondary);
}

.assistant-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.code-panel {
  padding: 18px;
}

.code-top {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.code-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text-muted);
}

pre {
  overflow: auto;
  margin: 18px 0 0;
  color: #c8f7ff;
  font-size: 13px;
  line-height: 1.7;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison div {
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(16, 16, 20, 0.72);
}

.comparison .active {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 44px rgba(124, 92, 255, 0.11);
}

.comparison strong,
.comparison span {
  display: block;
}

.comparison span {
  margin-top: 10px;
  color: var(--text-secondary);
}

.bonus-panel,
.final-cta {
  padding: 54px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.18), transparent 55%),
    #0d0d11;
}

.pricing-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-panel article {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
}

.pricing-panel .btn {
  margin-top: auto;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 650;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent-secondary);
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-bottom: 20px;
}

.final-section {
  padding-top: 70px;
}

.footer {
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer p {
  max-width: 460px;
  margin: 16px 0 0;
  color: #73737d;
}

.footer nav {
  display: grid;
  gap: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes lineBreath {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.52;
  }
}

@keyframes scanSweep {
  0%,
  45% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

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

@keyframes orbitNode {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.35;
  }
  35% {
    transform: translate3d(14px, -8px, 0);
    opacity: 0.62;
  }
  70% {
    transform: translate3d(-8px, 6px, 0);
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-product,
  .split,
  .split.reverse,
  .faq-layout,
  .footer-grid,
  .media-showcase {
    grid-template-columns: 1fr;
  }

  .model-column {
    display: flex;
    overflow-x: auto;
  }

  .brand-cloud,
  .feature-grid,
  .timeline,
  .pricing-panel,
  .result-gallery,
  .video-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-cases article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .section,
  .section.alt {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 78px;
  }

  h1 {
    font-size: 34px;
    line-height: 1;
  }

  h2 {
    font-size: 34px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cta-row,
  .cta-row .btn,
  .center-cta .btn,
  .bonus-panel .btn,
  .final-cta .btn {
    width: 100%;
  }

  .site-header .brand img {
    width: 176px;
    height: 50px;
  }

  .hero-product,
  .model-grid,
  .feature-grid,
  .timeline,
  .pricing-panel,
  .comparison,
  .workflow-card,
  .template-board,
  .brand-cloud,
  .result-gallery,
  .video-wall {
    grid-template-columns: 1fr;
  }

  .media-feature {
    min-height: 330px;
  }

  .workflow-arrow,
  .hero-lines {
    display: none;
  }

  .bonus-panel,
  .final-cta {
    padding: 32px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Мобильные: контент всегда виден, без зависимости от JS/GSAP/анимаций.
   На телефонах анимация появления отключается — иначе при сбое скрипта
   виден только фон. */
@media (max-width: 899px) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Мобильная шапка: убираем горизонтальную прокрутку верхнего меню.
   Якорное меню скрываем (разделы доступны прокруткой), оставляем
   логотип + «Войти» + кнопку — всё умещается в один экран. */
@media (max-width: 899px) {
  .main-nav {
    display: none !important;
  }
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
    height: auto;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-actions .login-link {
    flex: 0 0 auto;
  }
  .header-actions .btn-compact {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    padding-inline: 16px;
  }
}
