:root {
  --bg: #f6f3ee;
  --bg-white: #fffcf9;
  --ink: #1c1917;
  --muted: #5f5852;
  --line: #e4ddd3;
  --accent: #8f3418;
  --accent-hover: #732814;
  --on-accent: #fff8f4;
  --soft: #f6e6dc;
  --radius: 20px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header: 72px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.host-name,
.step-num,
.logo,
.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

p {
  margin-bottom: 0.9rem;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: #f0d2c4;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--bg-white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

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

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.apply-wrap {
  width: min(740px, calc(100% - 40px));
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.header-inner {
  height: 100%;
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.88rem, 3.5vw, 1.08rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.langs {
  display: flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-white);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-accent);
}

.hero {
  padding: 48px 0 72px;
}

.hero h1 {
  max-width: 11em;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 8vw, 5.35rem);
  line-height: 0.98;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--on-accent);
}

.band {
  background: var(--bg-white);
}

section {
  padding: 72px 0;
}

.hero {
  padding-top: 48px;
}

#about p,
.step p,
.host-role {
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 28px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
}

.host-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}

.host-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.host-name {
  margin: 10px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.host-role {
  margin: 0;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.channel-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: min(100%, 220px);
  padding: 12px 14px;
  text-decoration: none;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.channel-list a:hover {
  border-color: var(--accent);
}

.ch-name {
  font-weight: 600;
}

.ch-desc {
  color: var(--muted);
  font-size: 0.92rem;
}

.player {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #221e1b;
  border: 1px solid var(--line);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.now-playing {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.now-playing strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.video-grid li {
  min-width: 0;
}

.thumb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.thumb-frame {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #ece7df;
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb[aria-current="true"] .thumb-frame {
  border-color: var(--accent);
}

.thumb[aria-current="true"] .thumb-title {
  color: var(--accent);
}

.thumb-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.thumb-title {
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

.episodes {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.episode {
  display: grid;
  gap: 10px;
}

.episode-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.episode-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.episode-lang {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.frame {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #ece7df;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame:hover {
  border-color: var(--accent);
}

.frame[aria-current="true"] {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .frames {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.step {
  min-width: 0;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step p:last-child {
  margin-bottom: 0;
}

.step-num {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.form-card {
  margin-top: 28px;
  padding: 22px 18px 24px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(60, 40, 20, 0.05);
}

.field {
  margin-bottom: 20px;
}

.q-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.q-num {
  flex: none;
  padding-top: 0.2em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.req {
  margin-left: 0.15em;
  color: var(--accent);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  line-height: 1.45;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #be123c;
}

.field-error {
  margin: 6px 0 0;
  color: #9f1239;
  font-size: 0.9rem;
}

.field-error:empty {
  display: none;
}

::placeholder {
  color: #a39c94;
}

.submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

.submit-btn:disabled {
  opacity: 0.72;
  cursor: progress;
}

.form-status {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.45;
}

.form-status.is-ok {
  background: #e5f2e8;
  color: #14532d;
}

.form-status.is-err {
  background: #fbeaea;
  color: #9f1239;
}

.form-status.is-busy {
  background: var(--soft);
  color: var(--accent-hover);
}

.form-status:not([hidden]) {
  margin-top: 16px;
}

#form-fields[hidden] + .form-status {
  margin-top: 0;
}

.noscript-wrap {
  padding-top: 16px;
}

.noscript {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent-hover);
}

footer {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-brand {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.footer-tagline,
.footer-copy,
.footer-label {
  margin: 0;
  color: var(--muted);
}

.footer-label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .about-grid {
    grid-template-columns: 1.45fr 0.7fr;
    gap: 48px;
    align-items: start;
  }

  .form-card {
    padding: 36px 36px 32px;
  }

  .submit-btn {
    width: auto;
    min-width: 220px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  section {
    padding: 104px 0;
  }

  .hero {
    padding: 72px 0 120px;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 16px;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (hover: hover) {
  .thumb:hover .thumb-frame {
    transform: translateY(-2px);
  }

  .thumb-frame {
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
}

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

  .thumb-frame {
    transition: none;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 0.92rem;
  }

  .lang-btn {
    padding: 8px 9px;
  }

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