/* ===== Ok English — конференция «Дети и будущее» =====
   Фирменные цвета из брендбука:
   бирюза #63B0BE, жёлтый #FFFEA4, белый, чёрный, фон айвори  */

:root {
  --teal: #63B0BE;
  --teal-dark: #4d97a5;
  --teal-deep: #3d7d8a;
  --yellow: #FFFEA4;
  --ivory: #F5F4EC;
  --white: #ffffff;
  --black: #1c1c1c;
  --gray: #6b7280;
  --radius: 24px;
  --radius-sm: 14px;
  --font-head: 'Balsamiq Sans', cursive;   /* заменить на TSSSF BartholomewC при подключении файлов */
  --font-body: 'Montserrat', sans-serif;   /* заменить на Gilroy при подключении файлов */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section--teal { background: var(--teal); color: var(--white); }
.section--ivory { background: var(--ivory); }

.section__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.section__label--teal { background: var(--teal); color: var(--white); }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 28px;
}

/* маркер-выделение */
.marker {
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
}
.marker--yellow { color: var(--yellow); background: none; }

/* [data-placeholder] — блоки, которые ждут финальной информации */
[data-placeholder] { opacity: .75; font-style: italic; }

/* ===== Кнопки ===== */
.btn {
  font-family: var(--font-head);
  font-size: 17px;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  display: inline-block;
  text-align: center;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(99, 176, 190, .45);
}
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn--white {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.btn--white:hover { transform: translateY(-2px); background: var(--yellow); color: var(--black); }
.btn--lg { font-size: 19px; padding: 17px 44px; }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__corgi { width: 44px; }
.header__brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--teal-deep); }
.header__nav { display: flex; gap: 24px; margin-left: auto; }
.header__nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.header__nav a:hover { color: var(--teal-dark); }
.header__cta { padding: 10px 24px; font-size: 15px; }
.header__burger { display: none; }

/* ===== Первый экран ===== */
.hero {
  position: relative;
  background: linear-gradient(115deg, #ffffff 0%, #f0f8fa 45%, #dfeff2 100%);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 70px));
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero__text { max-width: 54%; }

/* фото занимает всю правую половину и плавно растворяется к тексту */
.hero__photo-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 45%);
}
.hero__photo-side .hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
/* лёгкая бирюзовая вуаль поверх фото, чтобы вписать его в палитру */
.hero__photo-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(223,239,242,.85) 0%, rgba(99,176,190,.12) 45%, rgba(99,176,190,.05) 100%);
}
.hero__badge {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__subtitle { font-size: 19px; color: #3d3d3d; margin-bottom: 28px; max-width: 560px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 100px;
}
.chip--yellow { background: var(--yellow); color: var(--black); }
.chip--outline { background: transparent; border: 2px dashed var(--teal); color: var(--teal-deep); }
.hero__stats { font-size: 15px; color: var(--gray); margin-bottom: 30px; }

/* ===== О чём будем говорить ===== */
.talk { position: relative; }
.talk__corgi {
  position: absolute;
  width: 120px;
  top: -74px;
  left: 8%;
  z-index: 3;
}
.talk__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  max-width: 900px;
  margin-bottom: 26px;
}
.talk__text { max-width: 760px; display: grid; gap: 14px; margin-bottom: 44px; font-size: 18px; }
.talk__questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.q-card {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.3;
  padding: 26px 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  position: relative;
}
.q-card::before {
  content: '?';
  position: absolute;
  top: -14px;
  left: 20px;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

/* ===== Программа / таймлайн ===== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--teal);
  opacity: .35;
  border-radius: 2px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  margin-bottom: 22px;
  position: relative;
}
.timeline__time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--teal-deep);
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 100px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  position: relative;
  z-index: 1;
}
.timeline__card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.timeline__card--open,
.timeline__card--break {
  font-family: var(--font-head);
  font-size: 18px;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.timeline__card--break { background: var(--yellow); }

.speaker { display: flex; gap: 22px; align-items: flex-start; }
.speaker__photo {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .35;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.speaker__name { font-family: var(--font-head); font-size: 20px; margin-bottom: 2px; }
.speaker__role { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.speaker__topic { font-weight: 600; font-size: 16.5px; }
.program__cta { text-align: center; margin-top: 46px; }

/* ===== Для кого ===== */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  max-width: 980px;
}
.checklist li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 22px 18px 56px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Атмосферное фото ===== */
.wide-photo img { width: 100%; max-height: 520px; object-fit: cover; }

