/* ============================================================
   АвтоЛегенда — статическая версия (HTML/CSS/JS без зависимостей)
   Токены и компоненты повторяют дизайн Next.js-версии 1:1.
   ============================================================ */

/* ── Локальные шрифты (без CDN) ── */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Токены темы ── */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.75rem;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
}

/* ── Сброс (аналог Tailwind preflight в нужном объёме) ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  line-height: 1.5;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input {
  font: inherit;
  color: inherit;
  background: transparent;
}

button {
  cursor: pointer;
}

b,
strong {
  font-weight: bolder;
}

/* ── Утилиты ── */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1400px; }
}

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

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px hsl(0 0% 0% / 0.1);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page main {
  flex: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .animate-fade-up {
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-outline {
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-lg {
  height: 2.75rem;
  padding-inline: 2rem;
}

/* ── Поля ввода ── */
.input {
  display: flex;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.input-subscribe {
  height: 2.75rem;
  flex: 1;
  min-width: 0;
  border-radius: 9999px;
  background-color: hsl(var(--background) / 0.8);
}

/* ── Значки ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
}

/* ── Шапка ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--background) / 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-badge {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: hsl(var(--foreground));
}

.main-nav a.nav-active {
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.theme-toggle {
  position: relative;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}

.theme-toggle:hover {
  color: hsl(var(--foreground));
}

.theme-toggle:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.theme-toggle .icon-moon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.theme-toggle svg {
  transition: transform 0.3s ease;
}

html:not(.dark) .icon-moon {
  transform: scale(0) rotate(90deg);
}

html.dark .icon-sun {
  transform: scale(0) rotate(-90deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 9999px;
}

.hero-glow-1 {
  top: -25%;
  left: 10%;
  width: 80%;
  height: 70%;
  background: radial-gradient(
    closest-side,
    hsl(var(--primary) / 0.1),
    transparent
  );
}

.dark .hero-glow-1 {
  background: radial-gradient(
    closest-side,
    hsl(217 91% 60% / 0.14),
    transparent
  );
}

.hero-glow-2 {
  top: 15%;
  right: -15%;
  width: 45%;
  height: 55%;
  background: radial-gradient(
    closest-side,
    hsl(45 96% 59% / 0.08),
    transparent
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      hsl(var(--border) / 0.55) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(
    65% 60% at 50% 0%,
    black,
    transparent 80%
  );
  mask-image: radial-gradient(65% 60% at 50% 0%, black, transparent 80%);
}

.grad-text {
  background-image: linear-gradient(
    100deg,
    hsl(var(--foreground)) 30%,
    hsl(var(--muted-foreground))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .grad-text {
  background-image: linear-gradient(
    100deg,
    #fde68a 0%,
    #f59e0b 50%,
    #f97316 100%
  );
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-block: 7rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: hsl(var(--muted) / 0.6);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.pill-icon {
  color: #f59e0b;
}

.hero-title {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
    line-height: 1;
  }
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: hsl(var(--muted-foreground));
  text-wrap: balance;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-actions .btn-lg {
  padding-inline: 1.75rem;
}

.hero-figure {
  position: relative;
  margin-top: 3.5rem;
  width: 100%;
  max-width: 56rem;
}

.hero-figure-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.2);
}

.dark .hero-figure-frame {
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.6);
}

.hero-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.hero-figure-hint .icon {
  color: #f59e0b;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-figure-frame img {
    transition: transform 0.6s ease;
  }

  .hero-figure-frame:hover img {
    transform: scale(1.02);
  }
}

img[data-lightbox] {
  cursor: zoom-in;
}

.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  width: 100%;
  max-width: 48rem;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  row-gap: 2rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat dd {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat dt {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

/* ── Секции ── */
.section {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 6rem;
  }
}

#collection,
#eras,
#reviews,
#about,
#subscribe {
  scroll-margin-top: 5rem;
}

.section-head {
  margin-bottom: 3rem;
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.section-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-text {
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
}

/* ── Коллекция ── */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-card {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: hsl(var(--card));
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px hsl(0 0% 0% / 0.1),
    0 8px 10px -6px hsl(0 0% 0% / 0.1);
}

.dark .car-card:hover {
  box-shadow: 0 20px 25px -5px hsl(0 0% 0% / 0.4),
    0 8px 10px -6px hsl(0 0% 0% / 0.4);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: hsl(var(--background) / 0.85);
  color: hsl(var(--foreground));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-badge-highlight {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgb(245 158 11 / 0.95);
  color: #451a03;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.card-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-title p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--muted) / 0.6);
  text-align: center;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.spec .icon {
  margin-inline: auto;
  color: hsl(var(--muted-foreground));
}

.spec dd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

.card-price > span:first-child {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.card-price-value {
  font-weight: 600;
}

/* ── Лента брендов ── */
.brands {
  border-block: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--muted) / 0.3);
  padding-block: 1.25rem;
}

.brands-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
}

.brands-track {
  display: flex;
  width: max-content;
}

.brands-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.brands-row span {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: hsl(var(--muted-foreground) / 0.9);
}

@media (prefers-reduced-motion: no-preference) {
  .brands-track {
    animation: marquee 36s linear infinite;
  }

  .brands:hover .brands-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    width: 100%;
  }

  .brands-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
  }

  .brands-row[aria-hidden="true"] {
    display: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Эпохи ── */
.eras {
  border-top: 1px solid hsl(var(--border) / 0.6);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--muted) / 0.3);
}

.timeline {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.era {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: hsl(var(--card));
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.era::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -25%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: radial-gradient(
    closest-side,
    hsl(45 96% 59% / 0.08),
    transparent
  );
  pointer-events: none;
}

.era:hover {
  transform: translateY(-4px);
  border-color: hsl(45 96% 59% / 0.4);
  box-shadow: 0 20px 25px -5px hsl(0 0% 0% / 0.1),
    0 8px 10px -6px hsl(0 0% 0% / 0.1);
}

.dark .era:hover {
  box-shadow: 0 20px 25px -5px hsl(0 0% 0% / 0.4),
    0 8px 10px -6px hsl(0 0% 0% / 0.4);
}

.era-icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(45 96% 59% / 0.3);
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    hsl(45 96% 59% / 0.14),
    hsl(25 95% 53% / 0.08)
  );
  color: #f59e0b;
}

