/* ============================================================
   Андрей Фомин — производственная безопасность
   ============================================================ */

:root {
  --ink: #0d141b;
  --graphite: #232e38;
  --navy: #0a2440;
  --navy-2: #103a63;
  --blue: #1668c7;
  --blue-dark: #0f57a8;
  --sky: #8fc4f5;
  --ice: #eef4fb;
  --line: #dfe7f0;
  --muted: #5b6b7c;
  --white: #ffffff;
  --max: 1180px;
  --radius: 16px;
  --shadow: 0 24px 60px -30px rgba(9, 32, 58, .45);
  --ease: cubic-bezier(.2, .65, .25, 1);
}

* , *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.container-wide {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- типографика ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: var(--sky); }

.h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }
.h3 { font-size: 22px; margin-bottom: 12px; }

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.section { padding: clamp(72px, 8vw, 116px) 0; }
.section--ice { background: linear-gradient(180deg, #f8fbff 0%, var(--ice) 100%); }
.section--tight { padding: clamp(56px, 6vw, 84px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}
.section-head .lead { margin-bottom: 6px; }
.section-head__link {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(22, 104, 199, .3);
  transition: border-color .2s, gap .2s;
}
.section-head__link:hover { border-color: var(--blue); gap: 12px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(22, 104, 199, .8);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }

.btn-line {
  background: #fff;
  border-color: #cfdcec;
  color: var(--navy);
}
.btn-line:hover { border-color: var(--blue); color: var(--blue); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #071a2e; }

.btn-block { width: 100%; }
.btn-sm { padding: 12px 20px; font-size: 14px; }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
body.page-inner .site-header {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(12, 36, 64, .09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(140deg, #2f8de0 0%, #1668c7 45%, #0a2440 100%);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand-text small {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .58;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav-mobile-actions { display: none; }
.nav a {
  position: relative;
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
  opacity: .82;
  padding: 6px 0;
  transition: opacity .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }

.nav-item { position: relative; }
.nav-sub-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-sub-trigger svg { opacity: .5; transition: transform .2s var(--ease); }
.has-sub:hover .nav-sub-trigger svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  min-width: 264px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(9, 32, 58, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 70;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }

.submenu__hint {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #93a3b4;
  padding: 8px 14px 6px;
  font-weight: 600;
}
.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
  opacity: 1;
}
.submenu a span { font-size: 12px; color: #93a3b4; }
.submenu a::after { display: none; }
.submenu a:hover { background: #f2f7fd; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: .85;
  padding: 10px 4px;
  transition: opacity .2s;
}
.header-actions .tg-link:hover { opacity: 1; }
.header-actions .btn-primary { padding: 13px 22px; font-size: 14px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(127, 145, 165, .4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { content: ""; top: -6px; left: 0; }
.burger span::after { content: ""; top: 6px; left: 0; }
body.nav-open .burger span { transform: rotate(45deg); }
body.nav-open .burger span::before { transform: rotate(-90deg) translateX(6px); }
body.nav-open .burger span::after { opacity: 0; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #4aa3ef, var(--blue));
  z-index: 80;
  transition: width .1s linear;
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 176px 0 120px;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(38, 122, 205, .38), transparent 62%),
    linear-gradient(157deg, #0b2036 0%, #102c4b 46%, #153a63 100%);
}

.hero-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }

.hero-grid {
  position: absolute;
  inset: -12% -12%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 78%);
}

.hero-glow {
  position: absolute;
  width: 780px;
  height: 780px;
  right: -180px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 146, 232, .42), transparent 64%);
  filter: blur(8px);
}

.hero-rings { position: absolute; right: -140px; bottom: -260px; width: 720px; height: 720px; }
.hero-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 50%;
}
.hero-rings span:nth-child(1) { transform: scale(.55); }
.hero-rings span:nth-child(2) { transform: scale(.8); }
.hero-rings span:nth-child(3) { border-color: rgba(143, 196, 245, .16); }

.hero-inner { position: relative; z-index: 2; max-width: 1120px; }

.hero h1 {
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 100%;
}
.hero h1 em { font-style: normal; color: var(--sky); }

.hero-lead {
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
  color: rgba(228, 239, 250, .78);
  max-width: 600px;
  margin: 0 0 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13.5px;
  color: rgba(228, 239, 250, .58);
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  opacity: .8;
}

/* ---------- факты ---------- */

.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 36px 30px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--navy);
  font-weight: 700;
}
.fact span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- обо мне ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.about-text p { color: #3c4a58; font-size: 17.5px; line-height: 1.7; }
.about-text p strong { color: var(--ink); font-weight: 650; }

.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.principles li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: #3c4a58;
}
.principles li b { color: var(--blue); font-size: 13px; letter-spacing: .06em; padding-top: 3px; }

.about-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 38px 34px;
  color: #fff;
  background: linear-gradient(155deg, #0b2645 0%, #123a63 60%, #17457a 100%);
  box-shadow: var(--shadow);
}
.about-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
}
.about-panel .quote {
  font-size: 42px;
  line-height: .8;
  color: var(--sky);
  opacity: .8;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.about-panel p { color: rgba(232, 241, 250, .86); font-size: 16.5px; line-height: 1.6; }
.about-panel dl { margin: 26px 0 0; display: grid; gap: 14px; }
.about-panel dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(232, 241, 250, .5); }
.about-panel dd { margin: 3px 0 0; font-size: 15.5px; font-weight: 600; }

/* ---------- входы в курсы ---------- */

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 56px; }

