/* Шрифты Unbounded и Noto Sans (OFL), локально: кириллица + латиница */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/NotoSans-1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/NotoSans-2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("assets/fonts/Unbounded-3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("assets/fonts/Unbounded-4.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* UMED — лендинг курса по химии и биологии (5 месяцев)
   Стиль повторяет umedkg.tilda.ws: Unbounded + Noto Sans, сиреневые градиенты,
   голубые кнопки, клетчатый фон, скруглённые панели. */

:root {
  --violet: #957ad8;
  --violet-light: #d4bdfc;
  --violet-deep: #3c2d61;
  --blue: #2392f0;
  --blue-light: #41affe;
  --ink: #21252b;
  --slate: #313a47;
  --mist: #f1f3f6;
  --white: #ffffff;

  --grad-violet: linear-gradient(100deg, #957ad8 0%, #b59bec 55%, #d4bdfc 100%);
  --grad-blue: linear-gradient(90deg, #2392f0 0%, #41affe 100%);

  --radius-panel: 22px;
  --radius-card: 16px;
  --radius-field: 12px;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Noto Sans", "Segoe UI", Arial, sans-serif;

  --panel-max: 1240px;
  --content-max: 1060px;
  --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */

.panel {
  position: relative;
  max-width: var(--panel-max);
  margin: 14px auto;
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { position: relative; padding: 54px 0; }

/* ---------- Type ---------- */

.h-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h-display .blue { color: var(--blue); display: block; }

.h1 { font-size: clamp(30px, 5.6vw, 54px); }
.h2 { font-size: clamp(24px, 4vw, 44px); }

.pill {
  display: inline-block;
  padding: 9px 20px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--grad-blue);
  color: var(--white);
  font: 500 17px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 34px -14px rgba(35, 146, 240, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 22px 38px -14px rgba(35, 146, 240, 0.85); }
}
.btn:active { transform: translateY(1px); }
.btn img { width: 22px; height: 22px; }
.btn-lg { min-height: 78px; padding: 0 44px; font-size: 18px; }

/* ---------- Header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 10px var(--gutter) 0;
  pointer-events: none;
}
.topbar__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--panel-max); margin: 0 auto;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(149, 122, 216, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.topbar.is-scrolled .topbar__inner {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px -20px rgba(60, 45, 97, 0.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__text > span { font: 800 18px/1 var(--font-display); color: var(--violet); }
.brand__text small { font-size: 12px; line-height: 1; color: #6b6880; }
.topbar__nav { display: flex; gap: 2px; margin: 0 auto; }
.topbar__nav a {
  padding: 11px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.topbar__links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__nav + .topbar__links { margin-left: 0; }
.topbar .btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; box-shadow: 0 10px 20px -12px rgba(35, 146, 240, 0.8); }
.icon-link {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mist); color: var(--violet);
  transition: background-color 0.15s ease;
}
.icon-link svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .topbar__nav a:hover { background: var(--mist); color: var(--violet-deep); }
  .icon-link:hover { background: #e9e3f8; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 660px;
  background-color: #f6f6f8;
  background-image:
    linear-gradient(rgba(149, 122, 216, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 122, 216, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero__copy { position: relative; z-index: 3; max-width: 520px; }

.hero__badge {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font: 600 16px/1.2 var(--font-body);
  text-transform: uppercase;
  color: var(--violet);
}
.hero__badge img { width: 30px; height: 30px; }

.hero__lead {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 18px;
  font-size: 18px; line-height: 1.35;
}
.hero__lead img { width: 46px; height: 46px; border-radius: 10px; flex: none; box-shadow: 0 8px 18px -8px rgba(35, 146, 240, 0.6); }

.formats { display: grid; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.formats li {
  display: flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 18px -10px rgba(60, 45, 97, 0.35);
  font-size: 15px;
}
.formats b { font-weight: 700; }
.flag { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

.hero__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__molecule {
  position: absolute; right: -230px; top: -210px;
  width: 1125px; max-width: none;
}
.hero__people {
  position: absolute; right: 0; bottom: 0;
  width: 520px; max-width: none;
}
.hero__chip {
  position: absolute; z-index: 3; right: 400px; bottom: 44px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 40px -22px rgba(60, 45, 97, 0.7);
  font-size: 14px; line-height: 1.3; color: var(--slate);
}
.hero__chip img {
  width: 38px; height: 38px; padding: 6px; border-radius: 12px;
  background: rgba(149, 122, 216, 0.14);
}
.hero__chip b { display: block; color: var(--ink); font-weight: 700; }

/* ---------- Линейные иконки на фоне ---------- */

.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--violet); opacity: 0.16; }
.deco--hero { width: 230px; height: 230px; left: -60px; bottom: -60px; opacity: 0.12; z-index: 1; }
.deco--aud-atom { width: 170px; height: 170px; right: max(0px, calc(50% - 712px)); top: 34px; }
.deco--program-benzene { width: 280px; height: 280px; left: -70px; bottom: -80px; color: var(--white); opacity: 0.14; z-index: 1; }
.deco--program-dna { width: 56px; height: 205px; right: 44px; top: 34px; color: var(--white); opacity: 0.22; z-index: 1; }
.deco--reviews-atom { width: 150px; height: 150px; left: max(0px, calc(50% - 712px)); top: 70px; }
.deco--reviews-dna { width: 66px; height: 240px; right: calc(50% - 640px); bottom: 40px; transform: rotate(18deg); }

/* ---------- Бегущая лента ---------- */

.ribbon-wrap { overflow: hidden; padding: 18px 0 10px; }
.ribbon {
  position: relative; z-index: 3;
  width: 104%; margin: 0 -2% 14px;
  padding: 15px 0;
  overflow: hidden;
  transform: rotate(-1.6deg);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 40px -26px rgba(33, 37, 43, 0.8);
}
.ribbon__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 36s linear infinite;
}
.ribbon__track span,
.ribbon__track i { padding-right: 24px; white-space: nowrap; }
.ribbon__track span { font: 700 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.ribbon__track i { font-style: normal; font-size: 18px; color: var(--violet-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--violet-deep);
  box-shadow: 0 6px 18px -10px rgba(60, 45, 97, 0.4);
}
.open-badge i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Lead form ---------- */

.lead { background: var(--grad-violet); color: var(--white); }
.lead::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("assets/pattern.svg") right center / auto 120% no-repeat;
  opacity: 0.5; pointer-events: none;
}
.lead .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.lead .h-display { color: var(--white); }
.lead__note { margin: 18px 0 0; max-width: 460px; font-size: 19px; line-height: 1.35; }
.lead__steps { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.lead__steps li {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(60, 45, 97, 0.2);
  font-size: 15px; font-weight: 500;
}
.lead__steps img { width: 26px; height: 26px; flex: none; }

.form-card {
  position: relative;
  padding: 26px;
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 70px -34px rgba(60, 45, 97, 0.75), 0 0 0 6px rgba(255, 255, 255, 0.22);
}
.form-card__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px dashed #e3def0;
}
.form-card__icon {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, #efe9fb, #e2f0ff);
}
.form-card__icon img { width: 40px; height: 40px; border-radius: 10px; }
.form-card__head b { display: block; font: 800 18px/1.15 var(--font-display); text-transform: uppercase; }
.form-card__head span { display: block; margin-top: 5px; font-size: 14px; color: #6b7280; }

.field { display: block; margin-bottom: 10px; }
/* Подписи полей скрыты визуально (как на исходном сайте), но доступны экранным чтецам. */
.field__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.control,
.phone { position: relative; display: block; }
.control__icon {
  position: absolute; left: 16px; top: 50%; z-index: 1;
  width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.input,
.select {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid #ece9f3;
  border-radius: 14px;
  background-color: #f7f6fb;
  color: var(--ink);
  font: 400 16px var(--font-body);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.control .input,
.control .select { padding-left: 48px; }
.input::placeholder { color: #8a8797; }
.input:focus,
.select:focus { border-color: var(--violet); background-color: var(--white); box-shadow: 0 0 0 4px rgba(149, 122, 216, 0.18); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23957ad8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.select:invalid { color: #8a8797; }
.select option { color: var(--ink); }
.phone__prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  padding-right: 12px; border-right: 1px solid #e3def0;
  font-size: 16px; color: var(--ink); pointer-events: none;
}
.phone .input { padding-left: 106px; }
@media (hover: hover) {
  .input:hover:not(:focus),
  .select:hover:not(:focus) { border-color: #d9d2ee; }
}
.field.is-invalid .input,
.field.is-invalid .select { border-color: #e5484d; background-color: #fff5f5; }
.field__error { display: none; margin: 5px 0 0 6px; font-size: 13px; color: #d4262c; }
.field.is-invalid .field__error { display: block; }
.form-card .btn { width: 100%; min-height: 58px; margin-top: 6px; }
.form-card__hint { margin: 12px 0 0; font-size: 13px; color: #6b7280; text-align: center; }
.form-card__done { display: none; text-align: center; padding: 14px 0 4px; }
.form-card__done:focus { outline: none; }
.form-card__done b { display: block; margin-bottom: 6px; font: 700 20px/1.2 var(--font-display); color: var(--violet); }
.form-card__done span { display: block; margin-bottom: 18px; }
.link-btn {
  margin-top: 12px; padding: 10px; border: 0; background: none;
  color: var(--slate); font: 500 14px var(--font-body); text-decoration: underline; cursor: pointer;
}
.form-card.is-sent form,
.form-card.is-sent .form-card__head { display: none; }
.form-card.is-sent .form-card__done { display: block; }

/* ---------- Audience ---------- */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.audience__title { align-self: start; padding-right: 10px; }
.aud-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--mist);
  font-size: 15px; line-height: 1.3;
}
.aud-card img { align-self: center; width: 108px; height: 108px; object-fit: contain; }

/* ---------- Why UMED ---------- */

.why__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
.why .pill { margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat {
  position: relative; overflow: hidden;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--grad-violet);
  color: var(--white);
}
.stat::after {
  content: ""; position: absolute; inset: 0;
  background: url("assets/pattern.svg") right -20px center / auto 160% no-repeat;
  opacity: 0.45;
}
.stat > * { position: relative; z-index: 1; }
.stat__num { display: block; font: 800 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 6px; font-size: 13px; line-height: 1.2; }
.stat--best { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; gap: 10px; }
.stat__title { font: 800 14px/1.1 var(--font-display); text-transform: uppercase; }
.stat--best small { display: block; font-size: 12px; opacity: 0.9; }
.stat--best .stat__num { font-size: 48px; }
.stat--best em { display: block; font: 800 14px/1 var(--font-display); font-style: normal; text-transform: uppercase; }

.why__showcase {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px;
  align-items: stretch; margin-top: 36px;
}
.why__photo {
  position: relative; margin: 0; padding-top: 58px;
  display: flex; align-items: flex-end;
  border: 1px solid #ece9f3; border-radius: var(--radius-panel);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(149, 122, 216, 0.14), transparent 45%),
    var(--white);
}
.why__photo img { width: 100%; height: auto; }
.photo-chip {
  position: absolute; left: 18px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -14px rgba(60, 45, 97, 0.6);
  font-size: 14px; font-weight: 600; color: var(--violet-deep);
}
.why__cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.why-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px 16px 14px;
  border-radius: 18px;
  background: var(--grad-blue);
  color: var(--white);
  font-size: 14px; line-height: 1.35;
  box-shadow: 0 18px 30px -22px rgba(35, 146, 240, 0.9);
}
.why-card b { display: block; margin-bottom: 3px; font: 700 15px/1.2 var(--font-display); }
.why-card__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}
.why-card__icon img { width: 34px; height: 34px; object-fit: contain; }

/* ---------- Program ---------- */

.program { background: var(--grad-violet); color: var(--white); }
.program::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("assets/pattern.svg") left bottom / auto 90% no-repeat;
  opacity: 0.35; pointer-events: none;
}
.program .wrap { padding-top: 54px; padding-bottom: 54px; }
.program .pill { color: var(--white); }
.program .h-display { color: var(--white); max-width: 560px; margin: 16px 0 22px; }
.program__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas: "main scope" "facts facts";
  gap: 30px 32px;
  align-items: center;
}
.program__main { grid-area: main; }
.program__subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 12px; }
.subject {
  position: relative; min-height: 160px; padding: 14px;
  border-radius: 14px; background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.25;
}
.subject img { position: absolute; width: 92px; }
.subject--chem img { left: 50%; bottom: 8px; transform: translateX(-50%); }
.subject--bio { display: flex; align-items: flex-end; }
.subject--bio img { right: 10px; top: 6px; width: 84px; }

.program__microscope {
  grid-area: scope; justify-self: center;
  position: relative; z-index: 2;
  width: 430px; margin: -24px 0 -36px;
  filter: drop-shadow(0 34px 34px rgba(60, 45, 97, 0.35));
  pointer-events: none;
}
.facts {
  grid-area: facts;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.fact {
  position: relative; z-index: 2;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(60, 45, 97, 0.34), rgba(60, 45, 97, 0.2));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 34px -26px rgba(60, 45, 97, 0.8);
}
.fact b { display: block; margin-bottom: 8px; font: 800 26px/1 var(--font-display); text-transform: uppercase; }
.fact span { display: block; font-size: 14px; line-height: 1.3; }

/* ---------- Video reviews ---------- */

.reviews__title { text-align: center; margin-bottom: 26px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review {
  padding: 12px 12px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, #b89dee 0%, #cdb5f8 100%);
  box-shadow: 0 18px 30px -22px rgba(60, 45, 97, 0.8);
}
.review__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.review__tags span {
  padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--white); color: var(--ink);
}
.review__tags span:first-child { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.review__score {
  min-height: 48px; margin: 0 0 10px;
  font: 700 20px/1.12 var(--font-display); letter-spacing: -0.02em; color: var(--white);
}
.review__score span { color: rgba(255, 255, 255, 0.6); }
.review__video {
  position: relative;
  aspect-ratio: 264 / 295; border-radius: 12px; overflow: hidden;
  background: #2a2140;
}
.review__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.review__play img { width: 100%; height: 100%; object-fit: cover; }
.review__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(60, 45, 150, 0.85);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}
.play::after {
  content: ""; position: absolute; left: 25px; top: 19px;
  border-style: solid; border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--white);
}
.review__play:hover .play { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Results strip ---------- */

.results { padding-top: 10px; }
.results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.strip__nav { display: flex; gap: 8px; flex: none; }
.strip__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid #e3def0; border-radius: 14px;
  background: var(--white); color: var(--violet-deep);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.strip__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.strip__arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .strip__arrow:hover:not(:disabled) { background: var(--mist); border-color: var(--violet); }
}
.strip {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip.at-end { -webkit-mask-image: none; mask-image: none; }
.strip button {
  flex: none; scroll-snap-align: start;
  width: 196px; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--mist); cursor: zoom-in;
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.6);
}
.strip img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.strip__hint { margin: 4px 0 0; font-size: 14px; color: #6b7280; }

.lightbox { max-width: min(92vw, 720px); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(23, 20, 40, 0.8); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 16px; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Отзывы 2ГИС ---------- */

.gis { padding-top: 20px; }
.gis__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.gis__score {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 20px; border-radius: 18px;
  background: var(--grad-violet); color: var(--white);
  box-shadow: 0 18px 30px -22px rgba(60, 45, 97, 0.9);
}
.gis__score b { grid-row: span 2; font: 800 40px/1 var(--font-display); }
.gis__score .stars { color: #ffd166; letter-spacing: 2px; }
.gis__score span:last-child { font-size: 13px; max-width: 200px; line-height: 1.3; }
.gis__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.quote {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  border: 1px solid #ece9f3; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #faf8ff);
  box-shadow: 0 18px 30px -26px rgba(60, 45, 97, 0.7);
}
.quote .stars { color: #f5b301; letter-spacing: 2px; font-size: 15px; }
.quote p { flex: 1; margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.quote__who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #6b7280; }
.quote__who b { font-size: 14px; color: var(--ink); }
.gis__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-ghost {
  min-height: 48px; padding: 0 20px; font-size: 15px;
  background: var(--white); color: var(--violet-deep);
  border: 1.5px solid #e3def0; box-shadow: none;
}
@media (hover: hover) {
  .btn-ghost:hover { border-color: var(--violet); background: var(--mist); box-shadow: none; }
}

/* ---------- Decor: test tube with bubbles (изюминка) ---------- */

.tube {
  position: absolute; z-index: 1; left: calc(50% - 735px); top: -20px;
  width: 190px; pointer-events: none;
}
.tube__bubbles { position: absolute; left: 44%; bottom: 22%; width: 30px; height: 110px; overflow: hidden; }
.tube__bubbles i {
  position: absolute; bottom: -10px; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(35, 146, 240, 0.25);
  animation: rise 3.2s infinite ease-in;
}
.tube__bubbles i:nth-child(1) { left: 4px; }
.tube__bubbles i:nth-child(2) { left: 14px; width: 5px; height: 5px; animation-delay: 1.1s; }
.tube__bubbles i:nth-child(3) { left: 9px; width: 4px; height: 4px; animation-delay: 2.2s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-95px); opacity: 0; }
}
.flask-deco {
  position: absolute; z-index: 1; right: max(0px, calc(50% - 716px)); top: 40px;
  width: 240px; filter: blur(4px); opacity: 0.85; pointer-events: none;
}

/* ---------- Footer ---------- */

.footer { background: linear-gradient(135deg, #3c2d61 0%, #4b3784 55%, #5d47a3 100%); color: rgba(255, 255, 255, 0.82); }
.deco--footer { width: 320px; height: 320px; right: -70px; top: -80px; color: var(--white); opacity: 0.08; z-index: 1; }
.footer__grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; align-items: start;
  padding-top: 48px; padding-bottom: 30px;
}
.footer .brand__text > span { color: var(--white); }
.footer .brand__text small { color: rgba(255, 255, 255, 0.7); }
.footer .brand img { width: 44px; height: 44px; }
.footer__about p { margin: 16px 0 0; max-width: 380px; font-size: 14px; line-height: 1.5; }
.footer__col h3 {
  margin: 6px 0 14px;
  font: 700 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--violet-light);
}
.footer__col ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer__col a { color: rgba(255, 255, 255, 0.88); text-decoration: none; transition: color 0.15s ease; }
.socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.footer__mark {
  position: absolute; z-index: 0; left: 50%; bottom: -0.18em; transform: translateX(-50%);
  font: 800 clamp(120px, 22vw, 290px)/1 var(--font-display); letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.045); white-space: nowrap; pointer-events: none; user-select: none;
}
.footer .wrap { z-index: 2; }
.footer__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.footer__stats li {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 92px; padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.footer__stats b { font: 800 20px/1 var(--font-display); color: var(--white); }
.footer__stats span { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.footer__col .footer__h3-gap { margin-top: 24px; }
.footer__contacts { padding-bottom: 30px; }
.footer__contacts h3 {
  margin: 0 0 14px;
  font: 700 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--violet-light);
}
.social-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white); text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.social-card[hidden] { display: none; }
.social-card__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.social-card__icon--wa { background: #25d366; }
.social-card__icon--tg { background: #29a9eb; }
.social-card__icon--site { background: var(--grad-blue); }
.icon-link--wa { color: #1fae55; }
.social-card__icon svg { width: 22px; height: 22px; }
.social-card b { display: block; font-size: 15px; }
.social-card small { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); color: var(--white); text-decoration: none;
  transition: background-color 0.15s ease;
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .footer__col a:hover { color: var(--white); text-decoration: underline; }
  .social-card:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }
  .to-top:hover { background: rgba(255, 255, 255, 0.16); }
}

/* ---------- Mobile sticky CTA ---------- */

.sticky-cta {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  display: none;
  transform: translateY(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.footer__col li { padding: 5px 0; }
.footer__col li a { display: inline-block; padding: 12px 0; margin: -5px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1400px) {
  .tube, .flask-deco,
  .deco--aud-atom, .deco--reviews-atom, .deco--reviews-dna { display: none; }
}

@media (max-width: 1100px) {
  .hero__chip { right: 300px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .topbar__nav,
  .topbar .brand__text small { display: none; }
  .topbar__nav + .topbar__links { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero .wrap { order: 1; width: 100%; }
  .hero__art { order: 2; }
  .hero .wrap { padding-top: 34px; padding-bottom: 0; }
  .hero__copy { max-width: none; }
  .hero__art { position: relative; inset: auto; height: 470px; margin-top: 6px; overflow: hidden; }
  .hero__molecule { width: 760px; right: -300px; top: -90px; }
  .hero__people { width: 350px; left: 50%; right: auto; transform: translateX(-46%); }

  .lead .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .why__top { grid-template-columns: 1fr; }
  .why__showcase { grid-template-columns: 1fr; }
  .gis__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program__grid { grid-template-columns: 1fr; grid-template-areas: "main" "facts" "scope"; gap: 22px; }
  .program__microscope { justify-self: end; width: 230px; margin: -10px -6px -30px 0; }
  .hero__chip { right: auto; left: 16px; bottom: 18px; }
  .deco--program-dna { display: none; }
}

@media (max-width: 720px) {
  .topbar { padding: 8px 8px 0; }
  .lead__steps li { width: auto; font-size: 14px; }
  .form-card__head b { font-size: 16px; }
  .results__head .strip__nav { display: none; }
  .strip { margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .socials { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .panel { margin: 8px; }
  .section { padding: 44px 0; }
  .topbar__links .icon-link:not(.icon-link--wa) { display: none; }

  .audience__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .audience__title { grid-column: 1 / -1; margin-bottom: 6px; }
  .aud-card { min-height: 176px; padding: 14px; font-size: 14px; }
  .aud-card img { width: 80px; height: 80px; }
  .aud-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }

  .stat { padding: 12px 10px; }
  .stat__num { font-size: 24px; }
  .stat__label { font-size: 11.5px; }
  .stat--best { grid-template-columns: 1fr 1fr; }
  .stat__title { grid-column: 1 / -1; }
  .stat--best .stat__num { font-size: 40px; }

  .why__photo { padding-top: 46px; }
  .photo-chip { left: 10px; top: 10px; padding: 6px 12px 6px 10px; font-size: 13px; }
  .why-card { padding: 14px; }
  .gis__head { flex-direction: column; align-items: flex-start; }
  .gis__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .gis__grid::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 82%; scroll-snap-align: start; }
  .gis__links .btn { width: 100%; }

  .program__subjects { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 14px; }
  .fact b { font-size: 21px; }
  .fact span { font-size: 13px; }
  .ribbon { padding: 12px 0; margin-bottom: 18px; }
  .ribbon__track span { font-size: 15px; }

  .reviews__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px;
  }
  .review { flex: 0 0 78%; scroll-snap-align: center; }

  .form-card { padding: 20px; }
  .btn-lg { min-height: 64px; width: 100%; }
  .sticky-cta { display: block; }
  .footer { margin-bottom: 84px; }
}

@media (max-width: 360px) {
  .topbar .brand__text { display: none; }
  .topbar .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
