:root {
  --pg-blue: #17428f;
  --pg-navy: #07142f;
  --pg-text: #081126;
  --pg-muted: #667085;
  --pg-accent: #f05a3c;

  --page-max: 1280px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --glass: rgba(255, 255, 255, .82);
  --glass-strong: rgba(255, 255, 255, .92);
  --border: rgba(10, 20, 45, .10);
  --shadow: 0 24px 70px rgba(6, 18, 45, .22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--pg-text);
  font-family:
    "Manrope",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.90) 46%, rgba(255,255,255,.96)),
    radial-gradient(circle at 50% 0%, rgba(23,66,143,.20), transparent 46%),
    url("/bg.jpg") center top / cover fixed no-repeat;

  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  padding: 28px 20px 64px;
}

.page-shell {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 34px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
  color: var(--pg-blue);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(23, 66, 143, .18));
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: var(--pg-blue);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--pg-navy);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 16px;

  border: 1px solid rgba(240, 90, 60, .55);
  border-radius: 999px;

  color: var(--pg-accent);
  background: rgba(255, 255, 255, .70);

  font-size: 14px;
  font-weight: 720;
  text-decoration: none;

  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.site-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .92);
  border-color: var(--pg-accent);
}

.hero {
  display: grid;
  gap: 22px;
  text-align: center;
  margin: 0 auto 28px;
}

.hero-kicker {
  color: var(--pg-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--pg-navy);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 820;
  line-height: .96;
  letter-spacing: -.04em;
}

.hero-note {
  max-width: 680px;
  margin: -8px auto 0;

  color: rgba(8, 17, 38, .70);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 520;
  line-height: 1.45;
}

.player-card {
  position: relative;

  padding: clamp(8px, 1.2vw, 14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.player-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;

  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.18)),
    radial-gradient(circle at 20% 0%, rgba(23,66,143,.16), transparent 34%),
    radial-gradient(circle at 80% 100%, rgba(240,90,60,.12), transparent 34%);
}

.player-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #000;
}

live-video-player {
  display: contents;
}

video-skin {
  position: relative;
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #000;
}

hls-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.stream-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;

  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.50)),
    radial-gradient(circle at center, rgba(45,45,45,.34), rgba(0,0,0,.90)),
    url("/waiting.jpg") center / cover no-repeat;

  opacity: 1;
  transition: opacity .25s ease;
  text-align: center;
}

.stream-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.stream-overlay-card {
  position: relative;
  z-index: 2;

  max-width: 760px;
  padding: 18px 22px;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;

  background: rgba(0,0,0,.52);
  color: #fff;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stream-overlay-spinner {
  display: none;

  width: 34px;
  height: 34px;
  margin: 0 auto 14px;

  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.28);
  border-top-color: rgba(255,255,255,.95);

  animation: spin .9s linear infinite;
}

.stream-overlay.reconnect .stream-overlay-spinner {
  display: block;
}

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

.stream-overlay-title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
}

.stream-overlay-subtitle {
  margin-bottom: 6px;
  font-size: 15px;
  opacity: .88;
}

.stream-overlay-description {
  font-size: 14px;
  opacity: .75;
}

.v10-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 11px;
  border-radius: 999px;

  background: rgba(0, 0, 0, .55);
  color: #fff;

  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  pointer-events: none;
  user-select: none;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.v10-live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, .9);
}

.v10-live-badge.buffering::before {
  background: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, .9);
}

.v10-live-badge.offline::before {
  background: #8e8e93;
  box-shadow: none;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;

  margin-top: 18px;
}

.info-card,
.social-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  box-shadow: 0 14px 40px rgba(6, 18, 45, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.info-card {
  padding: 20px 22px;
}

.info-label {
  margin-bottom: 7px;
  color: var(--pg-accent);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info-title {
  margin: 0 0 8px;
  color: var(--pg-navy);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.12;
}

.info-description {
  margin: 0;
  color: rgba(8, 17, 38, .72);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.55;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px;
}

.social-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(8, 17, 38, .08);
  border-radius: 14px;

  background: rgba(255,255,255,.84);
  text-decoration: none;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.social-card a:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 18, 45, .12);
}