.entry {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 36px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.entry::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 104, 199, .13), transparent 68%);
  transition: transform .45s var(--ease);
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c6dcf3; }
.entry:hover::after { transform: scale(1.35); }

.entry__count {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.entry h3 { font-size: clamp(23px, 2.4vw, 29px); margin-bottom: 12px; }
.entry p { color: var(--muted); font-size: 15.5px; max-width: 420px; margin-bottom: 24px; }
.entry__arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.entry__arrow svg { transition: transform .3s var(--ease); }
.entry:hover .entry__arrow svg { transform: translateX(6px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  min-height: 128px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.tile:hover { transform: translateY(-3px); border-color: #b8d2ee; background: #f8fbff; }
.tile b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: #b9c7d6; line-height: 1; }
.tile span { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--navy); }

/* ---------- карточки курсов ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 22px;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dbf0; }

.course-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.course-card__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #a9b7c6;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2fb;
  white-space: nowrap;
}
.chip--managers { color: #7a5a10; background: #fbf3dc; }
.chip--mixed { color: #3f5a6b; background: #eef3f7; }

.course-card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.course-card__sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.course-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4c5a68;
  margin: 0 0 20px;
}
.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: auto 0 18px;
  padding-top: 16px;
  border-top: 1px solid #eef3f8;
  font-size: 13px;
  color: var(--muted);
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-card__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .55;
}
.course-card__actions { display: flex; gap: 10px; }
.course-card__actions .btn { flex: 1; padding: 12px 16px; font-size: 14px; }

/* ---------- услуги ---------- */

.services { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 15px 40px 15px 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 40px; }
.service:nth-child(even) { padding-left: 40px; padding-right: 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--blue); padding-top: 6px; }
.service h3 { font-size: 19px; line-height: 1.3; margin-bottom: 7px; }
.service p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { padding-top: 22px; border-top: 2px solid var(--line); }
.step b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--blue);
  margin-bottom: 12px;
}
.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- материалы ---------- */

