/* =========================================================
   BEREZOVSKIY DOSSIER — styles (matched to reference)
   ========================================================= */

:root {
  /* Bebas Neue — крупные заголовки, названия секций, цифры */
  --font-display: "Bebas Neue", Impact, sans-serif;
  /* Oswald — подзаголовки и мелкие акцентные надписи */
  --font-accent: "Oswald", "Roboto Condensed", sans-serif;
  /* Roboto Condensed — основной текст */
  --font-body: "Roboto Condensed", Arial, sans-serif;

  --bg: #070707;
  --bg-deep: #030303;
  --bg-panel: #0c0c0c;
  --panel: #0c0c0c;

  --text: #eeeeea;
  --text-secondary: #b9b9b4;
  --text-muted: #858582;
  --white: #eeeeea;
  --gray-100: #d1d1cd;
  --gray-300: #b9b9b4;
  --gray-500: #858582;

  --red: #e21d2d;
  --red-bright: #f22435;
  --red-hover: #f22435;
  --red-dark: #8d1019;

  --border: #393939;
  --border-section: rgba(255, 255, 255, 0.18);
  --paper: #d8d2c8;

  --content-width: 1380px;
  --radius: 0px;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: url("../images/grunge-bg.webp");
  background-position: top center;
  background-size: 100% auto;
  background-repeat: repeat-y;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ---------- LANG SWITCH ---------- */

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  gap: 0;
  border: 1px solid #444;
  background: rgba(3, 3, 3, 0.92);
}

.lang-switch__btn {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1;
  padding: 10px 12px;
  color: var(--text-muted);
  border-right: 1px solid #333;
  transition: color 150ms ease, background 150ms ease;
}

.lang-switch__btn:last-child {
  border-right: none;
}

.lang-switch__btn:hover {
  color: var(--white);
  background: rgba(226, 29, 45, 0.08);
}

.lang-switch__btn.is-active {
  color: #fff;
  background: var(--red);
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.7px;
  border-radius: var(--radius);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.btn--primary {
  height: 50px;
  padding: 0 24px;
  background: #b71420;
  border: 1px solid #f02a38;
  font-size: 18px;
  color: #fff;
}

.btn--primary:hover {
  background: #df1d2c;
}

.btn--secondary {
  height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #858580;
  font-size: 16px;
  color: #eee;
}

.btn--secondary:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(226, 29, 45, 0.08);
}

/* ---------- HERO ---------- */

.hero {
  padding: 56px 0 40px;
  min-height: 640px;
  border-top: 1px solid var(--border-section);
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.97) 0%,
      rgba(7, 7, 7, 0.88) 34%,
      rgba(7, 7, 7, 0.35) 52%,
      rgba(7, 7, 7, 0.1) 68%,
      transparent 82%
    ),
    url("../images/hero-collage.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero__grid {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: var(--space-5);
  align-items: center;
  min-height: 560px;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-right: 8px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 104px);
  line-height: 0.88;
  letter-spacing: 1px;
  font-weight: 400;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
  color: var(--white);
}

.hero__title-line--red {
  color: var(--red);
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.7px;
  color: var(--text);
}

.hero__body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  max-width: 520px;
  color: #d1d1cd;
}

/* Desktop: collage is section background, visual holds stamp only */
.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
  align-self: stretch;
}

.hero__collage-img {
  display: none;
}

.hero__stamp-text {
  position: absolute;
  left: 0;
  bottom: 12%;
  max-width: 70%;
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--red);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
  transform: rotate(-6deg);
  pointer-events: none;
  opacity: 0.92;
}

/* ---------- STATS ---------- */

.stats {
  background: #000;
  border-top: 1px solid #353535;
  border-bottom: 1px solid #353535;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.stats__item {
  padding: 22px 8px;
  text-align: center;
  border-right: 1px solid #333;
  min-width: 0;
}

