:root {
  --ink: #29243c;
  --ink-soft: #6b6173;
  --paper: #fff3e8;
  --paper-bright: #fffaf4;
  --blue: #526bd8;
  --blue-light: #dce8ff;
  --red: #c83e50;
  --red-dark: #b63145;
  --red-light: #fee0d6;
  --yellow-light: #fff0b8;
  --line: rgba(65, 51, 76, 0.13);
  --shadow: 0 24px 60px rgba(82, 74, 100, 0.13);
  --font-display: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(231, 91, 104, 0.13), transparent 27rem),
    radial-gradient(circle at 6% 36%, rgba(82, 107, 216, 0.12), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 18px rgba(82, 74, 100, 0.16);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.header-action {
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

main {
  padding: 10px 0 38px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
  padding: clamp(50px, 8vw, 94px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 7% 12%, rgba(254, 224, 214, 0.66), transparent 18rem),
    linear-gradient(115deg, rgba(255, 255, 255, 0.46), transparent 58%),
    var(--paper-bright);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 6.8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.87;
}

h1 em {
  color: var(--blue);
  font-weight: 800;
}

.hero-description {
  max-width: 590px;
  margin: 30px 0 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.hero-actions > p,
.final-action > div:last-child > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.primary-action {
  display: inline-flex;
  min-width: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 19px;
  border-radius: 16px;
  color: #fff;
  background: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.next-card {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(82, 107, 216, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(220, 232, 255, 0.9), rgba(255, 250, 244, 0.94) 68%),
    var(--paper-bright);
  box-shadow: 0 18px 45px rgba(82, 74, 100, 0.1);
}

.next-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -54px;
  top: -54px;
  border-radius: 50%;
  background: var(--red-light);
}

.next-card-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.next-card-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(231, 91, 104, 0.14);
}

.next-card h2 {
  position: relative;
  z-index: 1;
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.session-description {
  position: relative;
  z-index: 1;
  min-height: 48px;
  margin: 0 0 27px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.session-time {
  display: grid;
  gap: 3px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.session-time strong {
  font-size: 1.02rem;
}

.session-time span,
.kyiv-time {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.starts-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.starts-in > span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.starts-in strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  letter-spacing: -0.045em;
}

.countdown-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
}

.countdown-number {
  min-width: 1.04em;
  text-align: right;
}

.countdown-part:first-child .countdown-number {
  min-width: 0;
}

.countdown-unit {
  color: var(--ink-soft);
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0;
}

.kyiv-time {
  margin: 7px 0 0;
  text-align: right;
}

.schedule {
  margin-top: 28px;
  padding: clamp(44px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 12px clamp(28px, 7vw, 100px);
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2,
.inside h2,
.final-action h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  list-style: none;
}

.week-day {
  min-height: 230px;
  padding: 17px 13px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.week-day:first-child {
  border-left: 0;
}

.week-day[data-state="today"] {
  color: #fff;
  background: var(--blue);
}

.week-day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 25px;
}

.week-day-heading strong {
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.week-day-heading time {
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.week-day[data-state="today"] .week-day-heading time {
  color: #fff;
}

.session-chip {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 13px;
  color: var(--ink);
  background: var(--blue-light);
}

.session-chip + .session-chip {
  margin-top: 8px;
}

.session-chip[data-type="conversation"] {
  background: var(--red-light);
}

.session-chip[data-type="quiz"] {
  background: var(--yellow-light);
}

.session-chip strong {
  font-size: 0.67rem;
  line-height: 1.25;
}

.session-chip time {
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.empty-day {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.week-day[data-state="today"] .empty-day {
  color: #fff;
}

.schedule-loading {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.schedule-footer > p,
.noscript-schedule {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.schedule-footer .primary-action {
  min-width: 235px;
}

.inside {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(40px, 8vw, 110px);
  margin-top: 28px;
  padding: clamp(44px, 7vw, 78px);
  border-radius: 30px;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.inside .eyebrow {
  color: #fff;
}

.inside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inside li {
  display: grid;
  gap: 5px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.inside li:first-child {
  padding-top: 0;
}

.inside li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inside li strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.inside li span {
  color: #fff;
  font-size: 0.78rem;
}

.final-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-top: 28px;
  padding: clamp(38px, 6vw, 66px);
  border: 1px solid rgba(231, 91, 104, 0.18);
  border-radius: 30px;
  background: var(--red-light);
}

.final-action .eyebrow {
  color: var(--red-dark);
}

.final-action > div:last-child {
  display: grid;
  justify-items: end;
  gap: 9px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 32px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.header-action:hover,
footer a:hover {
  color: var(--red);
}

.brand:focus-visible,
.header-action:focus-visible,
.primary-action:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
  }

  .section-heading,
  .inside {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    max-width: 560px;
  }

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

  .week-day {
    min-height: 185px;
    border-top: 1px solid var(--line);
  }

  .week-day:nth-child(odd) {
    border-left: 0;
  }

  .week-day:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 580px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small,
  .header-action span {
    display: none;
  }

  .header-action {
    font-size: 0.75rem;
  }

  main {
    padding-top: 1px;
  }

  .hero,
  .schedule,
  .inside,
  .final-action {
    border-radius: 21px;
  }

  .hero {
    gap: 34px;
    padding: 37px 24px 24px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero-description {
    margin-top: 24px;
    font-size: 0.94rem;
  }

  .primary-action {
    width: 100%;
    min-width: 0;
  }

  .next-card {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .next-card h2 {
    font-size: 2.3rem;
  }

  .schedule,
  .inside,
  .final-action {
    margin-top: 16px;
    padding: 34px 24px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading h2,
  .inside h2,
  .final-action h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

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

  .week-day {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .week-day:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .week-day-heading {
    margin-bottom: 14px;
  }

  .schedule-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .inside {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .final-action {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .final-action > div:last-child {
    justify-items: stretch;
  }

  footer {
    flex-direction: column;
    gap: 7px;
    padding-bottom: 22px;
  }
}

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

  .primary-action {
    transition: none;
  }
}
