:root {
  --ink: #152030;
  --muted: #66707d;
  --canvas: #f4f4f0;
  --surface: #ffffff;
  --line: #dce0df;
  --site: #0b6d9d;
  --site-deep: #075176;
  --site-pale: #e6f2f6;
  --auto: #d76f2e;
  --auto-deep: #974011;
  --auto-pale: #fff0e4;
  --navy: #172b3d;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(28, 41, 54, 0.1);
  --layout: 980px; /* ширина макета на десктопе */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #e9934e;
  outline-offset: 4px;
}

.container { width: min(var(--layout), calc(100% - 64px)); margin: 0 auto; }
.narrow { width: min(720px, 100%); }
.section { padding: 128px 0; }

.section-number,
.eyebrow,
.faculty-kicker,
.format {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.7rem, 2.1vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h3 {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose p { color: var(--muted); font-size: 1.05rem; }
.prose p + p { margin-top: 20px; }
.closing { color: var(--ink) !important; font-weight: 700; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(21, 32, 48, 0.08);
  background: rgba(244, 244, 240, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 36px; /* вписываем в высоту шапки ~63px */
}

.site-header nav {
  display: flex;
  gap: 44px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
}
.site-header nav a { padding: 7px 0; }
.site-header nav a:hover { color: var(--site); }

.site-header .container { width: min(var(--layout), calc(100% - 64px)); }

/* Первый экран: иллюстрация как фон */
.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 63px);
  align-items: center;
  padding: 56px 0 72px;
  overflow: hidden;
  background-color: #f4f4f0;
  background-image:
    linear-gradient(
      90deg,
      #f4f4f0 0%,
      rgba(244, 244, 240, 0.92) 28%,
      rgba(244, 244, 240, 0.55) 48%,
      rgba(244, 244, 240, 0.15) 68%,
      transparent 82%
    ),
    url("img/bg_hero.jpg");
  background-repeat: no-repeat;
  background-position: left center, right center;
  background-size: auto, auto 92%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
  animation: hero-copy-in 0.65s ease both;
}

.hero .eyebrow {
  max-width: 520px;
  color: var(--site-deep);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero h1 {
  max-width: 520px;
  margin-bottom: 16px;
}

.lead {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { box-shadow: 0 11px 22px rgba(20, 38, 55, 0.18); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-sites { color: #fff; background: #004269; }
.button-sites:hover { background: #003554; }
.button-automation { color: #fff; background: #f28c28; }
.button-automation:hover { background: #e07a18; }
.fine-print { max-width: 500px; margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.browser-window {
  position: absolute;
  top: 88px;
  left: 14%;
  width: 44%;
  padding: 16px;
  border: 1px solid #c4d5d9;
  border-radius: 4px 15px 4px 15px;
  background: #fff;
  box-shadow: 17px 18px 0 rgba(13, 96, 128, 0.12), 0 24px 48px rgba(21, 44, 58, 0.16);
  transform: rotate(-1.5deg);
}

.browser-bar { display: flex; align-items: center; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid #edf0ee; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d5dddd; }
.browser-bar i:first-child { background: #e58d55; }
.browser-bar span { width: 40%; height: 7px; margin-left: 5px; border-radius: 5px; background: #edf1f0; }
.browser-page { padding: 13px 10px 8px; }
.editor-stage { position: relative; display: grid; min-height: 370px; padding: 23px; grid-template-columns: 0.72fr 1.28fr; grid-template-rows: 205px 12px 9px 96px; gap: 9px; border: 1px solid #e8f0ef; background: #f8fcfc; }
.editor-type { display: grid; place-items: center; border: 2px dashed #5faed5; color: #234d71; background: #fff; font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-size: 3rem; font-weight: 700; }
.editor-image { position: relative; overflow: hidden; background: linear-gradient(155deg, #9fc8dc, #dcebf0); }.editor-image::before { position: absolute; right: 13px; top: 15px; width: 22px; height: 22px; border-radius: 50%; content: ""; background: #f9f3de; }.editor-image span { position: absolute; bottom: 0; left: -5%; width: 74%; height: 59%; background: #6a9cb9; clip-path: polygon(0 100%, 50% 10%, 100% 100%); }.editor-image i { position: absolute; right: -4%; bottom: 0; width: 75%; height: 69%; background: #4e83a4; clip-path: polygon(0 100%, 50% 18%, 100% 100%); }
.editor-title { grid-column: 1 / -1; width: 45%; background: #1b79ba; }.editor-copy { grid-column: 1 / -1; width: 70%; background: #d0e4e8; }.editor-cards { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; }.editor-cards i { display: block; background: #d9eced; }.editor-cards i:nth-child(2) { background: #cfe4ef; }.editor-cards i:nth-child(3) { background: #e9eff0; }
.elementor-badge { position: absolute; left: 9%; top: 40%; z-index: 2; display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #e84e68; box-shadow: 0 9px 20px rgba(63, 38, 55, .19); font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-size: 2rem; font-weight: 700; }
.editor-palette { position: absolute; left: 3%; bottom: 165px; z-index: 2; display: grid; width: 132px; padding: 9px; grid-template-columns: repeat(3, 1fr); gap: 7px; border: 1px solid #c7dce2; border-radius: 7px; background: rgba(255, 255, 255, .96); box-shadow: 0 11px 20px rgba(28, 60, 80, .14); }.editor-palette i { display: block; height: 28px; border: 1px solid #d8e4e7; border-radius: 3px; background: linear-gradient(135deg, #fff 46%, #e1f0f1 47%); }.editor-palette i:nth-child(2n) { background: linear-gradient(135deg, #fff 46%, #ecf5ff 47%); }
.code-badge { position: absolute; right: 46%; bottom: 76px; z-index: 2; display: grid; width: 63px; height: 46px; place-items: center; border: 1px solid #8cb8cf; border-radius: 5px; color: #fff; background: #0c568c; box-shadow: 0 9px 15px rgba(20, 65, 97, .2); font-size: 1rem; font-weight: 800; transform: rotate(-3deg); }

.visual-label {
  position: absolute;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-label-sites { top: 35px; left: 8%; color: #075176; background: #d2eef2; }
.visual-label-automation { top: 101px; right: 8%; bottom: auto; color: #813809; background: #ffdcba; }
.flow-diagram { position: absolute; right: 7%; bottom: 62px; width: 43%; height: 350px; }
.flow-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-diagram path { fill: none; stroke: var(--auto); stroke-width: 2; stroke-dasharray: 3 6; }
.node { position: absolute; z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #e6a66f; border-radius: 13px; color: #a1480f; background: #fff8f0; box-shadow: 0 10px 17px rgba(148, 67, 16, 0.12); font-size: 1.1rem; font-weight: 800; }
.node-one { top: 18px; left: 0; width: 92px; border-radius: 10px; font-size: 1rem; }.node-two { top: 85px; left: 42%; }.node-three { top: 85px; right: 0; }.node-four { top: 158px; left: 42%; }.node-five { top: 158px; right: 0; }.node-six { right: 0; bottom: 10px; }
.visual-caption { position: absolute; bottom: 25px; left: 8%; margin: 0; color: #587078; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }

.problem {
  border-top: 1px solid var(--line);
  background: #f7f7f3;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  column-gap: 48px;
  row-gap: 40px;
  align-items: start;
}

/* Левая колонка: номер + заголовок с вертикальной чертой */
.problem-intro {
  position: relative;
  padding-left: 22px;
}

.problem-intro::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, #0b6d9d 0 52%, #f28c28 52% 100%);
}

.problem-intro .section-number {
  margin-bottom: 14px;
  color: #0b6d9d;
}

.problem-intro h2 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
  line-height: 1.3;
}

.problem-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
}

.problem-item {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr);
  gap: 14px 12px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid #e4e4df;
}

.problem-item:last-child { border-bottom: 1px solid #e4e4df; }

.problem-num {
  padding-top: 4px;
  color: #0b6d9d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.problem-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #1a3a52;
}

.problem-icon svg { width: 36px; height: 36px; }

.problem-item-copy h3 {
  margin: 0 0 8px;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.problem-item-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Нижняя плашка-вывод */
.problem-closing {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid #e0e0da;
  border-left: 3px solid #0b6d9d;
  background: #fff;
}

.problem-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #0b6d9d;
}

.problem-check svg { display: block; width: 28px; height: 28px; }

.problem-closing p {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.idea { background: var(--navy); }
.idea .section-number { color: #9dbac4; }
.idea h2 { color: #fff; }
.idea .prose p { color: #c5d3d9; }

.split-intro { display: grid; grid-template-columns: 170px minmax(0, 800px); gap: 82px; }
.split-intro .section-number { padding-top: 10px; }

.choice { background: #f0f0eb; }
.choice h2 { margin-bottom: 38px; }
.faculty-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.faculty-choice {
  display: flex;
  min-height: 322px;
  flex-direction: column;
  padding: 28px 30px;
  border: 1px solid;
  border-radius: 3px 22px 3px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.faculty-choice:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.faculty-choice h3 { max-width: 460px; margin: 20px 0 13px; font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
.faculty-choice p { max-width: 520px; color: var(--muted); font-size: 0.85rem; }
.site-choice { border-color: #b9d8df; background: #e1f0f1; }
.automation-choice { border-color: #edc49a; background: #ffead3; }

.choice-icon { position: relative; width: 71px; height: 52px; }
.site-icon { border: 2px solid var(--site); border-radius: 3px; }
.site-icon span { position: absolute; display: block; height: 5px; background: var(--site); }.site-icon span:nth-child(1) { top: 11px; left: 10px; width: 35px; }.site-icon span:nth-child(2) { top: 23px; left: 10px; width: 50px; background: #78afc5; }.site-icon span:nth-child(3) { right: 10px; bottom: 9px; width: 19px; background: #f0a55d; }
.automation-icon span { position: absolute; width: 15px; height: 15px; border: 2px solid var(--auto); border-radius: 50%; }.automation-icon span:nth-child(1) { top: 0; left: 0; }.automation-icon span:nth-child(2) { right: 5px; top: 17px; }.automation-icon span:nth-child(3) { bottom: 0; left: 23px; }.automation-icon span:nth-child(4) { top: 25px; left: 8px; width: 40px; height: 2px; border: 0; border-top: 2px dashed var(--auto); transform: rotate(-28deg); }
.program-count { margin-top: auto; padding-top: 16px; color: var(--ink) !important; font-size: 0.72rem !important; font-weight: 800; }
.text-link, .program-card a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.79rem; font-weight: 800; }
.site-choice .text-link, .faculty-sites .program-card a { color: var(--site-deep); }.automation-choice .text-link, .faculty-automation .program-card a { color: var(--auto-deep); }
.text-link:hover, .program-card a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.choice-note { max-width: 820px; margin: 27px 0 0; color: var(--muted); font-size: 0.9rem; }

.faculty { scroll-margin-top: 88px; }
.faculty-sites { background: #fff; }
.faculty-automation { background: #fdfbf8; }
.faculty-heading { max-width: 890px; }
.faculty-kicker { color: var(--site); }
.faculty-automation .faculty-kicker { color: #e06a23; }

/* Общий верх направлений: текст + картинка */
.faculty-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.faculty-copy .faculty-kicker { margin-bottom: 14px; }
.faculty-sites .faculty-copy .faculty-kicker { color: #0b6d9d; }

.faculty-copy h2 {
  max-width: 440px;
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 1.28;
}

.faculty-copy p {
  max-width: 480px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faculty-copy p:last-child { margin-bottom: 0; }

.faculty-visual {
  position: relative;
  margin-top: 8px;
}

.faculty-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Сетка программ — оба направления */
.faculty-sites .program-intro,
.faculty-automation .program-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}

.faculty-sites .program-intro h3,
.faculty-automation .program-intro h3 {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.faculty-sites .program-intro span {
  color: #0b6d9d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faculty-automation .program-intro span {
  color: #e06a23;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faculty-sites .program-grid,
.faculty-automation .program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faculty-sites .program-card,
.faculty-automation .program-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid #e5e8e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(21, 32, 48, 0.02);
}

.program-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.program-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: #0b6d9d;
}

.faculty-automation .program-icon { color: #e06a23; }

.program-icon svg { width: 22px; height: 22px; }

.faculty-sites .program-card .format {
  margin: 0;
  color: #0b6d9d;
  font-size: 0.65rem;
}

.faculty-automation .program-card .format {
  margin: 0;
  color: #e06a23;
  font-size: 0.65rem;
}

.faculty-sites .program-card h3,
.faculty-automation .program-card h3 {
  margin: 0 0 10px;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.faculty-sites .program-card > p,
.faculty-automation .program-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.faculty-sites .program-card a {
  margin-top: auto;
  padding-top: 16px;
  color: #0b6d9d;
  font-size: 0.78rem;
  font-weight: 700;
}

.faculty-automation .program-card a {
  margin-top: auto;
  padding-top: 16px;
  color: #e06a23;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Блок результата */
.faculty-outcome {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 36px;
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 4px;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.06) 60%, rgba(255, 255, 255, 0.06) 61%, transparent 61%) 100% 0 / 180px 180px no-repeat,
    linear-gradient(135deg, transparent 70%, rgba(255, 255, 255, 0.05) 70%) 100% 40px / 120px 120px no-repeat,
    #0b6d9d;
}

.faculty-outcome--auto {
  background:
    linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0.06) 61%, transparent 61%) 100% 0 / 180px 180px no-repeat,
    linear-gradient(135deg, transparent 70%, rgba(0, 0, 0, 0.05) 70%) 100% 40px / 120px 120px no-repeat,
    #e06a23;
}

.faculty-outcome .section-number {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.faculty-outcome h2 {
  max-width: 360px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  line-height: 1.28;
}

.faculty-outcome-right p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.55;
}

.faculty-outcome-right p + p { margin-top: 12px; }

.button-sites-light {
  margin-top: 20px;
  color: #0b6d9d;
  background: #fff;
}

.button-sites-light:hover { background: #eaf5fa; }

.button-automation-light {
  margin-top: 20px;
  color: #974011;
  background: #fff;
}

.button-automation-light:hover { background: #fff4ea; }

.program-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 70px 0 22px; }
.program-intro h3 { margin: 0; font-size: 1.55rem; }
.program-intro span { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.program-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 21px 18px;
  border: 1px solid #dce4e2;
  border-radius: 5px 14px 5px 14px;
  background: rgba(255, 255, 255, 0.85);
}

.program-card .format { margin-bottom: 12px; color: var(--site); }
.program-card h3 { margin-bottom: 12px; font-size: 1.08rem; }
.program-card > p:not(.format) { color: var(--muted); font-size: 0.77rem; line-height: 1.55; }
.program-card a { margin-top: auto; padding-top: 16px; font-size: 0.72rem; }

.outcome { padding: 0 0 44px; color: #fff; }
.outcome-grid { display: grid; max-width: 870px; margin-right: 0; margin-left: auto; padding: 28px 32px; grid-template-columns: 0.9fr 1.1fr; gap: 34px; border-radius: 8px; }
.outcome h2 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.outcome .section-number { color: rgba(255, 255, 255, 0.7); }
.outcome .prose p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.82rem; }
.outcome .prose p + p { margin-top: 12px; }
.outcome .button { margin-top: 18px; font-size: 0.7rem; }

.why { background: var(--surface); }
.club {
  color: #fff;
  background: #0a1828;
}

.club-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.club-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #e06a23;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.club-kicker::before {
  width: 2px;
  height: 1.1em;
  content: "";
  background: #e06a23;
}

.club-heading h2 {
  max-width: 420px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.1vw, 1.9rem);
  line-height: 1.28;
}

.club-content {
  color: #b8c5d0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.club-content p { margin: 0; }
.club-content p + p { margin-top: 16px; }

.club-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.club-points li {
  position: relative;
  padding: 0 18px 0 36px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.club-points li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.club-points li::before {
  position: absolute;
  top: 0.15em;
  left: 14px;
  width: 14px;
  height: 10px;
  border-bottom: 2px solid #e06a23;
  border-left: 2px solid #e06a23;
  content: "";
  transform: rotate(-45deg);
}

.club-points li:first-child { padding-left: 22px; }
.club-points li:first-child::before { left: 0; }

.audience { background: var(--surface); }
.author { background: #e3edef; }
.author-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 800px);
  gap: 56px;
  align-items: start;
}
.author-photo {
  width: 220px;
  overflow: hidden;
  border-radius: 8px;
}
.author-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq { background: var(--surface); }
.faq h2 { margin-bottom: 38px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 23px 42px 23px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  position: absolute;
  top: 13px;
  right: 5px;
  color: var(--site);
  content: "+";
  font-size: 1.8rem;
  font-weight: 400;
  transition: transform 0.28s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

/* Плавное раскрытие ответа */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq details.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer-inner p {
  max-width: 690px;
  margin: 0;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.faq-answer-inner p:last-child { padding-bottom: 25px; }

.final { padding: 148px 0; background: #dcebed; }
.final-inner { max-width: 940px; }
.final h2 { max-width: 850px; }
.final-copy { max-width: 780px; color: var(--muted); font-size: 1.04rem; }
.final .fine-print { max-width: 760px; }

/* ——— Модалка подписки перед оплатой ——— */
html {
  scrollbar-gutter: stable; /* без скачка ширины при открытии попапа */
}

body.pay-modal-open {
  overflow: hidden;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.pay-modal[hidden] {
  display: none;
}

.pay-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 40, 0.72);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.pay-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(242, 140, 40, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(11, 109, 157, 0.18), transparent 50%),
    #101c2b;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.96);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.pay-modal.is-visible .pay-modal__backdrop { opacity: 1; }
.pay-modal.is-visible .pay-modal__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.pay-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c5d0d9;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.pay-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pay-modal__badge {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #f28c28;
  background: rgba(242, 140, 40, 0.14);
}

/* Пульсация только после появления, без scale — чтобы не дёргало карточку */
.pay-modal.is-visible .pay-modal__badge {
  animation: pay-badge-pulse 2.2s ease-in-out 0.45s infinite;
}

.pay-modal__badge svg { width: 34px; height: 34px; }

@keyframes pay-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(242, 140, 40, 0); }
}

.pay-modal__kicker {
  margin: 0 0 10px;
  color: #f28c28;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-modal__dialog h2 {
  max-width: none;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.pay-modal__text p {
  margin: 0;
  color: #b8c5d0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pay-modal__text p + p { margin-top: 12px; }
.pay-modal__text strong { color: #fff; font-weight: 800; }

.pay-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pay-modal__cancel {
  color: #d5dee6;
  background: rgba(255, 255, 255, 0.08);
}

.pay-modal__cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.pay-modal__confirm { flex: 1 1 auto; min-width: 180px; }

@media (max-width: 520px) {
  .pay-modal__dialog { padding: 30px 20px 22px; }
  .pay-modal__actions { flex-direction: column-reverse; }
  .pay-modal__confirm,
  .pay-modal__cancel { width: 100%; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a1828;
  color: #9aa8b5;
}

.footer-inner {
  display: grid;
  gap: 14px;
  padding: 36px 0 40px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
}

.footer-copy,
.footer-ogrn,
.footer-notice {
  margin: 0;
}

.footer-copy {
  color: #fff;
  font-weight: 700;
}

.footer-notice {
  max-width: 720px;
  color: #7f8e9c;
  font-size: 0.74rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 6px;
}

.footer-nav a {
  color: #b8c5d0;
  font-weight: 600;
}

.footer-nav a:hover { color: #f28c28; }

.footer-nav a:not(:last-child)::after {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.25);
  content: "|";
  font-weight: 400;
}

/* пустой блок удалён — макет направлений общий */

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: 56px 0 64px;
    background-image:
      linear-gradient(
        180deg,
        rgba(244, 244, 240, 0.96) 0%,
        rgba(244, 244, 240, 0.9) 58%,
        rgba(244, 244, 240, 0.72) 100%
      ),
      url("img/bg_hero.jpg");
    background-position: center top, right 8% top;
    background-size: cover, 680px auto;
  }
  .hero-copy { max-width: 560px; }
  .section { padding: 96px 0; }
  .faculty-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .faculty-copy h2,
  .faculty-copy p { max-width: none; }
  .faculty-visual { max-width: 480px; margin: 0 auto; }
  .faculty-outcome { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
  .faculty-outcome h2 { max-width: none; }
  .club-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .club-heading h2 { max-width: none; }
  .club-points {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 22px;
  }
  .club-points li,
  .club-points li:first-child {
    padding: 0 0 0 28px;
    border-left: 0;
  }
  .club-points li + li { border-left: 0; }
  .club-points li::before,
  .club-points li:first-child::before { left: 0; }
  .split-intro, .outcome-grid { grid-template-columns: 1fr; gap: 31px; }
  .split-intro .section-number { padding-top: 0; }
  .author-grid { grid-template-columns: 160px 1fr; gap: 34px; }
  .author-photo { width: 160px; }
  .program-card { min-height: 0; }
  .problem-layout { grid-template-columns: 1fr; row-gap: 28px; }
  .problem-intro { max-width: 520px; }
  .problem-intro h2 { max-width: none; }
  .problem-closing { padding: 18px 20px; }
  .outcome { padding: 0 0 38px; }
  .outcome-grid { margin: 0; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 32px, var(--layout)); }
  .header-inner { min-height: 62px; gap: 10px; }
  .header-inner .brand img { height: 30px; }
  .header-inner nav { gap: 10px; font-size: 0.61rem; }
  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
    background-image:
      linear-gradient(180deg, rgba(244, 244, 240, 0.97) 0%, rgba(244, 244, 240, 0.94) 100%),
      url("img/bg_hero.jpg");
    background-position: center, right -40px top 40px;
    background-size: cover, 560px auto;
  }
  .section { padding: 72px 0; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.45rem; }
  .lead, .prose p, .club-content, .final-copy { font-size: 0.98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; padding: 12px 16px; }
  .browser-window { top: 68px; }
  .visual-label-sites { top: 25px; }
  .flow-diagram { right: 5%; bottom: 20px; width: 59%; height: 178px; }
  .visual-label-automation { top: auto; right: 5%; bottom: 95px; }
  .visual-caption { bottom: 9px; }
  .problem-item {
    grid-template-columns: 24px 36px minmax(0, 1fr);
    gap: 10px 10px;
    padding: 18px 0;
  }
  .problem-item-copy h3 { font-size: 0.76rem; }
  .problem-closing {
    flex-direction: column;
    gap: 12px;
  }
  .faculty-sites .program-grid,
  .faculty-automation .program-grid { grid-template-columns: 1fr; }
  .faculty-choice-grid, .program-grid { grid-template-columns: 1fr; }
  .faculty-choice { min-height: 0; padding: 28px 24px; }
  .program-intro { margin-top: 44px; }
  .program-intro h3 { font-size: 1.32rem; }
  .program-card { padding: 25px 22px 21px; }
  .program-card h3 { font-size: 1.18rem; }
  .outcome-grid { gap: 25px; }
  .author-grid { grid-template-columns: 1fr; gap: 24px; }
  .author-photo { width: min(220px, 70%); }
  .footer-inner { padding: 28px 0 32px; }
  .footer-nav a:not(:last-child)::after { margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
