/* ==========================================================================
   Академия Ист Вакуум — курс по вакуумной технике
   academy.eastvacuum.ru
   ========================================================================== */

/* --- Переменные ---------------------------------------------------------- */
:root {
  --brand:        #009FD3;
  --brand-dark:   #007BA6;
  --brand-light:  #E6F6FC;
  --ink:          #14212B;
  --ink-2:        #3C4C57;
  --ink-3:        #6B7C88;
  --line:         #DFE6EB;
  --bg:           #FFFFFF;
  --bg-soft:      #F5F8FA;
  --accent:       #F07E24;

  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 1px 2px rgba(20,33,43,.06), 0 8px 24px rgba(20,33,43,.06);
  --shadow-lg:    0 2px 4px rgba(20,33,43,.06), 0 20px 48px rgba(20,33,43,.12);

  --wrap:         1160px;
  --header-h:     72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Раскладка ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 780px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-3); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,159,211,.28);
}
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(0,159,211,.34); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); }

.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-light); }

.btn--lg { padding: 18px 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* --- Шапка --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  /* шире, чем контент: семь пунктов меню + телефон + кнопка требуют 1130 px */
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.header__logo { flex-shrink: 0; }
.header__logo img { width: 168px; }

.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand-dark); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header__phone {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}
.header__phone:hover { color: var(--brand-dark); text-decoration: none; }

/* Вход в кабинет курса (kurs.eastvacuum.ru). Ссылкой, а не кнопкой: кнопка
   на экране должна быть одна — «Оставить заявку». Вход нужен тем, кто курс
   уже купил, их меньшинство. */
