/* Шрифты Manrope и Oswald (SIL Open Font License) лежат на сайте, без Google Fonts. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #202724;
  --forest: #24352e;
  --forest-2: #31473d;
  --sage: #7f9184;
  --muted: #56625b;
  --field: #b8c1ad;
  --paper: #f1efe8;
  --paper-2: #e5e1d6;
  --brass: #b28a4a;
  --brass-dark: #76572a;
  --line: rgba(32, 39, 36, 0.16);
  --white: #fffdf6;
  --shadow: 0 24px 70px rgba(22, 28, 25, 0.18);
  --sans: "Manrope", Arial, sans-serif;
  --display: "Oswald", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  overflow-x: hidden;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-shell {
  max-width: 1640px;
  margin: 0 auto;
  background: var(--paper);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-pad {
  padding-left: clamp(22px, 6vw, 96px);
  padding-right: clamp(22px, 6vw, 96px);
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(22px, 6vw, 96px);
  background: rgba(241, 239, 232, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: drop-shadow(0 7px 10px rgba(32, 39, 36, 0.24));
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: #3f4944;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a,
.header-phone,
.header-messengers a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.header-phone:hover,
.header-messengers a:hover {
  color: var(--brass-dark);
}

.header-phone {
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-messengers a {
  width: 38px;
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  line-height: 1;
  box-shadow: 0 5px 12px rgba(32, 39, 36, 0.16);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.header-messengers a:hover,
.header-messengers a:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 16px rgba(32, 39, 36, 0.22);
}

.messenger-link--whatsapp {
  background: #20b965;
}

.messenger-link--telegram {
  background: #229ed9;
}

.messenger-link--max {
  background: transparent;
  box-shadow: none;
}

.messenger-icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.messenger-icon--image {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  background: transparent;
  padding: 7px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 39, 35, 0.96) 0%, rgba(28, 39, 35, 0.72) 46%, rgba(28, 39, 35, 0.22) 100%),
    url("images/65dbb6e6-7864-4869-b7f6-07da928b8b94-1600.webp");
  background-position: center 32%;
  background-size: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 82px 0 128px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Подписи над заголовками на светлом фоне: бронза темнее, на зелёном фоне - графит (контраст от 4.5:1). */
.section-heading .section-kicker,
.legal-page .section-kicker,
.modal-dialog .section-kicker {
  color: var(--brass-dark);
}

.path .section-kicker,
.contact .section-kicker {
  color: #3f4944;
}

.hero h1,
.section-heading h2,
.format-copy h2,
.contact h2,
.modal-dialog h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.95;
}

.hero h1 .hero-sub {
  display: block;
  max-width: 900px;
  margin-top: clamp(18px, 2.4vw, 30px);
  color: #f0c57b;
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.12;
}

.legend {
  max-width: 680px;
  margin: 0;
  color: #e4e5dc;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-checkpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-checkpoints span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 253, 246, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.08);
  color: #f3f0e7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brass);
  color: #171a18;
}

.button-primary:hover {
  background: #c49b59;
}

.button-quiet {
  border: 1px solid rgba(255, 253, 246, 0.4);
  background: transparent;
  color: var(--white);
}

.button-quiet:hover {
  background: rgba(255, 253, 246, 0.1);
}

.photo-break {
  min-height: clamp(230px, 32vw, 460px);
  background:
    linear-gradient(90deg, rgba(36, 53, 46, 0.08), rgba(36, 53, 46, 0.62)),
    url("images/38a50c9b-6d01-44c0-8752-9e98ae1e64c8-1600.webp");
  background-position: center 54%;
  background-size: cover;
  filter: saturate(1.12);
  clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%);
  margin-top: -24px;
  margin-bottom: -24px;
  position: relative;
  z-index: 2;
}

.section-heading h2,
.format-copy h2,
.contact h2 {
  margin: 18px 0 0;
  color: var(--forest);
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
}

.contact p,
.format-copy > p {
  margin: 0;
  color: #56625b;
  font-size: 18px;
  line-height: 1.75;
}