.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mat {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .28s var(--ease), box-shadow .28s;
}
.mat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mat__art { position: relative; height: 150px; background: linear-gradient(140deg, #eaf2fb, #d3e5f8); overflow: hidden; }
.mat__art::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(22, 104, 199, .18);
  border-radius: 6px;
}
.mat__art::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 46px;
  height: 34px;
  background: repeating-linear-gradient(180deg, rgba(22, 104, 199, .22) 0 2px, transparent 2px 9px);
}
.mat__art--2 { background: linear-gradient(140deg, #e6f0fa, #c9def6); }
.mat__art--2::after { background: repeating-linear-gradient(90deg, rgba(22, 104, 199, .22) 0 2px, transparent 2px 12px); }
.mat__art--3 { background: linear-gradient(140deg, #dfeaf7, #c3d9f1); }
.mat__art--4 { background: linear-gradient(140deg, #e9f1fa, #d8e7f7); }
.mat__body { padding: 20px 22px 24px; }
.mat h3 { font-size: 16px; margin-bottom: 6px; }
.mat p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- вопросы ---------- */

.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  margin-top: 1px;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; max-width: 700px; }

/* ---------- финальный блок ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(38px, 5vw, 68px);
  color: #fff;
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(47, 141, 224, .36), transparent 62%),
    linear-gradient(150deg, #071a2e, #0c2b4d 70%, #103861);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 44px;
  align-items: center;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.cta p { color: rgba(228, 239, 250, .74); max-width: 480px; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-note { font-size: 12.5px; color: rgba(228, 239, 250, .5); text-align: center; margin-top: 4px; }

/* ---------- контакты ---------- */

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 22px; margin-top: 8px; }
.contact-item { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-item dt, .contact-item .label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #93a3b4;
}
.contact-item .value { font-size: 17px; font-weight: 600; color: var(--navy); }
.contact-item a.value { text-decoration: none; }
.contact-item a.value:hover { color: var(--blue); }
.contact-item .contact-note { font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- подвал ---------- */

.site-footer { background: #182430; color: rgba(226, 236, 246, .66); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { opacity: .45; }
.footer-about { margin-top: 18px; max-width: 300px; line-height: 1.6; font-size: 13.5px; }
.footer-col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(226, 236, 246, .42); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; text-decoration: none; padding: 5px 0; color: rgba(226, 236, 246, .76); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 12.5px; color: rgba(226, 236, 246, .42); flex-wrap: wrap; }

/* ---------- кнопка наверх ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(12, 36, 64, .12);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(9, 32, 58, .45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s, color .2s;
  z-index: 55;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---------- модальное окно ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 32, .58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
.modal__panel {
  position: relative;
  width: min(620px, calc(100% - 28px));
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 36px 36px 30px;
  box-shadow: 0 40px 100px -30px rgba(4, 16, 30, .6);
  animation: rise .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--graphite);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.modal__close:hover { background: #f2f6fb; border-color: #c9d8e8; }
.modal__head { margin-bottom: 24px; padding-right: 40px; }
.modal__head h2 { font-size: 26px; margin-bottom: 8px; }
.modal__head p { font-size: 14.5px; color: var(--muted); margin: 0; }
.modal .eyebrow { margin-bottom: 12px; }

/* ---------- форма ---------- */

.field { margin-bottom: 16px; }
.field > label, .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--graphite); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9b8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 199, .13);
}
.field textarea { resize: vertical; min-height: 84px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }
.hint.is-set { color: var(--blue); font-weight: 600; }

.course-picker {
  margin-top: 8px;
  max-height: 216px;
  overflow-y: auto;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  background: #fbfdff;
}
.picker-group {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8496a8;
  padding: 11px 15px 4px;
  font-weight: 600;
}
.picker-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 15px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}
.picker-item:hover { background: #eef5fd; }
.picker-item.is-selected { background: #e3effc; font-weight: 600; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
  margin: 18px 0 20px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }

.form-note { font-size: 12px; color: #93a3b4; text-align: center; margin-top: 12px; }

.order-success { text-align: center; padding: 26px 8px 10px; }
.order-success__mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f4ec;
  color: #1c7a45;
}
.order-success h3 { font-size: 23px; margin-bottom: 10px; }
.order-success p { color: var(--muted); font-size: 15px; max-width: 400px; margin: 0 auto 22px; }

/* ---------- каталог ---------- */

.page-hero {
  padding: 152px 0 56px;
  background: linear-gradient(160deg, #f7faff 0%, #e9f2fb 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 16px; }
.page-hero .lead { max-width: 760px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { opacity: .5; }

.filters {
  position: sticky;
  top: 84px;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.filters__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f2f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg {
  border: 0;
  background: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--graphite);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.seg:hover:not(.is-active) { background: #e6eef8; }
.seg.is-active { background: var(--navy); color: #fff; }

.select-wrap { position: relative; display: inline-flex; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 38px 10px 16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--graphite);
  cursor: pointer;
  max-width: 270px;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8496a8;
  border-bottom: 1.5px solid #8496a8;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 199, .12);
}

.search {
  margin-left: auto;
  position: relative;
  min-width: 240px;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 104, 199, .12); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #93a3b4; }

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0 22px;
  font-size: 14px;
  color: var(--muted);
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 20px; }
.empty {
  display: none;
  padding: 60px 0 80px;
  text-align: center;
  color: var(--muted);
}
.empty.is-visible { display: block; }

/* ---------- страница курса ---------- */

.course-hero {
  padding: 104px 0 40px;
  color: #fff;
  background:
    radial-gradient(720px 420px at 84% 6%, rgba(47, 141, 224, .32), transparent 64%),
    linear-gradient(158deg, #071a2e 0%, #0a2440 55%, #0e3357 100%);
}
.course-hero .breadcrumbs { color: rgba(228, 239, 250, .55); }
.course-hero .breadcrumbs a { color: rgba(228, 239, 250, .7); }
.course-hero .breadcrumbs a:hover { color: #fff; }
.course-hero h1 { font-size: clamp(30px, 4vw, 50px); max-width: 880px; margin-bottom: 18px; }
.course-hero__sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(228, 239, 250, .72); max-width: 680px; margin-bottom: 20px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  font-size: 13.5px;
  color: rgba(240, 247, 253, .9);
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: clamp(32px, 5vw, 68px);
  padding: 40px 0 64px;
  align-items: start;
}
.course-main > section + section { margin-top: 46px; }
.course-main h2 { font-size: 25px; margin-bottom: 16px; }
.course-main p { color: #3c4a58; }
.course-main .lead { font-size: 17.5px; color: #3c4a58; }

.program { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.program li {
  position: relative;
  margin-left: 15px;
  padding: 0 0 24px 44px;
  border-left: 1px solid #dde7f2;
}
.program li:last-child { border-left-color: transparent; padding-bottom: 0; }
.program li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d5e4f5;
  background: #eaf2fb;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.program b { display: block; font-size: 16px; font-weight: 650; margin-bottom: 3px; }
.program span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.outcomes { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.outcomes li {
  position: relative;
  padding-left: 30px;
  color: #3c4a58;
  font-size: 16px;
}
.outcomes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.note {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid #d9e7f7;
  background: #f4f9ff;
  font-size: 14.5px;
  color: #3c4a58;
}

.order-card {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 24px 60px -38px rgba(9, 32, 58, .5);
}
.order-card__price { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.order-card__title { font-size: 21px; margin-bottom: 18px; }
.order-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.order-card ul li { position: relative; padding-left: 22px; font-size: 14.5px; color: #3c4a58; }
.order-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .6;
}
.order-card .btn { width: 100%; }
.order-card .btn + .btn { margin-top: 10px; }
.order-card__tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.order-card__tg:hover { color: var(--blue); }

.related { padding: 0 0 96px; }
.related h2 { font-size: 26px; margin-bottom: 26px; }

.mobile-order { display: none; }

/* ---------- появление при прокрутке ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .header-actions .tg-link span { display: none; }
  .grid-3, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .course-aside { display: none; }
  .mobile-order { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; }
  .mobile-order .btn { width: 100%; box-shadow: 0 18px 40px -14px rgba(22, 104, 199, .7); }
  body.has-mobile-order { padding-bottom: 84px; }
}

@media (max-width: 900px) {
  .header-inner { height: 72px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 70px -24px rgba(6, 24, 44, .5);
    color: var(--ink);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 11px 14px; font-size: 16px; line-height: 1.3; border-radius: 10px; }
  .nav-mobile-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav a:hover { background: #f2f7fd; }
  .nav-item { position: static; }
  .submenu {
    display: none;
    position: static;
    min-width: 0;
    padding: 0 0 0 10px;
    margin: 2px 0 4px 6px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub.is-open .submenu { display: block; }
  .has-sub.is-open .nav-sub-trigger svg { transform: rotate(180deg); }
  .submenu__hint { display: none; }
  .submenu a { padding: 9px 14px; font-size: 15px; }
  .has-sub:hover .nav-sub-trigger svg { transform: none; }
  .header-actions .btn-primary { display: none; }
  body.nav-open .site-header { background: rgba(255, 255, 255, .96); color: var(--ink); }
  body.nav-open { overflow: hidden; }

  .page-hero { padding-top: 100px; }
  .course-hero { padding-top: 124px; }
  .filters { position: static; top: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; padding-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
  .service { padding-right: 0; }
  .cta { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .search { margin-left: 0; width: 100%; min-width: 0; }
  .filters__bar { gap: 8px; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .select-wrap { flex: 1 1 200px; }
  .select-wrap select { width: 100%; max-width: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container, .container-wide { width: calc(100% - 36px); }
  .brand-text small { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .hero { padding: 130px 0 88px; }
  .hero h1 { font-size: clamp(28px, 8.8vw, 38px); letter-spacing: -.03em; }
  .seg { padding: 7px 10px; font-size: 12px; }
  .segmented { padding: 2px; gap: 1px; }
  .select-wrap select { padding: 9px 34px 9px 14px; font-size: 13px; }
  .search input { padding: 9px 14px 9px 36px; font-size: 13.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 18px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid-3, .catalog-grid, .tiles, .materials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .about-panel { padding: 30px 26px; }
  .course-card__actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .modal__panel { padding: 28px 20px 22px; margin: 2vh auto; max-height: 96vh; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-head__link { font-size: 14px; }
  .course-main h2 { font-size: 22px; }
  .page-hero { padding: 96px 0 24px; }
  .page-hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .filters { padding: 9px 0; }
  .segmented { flex-wrap: wrap; width: 100%; border-radius: 14px; }
  .seg { flex: 1 1 auto; padding: 7px 8px; font-size: 11.5px; }
  .page-hero .eyebrow { margin-bottom: 10px; }
  .to-top { right: 16px; bottom: 20px; width: 44px; height: 44px; }
  body.has-mobile-order .to-top { bottom: 88px; }
}

/* ---------- юридические страницы ---------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 42px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: #3c4a58; font-size: 16px; }
.legal ul { margin: 0 0 1em; padding-left: 22px; color: #3c4a58; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(22, 104, 199, .3); }
.legal a:hover { border-color: var(--blue); }
.legal__note {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- водяной знак HSE ---------- */

.hero-watermark {
  position: absolute;
  right: 2%;
  bottom: 34px;
  font-size: clamp(170px, 20vw, 320px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 196, 245, .14);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@media (max-width: 700px) {
  .hero-watermark { font-size: 118px; bottom: 24px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-layer { transform: none !important; }
}

/* ============================================================
   ГРАФИТОВАЯ ТЕМА
   ============================================================ */

:root {
  --ink: #e9f0f7;
  --graphite: #cfdae5;
  --navy: #0f1a24;
  --blue: #4a9de8;
  --ice: #222f3b;
  --line: #506374;
  --muted: #9fb0c1;
  --white: #3b4b5a;
}

html, body { background: #30404e; color: var(--ink); }

.section { background: #30404e; padding: clamp(18px, 1.8vw, 28px) 0; }
.section--ice { background: linear-gradient(180deg, #2a3947 0%, #30404e 100%); }
.section--tight { padding: clamp(40px, 4vw, 64px) 0; }

section[id] { scroll-margin-top: 96px; }

.facts { background: #30404e; border-color: var(--line); }
.fact { border-color: var(--line); }
.fact b { color: var(--ink); }
.fact span { color: var(--muted); }

.h2, .h3, .section-head .h2 { color: var(--ink); }
.lead { color: var(--muted); }

.entry, .tile, .course-card { background: #3b4b5a; border-color: var(--line); }
.entry h3, .tile span, .course-card h3, .mat h3 { color: var(--ink); }
.entry p, .course-card__desc, .course-card__meta, .course-card__sub, .mat p { color: var(--muted); }
.course-card__num { color: #6d7f91; }
.course-card__meta { border-color: #506374; }
.entry:hover, .tile:hover, .course-card:hover { border-color: var(--blue); background: #18222d; }
.entry__count, .section-head__link { color: var(--blue); }
.entry__arrow { color: var(--ink); }

.tile b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 1;
}

.about-text p { color: #c6d3df; }
.principles li { color: var(--muted); border-color: var(--line); }
.principles li b { color: var(--blue); }

.about-grid { grid-template-columns: 360px minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); }

.about-photo__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  border: 1px solid #4f6171;
  background:
    radial-gradient(320px 220px at 70% 20%, rgba(74, 157, 232, .1), transparent 70%),
    linear-gradient(160deg, #16212c 0%, #0f1820 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5f7183;
}
.about-photo__frame span {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.about-quote {
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  border-left: 3px solid var(--blue);
  background: linear-gradient(90deg, rgba(74, 157, 232, .08), transparent 72%);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.4;
  font-weight: 500;
  color: #dbe6f1;
}

.service { border-color: var(--line); }
.service h3 { color: var(--ink); }
.service p { color: var(--muted); }

.mat { background: #3b4b5a; border-color: var(--line); }
.mat h3 { color: var(--ink); }
.mat p { color: var(--muted); }
.mat__art { background: linear-gradient(140deg, #16222f, #182430); }
.mat__art::before { border-color: rgba(143, 196, 245, .16); }
.mat__art::after { background: repeating-linear-gradient(180deg, rgba(143, 196, 245, .22) 0 2px, transparent 2px 9px); }
.mat__art--2 { background: linear-gradient(140deg, #152232, #182430); }
.mat__art--2::after { background: repeating-linear-gradient(90deg, rgba(143, 196, 245, .2) 0 2px, transparent 2px 12px); }
.mat__art--3 { background: linear-gradient(140deg, #16232f, #0f1a24); }
.mat__art--4 { background: linear-gradient(140deg, #172433, #182430); }

.step { border-color: var(--line); }
.step h3 { color: var(--ink); }
.step p { color: var(--muted); }

.faq details { border-color: var(--line); }
.faq summary { color: var(--ink); }
.faq details p { color: var(--muted); }
.faq summary::after { color: var(--blue); }
.faq details[open] summary::after { content: "−"; }

.site-header.is-scrolled,
body.page-inner .site-header {
  background: rgba(28, 40, 51, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.submenu { background: #3b4b5a; border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.submenu a { color: var(--ink); }
.submenu a span { color: var(--muted); }
.submenu a:hover { background: #3b4b5a; }
.submenu__hint { color: #6d7f91; }

.tg-link--max {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
}

.btn-primary { background: #2b7fd4; color: #fff; box-shadow: 0 16px 34px -18px rgba(43, 127, 212, .9); }
.btn-primary:hover { background: #2d8ae0; }
.btn-line { background: transparent; border-color: #2c3a47; color: var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); }

.search input,
.select-wrap select,
.segmented { background: #3b4b5a; border-color: #4f6171; color: var(--ink); }
.seg { color: var(--muted); }
.seg:hover:not(.is-active) { background: #3b4b5a; }
.seg.is-active { background: #2b7fd4; color: #fff; }
.filters { background: rgba(28, 40, 51, .96); border-color: var(--line); }

.page-hero { background: linear-gradient(160deg, #2a3947 0%, #30404e 100%); border-color: var(--line); padding: 106px 0 34px; }
.page-hero--slim { padding: 100px 0 6px; }
.page-hero--slim .breadcrumbs { margin-bottom: 0; }
.breadcrumbs, .breadcrumbs a { color: var(--muted); }
.catalog-meta { color: var(--muted); }

.course-main p, .course-main .lead, .legal p, .legal ul, .outcomes li { color: #c6d3df; }
.course-main h2, .legal h2 { color: var(--ink); }
.legal__note { color: var(--muted); border-color: var(--line); }
.legal a { color: var(--blue); }

.note { background: #1f2c38; border-color: #223244; color: #c6d3df; }
.program li { border-color: #506374; }
.program b { color: var(--ink); }
.program span { color: var(--muted); }

.order-card { background: #3b4b5a; border-color: var(--line); box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .9); }
.order-card__title { color: var(--ink); }
.order-card ul li { color: #c6d3df; }
.order-card__tg { color: var(--muted); }

.modal__panel { background: #3b4b5a; color: var(--ink); }
.modal__close { background: #3b4b5a; border-color: var(--line); color: var(--ink); }
.modal__close:hover { background: #3b4b5a; border-color: #3a4b5c; }
.modal__head p { color: var(--muted); }
.field > label, .field-label { color: var(--graphite); }
.field input, .field select, .field textarea { background: #2a3947; border-color: #4f6171; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6d7f91; }
.check { color: var(--muted); }
.course-picker { background: #2a3947; border-color: #4f6171; -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
.picker-group { color: #7d8fa1; }
.picker-item { color: var(--ink); }
.picker-item:hover { background: #3b4b5a; }
.picker-item.is-selected { background: #2f4a64; }
.picker-item--custom { color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#customCourseField { margin-top: 12px; }
.hint { color: var(--muted); }
.form-note { color: #6d7f91; }

.chip { background: rgba(74, 157, 232, .16); color: #a8cdf0; }
.chip--managers { background: rgba(200, 170, 90, .16); color: #e0c37a; }
.chip--mixed { background: rgba(150, 170, 190, .14); color: #b8c8d6; }

.to-top { background: #3b4b5a; color: var(--ink); border-color: #4f6171; }
.to-top:hover { background: #2b7fd4; color: #fff; }

.hero-watermark { color: rgba(74, 157, 232, .05); -webkit-text-stroke: 2px rgba(150, 200, 248, .6); text-shadow: 0 0 36px rgba(74, 157, 232, .5); }

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(48, 64, 78, 0) 0%, #30404e 94%);
  pointer-events: none;
  z-index: 1;
}

.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav {
    background: #3b4b5a;
    color: var(--ink);
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8);
  }
  .nav a:hover { background: #3b4b5a; }
  .nav-mobile-actions { border-color: var(--line); }
  body.nav-open .site-header { background: rgba(28, 40, 51, .98); color: var(--ink); }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-quote { font-size: 18px; }
}

/* ---------- нижняя панель на телефоне ---------- */

.tabbar { display: none; }

@media (max-width: 900px) {
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 62;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(28, 40, 51, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }

  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .tabbar__item.is-active { color: var(--ink); }
  .tabbar__item.is-active svg { color: var(--blue); }
  .tabbar__item--accent { color: var(--blue); }

  body:not(.has-mobile-order) { padding-bottom: 78px; }
  body.has-mobile-order .tabbar { display: none; }
  .to-top { bottom: 86px; }
  body.has-mobile-order .to-top { bottom: 88px; }
}

/* ---------- logo and photo ---------- */
.brand-mark {
  width: 52px;
  height: 52px;
  padding: 0;
  background: none;
  border-radius: 13px;
  overflow: hidden;
}
.brand-logo { width: 100%; height: 100%; display: block; border-radius: 13px; }

.about-photo__frame { padding: 0; overflow: hidden; }
.about-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

@media (max-width: 700px) {
  .brand-mark { width: 44px; height: 44px; }
}


/* ---------- без мелких стрелок и висячих слов ---------- */
.section-head__link svg,
.entry__arrow svg { display: none; }

.hero h1,
.course-hero h1 { text-wrap: balance; }

.course-main p { text-wrap: pretty; }


.course-hero h1.course-hero__title--long {
  font-size: clamp(26px, 3.3vw, 46px);
  letter-spacing: -.03em;
  max-width: 1040px;
}


/* ---------- галерея проведённых курсов ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #3b4b5a;
}

.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
}


.mat__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 157, 232, .35);
  transition: border-color .2s;
}
.mat__link:hover { border-color: var(--blue); }


.mat__art--photo { padding: 0; }
.mat__art--photo::before,
.mat__art--photo::after { display: none; }
.mat__art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }


.mat__art { height: 200px; }
.mat__art--photo img { width: 100%; height: 100%; object-fit: cover; }


/* ---------- портфолио: ссылки, карточки, просмотр ---------- */
.mat--link { display: block; text-decoration: none; color: inherit; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; }
.mat--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #506374; }

.mat__more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid #506374;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .2s, color .2s;
}
.mat--link:hover .mat__more { border-color: var(--blue); color: var(--blue); }

.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.item-card { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #3b4b5a; }
.item-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #243139; display: block; cursor: zoom-in; }
.item-card figcaption { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.item-card__link { align-self: flex-start; color: var(--blue); font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(74, 157, 232, .35); }

.gallery__item img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 17, .94);
}
.lightbox.is-open { display: flex; }
.lightbox__scroll {
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px;
  border-radius: 12px;
}
.lightbox__scroll img { max-width: min(92vw, 880px); height: auto; border-radius: 10px; display: block; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(20, 28, 36, .8);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .items-grid { grid-template-columns: 1fr; }
}


.mat--link { display: flex; flex-direction: column; height: 100%; }
.mat--link .mat__body { flex: 1; display: flex; flex-direction: column; }
.mat--link .mat__body p { margin-bottom: 14px; }
.mat--link .mat__more { margin-top: auto; align-self: flex-start; }

.item-card__hint { font-size: 12.5px; color: var(--muted); }


/* ---------- отзывы ---------- */
.review-form {
  background: #3b4b5a;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 28px;
}
.review-form[hidden] { display: none; }
.review-form h2 { margin-bottom: 18px; }
.review-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.review-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.review-form input,
.review-form select {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #4f6172;
  background: #2f3d4a;
  color: var(--ink);
  font-size: 14px;
}
.review-form textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #4f6172;
  background: #2f3d4a;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus { outline: none; border-color: var(--blue); }
.review-form__text { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.review-card__text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.review-form__stars { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.review-form__label { font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars button {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 26px;
  line-height: 1;
  color: #5b6b7b;
  cursor: pointer;
}
.stars button.is-on { color: #f0b33c; }
.review-form__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-form__note { font-size: 12.5px; color: var(--muted); }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-card { background: #3b4b5a; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.review-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.review-card__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.review-card__stars { color: #f0b33c; font-size: 15px; letter-spacing: 1px; }
.review-card__course { font-size: 13px; color: var(--blue); margin-bottom: 10px; }
.review-card__meta { font-size: 12.5px; color: var(--muted); }
.reviews__empty { color: var(--muted); }

.course-card__rating,
.course-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #f0b33c;
  margin: 6px 0 4px;
}
.course-card__rating[hidden],
.course-hero__rating[hidden] { display: none; }

@media (max-width: 700px) {
  .review-form__row, .reviews { grid-template-columns: 1fr; }
  .review-form { padding: 20px; }
}

.review-form__error { font-size: 13px; color: #ff9b8a; }
.review-form__error[hidden] { display: none; }
