:root {
  --bg: #f6f1ea;
  --ink: #14100d;
  --ink-2: #221a15;
  --red: #e8331f;
  --red-hover: #ff4b36;
  --orange: #c2410c;
  --text: #4a3f37;
  --muted: #5c5047;
  --muted-2: #6b5f56;
  --line: #e0d4c8;
  --line-2: #e8ded3;
  --br-green: #009c3b;
  --br-green-dark: #00873a;
  --br-yellow: #ffdf00;
  --gutter: clamp(20px, 4vw, 48px);
  --f-display: "Unbounded", sans-serif;
  --f-body: "Manrope", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

a { color: var(--ink); text-decoration: none; transition: color .15s, background .15s, border-color .15s, transform .15s; }
a:hover { color: var(--red-hover); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: radial-gradient(90% 60% at 80% 0%, #ffd9c2 0%, var(--bg) 60%) no-repeat;
  background-size: 100% 1400px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.eyebrow--red { color: var(--red); }

/* Header */
.header { padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 900; font-size: 14px;
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }

/* Hero */
.hero {
  padding-top: 24px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero__text { flex: 2 1 480px; min-width: 0; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(30px, 5.2vw, 68px); line-height: .92; letter-spacing: -.03em;
  text-transform: uppercase; white-space: nowrap;
}
.hero__title span { color: var(--red); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text); max-width: 520px; text-wrap: pretty; }

.hero__media { flex: 1 1 300px; position: relative; max-width: 440px; margin: 0 auto; }
.hero__glow { position: absolute; inset: -8%; background: radial-gradient(closest-side, #ff7a2a40, transparent); filter: blur(20px); }
.hero__cover { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px #7a3a1a33; }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero__sticker {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--ink); color: var(--bg);
  padding: 14px 18px; border-radius: 14px; transform: rotate(-4deg);
  box-shadow: 0 12px 30px #0003;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; line-height: 1.3;
}
.hero__sticker span { color: #ff6a52; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-radius: 12px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.btn--primary { padding: 16px 22px; font-size: 16px; background: var(--red); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); color: #fff; background: var(--red-hover); }
.btn--ghost { border: 1px solid var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--red); color: var(--ink); }

.br-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 14px;
  border: 1px solid var(--br-green);
}
.br-card__flag { flex: none; border-radius: 5px; }
.br-card__text { display: flex; flex-direction: column; gap: 2px; }
.br-card__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.br-card__title { font-weight: 700; font-size: 16px; }
.br-card--solid { background: var(--br-green); color: #fff; }
.br-card--solid .br-card__label { color: var(--br-yellow); }
.br-card--solid:hover { background: var(--br-green-dark); border-color: var(--br-yellow); color: #fff; }
.br-card--outline { background: #fff; color: var(--ink); }
.br-card--outline .br-card__label { color: #007a2f; }
.br-card--outline:hover { background: #f2fbf5; border-color: var(--br-yellow); color: var(--ink); }
.br-card__icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--br-green); color: var(--br-yellow);
  display: flex; align-items: center; justify-content: center;
}

/* Ribbon */
.ribbon {
  background: var(--red); color: #fff;
  transform: rotate(-1.5deg); margin: 0 -40px; padding: 16px 0;
  overflow: hidden; white-space: nowrap;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(16px, 2vw, 24px); text-transform: uppercase; letter-spacing: .04em;
}
.ribbon__track { display: inline-flex; animation: ribbon 40s linear infinite; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* Topics */
.topics { padding-top: 96px; display: flex; flex-direction: column; gap: 32px; }
.topics__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.topics__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 48px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.topics__lead { max-width: 460px; color: var(--muted); line-height: 1.55; font-size: 16px; text-wrap: pretty; }
.topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topics__grid { grid-template-columns: 1fr; } }
.topic { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.topic__num { font-family: var(--f-display); font-weight: 900; font-size: 32px; color: var(--red); }
.topic__title { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.topic__text { color: var(--muted); line-height: 1.5; font-size: 15px; text-wrap: pretty; }
.tags { margin: auto 0 0; padding: 8px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--text); }

/* Episodes */
.h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; line-height: 1; }
.episodes { padding-top: 96px; display: flex; flex-direction: column; gap: 32px; }
.episodes__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.link-underline { font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.episodes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 900px) { .episodes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .episodes__grid {
    display: flex; gap: 14px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .episodes__grid::-webkit-scrollbar { display: none; }
  .episode { flex: 0 0 82%; scroll-snap-align: start; }
  .episode__title { font-size: 16px; }
}
.episode { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.episode__cover {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #e8ded3, #d9cbbd);
  display: flex; align-items: center; justify-content: center;
}
.episode__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode__play {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: #fffc; opacity: 0; transition: opacity .15s, transform .15s;
}
.episode__play::after {
  content: ""; position: absolute; left: 22px; top: 18px;
  border-left: 16px solid var(--red); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.episode:hover .episode__play, .episode:focus-visible .episode__play { opacity: 1; transform: scale(1.08); }
.episode__dur {
  position: absolute; right: 10px; bottom: 10px;
  background: #000c; color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.episode__title { font-weight: 700; font-size: 17px; line-height: 1.35; text-wrap: pretty; }

/* Ads */
.ads { padding-top: 96px; padding-bottom: 96px; }
.ads__box {
  border-radius: 28px; background: var(--ink); color: var(--bg);
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center;
}
.ads__intro { display: flex; flex-direction: column; gap: 18px; }
.ads__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; text-transform: uppercase; }
.ads__lead { font-size: 17px; line-height: 1.55; color: #c9bdb2; max-width: 480px; }

.mediakit {
  margin-top: 8px; max-width: 480px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px; border-radius: 18px; background: var(--bg); color: var(--ink);
}
.mediakit:hover { background: #fff; color: var(--red); }
.mediakit__text { display: flex; flex-direction: column; gap: 6px; }
.mediakit__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.mediakit__title { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink); }
.mediakit__sub { font-size: 14px; color: var(--muted); }
.mediakit__arrow {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}

.ads__contacts { display: flex; flex-direction: column; gap: 12px; }
.contact {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: 16px;
  background: var(--ink-2); color: var(--bg); border: 1px solid #3a302a;
}
.contact:hover { border-color: var(--red); color: #fff; }
.contact--red { background: var(--red); color: #fff; border-color: var(--red); }
.contact--red:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.contact__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact__label { font-size: 13px; color: #a89b90; }
.contact--red .contact__label { color: #fff; opacity: .7; }
.contact__value { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.contact__arrow { font-size: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__company { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__muted { font-size: 13px; color: var(--muted-2); }
.spectrum { display: flex; align-items: center; gap: 14px; }
.spectrum__logo { width: 52px; height: 52px; flex: none; overflow: hidden; position: relative; }
.spectrum__logo img {
  position: absolute; width: 300px; max-width: none; left: -124px; top: -67px;
  filter: grayscale(1) contrast(2.4); mix-blend-mode: multiply;
}
.spectrum__name { display: flex; flex-direction: column; gap: 4px; font-family: "Montserrat", sans-serif; }
.spectrum__title { font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .02em; }
.spectrum__sub { font-weight: 500; font-size: 10.5px; letter-spacing: .24em; color: var(--muted); }

@media (max-width: 560px) {
  .hero__sticker { left: -8px; bottom: 20px; font-size: 12px; }
  .btn-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .btn { flex-direction: column; justify-content: center; gap: 6px; padding: 14px 8px; font-size: 14px; }
  .btn--primary { grid-column: 1 / -1; flex-direction: row; gap: 10px; padding: 16px 22px; font-size: 16px; }
  .br-card { grid-column: 1 / -1; }
  .ads__box { padding: 28px 20px; border-radius: 24px; }
  .mediakit { padding: 20px; }
  .mediakit__title { font-size: 17px; }
  .contact { padding: 18px 20px; }
  .contact__value { font-size: 16px; overflow-wrap: normal; }
  .footer__inner { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
}