.header__login {
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
}
.header__login:hover { color: var(--brand-dark); text-decoration: none; }
.header .btn { padding: 11px 20px; font-size: 14.5px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Первый экран -------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(52px, 6vw, 76px);
  background:
    radial-gradient(1000px 460px at 82% -12%, rgba(0,159,211,.16), transparent 62%),
    linear-gradient(180deg, #F7FBFD 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--brand-dark); }
.hero__lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__cta .btn--lg { padding: 17px 28px; }
.hero__note { font-size: 15px; color: var(--ink-3); margin: 0; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.fact__num {
  display: block;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand-dark);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.fact__label { font-size: 15px; color: var(--ink-3); line-height: 1.35; }

/* --- Полоса преимуществ -------------------------------------------------- */
.strip {
  background: var(--ink);
  color: #B9C7D1;
  padding: 26px 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.strip__item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.strip__item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.strip__item b { color: #fff; display: block; font-weight: 600; }

/* --- Карточки ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #C9DDE7; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-3); margin: 0; }

/* --- Текст в две колонки ------------------------------------------------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 1.1em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.callout {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  color: var(--ink);
}
.callout strong { color: var(--brand-dark); }

/* --- Блок результата ----------------------------------------------------- */
.result {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
}
.result h2 { color: #fff; }
.result p { color: rgba(255,255,255,.9); }
.result__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.result__num { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.result__txt { font-size: 15.5px; color: rgba(255,255,255,.88); margin-top: 6px; }

/* --- Программа курса (аккордеон) ----------------------------------------- */
.program { display: grid; gap: 14px; }

.part {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.part--open { border-color: #B7DCEB; box-shadow: var(--shadow); }

.part__btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.part__btn:hover { background: var(--bg-soft); }

.part__no {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 11px;
  font-weight: 800;
  font-size: 16px;
}
.part--open .part__no { background: var(--brand); color: #fff; }

.part__title { flex: 1; min-width: 0; }
.part__title b { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.part__title span { font-size: 14px; color: var(--ink-3); }

.part__chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--ink-3);
  transition: transform .25s;
}
.part--open .part__chevron { transform: rotate(180deg); color: var(--brand-dark); }

.part__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.part--open .part__body { grid-template-rows: 1fr; }
.part__inner { overflow: hidden; }
.part__list { margin: 0; padding: 0 24px 22px 24px; list-style: none; }
.part__list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.part__list .n {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
  min-width: 26px;
  font-size: 15px;
  padding-top: 2px;
}
.part__list b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; }
.part__list p { font-size: 15px; color: var(--ink-3); margin: 4px 0 0; }

/* --- Галерея ------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.gallery figure:hover { border-color: #C9DDE7; box-shadow: var(--shadow); transform: translateY(-2px); }
.gallery img { height: 110px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.gallery figcaption { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }

/* --- Автор --------------------------------------------------------------- */
.author {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.author__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.author__photo img { width: 100%; }
.author__name { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 4px; }
.author__role { color: var(--brand-dark); font-weight: 600; margin-bottom: 22px; }
.author blockquote {
  margin: 24px 0 0;
  padding: 22px 26px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 17px;
  color: var(--ink);
}
.author blockquote footer { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }

/* --- Цены ---------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.price:hover { border-color: #B7DCEB; box-shadow: var(--shadow); transform: translateY(-2px); }
.price--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price__badge {
  position: absolute;
  top: -11px; left: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.price__seats { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.price__val {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.price__val small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 6px; }
.price__per { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.price .btn { margin-top: auto; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.price__spacer { flex: 1; min-height: 18px; }

.includes {
  margin-top: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.includes h3 { margin-bottom: 16px; }
.includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 28px;
}
.includes li { display: flex; gap: 11px; font-size: 16px; margin: 0; }
.includes li svg { flex-shrink: 0; width: 21px; height: 21px; color: var(--brand); margin-top: 2px; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq details[open] { border-color: #B7DCEB; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq summary:hover { background: var(--bg-soft); }
.faq .faq__a { padding: 0 24px 20px; color: var(--ink-3); font-size: 16px; }

/* --- Форма --------------------------------------------------------------- */
.formsec {
  background: var(--ink);
  color: #B9C7D1;
}
.formsec h2 { color: #fff; }
.formsec .section__lead { color: #96A8B5; }
.formsec__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.formsec__list { list-style: none; padding: 0; margin: 28px 0 0; }
.formsec__list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 16px; }
.formsec__list svg { flex-shrink: 0; width: 21px; height: 21px; color: var(--brand); margin-top: 3px; }
.formsec__contacts { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.formsec__contacts a { color: #fff; font-weight: 600; }
.formsec__contacts div { margin-bottom: 8px; }

.form {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.form__row { margin-bottom: 18px; }
.form__row--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form label .req { color: #D64545; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,159,211,.16);
}
.form input[aria-invalid="true"],
.form select[aria-invalid="true"] { border-color: #D64545; }
.form textarea { resize: vertical; min-height: 96px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C88' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }

.form__err { display: none; font-size: 13.5px; color: #D64545; margin-top: 6px; }
.form__err.is-shown { display: block; }

.form__consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.form__consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--brand); }
.form__consent label { font-weight: 400; font-size: 13.5px; color: var(--ink-3); margin: 0; }

.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form__status.is-ok  { display: block; background: #E8F7EE; color: #1B7C43; border: 1px solid #B7E4C9; }
.form__status.is-err { display: block; background: #FDEDED; color: #B3261E; border: 1px solid #F5C6C4; }

.form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* --- Подвал -------------------------------------------------------------- */
.footer {
  background: #0D1720;
  color: #8A9BA8;
  padding: 52px 0 28px;
  font-size: 15px;
}
.footer a { color: #C4D2DC; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { width: 190px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 14px;
}

/* --- Кнопка «наверх» ----------------------------------------------------- */
.totop {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,159,211,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, visibility .2s, transform .2s, background-color .2s;
  z-index: 90;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--brand-dark); }
.totop svg { width: 22px; height: 22px; }

/* --- Плашка cookie ------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 680px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--ink-3);
  z-index: 120;
}
.cookie.is-shown { display: flex; }
.cookie p { margin: 0; flex: 1; min-width: 220px; }
.cookie .btn { padding: 9px 22px; font-size: 14px; }

/* --- Служебное ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }


/* --- Активный пункт меню -------------------------------------------------- */
.nav a[aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 700;
  position: relative;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* --- Шапка внутренней страницы -------------------------------------------- */
.pagehead {
  padding: clamp(30px, 4vw, 48px) 0 clamp(26px, 3.5vw, 40px);
  background:
    radial-gradient(900px 380px at 85% -30%, rgba(0,159,211,.14), transparent 60%),
    linear-gradient(180deg, #F7FBFD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.pagehead__lead {
  font-size: clamp(17px, 1.7vw, 19px);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs span[aria-hidden] { opacity: .55; }

/* --- Карточки-ссылки на разделы ------------------------------------------- */
.cards--nav { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card--link:hover { text-decoration: none; }
.card--link h3 { transition: color .18s; }
.card--link:hover h3 { color: var(--brand-dark); }
.card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* --- Полоса с призывом ----------------------------------------------------- */
.ctaband {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: clamp(34px, 4.5vw, 52px) 0;
}
.ctaband__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ctaband h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.ctaband p { color: rgba(255,255,255,.9); margin: 0; max-width: 56ch; }

/* ==========================================================================
   Конвертер единиц
   ========================================================================== */
.conv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
}

.conv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.conv-tab {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.conv-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.conv-tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.conv-body { padding: clamp(20px, 3vw, 30px); }

.conv-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.conv-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.conv-field input,
.conv-field select {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.conv-field input { font-variant-numeric: tabular-nums; }
.conv-field input:focus,
.conv-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,159,211,.16);
}
.conv-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C88' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.conv-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.conv-mode legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.conv-mode label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  cursor: pointer;
}
.conv-mode input { accent-color: var(--brand); width: 17px; height: 17px; }

.conv-hint {
  font-size: 15px;
  color: var(--ink-3);
  margin: 0 0 22px;
  max-width: 70ch;
}

.conv-h2 { font-size: clamp(19px, 2vw, 22px); margin: 0 0 12px; }
.conv-h3 { font-size: 17px; margin: 28px 0 12px; }

.conv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.conv-table th,
.conv-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.conv-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
}
.conv-table tbody tr:last-child th,
.conv-table tbody tr:last-child td { border-bottom: 0; }
.conv-table .cu { font-weight: 500; color: var(--ink-2); width: 46%; }
.conv-table .cv {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.conv-table--out tbody tr.self { background: var(--brand-light); }
.conv-table--out tbody tr.self .cu { color: var(--brand-dark); font-weight: 700; }

.cvbtn {
  padding: 4px 8px;
  margin: -4px -8px;
  background: none;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cvbtn:hover { background: var(--brand-light); color: var(--brand-dark); }
.cvbtn.copied { background: #E8F7EE; color: #1B7C43; }

.conv-note {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 14px 0 0;
  line-height: 1.55;
}

.conv-ref,
.conv-cta {
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.conv-ref h2,
.conv-cta h2 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 10px; }
.conv-ref__grid { overflow-x: auto; margin: 18px 0 0; }
.conv-ref__grid .conv-table { background: #fff; border-radius: var(--radius-sm); min-width: 460px; }
.conv-ref__grid .conv-table td { font-variant-numeric: tabular-nums; }
.conv-cta .btn { margin: 6px 10px 0 0; }

@media (max-width: 700px) {
  .conv-input { grid-template-columns: 1fr; }
  .conv-tabs { padding: 12px; gap: 5px; }
  .conv-tab { font-size: 13.5px; padding: 8px 13px; }
  .conv-table { font-size: 15px; }
  .conv-table th, .conv-table td { padding: 10px 8px; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
/* Шапка ужимается в один приём: сначала уходит телефон, затем всё меню в бургер.
   Пункты меню поштучно не прячем — иначе разделы становятся недоступны. */
@media (max-width: 1280px) {
  .header__phone { display: none; }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .formsec__grid { grid-template-columns: 1fr; }
  .author { grid-template-columns: 200px minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 20px 20px;
    margin: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .header__actions { margin-left: auto; }
  .header__phone { display: none; }
  .burger { display: flex; }
  .header .btn--primary { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cta .btn { width: 100%; }
  .strip__grid { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: 1fr; gap: 20px; }
  .author { grid-template-columns: 1fr; }
  .author__photo { max-width: 240px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .part__btn { padding: 18px 18px; gap: 14px; }
  .part__no { width: 36px; height: 36px; font-size: 15px; }
  .part__title b { font-size: 16.5px; }
  .part__list { padding-left: 18px; padding-right: 18px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .gallery img { height: 88px; }
  .includes { padding: 22px 20px; }
}

@media (max-width: 400px) {
  .header__logo img { width: 140px; }
}

/* --- Печать -------------------------------------------------------------- */
@media print {
  .header, .totop, .cookie, .hero__cta, .formsec, .footer { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .part__body { grid-template-rows: 1fr !important; }
  .section { padding: 12pt 0; }
}

/* --- Уважение к настройкам движения -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Статьи -------------------------------------------------------------- */
.art { max-width: 760px; margin: 0 auto; }
.art__meta { color: var(--ink-3); font-size: 15px; margin-bottom: 28px; }
.art h2 { font-size: clamp(21px, 2.4vw, 27px); margin: 44px 0 14px; line-height: 1.25; }
.art h3 { font-size: clamp(18px, 2vw, 21px); margin: 30px 0 10px; }
.art p  { margin-bottom: 1.1em; }
.art ul, .art ol { margin: 0 0 1.3em 1.2em; }
.art li { margin-bottom: .5em; }
.art figure { margin: 30px 0; }
.art figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.art figcaption { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.art__tablewrap { overflow-x: auto; margin: 24px 0; }
.art table { border-collapse: collapse; width: 100%; font-size: 15px; }
.art th, .art td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.art th { background: var(--bg-soft); font-weight: 600; }
.art__toc { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.art__toc ol { margin: 0 0 0 1.1em; }
.art__toc li { margin-bottom: .35em; }
.art__cta { background: var(--brand-light); border-left: 4px solid var(--brand);
            border-radius: var(--radius-sm); padding: 24px 26px; margin: 36px 0; }
.art__cta p:last-child { margin-bottom: 0; }
.art__author { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
               color: var(--ink-2); font-size: 15px; }
.artlist { display: grid; gap: 20px; max-width: 860px; }
.artlist__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.artlist__item h2 { font-size: 21px; margin: 0 0 8px; }
.artlist__item p { color: var(--ink-2); margin: 0 0 12px; }

/* --- Библиотека стандартов ------------------------------------------------ */
.lib { display: grid; gap: 2px; margin: 0 0 34px; }
.lib__item { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 18px;
             padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.lib__num { font-weight: 700; color: var(--brand-dark); }
@media (max-width: 640px) {
  .lib__item { grid-template-columns: 1fr; gap: 6px; }
}
