/* ---------------------------------------------------------
   Pixel Hall — site styles
   Шрифты: Unbounded (заголовки), IBM Plex Sans (текст),
   ZX Spectrum-7 (пиксельные акценты — тот же набор, что в guide).
   ZX Spectrum-7 не самохостится через Google Fonts — файл нужно
   скопировать из guide-проекта в /static/fonts/ (см. README).
--------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

@font-face {
  font-family: 'ZX Spectrum-7';
  src: url('/static/fonts/zx-spectrum-7-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'ZX Spectrum-7';
  src: url('/static/fonts/zx-spectrum-7-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* --- цвет: тёмно-синий CRT-фон вместо чистого чёрного,
     два акцента — янтарное фосфорное свечение и приглушённый тил --- */
  --bg: #12161f;
  --bg-raised: #1a2030;
  --bg-raised-2: #212842;
  --border: rgba(238, 241, 240, 0.09);
  --text: #eef1f0;
  --text-dim: #8d96ab;
  --amber: #f2a94e;
  --amber-dim: #a67b3d;
  --teal: #5fc4ba;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-pixel: 'ZX Spectrum-7', 'IBM Plex Sans', monospace;

  --radius: 4px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-dim);
  max-width: 42ch;
  margin: 0 0 2rem;
}

/* --- header --- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a { color: var(--text-dim); }
.nav a:hover { color: var(--amber); }
.nav-guide { color: var(--teal) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    gap: 0.9rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }
}

/* --- hero --- */

.hero-outer {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-outer.is-full-bleed {
  max-width: none;
  border-radius: 0;
}

.hero-outer.is-full-bleed .hero {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 3.25rem 1.5rem 3.75rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(18, 22, 31, 0.97) 0%,
    rgba(18, 22, 31, 0.9) 40%,
    rgba(18, 22, 31, 0.75) 100%
  );
}

.hero-scanlines {
  position: absolute;
  z-index: 1;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(242, 169, 78, 0.05) 0px,
    rgba(242, 169, 78, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  /* Растянута на весь hero, а не только в левый верхний угол — иначе справа
     и внизу остаётся резко обрезанная плоская зона без текстуры. */
  mask-image: radial-gradient(ellipse 90% 85% at 35% 30%, black, transparent 90%);
}

.hero-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin: 0 0 1.25rem;
}

.hero-title {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  max-width: 34ch;
  color: var(--text);
  white-space: pre-line;
}

.hero-sub {
  position: relative;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 1.5rem 0 2.25rem;
}

.hero-sub p {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.hero-sub p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
}

.hero-stat {
  padding-left: 1.25rem;
  border-left: 2px solid var(--amber-dim);
  flex: 0 1 auto;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0;
}

.hero-stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 16ch;
  margin: 0.2rem 0 0;
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.1rem;
  }
  .hero-stat {
    padding-left: 0;
    padding-top: 1.1rem;
    border-left: none;
    border-top: 2px solid var(--amber-dim);
    max-width: none;
  }
  .hero-stat:first-child {
    padding-top: 0;
    border-top: none;
  }
  .hero-stat-label {
    max-width: none;
  }
  .hero-stat-number {
    font-size: 1.6rem;
  }
}

/* --- hero reviews (карусель отзывов) --- */

.hero-reviews {
  position: relative;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-raised-2), var(--bg-raised));
}

.hero-reviews .js-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-review-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.hero-review-slide.is-active {
  opacity: 1;
}

.hero-review-quote {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--amber);
  margin: 0 0 0.25rem;
  flex-shrink: 0;
}

.hero-review-quote-open {
  margin: 0 0 0.5rem;
}

.hero-review-quote-close {
  text-align: right;
  font-size: 1.8rem;
  margin: 0.5rem 0 0;
}

.hero-review-body {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  flex-grow: 1;
  min-height: 0;
  overflow: hidden;
  /* Текст, не влезающий в карточку, уходит в затухание, а не в скролл —
     полный отзыв доступен по ссылке на источник. */
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-review-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.hero-review-stars {
  font-size: 0.95rem;
  color: rgba(238, 241, 240, 0.25);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.hero-review-stars .is-filled {
  color: var(--amber);
}

.hero-review-author {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

.hero-review-link {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 0.75rem;
  flex-shrink: 0;
}

.hero-review-link:hover {
  color: var(--teal);
}

.js-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

.js-carousel-dots button {
  pointer-events: auto;
}

.js-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(238, 241, 240, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.js-carousel-dot:hover {
  background: rgba(238, 241, 240, 0.6);
}

.js-carousel-dot.is-active {
  background: var(--amber);
  transform: scale(1.2);
}

/* --- buttons --- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: #1a1305;
}
.btn-primary:hover {
  background: #f6bb6f;
  color: #1a1305;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--amber-dim);
  color: var(--amber);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

/* --- what section --- */

.what {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.what-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .what-grid { grid-template-columns: 1fr 1fr; }
}

.what-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.what-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin: -1.75rem -1.75rem 1.25rem;
  background: var(--bg-raised-2);
}

.what-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.4s ease;
}

.what-card:hover .what-photo img {
  transform: scale(1.03);
}

.what-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.what-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.what-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.what-card p {
  color: var(--text-dim);
}

.what-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.audio-teaser {
  margin-top: 0.9rem;
}

.audio-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--amber-dim);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.audio-btn * {
  cursor: pointer;
}

.audio-btn:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(242, 169, 78, 0.18);
}