.program-card span,
.steps span {
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.program-card h3,
.steps b {
  margin: 54px 0 12px;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.2;
}

.program-card p,
.steps p {
  margin: 0;
  color: #606a63;
  font-size: 14px;
  line-height: 1.65;
}

.entry-tabs {
  padding-top: 92px;
  padding-bottom: 96px;
  background: var(--paper);
}

.why-first {
  padding-top: 92px;
  padding-bottom: 98px;
  background: var(--paper);
}

.audience {
  padding-top: 92px;
  padding-bottom: 98px;
  background: var(--paper-2);
}

.why-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.why-grid article,
.trust-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.68);
}

.why-grid span {
  display: block;
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.why-grid h3,
.trust-grid h3 {
  margin: 24px 0 12px;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.22;
}

.why-grid p,
.trust-grid p {
  margin: 0;
  color: #56625b;
  font-size: 15px;
  line-height: 1.7;
}

.audience-grid,
.path-grid,
.outcome-grid,
.intent-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card,
.path-card,
.outcome-card,
.intent-card,
.content-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
}

.audience-card span,
.path-card span,
.intent-card span {
  display: block;
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.audience-card h3,
.path-card h3,
.intent-card h3 {
  margin: 24px 0 12px;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.22;
}

.audience-card p,
.path-card p,
.outcome-card p,
.intent-card p {
  margin: 0;
  color: #56625b;
  font-size: 15px;
  line-height: 1.7;
}

.intent-pages {
  padding-top: 86px;
  padding-bottom: 92px;
  background: var(--paper-2);
}

.intent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card p a {
  color: var(--brass-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Кнопка заявки посреди длинной страницы: не нужно листать до конца */
.section-cta {
  margin-top: 30px;
}

.intent-card {
  display: block;
  transition: transform 0.2s ease, background 0.2s ease;
}

.intent-card:hover {
  transform: translateY(-4px);
  background: var(--white);
}

.inner-page {
  background: var(--paper);
}

.inner-page .site-header {
  position: static;
}

.inner-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
  background:
    linear-gradient(90deg, rgba(32, 39, 36, 0.84), rgba(32, 39, 36, 0.54)),
    url("images/65dbb6e6-7864-4869-b7f6-07da928b8b94-1600.webp") center / cover;
  color: var(--white);
}

.inner-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  text-transform: uppercase;
}

.inner-hero .legend {
  max-width: 760px;
  margin-top: 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 253, 246, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #f0c57b;
}

.legal-page .breadcrumbs {
  color: #56625b;
}

.legal-page .breadcrumbs a {
  color: var(--brass-dark);
}

.desktop-nav a[aria-current="page"] {
  color: var(--brass-dark);
}

.content-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-grid a {
  color: var(--brass-dark);
  font-weight: 800;
}

.content-page {
  padding-top: 88px;
  padding-bottom: 88px;
}

.content-grid article {
  background: var(--white);
}

.content-grid h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.content-grid p {
  margin: 0;
  color: rgba(32, 39, 36, 0.76);
  line-height: 1.75;
}

.entry-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.entry-tab {
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 28px 22px;
  border-radius: 8px;
  background: #58739e;
  color: var(--white);
  text-align: left;
  box-shadow: 0 16px 38px rgba(35, 55, 83, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.entry-tab:hover,
.entry-tab.is-active {
  transform: translateY(-4px);
  background: #4c688f;
  box-shadow: 0 22px 48px rgba(35, 55, 83, 0.26);
}

.entry-tab span {
  max-width: 210px;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.entry-panels {
  position: relative;
}

.entry-panel {
  scroll-margin-top: 88px;
  min-height: 390px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 106, 146, 0.98), rgba(79, 106, 146, 0.86)),
    url("images/bc43ebfb-beae-49f3-846b-76d64f36bf2d-1024.webp");
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: 0 24px 64px rgba(35, 55, 83, 0.2);
}

.entry-panel[data-panel="payments"] {
  background:
    linear-gradient(90deg, rgba(79, 106, 146, 0.7), rgba(79, 106, 146, 0.98) 38%),
    url("images/3f702e4a-7b39-4ad0-a9e2-188c804b1d4f-1024.webp");
  background-position: left center;
  background-size: cover;
}

.entry-panel[data-panel="benefits"] {
  background:
    linear-gradient(90deg, rgba(79, 106, 146, 0.98), rgba(79, 106, 146, 0.9)),
    url("images/e45fb2d6-61d1-4c3e-8d5f-ff23ad0deea2-1024.webp");
  background-position: center;
  background-size: cover;
}

.entry-panel h3 {
  max-width: 780px;
  margin: 0 0 34px;
  color: var(--white);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 54px;
  max-width: 1040px;
}

.entry-list p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 16px;
  align-items: start;
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.entry-list span {
  width: 32px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 18px 18px;
  background: #ef4a4d;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(37, 48, 62, 0.18);
}

.entry-list strong {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
}

.entry-list small {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.entry-list-tiles p {
  grid-template-columns: 42px 1fr;
}

/* Галочка слева на две строки, сумма и подпись справа (иначе подпись падала в колонку 42px) */
.entry-list-tiles span {
  grid-row: span 2;
}

.entry-list-tiles strong,
.entry-list-tiles small {
  grid-column: 2;
}

.entry-list-wide {
  gap: 22px 48px;
}

.entry-list-wide p {
  font-size: clamp(16px, 1.35vw, 22px);
}

.entry-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 52px;
  max-width: 1120px;
}

.entry-list + .entry-text {
  margin-top: 40px;
}

.entry-text-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.entry-group h4 {
  margin: 0 0 12px;
  color: #ffe2a8;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-group li,
.entry-steps li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 30px;
  color: var(--white);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
}

.entry-group li::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ef4a4d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.entry-group p,
.entry-note {
  margin: 12px 0 0;
  color: rgba(255, 253, 246, 0.86);
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.65;
}

.entry-note {
  max-width: 900px;
  margin-top: 30px;
  font-size: 14px;
  font-style: italic;
}

.entry-steps {
  max-width: 940px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: entry-step;
}

.entry-steps li {
  min-height: 40px;
  margin-bottom: 22px;
  padding-top: 6px;
  padding-left: 58px;
  counter-increment: entry-step;
}

.entry-steps li::before {
  content: counter(entry-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ef4a4d;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

/* Кнопка и мессенджеры одни под всеми вкладками */
.entry-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.entry-cta .messenger-links {
  margin-top: 0;
}

.entry-cta .button {
  min-width: min(420px, 100%);
  background: #c41e25;
  color: var(--white);
  text-transform: uppercase;
}

.entry-cta .button:hover {
  background: #a8181f;
}

.messenger-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messenger-links {
  margin-top: 18px;
}

.messenger-links .messenger-link,
.contact-links .messenger-link {
  width: 50px;
  height: 50px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(32, 39, 36, 0.18);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.messenger-links .messenger-link:hover,
.contact-links .messenger-link:hover,
.messenger-links .messenger-link:focus-visible,
.contact-links .messenger-link:focus-visible {
  transform: translateY(-2px);
  color: var(--white);
  filter: brightness(1.08);
  box-shadow: 0 12px 22px rgba(32, 39, 36, 0.24);
}

.messenger-links .messenger-icon,
.contact-links .messenger-icon {
  width: 27px;
  height: 27px;
}

.messenger-links .messenger-icon--image,
.contact-links .messenger-icon--image {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.header-messengers .messenger-link--max:hover,
.header-messengers .messenger-link--max:focus-visible,
.messenger-links .messenger-link--max:hover,
.messenger-links .messenger-link--max:focus-visible,
.contact-links .messenger-link--max:hover,
.contact-links .messenger-link--max:focus-visible {
  box-shadow: none;
}

.program {
  padding-top: 96px;
  padding-bottom: 105px;
  background: var(--paper-2);
}

.section-heading {
  max-width: 1080px;
  margin-bottom: 48px;
}

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

.program-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  background: var(--forest);
  border: 1px solid rgba(255, 253, 246, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(32, 39, 36, 0.16);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 29, 25, 0.04) 20%, rgba(18, 29, 25, 0.92) 100%);
  content: "";
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 54px rgba(32, 39, 36, 0.24);
}

.program-card:hover .program-card-photo {
  transform: scale(1.06);
}

.program-card-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.02);
  transition: transform 0.5s ease;
}

.program-card > span,
.program-card > h3,
.program-card > p {
  position: relative;
  z-index: 1;
}

.program-card > span {
  position: absolute;
  top: 24px;
  left: 28px;
  color: #f0c57b;
}

.program-card h3 {
  margin: 0 28px 12px;
  color: var(--white);
}

.program-card strong {
  color: #f0c57b;
}

.program-card p {
  margin: 0 28px 28px;
  color: #f3f0e7;
}

.format {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding-top: 100px;
  padding-bottom: 110px;
}

/* Один крупный призыв по центру: фраза и кнопка, без лишнего текста */
.psychology {
  display: flex;
  justify-content: center;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(36, 53, 46, 0.96), rgba(36, 53, 46, 0.82)),
    url("images/e45fb2d6-61d1-4c3e-8d5f-ff23ad0deea2-1024.webp");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.psychology-copy {
  max-width: 1100px;
}

.psychology h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.psychology .button {
  min-height: 66px;
  margin-top: clamp(30px, 4vw, 48px);
  padding: 0 44px;
  font-size: 18px;
  box-shadow: 0 0 0 6px rgba(178, 138, 74, 0.22), 0 20px 44px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psychology .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 10px rgba(178, 138, 74, 0.26), 0 24px 52px rgba(0, 0, 0, 0.4);
}

.path {
  padding-top: 94px;
  padding-bottom: 100px;
  background: var(--field);
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-card {
  border-color: rgba(36, 53, 46, 0.16);
  background: rgba(255, 253, 246, 0.64);
}

/* Список должностей: карточки с фото, подробности открываются окном поверх страницы */
.positions {
  padding-top: 92px;
  padding-bottom: 98px;
  background: var(--paper);
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.position-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(32, 39, 36, 0.08);
}

.position-card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.position-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 22px;
}

.position-card h3 {
  flex: 1;
  margin: 0;
  color: var(--forest);
  font-size: 20px;
  line-height: 1.25;
}

.position-card-button {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(36, 53, 46, 0.08);
  color: var(--forest);
  font-size: 15px;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.position-card-button:hover,
.position-card-button:focus-visible {
  background: var(--brass);
  color: #171a18;
}

.position-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(82vh, 700px);
  padding: 30px 28px 26px;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.position-dialog[open] {
  animation: position-dialog-in 0.22s ease-out;
}

.position-dialog::backdrop {
  background: rgba(20, 27, 24, 0.62);
  backdrop-filter: blur(3px);
}

@keyframes position-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .position-dialog[open] {
    animation: none;
  }
}

.position-dialog h4 {
  margin: 0 0 14px;
  color: var(--forest);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Крестик прилипает к верху окна: в длинном списке он не уезжает при прокрутке */
.position-dialog-close {
  position: sticky;
  top: 0;
  z-index: 1;
  float: right;
  margin: -14px -12px 0 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(36, 53, 46, 0.08);
  color: var(--forest);
  font-size: 26px;
  line-height: 1;
}

.position-dialog-close:hover,
.position-dialog-close:focus-visible {
  background: var(--brass);
  color: #171a18;
}

.position-subtitle {
  margin: 18px 0 2px;
  color: var(--brass-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.position-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: #56625b;
  font-size: 15px;
  line-height: 1.5;
}

.position-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}

.position-list b {
  color: var(--forest);
}

.position-dialog .button {
  width: 100%;
  margin-top: 22px;
}

.format-gallery {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.format-gallery figure {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.format-gallery figure:first-child {
  grid-row: span 2;
}

.format-gallery figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(18, 29, 25, 0.82) 100%);
  content: "";
}

.format-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.format-gallery figure:hover img {
  transform: scale(1.07);
  filter: saturate(1.3);
}

.format-gallery figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-copy h2 {
  max-width: 700px;
}

.format-copy {
  max-width: none;
}

.steps {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.steps > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  grid-row: span 2;
  line-height: 1;
}

.steps b {
  margin: 0;
  font-size: 18px;
}

.format .button {
  margin-top: 34px;
}

.outcomes {
  padding-top: 88px;
  padding-bottom: 94px;
  background: var(--paper-2);
}

.outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.outcome-card {
  min-height: 185px;
  background: var(--forest);
  border-color: rgba(255, 253, 246, 0.16);
}

.outcome-card strong {
  display: block;
  margin-bottom: 18px;
  color: #f0c57b;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.outcome-card p {
  color: #e4e5dc;
}

.search-intent {
  padding-top: 86px;
  padding-bottom: 90px;
  background: var(--paper-2);
}

.trust {
  padding-top: 88px;
  padding-bottom: 94px;
  background: var(--paper);
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article {
  min-height: 210px;
}

.faq {
  padding-top: 86px;
  padding-bottom: 90px;
  background: var(--paper);
}

/* Вопросы по центру страницы, заголовок над ними тоже */
.faq .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-list details[open]:not([data-state="closed"]) {
  border-color: rgba(118, 87, 42, 0.45);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(32, 39, 36, 0.08);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 20px 22px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Плюс поворачивается в крестик, когда вопрос открыт */
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(36, 53, 46, 0.08);
  color: var(--brass-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-list details[open]:not([data-state="closed"]) summary::after {
  transform: rotate(45deg);
  background: rgba(118, 87, 42, 0.14);
}

.faq-list ul {
  margin: 0;
  padding: 0 22px 22px 40px;
  color: #56625b;
  line-height: 1.7;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: #56625b;
  font-size: 16px;
  line-height: 1.7;
}

.search-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.search-intent-grid p {
  min-height: 220px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.62);
  color: #46524b;
  font-size: 16px;
  line-height: 1.75;
}

/* Последний блок: слева призыв, справа одна карточка со всеми способами связи */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(300px, 380px);
  justify-content: start;
  align-items: center;
  gap: 40px clamp(48px, 7vw, 120px);
  padding-top: 86px;
  padding-bottom: 88px;
  background: var(--field);
}

.contact > div:first-child {
  max-width: 720px;
}

.contact p:not(.section-kicker) {
  max-width: 560px;
  margin-top: 22px;
  color: #3f4944;
}

/* p.contact-or: иначе перебивает .contact p:not(.section-kicker) с отступом 22px */
.contact p.contact-or {
  margin: 0;
  color: #56625b;
  font-size: 14px;
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(36, 53, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 18px 40px rgba(32, 39, 36, 0.1);
}

.contact-actions .button {
  width: 100%;
  min-height: 56px;
}

.contact-phone {
  color: var(--forest);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.contact-phone:hover {
  color: var(--brass-dark);
}

.contact-links {
  justify-content: center;
}

.contact-links .messenger-link {
  color: var(--white);
}

.footer {
  min-height: 112px;
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  max-width: 560px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover,
.footer-meta a:hover,
.content-links a:hover {
  color: var(--brass-dark);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--forest);
  text-align: right;
  font-size: 13px;
  font-weight: 800;
}

.footer-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 39, 36, 0.78);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100% - 32px));
  padding: 42px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  color: var(--sage);
  font-size: 30px;
}

.modal-dialog h2 {
  margin: 18px 0 14px;
  color: var(--forest);
  font-size: 56px;
  line-height: 1;
}

.modal-dialog > p:not(.section-kicker) {
  color: #56625b;
  line-height: 1.6;
}

.modal-dialog form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-dialog label {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-dialog input[type="text"],
.modal-dialog input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.modal-dialog input:focus,
.modal-dialog select:focus {
  border-color: var(--brass);
}

.modal-dialog label small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.modal-dialog select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.form-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-choice legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-dialog .form-choice label {
  position: relative;
  letter-spacing: 0;
  text-transform: none;
}

.form-choice input {
  position: absolute;
  opacity: 0;
}

.form-choice span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.form-choice input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.form-choice input:focus-visible + span {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #56625b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brass);
}

.checkbox a {
  color: var(--brass-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}


.form-error {
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(177, 55, 55, 0.12);
  color: #8f2525;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}








/* Баннер по центру внизу, на широком экране текст и кнопки в одну строку */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 28;
  width: min(860px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 8px;
  background: rgba(32, 39, 36, 0.96);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.cookie-banner a {
  color: #f0c57b;
  font-weight: 800;
}

.cookie-banner .button {
  min-height: 42px;
  padding: 0 16px;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 86px;
}

.legal-page h1 {
  margin: 18px 0 28px;
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 40px 0 12px;
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  scroll-margin-top: 24px;
}

.legal-page p {
  color: #4d5a53;
  font-size: 17px;
  line-height: 1.75;
}

.legal-page a {
  color: var(--brass-dark);
  font-weight: 800;
}


.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--brass);
  background: rgba(255, 253, 246, 0.7);
}

/* Меню из 6 пунктов, телефон и мессенджеры не помещаются в строку уже на планшете: прячем меню под кнопку */
@media (max-width: 1100px) {
  .desktop-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 10px clamp(22px, 6vw, 96px) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(32, 39, 36, 0.12);
    font-size: 15px;
  }

  .desktop-nav a {
    padding: 11px 0;
  }

  .desktop-nav.is-open {
    display: flex;
  }

  .header-phone {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  /* На сенсорных экранах ссылки в шапке, подвале и крошках - под палец, а не 18 px в высоту */
  .header-phone,
  .footer-links a,
  .footer-meta a,
  .breadcrumbs a {
    display: inline-block;
    padding: 7px 0;
  }

  .footer-links,
  .footer-meta {
    row-gap: 0;
  }

  .breadcrumbs {
    align-items: center;
    gap: 2px 8px;
    margin-bottom: 14px;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .header-phone {
    font-size: 12px;
  }

  .header-messengers a {
    width: 34px;
    min-width: 34px;
  }

  .entry-tab-list,
  .why-grid,
  .program-grid,
  .audience-grid,
  .path-grid,
  .outcome-grid,
  .intent-grid,
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-list,
  .entry-text {
    grid-template-columns: 1fr;
  }

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

  .search-intent-grid {
    grid-template-columns: 1fr;
  }

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

  .search-intent-grid p {
    min-height: 0;
  }

  .format-gallery {
    min-height: 430px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .positions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    width: 100%;
    max-width: 420px;
  }

  .cookie-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  /* На телефоне фон в размере 1024 px: экран узкий, файл в 2 раза легче */
  .photo-break {
    background:
      linear-gradient(90deg, rgba(36, 53, 46, 0.08), rgba(36, 53, 46, 0.62)),
      url("images/38a50c9b-6d01-44c0-8752-9e98ae1e64c8-1024.webp");
    background-position: center 54%;
    background-size: cover;
  }

  .inner-hero {
    background:
      linear-gradient(90deg, rgba(32, 39, 36, 0.84), rgba(32, 39, 36, 0.54)),
      url("images/65dbb6e6-7864-4869-b7f6-07da928b8b94-1024.webp") center / cover;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 36px 24px;
    grid-template-areas: "brand messengers menu" "phone messengers menu";
    height: 68px;
    align-content: center;
    gap: 0 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .desktop-nav {
    top: 100%;
    padding: 6px 22px 14px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
    gap: 8px;
  }

  .brand-mark,
  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-name small {
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .header-phone {
    grid-area: phone;
    justify-self: start;
    margin: 0;
    padding: 2px 0;
    line-height: 20px;
    font-size: 14px;
  }


  .header-messengers {
    grid-area: messengers;
    margin-left: auto;
    gap: 4px;
  }

  .header-messengers a {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .header-messengers .messenger-icon {
    width: 18px;
    height: 18px;
  }

  .header-messengers .messenger-icon--image {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .menu-toggle {
    grid-area: menu;
    padding: 5px;
  }

  .inner-hero {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  /* Длинные слова вроде «ПСИХОЛОГИЧЕСКАЯ» не должны вылезать за экран */
  .inner-hero h1 {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-inner {
    max-width: 100%;
    padding-top: 46px;
    padding-bottom: 72px;
  }

  .hero h1 {
    max-width: 100%;
    margin: 6px 0 0;
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .hero h1 .hero-sub {
    margin-top: 16px;
    font-size: clamp(21px, 6.4vw, 28px);
    line-height: 1.18;
  }

  .legend {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-checkpoints {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-checkpoints span {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 56px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(28, 39, 35, 0.99) 0%, rgba(28, 39, 35, 0.84) 58%, rgba(28, 39, 35, 0.58) 100%),
      url("images/65dbb6e6-7864-4869-b7f6-07da928b8b94-1024.webp");
    background-position: 62% 36%;
  }

  .photo-break {
    min-height: 180px;
  }

  .program,
  .why-first,
  .audience,
  .intent-pages,
  .entry-tabs,
  .psychology,
  .path,
  .format,
  .outcomes,
  .trust,
  .faq,
  .search-intent,
  .contact {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .section-heading h2,
  .format-copy h2,
  .contact h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .contact p,
  .format-copy > p {
    font-size: 16px;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .audience-grid,
  .path-grid,
  .outcome-grid,
  .intent-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .why-grid article,
  .trust-grid article,
  .audience-card,
  .path-card,
  .outcome-card,
  .intent-card,
  .content-grid article {
    min-height: 0;
    padding: 20px;
  }

  .why-grid h3,
  .trust-grid h3,
  .audience-card h3,
  .path-card h3,
  .intent-card h3,
  .content-grid h2 {
    margin-top: 18px;
    font-size: 20px;
  }

  .entry-tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .entry-tab {
    min-height: 68px;
    gap: 8px;
    padding: 14px;
  }

  .entry-tab:hover,
  .entry-tab.is-active {
    transform: none;
  }

  .entry-tab span {
    font-size: 13px;
    line-height: 1.3;
  }

  .entry-cta .button {
    width: 100%;
  }

  .entry-panel {
    min-height: 0;
  }

  .entry-list p {
    grid-template-columns: 34px 1fr;
  }

  .entry-list span {
    width: 28px;
    height: 31px;
    font-size: 18px;
  }

  .program-card {
    min-height: 0;
    display: block;
    padding: 24px 18px 24px;
  }

  .program-card h3 {
    margin: 0 0 14px;
    font-size: clamp(24px, 8.4vw, 32px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .program-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .program-card > span {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 0.9;
  }

  .program-card::after {
    background: linear-gradient(180deg, rgba(18, 29, 25, 0.66) 0%, rgba(18, 29, 25, 0.9) 54%, rgba(18, 29, 25, 0.97) 100%);
  }

  .program-card-photo {
    object-position: center;
  }

  .format-gallery {
    min-height: 360px;
  }

  .psychology {
    background:
      linear-gradient(180deg, rgba(36, 53, 46, 0.98), rgba(36, 53, 46, 0.9)),
      url("images/e45fb2d6-61d1-4c3e-8d5f-ff23ad0deea2-1024.webp");
    background-position: 58% center;
    background-size: cover;
  }

  .psychology h2 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.04;
  }

  .psychology .button {
    width: 100%;
    padding: 0 18px;
    font-size: 16px;
  }

  .faq-list summary {
    padding: 18px;
    font-size: 16px;
  }

  .faq-list p {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .steps > div {
    grid-template-columns: 34px 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .footer-meta {
    gap: 0;
  }

  .footer-meta span {
    margin-top: 8px;
  }

  .modal-dialog {
    width: min(500px, calc(100% - 20px));
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 28px 22px 24px;
  }

  /* Заголовок окна в одну строку: кнопка «Отправить» остаётся на экране телефона */
  .modal-dialog h2 {
    margin: 10px 0 8px;
    font-size: 34px;
  }


  /* Компактный баннер: на телефоне он не должен закрывать первый экран */
  .cookie-banner {
    bottom: max(10px, env(safe-area-inset-bottom));
    background: #fff7e7;
    color: var(--ink);
    border-top: 3px solid var(--brass);
    box-shadow: 0 8px 28px #18251d40, 0 0 0 150vmax #16211c55;
    width: calc(100% - 20px);
    gap: 10px;
    padding: 12px;
  }

  .contact-actions {
    max-width: none;
    padding: 22px 18px;
  }

  .contact-phone {
    font-size: 26px;
  }

  .cookie-banner a { color: #644718; }
  .cookie-banner .button-quiet {
    background: transparent;
    color: var(--forest);
    border-color: #788378;
  }

  .cookie-banner p {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-banner > div {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .positions {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .positions-grid {
    gap: 10px;
  }

  .position-card-body {
    gap: 12px;
    padding: 12px 12px 14px;
  }

  .position-card h3 {
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .position-card-button {
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 1.2;
  }

  .position-dialog {
    padding: 24px 18px 20px;
  }

  .position-dialog h4 {
    font-size: 24px;
  }

  .position-list li {
    font-size: 14px;
  }

  .cookie-banner .button {
    flex: 1 1 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.8vw, 44px);
  }

  .program-card h3 {
    font-size: 25px;
  }
}
