/* Belousovs Family — тёмная тема */

:root {
  --bg: #161115;        /* цвет краёв видео, чтобы стык не был виден */
  --gold: #d7b56d;
  --text: #e9e1d4;
  --text-dim: #a79c8c;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ——— Подложка: видео ——— */

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Затемнение и виньетка: шапка и подвал остаются читаемыми */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(22, 17, 21, .75) 0, rgba(22, 17, 21, 0) 22%),
    linear-gradient(to top, rgba(22, 17, 21, .85) 0, rgba(22, 17, 21, 0) 30%);
  pointer-events: none;
}

/* Вертикальный экран (телефон): видео кадром 16:9 по центру, шире экрана
   (боковые края уходят за экран), верх и низ растворяются в фоне */
@media (max-aspect-ratio: 1/1) {
  .hero__video {
    position: absolute;
    top: 50%;
    left: -25%;
    width: 150%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
  }
}

/* Внутренние страницы: вместо видео — неподвижный кадр, сильно затемнённый */
.hero--still {
  background: var(--bg) url("../media/hero-poster.jpg") center / cover no-repeat;
}

.hero--still::after {
  background: rgba(22, 17, 21, .9);
}

/* ——— Каркас страницы ——— */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ——— Шапка ——— */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 8px clamp(16px, 4vw, 48px);
}

.site-header__logo img {
  height: 60px;
  width: auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 24px;
}

.site-header__menu a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible,
.site-header__menu a[aria-current="page"] { color: var(--gold); }

/* ——— Подвал ——— */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 24px;
  text-align: center;
}

.site-footer__logo {
  width: 168px;
  height: auto;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: .04em;
}

/* ——— Внутренние страницы ——— */

.content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 48px);
}

.content__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  text-align: center;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  color: var(--text);
}

.prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
  color: var(--text);
}

.prose p { margin: 0 0 1.1em; }

/* Темы цитат */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.chip {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(215, 181, 109, .45);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible { border-color: var(--gold); color: var(--gold); }

.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1417;
}

/* Карточки цитат */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.quote {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: rgba(22, 17, 21, .62);
  border: 1px solid rgba(215, 181, 109, .22);
  border-radius: 6px;
}

.quote[hidden] { display: none; }

.quote blockquote { margin: 0 0 16px; }

.quote blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.quote__author {
  margin: auto 0 6px;
  font-size: 14px;
  color: var(--gold);
}

.quote__meta {
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .site-header__menu { gap: 18px; }
  .site-header__menu a { font-size: 13px; }
  .site-header__logo img { height: 48px; }
  .site-footer__logo { width: 132px; }
}