/* ===== Об Ok English ===== */
.about-school__card {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 60px;
  position: relative;
  overflow: visible;
}
.about-school__badge {
  position: absolute;
  top: -26px;
  right: 48px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  padding: 12px 26px;
  border-radius: 100px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transform: rotate(3deg);
}
.about-school__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 22px;
}
.about-school__text { display: grid; gap: 14px; max-width: 800px; font-size: 18px; }
.about-school__corgi {
  position: absolute;
  width: 110px;
  bottom: -2px;
  right: 52px;
  opacity: .95;
}

/* ===== Формы ===== */
.questions__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.form { display: grid; gap: 14px; }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 18px;
  border: 2px solid #dcdcd2;
  border-radius: var(--radius-sm);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.form input:focus { border-color: var(--teal); }
.form input.is-invalid { border-color: #e0705f; }
.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
}
.form__consent input { margin-top: 3px; accent-color: var(--teal); }
.form__consent a { color: var(--teal-deep); }
.form__radio-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}
.form__radio-label { font-weight: 600; }
.form__radio-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form__radio-group input { accent-color: var(--teal); }
.form__status { font-size: 15px; font-weight: 600; min-height: 22px; }
.form__status.ok { color: #2e8b57; }
.form__status.err { color: #c0392b; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.form__consent.is-invalid span { color: #c0392b; }
.form__consent.is-invalid input { outline: 2px solid #c0392b; outline-offset: 1px; }

/* ===== Финальный экран ===== */
.final__inner { text-align: center; padding: 30px 0; }
.final__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 36px;
}

/* ===== Подвал ===== */
.footer { background: var(--black); color: #cfcfcf; padding: 28px 0; font-size: 14px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 38px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: #cfcfcf; text-decoration: none; }
.footer__links a:hover { color: var(--white); }

/* ===== Модалка ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,.6);
}
.modal__window {
  position: relative;
  max-width: 480px;
  margin: 5vh auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
}
.modal__corgi { width: 76px; margin: 0 auto 8px; }
.modal__title {
  font-family: var(--font-head);
  font-size: 24px;
  text-align: center;
  margin-bottom: 6px;
}
.modal__sub { text-align: center; color: var(--gray); font-size: 15px; margin-bottom: 22px; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero__inner {
    min-height: 0;
    padding-top: 300px;
    padding-bottom: 56px;
  }
  .hero__text { max-width: 100%; }
  .hero__photo-side {
    width: 100%;
    height: 340px;
    bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.5) 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.5) 78%, transparent 100%);
  }
  .hero__photo-side::after {
    background: linear-gradient(to bottom, rgba(99,176,190,.06) 40%, rgba(240,248,250,.7) 100%);
  }
  .talk__corgi { width: 90px; top: -56px; left: 6%; }
  .questions__inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .about-school__card { padding: 40px 28px 90px; }
  .about-school__corgi { width: 90px; right: 28px; }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }
  .header__nav.is-open { display: flex; }
  .header__cta { display: none; }
  .header__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .header__burger span {
    width: 26px;
    height: 3px;
    background: var(--teal-deep);
    border-radius: 2px;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
  .timeline__time { width: 92px; margin-left: -8px; }
  .speaker { flex-direction: column; }
  .modal__window { margin: 0; max-width: none; min-height: 100vh; border-radius: 0; }
}