.stats__item:last-child {
  border-right: none;
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 40px);
  line-height: 1;
  color: var(--red);
  margin-bottom: 6px;
  white-space: nowrap;
}

.stats__label {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  line-height: 1.3;
}

/* ---------- SECTIONS ---------- */

.section {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border-section);
  overflow: visible;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.008) 3px,
      rgba(255, 255, 255, 0.008) 4px
    );
  opacity: 0.7;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-6);
  align-items: center;
}

.section__grid--bio {
  grid-template-columns: 36% 64%;
  align-items: start;
}

.section__grid--image-heavy {
  grid-template-columns: 38% 62%;
}

.section__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section__head--block {
  margin-bottom: var(--space-4);
}

.section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid #666;
  font-family: var(--font-display);
  font-size: 26px;
  color: #bdbdb8;
  line-height: 1;
}

.section__title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-transform: uppercase;
}

.section__subtitle {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #bcbcb7;
  margin-top: 6px;
}

.section__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  color: #c6c6c1;
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.section__body--wide {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section__text .btn {
  margin-top: var(--space-2);
}

.section__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* ---------- MEDIA COLLAGES ---------- */

.media-collage {
  width: 100%;
  filter: contrast(1.06) saturate(0.88);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
  transition: transform 150ms ease;
}

.media-collage:hover {
  transform: translateY(-2px);
}

.media-collage--prison {
  filter: contrast(1.1) saturate(0.75);
}

.media-collage--personal {
  border: 2px solid #c7c1b7;
  filter: contrast(1.08) saturate(0.95);
}

/* ---------- BIO ---------- */

.bio-media {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-4);
  align-items: end;
}

.citizenship {
  background: rgba(7, 7, 7, 0.9);
  border: 1px solid #444;
  padding: 16px 18px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.citizenship__title {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  color: var(--white);
}

.citizenship__list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-100);
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.citizenship__list li:last-child {
  border-bottom: none;
}

.citizenship__note {
  color: var(--text-muted);
  font-size: 12px;
  width: 100%;
  padding-left: 26px;
  margin-top: -2px;
}

.flag {
  font-size: 16px;
  line-height: 1;
}

/* ---------- SCANDALS ---------- */

.scandals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.scandal-card {
  border: 1px solid #444;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
}

.scandal-card__img {
  aspect-ratio: 4 / 5;
  background-color: #151515;
  background-image: url("../images/scandals-collage.jpg");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  border-bottom: 1px solid #444;
  position: relative;
  overflow: hidden;
  filter: contrast(1.08) saturate(0.9);
}

.scandal-card__img--1 { background-position: 0% 50%; }
.scandal-card__img--2 { background-position: 33.333% 50%; }
.scandal-card__img--3 { background-position: 66.666% 50%; }
.scandal-card__img--4 { background-position: 100% 50%; }

.scandal-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.scandal-card__year {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #ef2232;
  padding: 12px 12px 4px;
}

.scandal-card__title {
  font-family: var(--font-accent);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
  padding: 0 12px 6px;
  font-weight: 600;
}

.scandal-card__caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: #aaa;
  padding: 0 12px 14px;
  line-height: 1.35;
}

/* ---------- DEBTS ---------- */

.debt-figure {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1;
  color: var(--red);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.debts__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.docs-visual {
  position: relative;
  background: transparent;
  overflow: visible;
  min-height: 0;
}

.docs-visual__img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.docs-visual__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 4px;
  color: var(--red);
  border: 4px solid var(--red);
  padding: 6px 18px;
  transform: translate(-50%, -50%) rotate(-18deg);
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: nowrap;
}

.debt-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-100);
}

.debt-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #333;
}

.debt-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.debt-table__total td {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  border-bottom: none;
  padding-top: 16px;
}

/* ---------- COURTS ---------- */

.courts__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: var(--space-5);
  align-items: end;
  position: relative;
  overflow: visible;
}

