:root {
  --red: #a50f1d;
  --red-bright: #d31c2e;
  --red-deep: #5a0812;
  --gold: #dca72d;
  --gold-light: #f5d57a;
  --cream: #fff9ef;
  --paper: #f4ead9;
  --ink: #281a18;
  --muted: #756660;
  --line: rgba(113, 72, 40, .16);
  --shadow: 0 24px 70px rgba(83, 31, 15, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
button, a { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.page-glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 88% 7%, rgba(227,171,46,.22), transparent 27%), radial-gradient(circle at 8% 46%, rgba(186,21,39,.11), transparent 29%), linear-gradient(180deg,#fffaf2,#f5ead8 74%,#fffaf2); }
.page-glow::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(90deg, transparent 49.8%, rgba(119,72,36,.12) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, rgba(119,72,36,.09) 50%, transparent 50.2%); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 60%); }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 82px; display: flex; align-items: center; gap: clamp(20px,3vw,48px); padding: 12px max(24px,calc((100vw - 1440px)/2)); border-bottom: 1px solid rgba(111,63,34,.12); background: rgba(255,249,239,.89); backdrop-filter: blur(18px); }
.city-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.coat { width: 48px; height: 56px; overflow: hidden; border-radius: 9px 9px 16px 16px; box-shadow: 0 7px 18px rgba(148,11,27,.22); }
.coat img { width: 100%; height: 100%; object-fit: cover; }
.city-brand > span:last-child { display: grid; gap: 4px; }
.city-brand b { color: var(--red); font-size: .82rem; letter-spacing: .13em; }
.city-brand small { color: var(--muted); font-size: .76rem; letter-spacing: .04em; }
.header-nav { display: flex; gap: 22px; }
.header-nav a { padding: 8px 0; color: #69524a; font-size: .84rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.header-nav a:hover { color: var(--red); border-color: var(--red); }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .1em; }
.header-status i { width: 8px; height: 8px; border-radius: 50%; background: #e32635; box-shadow: 0 0 0 6px rgba(227,38,53,.1); animation: pulse 1.8s infinite; }
.header-status.waiting { color: var(--muted); }
.header-status.waiting i { background: #af9c8d; box-shadow: none; animation: none; }
#kyzylClock { color: var(--muted); font-size: .76rem; font-weight: 650; letter-spacing: .08em; }

main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 510px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); align-items: center; gap: clamp(30px,7vw,110px); padding: clamp(52px,7vw,104px) 3%; position: relative; }
.hero::before { content: ""; position: absolute; left: -18vw; right: -18vw; bottom: 0; height: 1px; background: linear-gradient(90deg,transparent,var(--gold),transparent); opacity: .38; }
.hero-copy { position: relative; z-index: 1; }
.kicker { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .22em; }
.hero h1 { margin: 0; max-width: 820px; color: var(--red-deep); font-family: Georgia,"Times New Roman",serif; font-size: clamp(3.7rem,7.8vw,8.4rem); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.hero h1 span { display: inline-block; margin-bottom: .05em; color: var(--red); font-family: "Segoe UI Variable","Segoe UI",Arial,sans-serif; font-size: .47em; font-weight: 900; line-height: 1.05; letter-spacing: -.025em; text-transform: uppercase; }
.hero-lead { max-width: 600px; margin: 28px 0; color: #5c4942; font-size: clamp(1.06rem,1.5vw,1.28rem); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.54); color: var(--muted); font-size: .83rem; }
.hero-meta b { color: var(--red); font-size: 1rem; }
.jubilee-emblem { position: relative; display: grid; justify-items: center; }
.emblem-ring { width: min(460px,36vw); aspect-ratio: 1; padding: 8px; border-radius: 50%; background: linear-gradient(145deg,#f6d16e,#9a6714 47%,#ffebae); box-shadow: 0 38px 90px rgba(120,67,18,.24), 0 0 0 18px rgba(204,148,35,.08); animation: float 7s ease-in-out infinite; }
.emblem-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.jubilee-emblem > span { margin-top: 27px; color: #865b25; font-size: .75rem; font-weight: 850; letter-spacing: .25em; }

.broadcast-section { padding: clamp(60px,7vw,100px) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--red-deep); font-family: Georgia,"Times New Roman",serif; font-size: clamp(2rem,4vw,4rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.broadcast-date { display: grid; justify-items: end; gap: 5px; padding: 13px 17px; border-right: 3px solid var(--red); }
.broadcast-date b { color: var(--red); font-size: .85rem; letter-spacing: .15em; }
.broadcast-date span { color: var(--muted); font-size: .9rem; }
.broadcast-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; }
.stage-column { min-width: 0; }
.source-tabs { height: 48px; display: flex; align-items: flex-start; gap: 8px; }
.source-tabs button { height: 40px; display: flex; align-items: center; gap: 9px; padding: 5px 17px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.57); color: var(--muted); cursor: pointer; }
.source-tabs button span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(121,77,46,.08); font-size: .68rem; font-weight: 900; }
.source-tabs button b { font-size: .72rem; letter-spacing: .1em; }
.source-tabs button.active { color: #fff; border-color: var(--red); background: var(--red); box-shadow: 0 8px 24px rgba(153,15,31,.2); }
.source-tabs button.active span { color: var(--red); background: #fff; }
.video-stage { position: relative; overflow: hidden; aspect-ratio: 16/9; border: 1px solid rgba(255,231,166,.16); border-radius: 24px; background: #460811; box-shadow: var(--shadow); }
.video-placeholder[hidden], .video-embed[hidden] { display: none !important; }
.video-placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 5%; color: #fff8e9; text-align: center; isolation: isolate; background: radial-gradient(circle at 50% 37%,rgba(255,213,100,.24),transparent 23%), linear-gradient(145deg,#640a16,#a31223 55%,#620713); }
.video-placeholder::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .32; background: repeating-linear-gradient(135deg,transparent 0 34px,rgba(255,227,153,.12) 35px 36px); mask-image: radial-gradient(circle,#000,transparent 72%); }
.video-placeholder::after { content: "112"; position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%,-50%); color: transparent; font-family: Georgia,serif; font-size: clamp(8rem,22vw,22rem); -webkit-text-stroke: 1px rgba(255,224,144,.08); }
.placeholder-coat { width: clamp(48px,6vw,76px); max-height: 88px; object-fit: cover; border-radius: 8px 8px 22px 22px; box-shadow: 0 12px 30px rgba(47,0,7,.32); }
.placeholder-label { margin: 16px 0 4px; color: var(--gold-light); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
.countdown { color: #fff; font-size: clamp(2.3rem,5vw,5.6rem); font-weight: 280; font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1.05; }
.video-placeholder h3 { margin: 12px 0 5px; font-size: clamp(1rem,1.5vw,1.3rem); }
.video-placeholder p:last-child { margin: 0; color: rgba(255,244,218,.7); font-size: clamp(.78rem,1vw,.94rem); }
.video-embed, .video-embed iframe { width: 100%; height: 100%; border: 0; background: #000; }
.stage-corner { position: absolute; right: 16px; bottom: 14px; z-index: 4; display: flex; align-items: baseline; gap: 5px; color: rgba(255,232,173,.52); font-family: Georgia,serif; font-size: 1.6rem; }
.stage-corner small { font-family: "Segoe UI",sans-serif; font-size: .52rem; font-weight: 800; letter-spacing: .13em; }
.video-stage.has-stream .stage-corner { display: none; }

.platforms { display: flex; gap: 18px; align-items: center; margin-top: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.54); }
.platforms-brand { min-width: 210px; display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); }
.platforms-brand img { width: 42px; height: 42px; }
.platforms-brand span { display: grid; gap: 3px; }
.platforms-brand b { color: var(--red); font-size: .71rem; letter-spacing: .08em; }
.platforms-brand small { color: var(--muted); font-size: .67rem; }
.platforms nav { flex: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.platforms nav a { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 10px; text-decoration: none; }
.platforms nav a:hover { background: #fff; }
.platforms nav span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--red); font-size: .6rem; font-weight: 900; }
.platforms nav b { color: #5f4d46; font-size: .68rem; line-height: 1.2; }

.air-schedule { align-self: start; overflow: hidden; padding: 28px; border-radius: 24px; color: #fff7e8; background: linear-gradient(155deg,#8f0e1b,#5b0711); box-shadow: var(--shadow); }
.air-schedule .kicker { color: var(--gold-light); }
.air-schedule > h2 { margin: 0 0 22px; font-family: Georgia,serif; font-size: 2rem; font-weight: 500; line-height: 1.08; }
.air-card { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid rgba(255,230,170,.17); }
.air-card.current { margin: 0 -12px; padding: 20px 12px; border-radius: 14px; background: rgba(255,213,115,.12); }
.air-card time { color: var(--gold-light); font-size: 1.28rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.air-card time small { display: block; margin-top: 3px; color: rgba(255,242,213,.6); font-size: .68rem; }
.air-badge { color: #f4ce6a; font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.air-card h3 { margin: 7px 0; font-size: 1rem; line-height: 1.25; }
.air-card p { margin: 0; color: rgba(255,244,220,.66); font-size: .78rem; line-height: 1.48; }
.timezone { display: flex; align-items: center; gap: 7px; padding-top: 16px; border-top: 1px solid rgba(255,230,170,.17); color: rgba(255,244,220,.58); font-size: .68rem; }
.timezone i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.timezone b { margin-left: auto; color: var(--gold-light); }

.programme-section { padding: clamp(60px,7vw,100px) 0 110px; }
.programme-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.programme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.programme-card { min-height: 210px; display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.58); transition: transform .25s,box-shadow .25s,border-color .25s; }
.programme-card:hover { transform: translateY(-4px); border-color: rgba(165,15,29,.32); box-shadow: 0 20px 50px rgba(91,37,18,.1); }
.programme-card.featured { color: #fff9eb; border-color: transparent; background: linear-gradient(145deg,#af1322,#710a15); }
.card-time { color: var(--red); font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.featured .card-time { color: var(--gold-light); }
.card-place { margin: 2px 0 9px; color: #a77c33; font-size: .65rem; font-weight: 850; letter-spacing: .13em; line-height: 1.4; }
.featured .card-place { color: var(--gold-light); }
.programme-card h3 { margin: 0 0 9px; color: var(--red-deep); font-family: Georgia,serif; font-size: 1.3rem; line-height: 1.15; }
.featured h3 { color: #fff; }
.programme-card p,.programme-card li { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.featured li { color: rgba(255,247,229,.74); }
.programme-card p { margin: 0; }
.programme-card ul { margin: 0; padding-left: 17px; }
.programme-card.compact .card-time { font-size: .77rem; letter-spacing: .06em; }

.site-footer { min-height: 110px; display: flex; align-items: center; gap: 30px; padding: 24px max(24px,calc((100vw - 1440px)/2)); color: rgba(255,248,230,.72); background: #5f0812; }
.site-footer > div { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.site-footer img { width: 38px; height: 46px; object-fit: cover; border-radius: 6px 6px 13px 13px; }
.site-footer span { display: grid; gap: 3px; }
.site-footer b { color: #fff; font-size: .75rem; letter-spacing: .12em; }
.site-footer small,.site-footer p,.site-footer a { font-size: .73rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold-light); text-decoration: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(227,38,53,0); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(.4deg); } }

@media (max-width: 1120px) {
  #kyzylClock,.header-nav { display: none; }
  .hero { grid-template-columns: 1fr 330px; }
  .emblem-ring { width: 330px; }
  .broadcast-layout { grid-template-columns: 1fr 320px; }
  .platforms { align-items: flex-start; }
  .platforms nav { grid-template-columns: repeat(2,1fr); }
  .programme-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .site-header { min-height: 70px; padding: 9px 16px; }
  .city-brand b { font-size: .72rem; }
  .city-brand small { font-size: .68rem; }
  .coat { width: 40px; height: 48px; }
  .header-status { font-size: .65rem; }
  main { width: min(100% - 28px,720px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding: 50px 0 62px; text-align: center; }
  .hero h1 { margin: auto; font-size: clamp(4rem,18vw,7rem); }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
  .jubilee-emblem { grid-row: 1; }
  .emblem-ring { width: min(70vw,340px); }
  .section-heading { align-items: flex-start; }
  .broadcast-layout { grid-template-columns: 1fr; }
  .air-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .air-schedule > .kicker,.air-schedule > h2,.timezone { grid-column: 1/-1; }
  .platforms { flex-direction: column; }
  .platforms-brand { width: 100%; border: 0; padding: 0; }
  .platforms nav { width: 100%; }
}

@media (max-width: 560px) {
  .city-brand small { display: none; }
  .header-status span { display: none; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(3.7rem,21vw,6.3rem); }
  .hero-meta span { min-height: 43px; padding: 7px 12px; font-size: .74rem; }
  .section-heading { display: grid; gap: 18px; }
  .broadcast-date { justify-items: start; border-right: 0; border-left: 3px solid var(--red); }
  .video-stage { border-radius: 16px; }
  .placeholder-coat { width: 38px; max-height: 50px; }
  .placeholder-label { margin-top: 10px; font-size: .57rem; }
  .countdown { font-size: clamp(1.9rem,10vw,3.2rem); }
  .video-placeholder h3 { margin-top: 6px; font-size: .76rem; }
  .video-placeholder p:last-child { display: none; }
  .stage-corner { right: 10px; bottom: 8px; font-size: 1rem; }
  .platforms nav { grid-template-columns: 1fr 1fr; }
  .air-schedule { display: block; padding: 23px 19px; }
  .air-schedule > h2 { font-size: 1.65rem; }
  .programme-grid { grid-template-columns: 1fr; }
  .programme-card { min-height: 0; padding: 20px; grid-template-columns: 68px 1fr; }
  .programme-heading > p { font-size: .9rem; }
  .site-footer { flex-wrap: wrap; gap: 14px 24px; }
  .site-footer p { order: 3; width: 100%; }
}

/* Компактный первый экран: трансляция и расписание помещаются по высоте. */
@media (min-width: 821px) and (min-height: 700px) {
  .site-header { min-height: 70px; height: 70px; padding-top: 8px; padding-bottom: 8px; }
  .coat { width: 46px; height: 46px; }

  .hero {
    min-height: 0;
    height: clamp(150px, 18svh, 180px);
    grid-template-columns: minmax(0, 1fr) clamp(118px, 15svh, 150px);
    gap: 28px;
    padding: clamp(12px, 2vh, 22px) 3%;
  }
  .hero-copy { align-self: center; }
  .hero h1 { font-size: clamp(3rem, 6.5vh, 4rem); line-height: .98; }
  .hero-lead, .hero-meta { display: none; }
  .hero .kicker { margin-bottom: 6px; font-size: .68rem; }
  .emblem-ring { width: clamp(108px, 14vh, 140px); padding: 5px; box-shadow: 0 20px 52px rgba(120,67,18,.2), 0 0 0 10px rgba(204,148,35,.06); }
  .jubilee-emblem > span { margin-top: 8px; font-size: .58rem; letter-spacing: .16em; }

  .broadcast-section { padding: clamp(10px, 1.5vh, 18px) 0 24px; }
  .section-heading { margin-bottom: 10px; }
  .section-heading .kicker { margin-bottom: 5px; font-size: .68rem; }
  .section-heading h2 { font-size: clamp(1.75rem, 4vh, 2.7rem); }
  .broadcast-date { gap: 2px; padding: 7px 12px; }
  .broadcast-date b { font-size: .72rem; }
  .broadcast-date span { font-size: .78rem; }

  .broadcast-layout { align-items: stretch; }
  .source-tabs { height: 40px; }
  .source-tabs button { height: 34px; padding-top: 3px; padding-bottom: 3px; }
  .source-tabs button span { width: 24px; height: 24px; }
  .video-stage { height: clamp(270px, calc(100svh - 470px), 570px); aspect-ratio: auto; }
  .platforms { min-height: 62px; margin-top: 10px; padding-top: 9px; padding-bottom: 9px; }
  .platforms-brand img { width: 36px; height: 36px; }

  .air-schedule { align-self: stretch; display: flex; flex-direction: column; margin-top: 40px; padding: clamp(18px, 2.2vh, 24px); }
  .air-schedule > h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 2.7vh, 1.9rem); }
  .air-card { flex: 1 1 0; align-content: center; padding: clamp(12px, 1.8vh, 18px) 0; }
  .air-card h3 { margin: 5px 0; font-size: .91rem; }
  .air-card p { font-size: .72rem; line-height: 1.38; }
  .timezone { margin-top: auto; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0,1fr) 120px; gap: 16px; padding: 28px 0 34px; text-align: left; }
  .jubilee-emblem { grid-row: auto; grid-column: 2; }
  .emblem-ring { width: 120px; }
  .jubilee-emblem > span { display: none; }
  .hero h1 { margin: 0; font-size: clamp(3rem, 12vw, 5rem); }
  .hero-lead { margin: 14px 0; font-size: .94rem; }
  .hero-meta { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero { grid-template-columns: minmax(0,1fr) 92px; padding: 22px 0 28px; }
  .emblem-ring { width: 92px; padding: 4px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-lead { margin: 10px 0; font-size: .84rem; }
  .hero-meta span:nth-child(3) { display: none; }
  .hero-meta span { min-height: 36px; padding: 5px 9px; }
}

.coat.channel-mark { width: 48px; height: 48px; flex: 0 0 48px; overflow: visible; border-radius: 50%; background: #203266; box-shadow: 0 7px 18px rgba(21,40,91,.22); }
.coat.channel-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; } }