.audio-btn:active {
  transform: translateY(0);
}

.audio-btn__progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(242, 169, 78, 0.18);
  transition: width 0.2s linear;
  pointer-events: none;
}

.audio-btn__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--amber);
  color: #1a1305;
  font-size: 0.7rem;
  box-shadow: 0 0 0 4px rgba(242, 169, 78, 0.12);
  transition: background 0.15s ease;
}

.audio-btn__text {
  position: relative;
  z-index: 1;
}

.audio-btn.is-playing .audio-btn__icon {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(95, 196, 186, 0.14);
}

.audio-btn.is-finished {
  border-color: var(--teal);
}

.audio-btn.is-finished:hover {
  box-shadow: 0 4px 16px rgba(95, 196, 186, 0.18);
}

.audio-btn.is-finished .audio-btn__icon {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(95, 196, 186, 0.14);
}

.audio-btn.is-finished .audio-btn__progress {
  width: 100% !important;
  background: rgba(95, 196, 186, 0.16);
}

/* --- tariffs --- */

.tariffs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.tariffs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.tariff-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tariff-recommended {
  border-color: var(--amber-dim);
  background: var(--bg-raised-2);
}

.tariff-badge {
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  background: var(--amber);
  color: #1a1305;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.tariff-scope {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.tariff-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}

.tariff-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--amber);
  margin: 0.3rem 0 0.5rem;
}

.tariff-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-grow: 1;
  margin: 0 0 0.9rem;
}

.tariffs-footnote {
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 60ch;
}

/* --- find / contacts --- */

.find {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.find-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.find-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.find p { margin: 0; color: var(--text-dim); }
.find a { color: var(--text); }

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--amber); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* --- news teaser (главная) и страница новостей --- */

.news-teaser,
.news-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.news-teaser-grid,
.news-list-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 1.5rem;
}

@media (min-width: 720px) {
  .news-teaser-grid,
  .news-list-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-teaser-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-teaser-card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-2px);
  color: var(--text);
}

.news-teaser-photo {
  aspect-ratio: 16 / 10;
  background: var(--bg-raised-2);
  overflow: hidden;
}

.news-teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-teaser-card h3,
.news-teaser-card p {
  padding: 0 1.1rem;
}

.news-teaser-card h3 {
  font-size: 1.05rem;
  margin: 0.9rem 0 0.4rem;
}

.news-teaser-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
}

.news-teaser-date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--teal);
  padding: 1rem 1.1rem 0 !important;
  margin: 0 !important;
}

.news-teaser-card .news-teaser-date {
  padding: 1rem 1.1rem 0;
  margin: 0;
}

/* --- news detail --- */

.news-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.news-detail-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0.75rem 0 1.5rem;
  max-width: none;
}

.news-detail-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.news-detail-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--bg-raised-2);
}

.news-detail-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.news-detail-carousel-slide.is-active {
  opacity: 1;
}

.news-detail-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-detail-carousel .js-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.news-detail-photo img {
  width: 100%;
  display: block;
}

.news-detail-body {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

.news-detail-body p {
  margin: 0 0 1.1rem;
}

.news-detail-body ul,
.news-detail-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.news-detail-body li {
  margin-bottom: 0.4rem;
}

.news-detail-body li::marker {
  color: var(--amber);
}

.news-detail-body h2,
.news-detail-body h3 {
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
}

.news-detail-body a {
  text-decoration: underline;
  text-decoration-color: var(--amber-dim);
}

.news-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0.5rem 0 1.25rem;
  display: block;
}

/* --- programs (день рождения / свидание / стрим и т.п.) --- */

.programs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.programs-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

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

.program-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 1.5rem;
}

.program-photo {
  aspect-ratio: 16 / 10;
  background: var(--bg-raised-2);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-card h3 {
  font-size: 1.1rem;
  margin: 0 1.25rem 0.5rem;
}

.program-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0 1.25rem 0.9rem;
}

.program-card .what-link {
  margin: 0 1.25rem;
}

/* --- back to top --- */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--amber);
  color: #1a1305;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

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

.back-to-top:hover {
  background: #f6bb6f;
}

/* --- reduced motion --- */

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