.case-table {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid #353535;
}

.case-table__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid #303030;
  padding: 10px 14px;
  gap: 12px;
}

.case-table__row:last-child {
  border-bottom: none;
}

.case-table__jurisdiction {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
}

.case-table__desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.4;
}

.courts__themis {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 0;
  overflow: visible;
  z-index: 2;
}

.themis-img {
  width: clamp(240px, 26vw, 380px);
  max-width: none;
  height: auto;
  filter: contrast(1.06) saturate(0.9);
  transform: translate(8%, 6%);
  transform-origin: bottom right;
  pointer-events: none;
}

/* ---------- ASSETS ---------- */

.media-collage--assets {
  width: 100%;
  filter: contrast(1.06) saturate(0.88);
}

/* ---------- NOW ---------- */

.media-collage--now {
  width: 100%;
  filter: contrast(1.05) saturate(0.92);
}

.section--now {
  border-bottom: 1px solid var(--border-section);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1199px) {
  .hero {
    background-position: 70% center;
  }

  .hero__grid {
    grid-template-columns: 48% 52%;
  }

  .hero__title {
    font-size: clamp(56px, 7vw, 72px);
  }

  .hero__subtitle {
    font-size: 20px;
  }

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

  .stats__item:nth-child(3n) {
    border-right: none;
  }

  .stats__item:nth-child(n + 4) {
    border-top: 1px solid #333;
  }

  .section__grid,
  .section__grid--bio,
  .section__grid--image-heavy {
    grid-template-columns: 1fr;
  }

  .bio-media {
    grid-template-columns: 1fr 200px;
  }

  .scandals__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .debts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .debts__docs {
    grid-column: 1 / -1;
  }

  .courts__grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .courts__themis {
    grid-column: 1 / -1;
    justify-content: center;
    align-self: auto;
    min-height: 220px;
  }

  .themis-img {
    width: min(48vw, 280px);
    transform: translate(0, 4%);
    transform-origin: bottom center;
  }
}

@media (max-width: 900px) {
  .lang-switch {
    top: 10px;
    right: 10px;
  }

  .lang-switch__btn {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 36px 0 28px;
    min-height: 0;
    background-image: none;
    background-color: var(--bg);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: var(--space-5);
  }

  .hero__title {
    font-size: clamp(52px, 12vw, 60px);
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__body {
    font-size: 16px;
  }

  .hero__visual {
    order: 2;
    min-height: 0;
  }

  .hero__collage-img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.08) saturate(0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  }

  .hero__stamp-text {
    left: 4%;
    bottom: 10%;
    font-size: 16px;
    max-width: 72%;
  }

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

  .stats__item {
    border-right: 1px solid #333;
  }

  .stats__item:nth-child(2n) {
    border-right: none;
  }

  .stats__item:nth-child(n + 3) {
    border-top: 1px solid #333;
  }

  .stats__item:nth-child(3n) {
    border-right: 1px solid #333;
  }

  .stats__value {
    font-size: 32px;
  }

  .section {
    padding: 32px 0;
  }

  .section__title {
    font-size: 32px;
  }

  .section__subtitle {
    font-size: 16px;
  }

  .section__num {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .section__body {
    font-size: 16px;
  }

  .bio-media {
    grid-template-columns: 1fr;
  }

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

  .debts__grid {
    grid-template-columns: 1fr;
  }

  .courts__grid {
    grid-template-columns: 1fr;
  }

  .case-table__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 479px) {
  .hero__title {
    font-size: clamp(44px, 11vw, 50px);
  }

  .section__title {
    font-size: 30px;
  }

  .stats__value {
    font-size: 26px;
  }

  .scandals__grid {
    grid-template-columns: 1fr;
  }

  .scandal-card__year {
    font-size: 28px;
  }

  .debt-figure {
    font-size: 36px;
  }

  .docs-visual__mark {
    font-size: 36px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
