/* Общие контейнеры, поверхности, иконки и Golos Text подключены из макета вебинара. */
:root {
  --type-heading: 52px;
  --type-section: 44px;
  --type-card: 24px;
  --type-body: 18px;
  --type-intro: 19px;
  --type-action: 17px;
  --type-label: 16px;
  --type-note: 14px;
}

body { font-size: var(--type-body); }
.hero__title { font-size: var(--type-heading); }
.h2 { font-size: var(--type-section); }
.h3 { font-size: var(--type-card); }
.btn, .btn--lg, .field__input { font-size: var(--type-action); }
.btn--sm, .tag, .header__city, .facts, .hero__eyebrow, .form-card label { font-size: var(--type-label); }
.hero__lead, .intro { font-size: var(--type-intro); }
.step p, .value-card__text p, .role p, .qa__a { font-size: var(--type-body); }
.qa__q { font-size: var(--type-card); }

.skip { position: fixed; top: -8em; left: 16px; z-index: 30; padding: 12px 16px; background: white; }
.skip:focus { top: 8px; }
:where(a, summary, button):focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.header { box-shadow: 0 1px 0 var(--line); }
.header .btn { margin-left: auto; }
.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
.hero__title em { white-space: nowrap; }
.hero__media img { height: auto; aspect-ratio: 4 / 5; max-height: 600px; object-position: center; }
.hero .facts { flex-direction: column; gap: 12px; margin-bottom: 32px; }
.hero__lead { max-width: 34em; }
.btn--lg { height: 60px; }
.h2 .u { color: inherit; }
.dark .h2 .u { color: var(--orange); }
.h2 .u::after { opacity: .85; }
.value-card { grid-template-columns: minmax(0, 1fr) 134px; padding: 32px; }
.value-card__art { width: 134px; }
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.step {
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.step:nth-child(2), .step:nth-child(3) { background: var(--cream); }
.step__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(80px, 8vw, 118px);
  align-content: start;
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
}
.step__number {
  align-self: end;
  color: var(--orange);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step__art {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  background: url("preparation-stickers.webp") no-repeat 0 0 / 200% 200%;
}
.step__art--notebook { background-position: 100% 0; }
.step__art--exam { background-position: 0 100%; }
.step__art--review { background-position: 100% 100%; }
.step p { margin-top: 16px; color: var(--body); }

.intro { margin-top: 24px; color: var(--on-dark); }
.subjects::before {
  background:
    radial-gradient(ellipse at 97% 1%, rgb(233 110 28 / 38%), transparent 45%),
    radial-gradient(ellipse at 4% 105%, rgb(195 78 30 / 30%), transparent 46%);
}
.subject-grid {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 3.5vw, 56px);
}
.subject-guide > .h3 { margin-bottom: 22px; text-align: center; }
.notebook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px 6px 9px;
  background: linear-gradient(110deg, #feab55, #cd661f 49%, #97461a 50%, #fe9a42 53%, #d86c25);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgb(0 0 0 / 28%);
}
.notebook__page {
  --fold: to left;
  --margin-line: 17px;
  padding: 24px clamp(24px, 2.2vw, 34px) 36px;
  border-radius: 19px 3px 4px 17px;
  background-color: #fff6e5;
  background-image:
    linear-gradient(var(--fold), rgb(92 56 28 / 17%), transparent 7%),
    linear-gradient(to right, transparent var(--margin-line), rgb(189 108 92 / 28%) var(--margin-line) calc(var(--margin-line) + 1px), transparent 0),
    repeating-linear-gradient(transparent 0 25px, rgb(91 129 156 / 13%) 25px 26px);
  color: var(--ink);
  box-shadow: 0 2px #ddc6a8, 0 4px #f4e2c6;
}
.notebook__page + .notebook__page {
  --fold: to right;
  --margin-line: calc(100% - 17px);
  border-radius: 3px 19px 17px 4px;
}
.notebook__page img {
  display: block;
  width: min(100%, 228px);
  height: auto;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
.notebook__page .h3 { margin: 0; color: #ac470b; }
.notebook__page p { margin-top: 12px; font-size: var(--type-body); }
@media (max-width: 1099px) {
  .subject-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .subjects .intro { max-width: 66ch; }
}
@media (max-width: 639px) {
  .subject-guide > .h3 { text-align: left; margin-bottom: 16px; }
  .notebook { grid-template-columns: minmax(0, 1fr); gap: 6px; border-radius: 18px; }
  .notebook__page, .notebook__page + .notebook__page {
    --fold: to right;
    --margin-line: 13px;
    padding: 20px 22px 24px;
    border-radius: 12px;
  }
  .notebook__page img { width: 156px; margin-bottom: 14px; }
}
.contacts {
  background: radial-gradient(ellipse at 4% 100%, #ffead4, transparent 58%), var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(290px, .62fr) minmax(0, 1fr);
  padding: 8px;
  background: var(--white);
  border: 1px solid #e9ddd0;
  border-radius: var(--radius-card);
}
.contact-info { padding: clamp(20px, 3vw, 44px); }
.contact-info > p { margin-top: 12px; color: var(--body); }
.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 20px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.contact-details dt { color: var(--body); }
.contact-details dd { margin: 0; }
.contact-details a, .footer a { text-underline-offset: 4px; }
.contact-details a { white-space: nowrap; }
.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: calc(var(--radius-card) - 6px);
  background: #eeeae3;
}
.register {
  background: radial-gradient(ellipse at 0% 105%, rgb(253 126 20 / 22%), transparent 36%), var(--dark);
}
.register::before {
  left: auto;
  width: min(100%, 1500px);
  background: url("../maximum-webinar-2027/assets/img/final-orbit.webp") right center / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 50%);
}
.form-card { display: grid; gap: 8px; }
.form-card label { font-weight: 500; }
.form-card input + label { margin-top: 10px; }
.form-card .fine, .status { font-size: var(--type-note); color: var(--body); }
.form-card .fine { margin-top: 4px; }
.status:empty { display: none; }
.status[data-state="error"] { color: var(--error); }
.footer__city { color: var(--ink); }

@media (max-width: 1279px) {
  :root { --type-heading: 46px; }
  .hero__grid { gap: 44px; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  :root { --type-heading: 44px; --type-section: 38px; }
  .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .hero__media img { min-height: 420px; }
  .value-card { display: flex; flex-direction: column; padding: 24px; }
  .value-card__art { order: -1; }
}
@media (max-width: 719px) {
  .register::before {
    mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 12%) 28%, #000 76%);
  }
  :root {
    --type-heading: 30px;
    --type-section: 28px;
    --type-card: 20px;
    --type-body: 16px;
    --type-intro: 16px;
    --type-action: 16px;
    --type-label: 14px;
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step { padding: 22px; border-radius: 20px; }
  .step:nth-child(odd) { background: var(--white); }
  .step:nth-child(even) { background: var(--cream); }
  .step__head { grid-template-columns: minmax(0, 1fr) 76px; }
  .step__number { font-size: 28px; }
  .hero__eyebrow { flex-direction: row; align-items: center; }
  .hero .facts { margin-bottom: 0; }
  .hero__media { width: 100%; max-width: none; }
  .hero__media img { height: auto; max-height: 440px; aspect-ratio: 4 / 3; object-position: 50% 44%; }
  .value-card { grid-template-columns: minmax(0,1fr); padding: 24px; }
  .value-card__art { width: 112px; }
  .family__media { width: 100%; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-map { height: 320px; min-height: 0; }
  .contact-details { grid-template-columns: 1fr; gap: 4px; }
  .contact-details dd + dt { margin-top: 8px; }
  .intro { margin-top: 18px; }
  .footer__inner { flex-direction: row; align-items: center; gap: 16px; }
  .footer__org { display: none; }
  .footer__city { margin-left: auto; }
}
@media (max-width: 359px) {
  :root { --type-heading: 27px; --type-section: 26px; }
}

@media (min-width: 720px) and (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