.era-year {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f59e0b;
}

.era-title {
  margin-top: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.era-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ── Отзывы ── */
.quotes-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: hsl(var(--card));
}

.quote-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: #f59e0b;
}

.quote-card blockquote {
  font-size: 0.9375rem;
  line-height: 1.625;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.quote-avatar {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.quote-avatar-amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.quote-avatar-blue {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.quote-avatar-emerald {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.quote-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.quote-author small {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

/* ── О проекте ── */
.about {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.4);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.feature h3 {
  margin-top: 0.75rem;
  font-weight: 600;
}

.feature p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ── Подписка ── */
.subscribe-card {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  background-color: hsl(var(--card));
  text-align: center;
}

@media (min-width: 640px) {
  .subscribe-card {
    padding: 3.5rem 3rem;
  }
}

.subscribe-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 60% at 50% 100%,
    hsl(var(--primary) / 0.1),
    transparent
  );
}

.subscribe-card .section-title {
  position: relative;
  margin-top: 0;
}

.subscribe-text {
  position: relative;
  margin-top: 1rem;
  max-width: 32rem;
  margin-inline: auto;
  color: hsl(var(--muted-foreground));
}

.subscribe-form-wrap {
  position: relative;
  margin-top: 2rem;
}

.subscribe-form {
  display: flex;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .subscribe-form {
    flex-direction: row;
  }
}

.btn-submit {
  padding-inline: 1.5rem;
}

.btn-submit .icon-loader {
  display: none;
  animation: spin 1s linear infinite;
}

.btn-submit.is-loading .icon-loader {
  display: block;
}

.btn-submit.is-loading .icon-send {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.trust-chips .icon {
  color: hsl(142 71% 45%);
}

/* ── Подвал ── */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.4);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 3rem;
  }
}

.footer-desc {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer-heading {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.footer-col a:not(.btn-download) {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:not(.btn-download):hover {
  color: hsl(var(--foreground));
}

.footer-note {
  margin-top: 0.375rem;
  max-width: 18rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground) / 0.85);
}

.logo-badge-sm {
  height: 2rem;
  width: 2rem;
}

.logo-name-sm {
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-block: 1.5rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

.to-top:hover {
  color: hsl(var(--foreground));
}

.btn-download {
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: hsl(var(--background));
}

.btn-download:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.copyright {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

/* ── Toast-уведомления (аналог sonner, внизу справа) ── */
.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 22rem;
  max-width: calc(100vw - 2rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 10px 15px -3px hsl(0 0% 0% / 0.1),
    0 4px 6px -4px hsl(0 0% 0% / 0.1);
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: hsl(142 71% 45%);
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .toast.toast-hide {
    animation: toast-out 0.2s ease both;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ── Кнопка «наверх» ── */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 10px 15px -3px hsl(0 0% 0% / 0.15),
    0 4px 6px -4px hsl(0 0% 0% / 0.1);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease,
    background-color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: hsl(var(--accent));
}

body.has-fab .toast-stack {
  bottom: 4.75rem;
}

/* ── Лайтбокс ── */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: hsl(222.2 84% 4.9% / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(72rem, 100%);
}

.lightbox-figure img {
  max-height: 80vh;
  margin-inline: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.5);
}

.lightbox-figure figcaption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  text-align: center;
  color: hsl(210 40% 98% / 0.75);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(210 40% 98% / 0.25);
  border-radius: 9999px;
  background-color: hsl(210 40% 98% / 0.08);
  color: hsl(210 40% 98%);
  transition: background-color 0.15s ease;
}

.lightbox-close:hover {
  background-color: hsl(210 40% 98% / 0.18);
}

.lightbox-close:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(222.2 84% 4.9%), 0 0 0 4px hsl(210 40% 98%);
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) .lightbox-figure {
    animation: lightbox-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Появление при прокрутке ── */
@media (prefers-reduced-motion: no-preference) {
  html.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

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