/* ==========================================================================
   Школа регистратора медизделий — вёрстка по мотивам medregschool.ru/05112026
   ========================================================================== */

:root {
  --navy: #002d67;
  --navy-border: #00224e;
  --red: #de2a31;
  --red-hover: #d7070d;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --text: #1a1a1a;

  --font-head: 'Oswald', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;

  --container-w: 1800px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: none;
  padding: 0 clamp(20px, 5vw, 100px);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(42px, 5.8vw, 86px);
  line-height: 1.08;
  margin: 0 0 58px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 20px 42px;
  border-radius: 40px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn--red {
  background-color: var(--red);
  color: var(--white);
}
.btn--red:hover { background-color: var(--red-hover); }
.btn--block { width: 100%; }

/* ---------------------------------- HERO --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: #97d4cd;
  min-height: 760px;
  padding: 64px 0 82px;
}

.hero__bg {
  position: absolute;
  inset: -10% 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.15);
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 28%, rgba(255,255,255,0.55) 46%, rgba(255,255,255,0.18) 62%, rgba(255,255,255,0) 78%);
}

.hero__container {
  position: relative;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: center;
}

.hero__logo {
  flex: 0 0 132px;
  width: 132px;
  margin-bottom: 0;
}
.hero__logo img {
  max-width: none;
  width: auto;
  height: 130px;
}

.hero__eyebrow {
  flex: 0 1 900px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(19px, 1.45vw, 25px);
  line-height: 1.45;
  color: var(--navy);
  max-width: 900px;
  margin: 0 0 0 36px;
}

.hero__title {
  flex: 0 0 100%;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(54px, 7.4vw, 112px);
  line-height: 1.16;
  margin: 46px 0 34px;
}

.hero__desc {
  flex: 0 0 100%;
  font-size: clamp(19px, 1.35vw, 23px);
  line-height: 1.55;
  color: var(--navy);
  max-width: 720px;
  margin: 0 0 46px;
}

.hero__actions {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 46px;
}

.hero__actions .btn {
  min-width: 370px;
  min-height: 78px;
  padding: 22px 48px;
  border-radius: 44px;
  font-size: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  min-height: 78px;
  gap: 16px;
  padding: 18px 36px;
  border: 2px solid var(--navy);
  border-radius: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  white-space: nowrap;
}

.pill:last-child { min-width: 220px; }

.pill__icon { width: 34px; height: 34px; }

.hero__organizer {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 32px;
  color: var(--navy);
}
.hero__organizer img { height: 68px; width: auto; }

/* -------------------------------- PROGRAM -------------------------------- */

.program {
  background: var(--gray-bg);
  padding: 120px 0;
}

.program__container {
  display: grid;
  grid-template-columns: minmax(420px, 36vw) 1fr;
  gap: 44px;
  align-items: center;
}

.program .section-title {
  align-self: center;
  font-size: clamp(64px, 5.9vw, 116px);
  line-height: 1.15;
  margin: 0;
}

.program__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.program__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 46px;
}

.program__item:nth-child(1) { margin-left: 260px; }
.program__item:nth-child(2) { margin-left: 170px; }
.program__item:nth-child(3) { margin-left: 60px; }
.program__item:nth-child(4) { margin-left: -30px; }

.program__num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.program__text {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: 0 46px 46px 46px;
  padding: 24px 42px 24px 70px;
  margin: 0;
  min-height: 132px;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.45;
  color: var(--navy);
}

/* -------------------------------- CTA FORM ------------------------------- */

.cta-form {
  position: relative;
  min-height: 860px;
  padding: 150px 0;
  overflow: hidden;
  background: #f5f5f5;
}

.cta-form__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: none !important;
}

.cta-form .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.cta-form__card {
  width: min(100%, 700px);
  background: var(--white);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(0, 45, 103, 0.2);
  padding: 70px 68px;
  max-width: 700px;
}

.cta-form__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(42px, 4.6vw, 70px);
  line-height: 1.08;
  margin: 0 0 46px;
}

.form { display: flex; flex-direction: column; gap: 24px; }

.field input {
  width: 100%;
  min-height: 64px;
  padding: 18px 28px;
  border: 1px solid var(--navy-border);
  border-radius: 36px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  background: var(--white);
}
.field input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field input::placeholder { color: #8a94a3; }

.field--phone {
  display: flex;
  align-items: center;
  border: 1px solid var(--navy-border);
  border-radius: 36px;
  padding: 0 8px 0 24px;
  gap: 12px;
}
.field--phone .field__prefix {
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}
.field--phone input {
  border: none;
  padding: 18px 14px 18px 0;
  border-radius: 0;
}
.field--phone input:focus { outline: none; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}
.checkbox input {
  margin-top: 5px;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}
.checkbox a { text-decoration: underline; }

.form__success {
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

/* -------------------------------- HISTORY -------------------------------- */

.history { padding: 130px 0; }

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

.history-card {
  display: flex;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 45, 103, 0.12);
  overflow: hidden;
  min-height: 230px;
}

.history-card__label {
  flex: 0 0 58px;
  position: relative;
  overflow: hidden;
}
.history-card__label span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  font-family: var(--font-body);
  font-size: 16px;
  color: #6b7280;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.history-card__body {
  flex: 1;
  display: flex;
  background: var(--navy);
  border-radius: 28px;
  margin: 10px 10px 10px 0;
  overflow: hidden;
}