.social-card img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-left {
  position: fixed;
  top: 50%;
  left: 14px;
  z-index: 40;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 8px;
  border: 1px solid rgba(8, 17, 38, .08);
  border-radius: 18px;

  background: rgba(255, 255, 255, .80);
  box-shadow: 0 18px 40px rgba(6, 18, 45, .14);

  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.social-left a {
  display: flex;
}

.social-left img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  transition: transform .12s ease, opacity .12s ease;
}

.social-left a:hover img {
  transform: scale(1.08);
}

.footer-note {
  margin: 24px auto 0;
  text-align: center;

  color: rgba(8, 17, 38, .58);
  font-size: 13px;
  line-height: 1.45;
}

@media (min-width: 1600px) {
  :root {
    --page-max: 1440px;
  }

  .page {
    padding-top: 36px;
  }
}

@media (max-width: 980px) {
  .page {
    padding: 22px 16px 86px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .header-actions {
    display: none;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-name {
    font-size: 23px;
  }

  .hero {
    gap: 16px;
    margin-bottom: 22px;
  }

  .player-card {
    padding: 7px;
    border-radius: 22px;
  }

  .player-frame,
  video-skin {
    border-radius: 17px;
  }

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

  .social-card {
    display: none;
  }

  .social-left {
    top: auto;
    left: 50%;
    bottom: 14px;

    flex-direction: row;

    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.94) 48%, rgba(255,255,255,.98)),
      radial-gradient(circle at 50% 0%, rgba(23,66,143,.20), transparent 42%),
      url("/bg.jpg") center top / cover fixed no-repeat;
  }

  .page {
    padding: 18px 10px 86px;
  }

  .page-header {
    justify-content: center;
    text-align: center;
  }

  .brand-link {
    flex-direction: column;
    gap: 8px;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
  }

  .brand-name {
    font-size: 24px;
    line-height: 1.08;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-note {
    font-size: 15px;
  }

  .player-card {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 20px;
  }

  .player-frame,
  video-skin {
    border-radius: 15px;
  }

  .stream-overlay-card {
    max-width: 88%;
    padding: 15px 16px;
  }

  .stream-overlay-title {
    font-size: 19px;
  }

  .stream-overlay-subtitle,
  .stream-overlay-description {
    font-size: 13px;
  }

  .v10-live-badge {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .info-card {
    padding: 18px;
    border-radius: 18px;
  }

  .info-title {
    font-size: 23px;
  }

  .info-description {
    font-size: 15px;
  }

  .social-left {
    gap: 10px;
    padding: 7px 9px;
    border-radius: 16px;
  }

  .social-left img {
    width: 31px;
    height: 31px;
  }
}

@media (pointer: coarse) and (min-width: 900px) {
  .site-link,
  .social-card a,
  .social-left img {
    min-width: 48px;
    min-height: 48px;
  }
}

/* ===== page2 polish: меньше дублей, спокойнее размеры ===== */

.page {
  padding-top: 26px;
}

.page-header {
  margin-bottom: 24px;
}

.brand-logo {
  width: 54px;
  height: 54px;
}

.brand-name {
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: .13em;
}

.brand-subtitle {
  color: rgba(8, 17, 38, .78);
  font-size: 13px;
  font-weight: 720;
}

.hero {
  gap: 11px;
  margin-bottom: 24px;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: .20em;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero-note {
  max-width: 600px;
  margin-top: -2px;
  color: rgba(8, 17, 38, .62);
  font-size: clamp(15px, 1.35vw, 18px);
}

.player-card {
  margin-top: 4px;
}

.info-grid {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.social-card {
  display: none !important;
}

.info-card {
  padding: 18px 22px;
}

.info-label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .16em;
}

.info-title {
  margin-bottom: 6px;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.12;
}

.info-description {
  font-size: 15px;
}

.footer-note {
  margin-top: 22px;
}

@media (min-width: 1400px) {
  .player-card {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .info-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 980px) {
  .page-header {
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(32px, 7vw, 48px);
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 16px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .brand-name {
    font-size: 23px;
    letter-spacing: .105em;
  }

  .hero {
    gap: 9px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .hero-note {
    max-width: 320px;
    font-size: 14px;
  }

  .info-card {
    padding: 16px;
  }

  .footer-note {
    max-width: 330px;
  }
}

/* ===== page3 balance: бренд крупнее, hero спокойнее, рамка плеера тоньше ===== */

.page-header {
  margin-bottom: 28px;
}

.brand-link {
  gap: 16px;
}

.brand-logo {
  width: 68px;
  height: 68px;
}

.brand-name {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: .98;
  letter-spacing: .12em;
  font-weight: 780;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(8, 17, 38, .82);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 740;
  letter-spacing: .035em;
}

.hero {
  gap: 10px;
  margin-bottom: 24px;
}

.hero-kicker {
  color: var(--pg-accent);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: .22em;
}

.hero-title {
  font-size: clamp(34px, 3.7vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-note {
  max-width: 650px;
  color: rgba(8, 17, 38, .64);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 560;
}

.player-card {
  max-width: 1220px;
  padding: 7px;
  border-radius: 20px;
}

.player-frame,
video-skin {
  border-radius: 14px;
}

.player-card::before {
  border-radius: 20px;
}

.info-grid {
  max-width: 1220px;
}

.social-left {
  gap: 13px;
  padding: 10px;
  border-radius: 20px;
}

.social-left img {
  width: 36px;
  height: 36px;
}

.social-left a {
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1500px) {
  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .brand-name {
    font-size: 44px;
  }

  .hero-title {
    font-size: 50px;
  }
}

@media (max-width: 980px) {
  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: clamp(26px, 5vw, 34px);
  }

  .brand-subtitle {
    font-size: 15px;
  }

  .hero-kicker {
    font-size: 14px;
  }

  .hero-title {
    font-size: clamp(31px, 6vw, 42px);
  }

  .player-card {
    padding: 6px;
    border-radius: 18px;
  }

  .player-frame,
  video-skin {
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .page-header {
    margin-bottom: 20px;
  }

  .brand-logo {
    width: 70px;
    height: 70px;
  }

  .brand-name {
    font-size: 25px;
    letter-spacing: .09em;
  }

  .brand-subtitle {
    font-size: 15px;
  }

  .hero {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-kicker {
    font-size: 13px;
    letter-spacing: .18em;
  }

  .hero-title {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .hero-note {
    font-size: 14px;
  }

  .player-card {
    padding: 5px;
    border-radius: 17px;
  }

  .player-frame,
  video-skin {
    border-radius: 12px;
  }

  .social-left {
    gap: 11px;
    padding: 8px 11px;
  }

  .social-left img,
  .social-left a {
    width: 32px;
    height: 32px;
  }
}

/* ===== page4 brand + Gilroy alignment ===== */

body {
  font-family:
    "Gilroy",
    "Manrope",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.brand-link--wordmark {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-wordmark {
  display: block;
  width: clamp(260px, 24vw, 380px);
  height: auto;
  max-height: 82px;
  object-fit: contain;

  filter: drop-shadow(0 10px 24px rgba(6, 18, 45, .16));
}

.brand-subtitle--standalone {
  display: inline-flex;
  align-items: center;

  min-height: 34px;
  padding: 0 13px;

  border-left: 1px solid rgba(8, 17, 38, .18);

  color: rgba(8, 17, 38, .78);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Старые brand-name/brand-logo больше не используются, но оставляем их без влияния. */
.brand-name,
.brand-logo,
.brand-text {
  pointer-events: none;
}

.hero-title {
  font-size: clamp(32px, 3.35vw, 44px);
  font-weight: 800;
}

.hero-kicker {
  font-size: clamp(15px, 1.1vw, 18px);
}

.player-card {
  padding: 6px;
  border-radius: 18px;
}

.player-card::before {
  border-radius: 18px;
}

.player-frame,
video-skin {
  border-radius: 12px;
}

@media (max-width: 980px) {
  .brand-link--wordmark {
    gap: 12px;
  }

  .brand-wordmark {
    width: clamp(230px, 42vw, 330px);
    max-height: 76px;
  }

  .brand-subtitle--standalone {
    font-size: 14px;
    padding-left: 11px;
  }
}

@media (max-width: 640px) {
  .brand-link--wordmark {
    flex-direction: column;
    gap: 8px;
  }

  .brand-wordmark {
    width: min(82vw, 330px);
    max-height: 84px;
  }

  .brand-subtitle--standalone {
    min-height: auto;
    padding: 0;

    border-left: 0;

    font-size: 15px;
    text-align: center;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-title {
    font-size: clamp(27px, 8vw, 36px);
  }
}