.history-card__photo {
  flex: 0 0 34%;
  width: 34%;
  object-fit: cover;
  height: auto;
}

.history-card__content {
  flex: 1;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.history-card__content p {
  margin: 0;
  color: #dbe3ef;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.65;
}
.history-card__content a {
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  text-decoration: underline;
  align-self: flex-start;
}

/* ------------------------------- ORGANIZER ------------------------------- */

.organizer { padding: 20px 0 130px; }
.organizer__logo {
  height: 68px;
  width: auto;
  margin-bottom: 38px;
}
.organizer__text {
  max-width: 1160px;
  font-size: clamp(18px, 1.15vw, 22px);
  color: #333;
  line-height: 1.75;
  margin: 0;
}

/* --------------------------------- FOOTER -------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.site-footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 34px;
}

.site-footer__requisites p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
  color: #e7ecf5;
}
.site-footer__requisites a { color: var(--white); }
.site-footer__requisites a.underline { text-decoration: underline; }

.site-footer__logo { height: 58px; width: auto; }

/* ------------------------------ COOKIE BANNER ----------------------------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 45, 103, 0.25);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e7ecf5;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner__accept {
  padding: 10px 26px;
  border: none;
  border-radius: 30px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.cookie-banner__accept:hover { background-color: var(--red-hover); }

.cookie-banner__close {
  border: none;
  background: none;
  color: #b9c3d4;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.cookie-banner__close:hover { color: var(--white); }

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px 20px;
  }
}

/* -------------------------------- RESPONSIVE ------------------------------ */

@media (max-width: 960px) {
  .container { padding: 0 24px; }

  .section-title {
    font-size: clamp(38px, 8vw, 62px);
    margin-bottom: 42px;
  }

  .hero {
    min-height: 680px;
    padding: 48px 0 64px;
  }

  .hero__scrim {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, rgba(255,255,255,0.6) 75%, rgba(255,255,255,0) 100%);
  }
  .hero__bg { background-position: center 20%; opacity: 0.5; }
  .hero__container { max-width: 100%; }

  .program__container {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .program .section-title {
    align-self: start;
    font-size: clamp(48px, 8vw, 76px);
  }
  .program__item:nth-child(n) { margin-left: 0; }

  .program,
  .cta-form,
  .history {
    padding: 92px 0;
  }

  .cta-form {
    min-height: 0;
  }

  .cta-form__bg {
    background-attachment: scroll;
    background-position: center right;
  }

  .cta-form .container {
    min-height: 0;
  }

  .organizer { padding: 10px 0 92px; }

  .cta-form__card { padding: 50px 42px; }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 38px;
    line-height: 1.12;
    margin-bottom: 34px;
  }

  .btn {
    min-height: 58px;
    padding: 16px 26px;
    font-size: 16px;
  }

  .hero {
    min-height: 0;
    padding: 34px 0 52px;
  }
  .hero__container {
    display: block;
  }
  .hero__logo { margin-bottom: 22px; }
  .hero__logo img {
    width: 64px;
    height: auto;
  }
  .hero__eyebrow {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 24px;
  }
  .hero__title {
    font-size: 44px;
    line-height: 1.18;
    margin-bottom: 26px;
  }
  .hero__desc {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 34px;
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn {
    min-width: 0;
    width: 100%;
    min-height: 62px;
    padding: 17px 24px;
    font-size: 19px;
  }
  .pill {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    justify-content: center;
    padding: 14px 22px;
    font-size: 16px;
  }
  .pill:last-child { min-width: 0; }
  .pill__icon { width: 26px; height: 26px; }
  .hero__organizer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    font-size: 20px;
  }
  .hero__organizer img { height: 44px; }

  .program { padding: 68px 0; }
  .program__list { gap: 24px; }
  .program__item {
    align-items: flex-start;
    gap: 14px;
    padding-left: 0;
  }
  .program__num {
    position: static;
    flex: 0 0 52px;
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 18px;
    margin: 8px 0 0;
  }
  .program__text {
    border-radius: 22px;
    padding: 20px 22px;
    min-height: 0;
    font-size: 17px;
    line-height: 1.55;
  }

  .cta-form { padding: 68px 0; }
  .cta-form__card {
    border-radius: 26px;
    padding: 36px 24px;
  }
  .cta-form__title {
    font-size: 38px;
    margin-bottom: 30px;
  }
  .form { gap: 18px; }
  .field input {
    min-height: 58px;
    padding: 16px 22px;
    font-size: 16px;
  }
  .field--phone {
    padding-left: 18px;
  }
  .field--phone .field__prefix {
    font-size: 16px;
  }
  .checkbox {
    font-size: 14px;
    line-height: 1.5;
  }

  .history { padding: 68px 0; }
  .organizer { padding: 10px 0 60px; }
  .organizer__logo { height: 54px; margin-bottom: 28px; }
  .organizer__text {
    font-size: 17px;
    line-height: 1.65;
  }

  .history-card { flex-direction: column; }
  .history-card__label {
    flex: none;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .history-card__label span {
    position: static;
    transform: none;
    font-size: 13px;
  }
  .history-card__body {
    flex-direction: column;
    margin: 0 8px 8px 8px;
  }
  .history-card__photo { width: 100%; flex: none; height: 160px; }
  .history-card__content {
    padding: 24px 22px;
  }

  .site-footer__container { flex-direction: column; align-items: flex-start; }
  .site-footer__requisites p { font-size: 14px; }
  .site-footer__logo { height: 46px; }
}
