/* Мастерсам · крупная типографика и единый экранный ритм. */
:root {
  --orange: #ff8a00;
  --paper: #fff9f1;
  --cream: #fff0d9;
  --ink: #202020;
  --muted: #605e59;
  --line: #e5dfd5;
  --header-height: 80px;
  --screen: calc(100svh - var(--header-height));
  --container: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
html.overlay-open { overflow: hidden; overscroll-behavior: none; }
body.overlay-open { position: fixed; top: var(--overlay-scroll-top); width: 100%; overflow: hidden; }
html.menu-open { overflow: hidden; overscroll-behavior: none; }
body.menu-open { position: fixed; top: var(--menu-scroll-top); width: 100%; overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.08; }
h2 { font-size: clamp(42px, 3.7vw, 56px); }
h3 { font-size: 26px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #995100; outline-offset: 5px; }
::selection { background: var(--orange); color: var(--ink); }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 300; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.orange { color: var(--orange); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.status-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex: 0 0 auto; }

/* Одинаковая высота основных разделов; содержимое может расти при увеличении текста. */
.screen-section { min-height: var(--screen); padding: 40px 0; display: flex; align-items: center; position: relative; border-bottom: 1px solid var(--line); }
.screen-section > .container { flex-shrink: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p { max-width: 390px; font-size: 19px; color: var(--muted); line-height: 1.5; }
.section-lead { margin-top: 20px; color: var(--muted); font-size: 19px; }

/* Единая система кнопок: нормальный регистр, крупный текст, ровная строка. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 16px 24px; border: 1px solid transparent; border-radius: 12px; background: var(--orange); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-align: center; white-space: nowrap; transition: background .18s; }
.button:hover { background: #ffa125; }
.button-small { min-height: 48px; padding: 12px 20px; font-size: 16px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #383838; }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--cream); }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.text-link:hover, .inline-link:hover { color: #a75400; }
.inline-link { text-decoration: underline; text-underline-offset: 4px; }

/* Шапка */
.header { position: sticky; z-index: 50; top: 0; height: var(--header-height); background: rgba(255,249,241,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 220px; }
.navigation { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.navigation a { font-size: 16px; font-weight: 600; white-space: nowrap; }
.navigation a:hover { color: #a75400; }
.navigation .mobile-menu-cta { display: none; }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }

/* Первый экран */
.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(52px, 5vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; margin: 22px 0 26px; }
.hero-title-hyphen { padding-inline: .06em; letter-spacing: 0; }
.hero h1 > .hero-audience { display: block; margin-top: 14px; font-size: .56em; line-height: 1.13; letter-spacing: -.035em; color: var(--orange); }
.hero-description { font-size: 24px; line-height: 1.35; font-weight: 600; max-width: 570px; }
.hero-detail { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 550px; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.hero-actions .text-link { font-size: 17px; }
.hero-facts { display: grid; grid-template-columns: .85fr 1.15fr; gap: 25px; max-width: 540px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts > div { display: flex; flex-direction: column; gap: 5px; }
.hero-facts strong { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.hero-facts span { font-size: 15px; color: var(--muted); line-height: 1.4; max-width: 225px; }
.hero-visual { height: min(63svh, 590px); min-height: 420px; position: relative; isolation: isolate; }
.hero-orbit { position: absolute; z-index: -2; width: 112%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); left: 5%; top: 0; }
.hero-orbit-line { position: absolute; z-index: -3; width: 121%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #dfceb1; left: .5%; top: -4%; }
.hero-trial-badge { position: absolute; z-index: 5; top: -1%; left: 17%; display: block; min-height: 50px; padding: 13px 20px; border: 1px solid #eee6db; border-radius: 14px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 7px 20px #39230e0d; transition: background .18s, border-color .18s; }
.hero-trial-badge > span { white-space: nowrap; }
.hero-trial-badge:hover { background: var(--paper); border-color: #e6b77f; }
.hero-learning-badge { display: none; }
.hero-photo { position: absolute; left: 4%; top: 12%; width: 96%; height: 62%; border-radius: 24px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 16px 35px #5b330021; }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 55%; }
.hero-photo-small { position: absolute; left: -2%; bottom: 0; width: 60%; height: 42%; border: 7px solid var(--paper); border-radius: 18px; overflow: hidden; background: var(--paper); transform: rotate(-5deg); box-shadow: 0 18px 35px #39230e18; }
.hero-photo-small > img { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: 55% 45%; border-radius: 10px; }
.hero-photo-small figcaption { padding: 9px 5px 0; font-size: 12px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.hero-code { position: absolute; z-index: 4; top: 6%; left: -3%; width: 85px; height: 85px; border-radius: 21px; background: white; display: grid; place-items: center; transform: rotate(-12deg); box-shadow: 0 6px 0 #e9e2d7, 0 16px 20px #39230e0d; }
.hero-code > span { font: 700 34px/1 monospace; letter-spacing: -.1em; }
.hero-sticker { position: absolute; right: 4%; bottom: 8%; color: #fff; transform: rotate(6deg); }
.hero-sticker strong { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }

/* Три направления */
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.direction-card { display: flex; flex-direction: column; padding: 22px 22px 0; border: 1px solid var(--line); border-radius: 22px; background: white; transition: border-color .18s; }
.direction-card:hover { border-color: #f5aa54; }
.direction-top { display: flex; align-items: center; min-height: 36px; font-size: 13px; letter-spacing: .04em; font-weight: 700; }
.direction-art { position: relative; height: clamp(155px, 21svh, 225px); margin: 15px 0 20px; border-radius: 14px; overflow: hidden; }
.direction-card h3 { font-size: 26px; line-height: 1.12; min-height: 58px; margin-bottom: 12px; }
.direction-card > p { color: var(--muted); font-size: 18px; line-height: 1.45; margin-bottom: 20px; }
.direction-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.code-art { background: var(--cream); display: flex; align-items: center; justify-content: center; }
.code-window { position: relative; z-index: 2; width: 90%; background: var(--ink); color: white; border-radius: 10px; overflow: hidden; transform: rotate(-5deg); box-shadow: 0 10px 16px #28201b24; }
.window-dots { display: flex; gap: 5px; align-items: center; border-bottom: 1px solid #ffffff15; padding: 10px 12px; }
.window-dots i { width: 5px; height: 5px; background: #777; border-radius: 50%; }
.window-dots i:first-child { background: var(--orange); }
.window-dots span { margin-left: auto; font: 10px monospace; color: #bbb; }
.code-lines { display: flex; flex-direction: column; padding: 12px 16px; font: 12px/1.6 monospace; }
.code-lines b, .code-cursor { color: var(--orange); font-weight: 400; }
.code-lines em { color: #e8cb95; font-style: normal; }
.code-comment { color: #aaa; }
.code-decoration { position: absolute; right: -5px; bottom: 0; font: 700 100px/1 monospace; letter-spacing: -.1em; color: #ff8a0030; }
.ai-art { background: var(--cream); }
.ai-orbit { position: absolute; right: -8px; top: 20px; width: 210px; height: 210px; border-radius: 50%; background: var(--orange); }
.ai-tile { position: absolute; display: grid; place-items: center; background: white; border-radius: 17px; box-shadow: 0 5px 0 #e9e2d7, 0 10px 18px #36250d18; }
.ai-tile img { width: 55%; height: 55%; object-fit: contain; }
.tile-openai { width: 92px; height: 92px; left: 38%; top: 28%; transform: rotate(-9deg); }
.tile-gemini { width: 60px; height: 60px; left: 10%; top: 13%; transform: rotate(-8deg); }
.tile-claude { width: 57px; height: 57px; right: 10%; top: 9%; transform: rotate(8deg); }
.tile-deepseek { width: 58px; height: 58px; right: 4%; bottom: 9%; transform: rotate(-6deg); }
.tile-n8n { width: 62px; height: 62px; left: 7%; bottom: 12%; transform: rotate(7deg); }
.engineering-art { background: var(--paper); }
.engineering-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* Каталог: 4 крупные карточки на экран, подробности в диалоге. */
.courses-section { background: white; }
.course-controls { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 24px; }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.direction-filter { display: none; }
.filter { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 16px; line-height: 1.2; font-weight: 600; }
.filter.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.filter:hover:not(.is-active) { background: var(--paper); }
.filter span { font-size: 14px; opacity: .7; }
.age-filter { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); white-space: nowrap; }
.age-filter select { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 16px; padding: 11px; min-height: 46px; max-width: 185px; }
.course-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.course-grid.is-transitioning { overflow: clip; will-change: opacity, transform, height; }
/* All desktop pages contribute to a shared natural row height, including
   filtered-out cards. Visibility + inert keep those cards out of interaction
   and the accessibility tree, without measuring or hard-coding text heights. */
@media (min-width: 1100px) {
  .course-grid[data-paginated] > .course-card { grid-row: 1; grid-column: var(--course-column); }
  .course-grid[data-paginated] > .course-card[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
  .course-grid[data-paginated] > .empty-state { grid-row: 1; align-content: center; }
}
.course-card { --card-padding: 22px; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 var(--card-padding); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.course-card:hover { border-color: #f5aa54; }
.course-cover { position: relative; flex-shrink: 0; aspect-ratio: 8 / 5; margin: 0 calc(-1 * var(--card-padding)) 20px; overflow: hidden; border-radius: 17px 17px 0 0; background: var(--cream); }
.course-cover img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(-44%); }
.course-cover-landscape img { height: 100%; object-fit: cover; transform: none; }
.course-meta { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; margin: 0; }
.course-meta > span:first-child { display: none; }
.age-badge { padding: 6px 10px; border-radius: 7px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.course-meta .age-badge { background: #fffdf8; box-shadow: 0 2px 10px #42260012; }
.course-symbol, .course-tags { display: none; }
.course-card h3 { font-size: 25px; min-height: 56px; line-height: 1.12; overflow-wrap: normal; }
.course-card > p { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 16px 0 22px; }
.course-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 17px 0; min-height: 58px; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: left; }
.course-card-adult { background: var(--cream); border-color: #f2d4aa; }
.course-card-adult .age-badge { background: var(--ink); color: white; }
.catalog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; min-height: 44px; }
.catalog-bottom .text-link { font-size: 17px; }
.course-pagination { display: flex; align-items: center; gap: 10px; }
.course-pagination > span { font-size: 16px; color: var(--muted); margin-right: 10px; }
.page-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.page-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-arrow:hover:not(:disabled) { background: var(--cream); }
.page-arrow:disabled { opacity: .35; }
.empty-state { grid-column: 1 / -1; padding: 65px 30px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; min-height: 320px; }
.empty-state h3 { font-size: 28px; }
.empty-state p { color: var(--muted); margin: 18px 0 24px; }

/* Как учимся */
.learning-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.learning-copy .eyebrow { margin-bottom: 16px; }
.learning-copy h2 { font-size: clamp(40px, 3.6vw, 52px); }
.learning-photos { position: relative; height: min(63svh, 590px); min-height: 430px; }
.learning-main { position: absolute; left: 0; right: 5%; top: 0; height: 77%; border-radius: 22px; overflow: hidden; transform: rotate(-3deg); }
.learning-main img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.learning-main figcaption { display: none; }
.learning-detail { position: absolute; right: -1%; bottom: 0; width: 62%; height: 43%; border: 7px solid var(--paper); border-radius: 18px; overflow: hidden; transform: rotate(5deg); }
.learning-detail img { width: 100%; height: 100%; object-fit: cover; }
.learning-seal { position: absolute; bottom: 2%; left: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 164px; height: 164px; padding: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px; font-weight: 600; line-height: 1.2; text-align: center; transform: rotate(-7deg); }
.learning-seal strong { font-size: 26px; margin-top: 6px; }
.learning-steps { list-style: none; padding: 0; margin: 24px 0 0; }
.learning-steps li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.learning-steps li > span { font-size: 16px; font-weight: 700; color: #9d5000; }
.learning-steps h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 8px; }
.learning-steps p { font-size: 18px; color: var(--muted); line-height: 1.4; }

/* Результаты: один акцентный экран с настоящей фотографией учеников. */
.results-section {
  color: #fff6eb;
  background:
    radial-gradient(ellipse 78% 86% at 105% 5%, #ffad36 0%, #ff8a00 32%, #ff8a0000 76%),
    linear-gradient(125deg, #d95700 0%, #ed7100 52%, #d95700 100%);
  border-color: transparent;
}
.results-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 65px; align-items: center; }
.results-copy .eyebrow { color: #fff6eb; margin-bottom: 18px; }
.results-copy h2 { color: white; font-size: clamp(42px,3.5vw,52px); }
.results-lead { color: #fff; font-size: 23px; font-weight: 700; line-height: 1.35; margin: 22px 0 16px; max-width: 490px; }
.results-copy > p:last-child { font-size: 19px; line-height: 1.5; max-width: 510px; }
.results-photo { overflow: hidden; border-radius: 24px; background: var(--paper); color: var(--ink); transform: rotate(2deg); box-shadow: 0 18px 45px #57260030; }
.results-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.results-outcomes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #ffffff40; }
.results-outcomes > div { position: relative; padding-left: 39px; }
.results-outcomes > div > span { position: absolute; top: 3px; left: 0; font-size: 14px; font-weight: 700; }
.results-outcomes h3 { font-size: 23px; color: white; line-height: 1.2; margin-bottom: 10px; }
.results-outcomes p { font-size: 17px; line-height: 1.4; max-width: 330px; }

/* Взрослый курс: светлая редакционная композиция, фотография и инструменты. */
.adults-section { background: #fff; overflow: hidden; }
.adults-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; position: relative; }
.adults-copy .eyebrow { margin-bottom: 24px; }
.adults-copy .age-badge { background: var(--cream); color: var(--ink); }
.adults-copy h2 { font-size: clamp(42px,3.9vw,56px); }
.adults-lead { font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; margin: 24px 0 18px; }
.adults-copy > p:not(.eyebrow):not(.adults-lead) { font-size: 19px; max-width: 570px; color: var(--muted); line-height: 1.5; }
.adults-benefits { list-style: none; padding: 0; margin: 22px 0 0; }
.adults-benefits li { position: relative; padding-left: 20px; margin-top: 10px; font-size: 18px; line-height: 1.4; }
.adults-benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.adults-copy > .button { margin-top: 30px; }
.adults-visual { min-width: 0; }
.adults-photo img { width: 100%; height: clamp(300px,41svh,430px); object-fit: cover; object-position: center 10%; border-radius: 24px; }
.adults-toolbox { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.adults-toolbox > p { font-size: 17px; line-height: 1.4; }
.tool-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool-row > span { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.tool-row img { width: 26px; height: 26px; object-fit: contain; }

/* Вопросы */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-layout .eyebrow { margin-bottom: 18px; }
.faq-layout .section-lead { font-size: 20px; line-height: 1.55; }
.faq-list { min-width: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; font-size: 21px; font-weight: 600; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-list summary > span::before, .faq-list summary > span::after { content: ""; position: absolute; background: var(--ink); left: 1px; top: 8px; width: 16px; height: 2px; }
.faq-list summary > span::after { transform: rotate(90deg); }
.faq-list summary > span::after { transition: transform .25s ease, opacity .25s ease; }
.faq-list details[data-expanded="true"] summary > span::after,
.faq-list details:not([data-expanded])[open] summary > span::after { transform: rotate(0); opacity: 0; }
.faq-answer { overflow: hidden; }
.faq-list details > p, .faq-answer > p { padding: 0 25px 23px 0; font-size: 18px; line-height: 1.5; color: var(--muted); }

/* Заявка и контакты – один общий экран */
.trial-section { background: white; }
.trial-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 80px; }
.trial-form { min-width: 0; }
.trial-copy > .eyebrow { margin-bottom: 18px; }
.trial-copy > p:not(.eyebrow) { font-size: 20px; color: var(--muted); margin-top: 24px; max-width: 520px; }
.trial-address { margin-top: 30px; display: flex; flex-direction: column; gap: 7px; scroll-margin-top: 110px; }
.trial-address strong { font-size: 22px; }
.trial-address span, .trial-address a { font-size: 17px; }
.trial-address span { color: var(--muted); }
.trial-address a { width: fit-content; }
.trial-contact { margin-top: 28px; }
.trial-contact > span { display: block; font-size: 16px; color: var(--muted); margin-bottom: 6px; }
.trial-contact a { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.trial-social { margin-top: 20px; }
.trial-social > p { font-size: 16px; color: var(--muted); }
.trial-social-links { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 4px; }
.trial-social-links a { min-height: 44px; }
.trial-form { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.trial-form h3 { font-size: 28px; margin-bottom: 20px; }
.form-audience { display: flex; padding: 4px; gap: 4px; background: #ece6de; border-radius: 10px; margin-bottom: 20px; }
.form-audience button { flex: 1; padding: 11px 8px; border: 0; border-radius: 7px; background: transparent; font-size: 16px; font-weight: 600; line-height: 1.2; }
.form-audience button.is-active { background: white; box-shadow: 0 1px 4px #0000000c; }
.trial-form > label, .trial-form > .form-field, .form-two-columns > label { display: flex; flex-direction: column; gap: 7px; font-size: 16px; font-weight: 600; margin-bottom: 15px; }
.trial-form input:not([type=checkbox]), .trial-form select { width: 100%; min-width: 0; height: 50px; padding: 12px 14px; border: 1px solid #d9d2c7; border-radius: 9px; background: white; color: var(--ink); font-size: 17px; line-height: 1.3; font-weight: 400; }
.trial-form input::placeholder { color: #77736d; }
.form-two-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.form-two-columns:has(#age-label[hidden]) { grid-template-columns: 1fr; }
.form-two-columns > label:first-child:last-child { grid-column: 1/-1; }
.trial-form .form-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.4; margin: 18px 0; }
.form-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.trial-form .honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip: rect(0,0,0,0); pointer-events: none; }
.form-submit { width: 100%; }
.form-status { margin-top: 15px; background: var(--cream); border-radius: 10px; padding: 15px; font-size: 16px; }
.form-status.is-error { background: #fff0eb; color: #8a3020; }

/* Shared select-only combobox: age filter and course selection. The menu is
   portalled to body so it is never clipped by the form or moving cards. */
.custom-select { position: relative; min-width: 0; width: 100%; }
.select-trigger { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; height: 50px; padding: 12px 14px; border: 1px solid #d9d2c7; border-radius: 10px; background: white; color: var(--ink); font-size: 17px; font-weight: 400; line-height: 1.3; text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
.select-trigger:hover { border-color: #bcac94; background: #fffdf9; }
.select-trigger[aria-expanded="true"] { border-color: #d77c10; box-shadow: 0 0 0 3px #ff8a0018; }
.select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: #77634a; }
.select-chevron::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: translateY(-2px) rotate(45deg); transition: transform .22s ease; }
.select-trigger[aria-expanded="true"] .select-chevron::before { transform: translateY(2px) rotate(225deg); }
.age-filter .custom-select { width: 190px; }
.age-filter .select-trigger { height: 46px; padding: 9px 11px 9px 14px; font-size: 16px; }
.select-menu { position: fixed; z-index: 400; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #e5dac9; border-radius: 15px; background: #fffdf9; box-shadow: 0 14px 40px #3c2b161c, 0 2px 6px #3c2b160a; color: var(--ink); scrollbar-width: thin; scrollbar-color: #d4b994 transparent; }
.select-menu::-webkit-scrollbar { width: 6px; }
.select-menu::-webkit-scrollbar-thumb { background: #d4b994; border-radius: 6px; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 16px; font-weight: 400; line-height: 1.3; }
.select-option + .select-option { margin-top: 3px; }
.select-option-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.select-option-meta { font-size: 13px; color: var(--muted); }
.select-option:hover, .select-option.is-focused { background: #f6efe4; }
.select-option[aria-selected="true"] { background: var(--cream); color: #673c08; }
.select-option.is-focused { border-color: #d5b082; }
.select-check { flex: 0 0 16px; width: 16px; height: 16px; opacity: 0; }
.select-check::after { content: ""; display: block; width: 5px; height: 9px; margin: 1px 4px; border: solid #a45d06; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.select-option[aria-selected="true"] .select-check { opacity: 1; }
.select-sheet { position: fixed; inset: var(--overlay-viewport-top,0px) 0 auto; width: 100%; max-width: none; height: min(100svh,var(--overlay-viewport-height,100svh)); max-height: none; margin: 0; padding: 16px 0 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.select-sheet[open] { display: flex; flex-direction: column; justify-content: flex-end; }
.select-sheet::backdrop { background: #171a1bb3; backdrop-filter: blur(3px); }
.select-sheet-panel { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: min(100%,720px); padding: 0 16px calc(20px + env(safe-area-inset-bottom,0px)); border-radius: 24px 24px 0 0; background: #fffdf9; overflow: hidden; box-shadow: 0 -12px 60px #20202020; }
.select-sheet-panel::before { content: ""; flex: 0 0 4px; width: 36px; margin: 10px auto 4px; border-radius: 3px; background: #d6cfc4; }
.select-sheet-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 18px; }
.select-sheet-header h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.select-sheet-close { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font: 27px/1 Arial,sans-serif; }
.select-sheet .select-menu { position: relative; flex: 0 1 auto; min-height: 0; width: 100%; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-y: auto; scroll-padding-block: 8px; -webkit-overflow-scrolling: touch; }
.select-sheet .select-menu:focus-visible { outline: none; }
.select-sheet .select-option { min-height: 58px; padding: 14px; border-radius: 12px; font-size: 17px; }
.select-sheet .select-option + .select-option { margin-top: 5px; }
.select-sheet .select-option.is-focused:not([aria-selected="true"]) { background: transparent; border-color: transparent; }
.select-sheet .select-menu:focus-visible .select-option.is-focused { border-color: #bc7e2e; }
.select-sheet .select-option[aria-selected="true"] { border-color: #efc994; color: var(--ink); font-weight: 600; }
.select-sheet .select-check { flex-basis: 22px; width: 22px; height: 22px; border: 1px solid #d6cfc4; border-radius: 50%; opacity: 1; }
.select-sheet .select-check::after { opacity: 0; margin: 4px 7px; border-color: white; }
.select-sheet .select-option[aria-selected="true"] .select-check { background: var(--ink); border-color: var(--ink); }
.select-sheet .select-option[aria-selected="true"] .select-check::after { opacity: 1; }
.field-error { display: block; color: #ad3422; font-size: 13px; font-weight: 400; line-height: 1.4; }
.form-consent .field-error { margin-top: 5px; }
.trial-form input[aria-invalid="true"] { border-color: #ba4634; background: #fffaf8; }
.trial-form input[aria-invalid="true"]:focus-visible { outline-color: #ba4634; }

/* Подвал – служебная часть, не отдельный экран. */
.footer { padding: 36px 0 24px; background: var(--ink); color: white; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.footer-top .brand img { width: 190px; }
.footer-top > p { color: #bbb; font-size: 14px; }
.footer-top nav { display: flex; gap: 20px; font-size: 15px; }
.footer-top > a:last-child { font-size: 17px; white-space: nowrap; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff25; padding-top: 20px; font-size: 14px; color: #bbb; }

/* Программа курса */
.course-dialog { width: min(760px,calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 90px #00000035; }
.course-dialog::backdrop { background: #20202099; backdrop-filter: blur(4px); }
.course-dialog:focus { outline: none; }
.dialog-toolbar { position: sticky; top: 0; z-index: 5; height: 0; }
.dialog-back { display: none; }
.dialog-close { position: sticky; z-index: 5; float: right; top: 0; margin: -20px -20px 0 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; font: 30px/1 Arial,sans-serif; }
.dialog-meta { display: flex; align-items: center; gap: 14px; padding-right: 28px; margin: 10px 0 22px; }
.dialog-meta .eyebrow { font-size: 13px; }
.course-dialog h2 { font-size: 42px; overflow-wrap: anywhere; }
.dialog-description { font-size: 19px; color: var(--muted); margin: 24px 0 30px; }
.course-dialog h3 { font-size: 25px; }
.dialog-topics { list-style: none; padding: 0; margin: 20px 0 28px; }
.dialog-topics li { position: relative; padding-left: 24px; font-size: 18px; line-height: 1.5; margin: 14px 0; }
.dialog-topics li::before { position: absolute; left: 0; content: "+"; color: #9d5000; font-size: 20px; }
.dialog-stage { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-stage:last-child { margin-bottom: 28px; }
.dialog-stage h4 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.dialog-stage > p { font-size: 18px; line-height: 1.55; color: var(--muted); }
.dialog-result { padding: 22px; border-radius: 14px; background: var(--cream); }
.course-dialog .dialog-result h3 { font-size: 23px; }
.dialog-outcomes { margin: 16px 0 0; padding-left: 20px; }
.dialog-outcomes li { font-size: 18px; line-height: 1.5; padding-left: 4px; }
.dialog-outcomes li + li { margin-top: 12px; }
.dialog-outcomes li::marker { color: #9d5000; }
.dialog-facts { display: flex; justify-content: space-between; gap: 20px; font-size: 16px; margin: 24px 0; }
.course-dialog .button { width: 100%; }

/* Компактные десктопные окна: сокращаем отступы, а не основной текст. */
@media (min-width:1100px) and (max-height:820px) {
  .screen-section { padding-block: 24px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 43px; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(52px,4.6vw,65px); margin-block: 16px 22px; }
  .hero-description { font-size: 22px; }
  .hero-detail { font-size: 19px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-facts { margin-top: 24px; padding-top: 20px; }
  .hero-visual { height: min(68svh,520px); }
  .direction-art { height: 160px; }
  .direction-card { padding: 18px 20px 0; }
  .direction-card h3 { font-size: 25px; }
  .direction-card > p { margin-bottom: 16px; }
  .direction-bottom { padding-block: 13px; }
  .courses-section .section-heading .eyebrow { display: none; }
  .courses-section .section-heading { min-height: 52px; }
  .course-controls { margin-bottom: 20px; }
  .course-card { --card-padding: 20px; }
  .course-cover { height: 112px; aspect-ratio: auto; margin-bottom: 12px; }
  .course-card > p { margin: 12px 0 14px; }
  .course-link { min-height: 54px; padding-block: 15px; }
  .catalog-bottom { margin-top: 16px; }
  .learning-copy h2 { font-size: 43px; }
  .learning-copy .section-lead { margin-top: 16px; }
  .learning-steps { margin-top: 20px; }
  .learning-steps li { padding-block: 15px; }
  .results-layout { gap: 45px; }
  .results-copy h2 { font-size: 44px; }
  .results-copy .eyebrow { margin-bottom: 14px; }
  .results-lead { font-size: 21px; margin: 18px 0 14px; }
  .results-copy > p:last-child { font-size: 18px; line-height: 1.45; }
  .results-outcomes { margin-top: 30px; padding-top: 20px; gap: 28px; }
  .results-outcomes h3 { font-size: 21px; margin-bottom: 7px; }
  .results-outcomes p { font-size: 17px; }
  .adults-copy h2 { font-size: 46px; }
  .adults-copy .eyebrow { margin-bottom: 20px; }
  .adults-lead { margin: 20px 0 16px; font-size: 23px; }
  .adults-benefits { margin-top: 18px; }
  .adults-copy > .button { margin-top: 24px; }
  .adults-toolbox { padding: 20px; }
  .faq-list summary { padding-block: 17px; font-size: 20px; }
  .faq-list details > p, .faq-answer > p { padding-bottom: 20px; }
  .trial-form { padding: 24px 28px; }
  .trial-form h3 { margin-bottom: 17px; }
  .form-audience { margin-bottom: 17px; }
  .trial-form > label, .trial-form > .form-field, .form-two-columns > label { margin-bottom: 13px; }
}
@media (max-width:1190px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .brand img { width: 190px; }
  .navigation { gap: 16px; }
  .navigation a { font-size: 15px; }
  .header-cta { margin-left: 0; }
  .hero-layout { gap: 28px; }
  .hero h1 { font-size: 54px; }
  .hero-actions { gap: 18px; }
  .hero-visual { min-height: 420px; }
  .hero-sticker { right: 0; }
  .hero-sticker strong { font-size: 20px; }
  .hero-trial-badge { font-size: 16px; left: 20%; padding-inline: 17px; }
  .hero-photo-small figcaption { font-size: 11px; padding-inline: 2px; }
  .direction-grid { gap: 18px; }
  .direction-card h3 { font-size: 24px; }
  .direction-bottom { font-size: 14px; }
  .course-grid { gap: 14px; }
  .course-card { --card-padding: 18px; }
  .course-card h3 { font-size: 23px; }
  .course-card > p { font-size: 17px; }
  .course-link { font-size: 15px; }
  .learning-layout, .adults-layout, .trial-layout, .results-layout { gap: 42px; }
  .adults-toolbox { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 22px; }
  .adults-toolbox > p br { display: none; }
  .results-outcomes { gap: 24px; }
  .results-outcomes > div { padding-left: 30px; }
  .faq-layout { gap: 55px; }
  .footer-top { flex-wrap: wrap; }
}
/* Планшеты и телефоны: естественная высота, без вложенной прокрутки и обрезки. */
@media (min-width:1100px) and (max-height:740px) {
  .direction-art { height: 140px; }
  .trial-section { padding-block: 20px; }
}
@media (max-width:1099px) {
  :root { --header-height: 72px; }
  .screen-section { min-height: var(--screen); padding-block: 64px; }
  .header-cta { font-size: 15px; padding-inline: 14px; gap: 10px; }
  .navigation { gap: 12px; }
  .navigation a { font-size: 13px; }
  .hero-layout { grid-template-columns: 1.05fr 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(42px,5.2vw,54px); }
  .hero-description { font-size: 22px; }
  .hero-detail { font-size: 19px; }
  .hero-visual { height: 460px; min-height: 0; }
  .hero-photo { left: 0; width: 100%; height: 60%; }
  .hero-photo-small { width: 69%; height: 38%; }
  .hero-sticker { display: none; }
  .hero-code { width: 66px; height: 66px; border-radius: 17px; }
  .hero-code > span { font-size: 28px; }
  .hero-trial-badge { top: -1%; left: 23%; right: 0; font-size: 15px; padding: 12px 14px; }
  .hero-facts { gap: 20px; }
  .hero-facts strong { font-size: 26px; }
  .hero-facts span { font-size: 14px; }
  .section-heading { gap: 28px; }
  .section-heading > p { font-size: 18px; max-width: 310px; }
  .direction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .direction-card { padding: 17px 17px 0; }
  .direction-top { font-size: 11px; }
  .direction-card h3 { font-size: 22px; min-height: 52px; overflow-wrap: anywhere; }
  .direction-card > p { font-size: 17px; }
  .direction-art { height: 160px; }
  .direction-bottom { font-size: 13px; gap: 8px; flex-wrap: wrap; }
  .code-lines { font-size: 10px; padding-inline: 10px; }
  .tile-openai { width: 72px; height: 72px; }
  .tile-gemini, .tile-claude, .tile-deepseek, .tile-n8n { width: 48px; height: 48px; border-radius: 13px; }
  .tile-gemini, .tile-n8n { left: 5%; }
  .tile-claude { right: 6%; }
  .course-controls { flex-wrap: wrap; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .course-card { --card-padding: 24px; }
  .course-card h3 { font-size: 26px; }
  .course-card > p { font-size: 18px; }
  .course-link { font-size: 17px; }
  .learning-layout { gap: 38px; }
  .learning-photos { min-height: 0; height: 490px; }
  .learning-main { height: 74%; right: 0; }
  .learning-detail { width: 78%; height: 38%; }
  .learning-seal { width: 138px; height: 138px; font-size: 16px; bottom: 2%; }
  .learning-seal strong { font-size: 22px; }
  .learning-copy h2 { font-size: 40px; }
  .learning-copy .eyebrow { font-size: 13px; }
  .learning-steps p { font-size: 17px; }
  .learning-steps h3 { font-size: 20px; }
  .adults-layout, .trial-layout { gap: 35px; }
  .adults-copy h2 { font-size: 42px; }
  .adults-copy .eyebrow { font-size: 12px; }
  .adults-lead { font-size: 24px; }
  .adults-copy > p:not(.eyebrow):not(.adults-lead) { font-size: 19px; }
  .adults-lead br { display: none; }
  .adults-photo img { height: 370px; }
  .results-layout { gap: 30px; }
  .results-copy h2 { font-size: 40px; }
  .results-lead { font-size: 21px; }
  .results-outcomes h3 { font-size: 21px; }
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 35px; }
  .faq-list summary { font-size: 20px; }
  .trial-copy h2 { font-size: 40px; }
  .trial-form { padding: 24px; }
  .form-two-columns { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width:820px) {
  .hero-actions .text-link { justify-content: center; min-height: 54px; padding: 15px 20px; border: 1px solid var(--ink); border-radius: 12px; text-align: center; }
  .course-controls { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .course-controls .filter-buttons { display: none; }
  .direction-filter, .course-controls .age-filter { position: relative; display: block; margin: 0; white-space: normal; }
  .direction-filter > label, .course-controls .age-filter > label { position: absolute; z-index: 1; left: 16px; top: 9px; color: var(--muted); font-size: 12px; line-height: 1.2; pointer-events: none; }
  .course-controls .custom-select { width: 100%; }
  .course-controls .select-trigger { height: 66px; padding: 27px 14px 11px 16px; border-radius: 13px; font-size: 17px; font-weight: 600; }
  .course-controls .select-chevron { align-self: center; transform: translateY(-8px); background: transparent; }
  .course-controls .select-value { white-space: normal; }
  .catalog-help { min-height: 48px; font-size: 16px; }
  .course-dialog { inset: var(--overlay-viewport-top,0px) 0 auto; width: 100%; max-width: none; height: min(100svh,var(--overlay-viewport-height,100svh)); max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; }
  .course-dialog[open] { display: flex; flex-direction: column; }
  .course-dialog .dialog-toolbar { position: static; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; height: auto; padding: max(12px,env(safe-area-inset-top)) 20px 12px; border-bottom: 1px solid var(--line); }
  .dialog-back { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; }
  .dialog-back > span { width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
  .course-dialog .dialog-close { position: static; float: none; margin: 0; border-radius: 11px; }
  .dialog-content { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px; scroll-padding-block: 24px; -webkit-overflow-scrolling: touch; }
  .course-dialog .dialog-meta { margin: 0 0 20px; }
  .dialog-footer { flex: 0 0 auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line); background: var(--paper); }
  .dialog-footer .button { min-height: 50px; white-space: normal; }
  .header-cta { margin-left: auto; }
  .menu-open .header { position: fixed; inset: 0 0 auto; background: var(--paper); border-bottom: 0; backdrop-filter: none; }
  .menu-open .header-cta { visibility: hidden; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: transparent; border-radius: 9px; }
  .menu-toggle > span { width: 18px; height: 2px; background: var(--ink); }
  .menu-toggle[aria-expanded=true] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .navigation { position: absolute; display: none; top: var(--header-height); left: 0; right: 0; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); margin: 0; padding: 16px 32px max(28px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
  .navigation.is-open { display: flex; }
  .navigation a { flex-shrink: 0; font-size: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .navigation .mobile-menu-cta { display: flex; margin-top: 24px; padding: 18px 24px; border: 1px solid transparent; font-size: 18px; font-weight: 700; }
  .navigation .mobile-menu-cta:hover { color: #fff; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { padding: 24px 24px 0; display: grid; grid-template-columns: 42% 1fr; column-gap: 26px; }
  .direction-top { grid-column: 1/-1; margin-bottom: 14px; font-size: 13px; }
  .direction-art { grid-column: 1; grid-row: 2/5; height: 210px; margin: 0 0 24px; }
  .direction-card h3 { grid-column: 2; min-height: 0; font-size: 27px; overflow-wrap: normal; }
  .direction-card > p { grid-column: 2; font-size: 18px; margin-bottom: 16px; }
  .direction-bottom { grid-column: 2; font-size: 15px; }
  .code-lines { font-size: 11px; }
  .learning-layout, .adults-layout, .trial-layout, .results-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .trial-form { scroll-margin-top: 12px; }
  .learning-photos { width: 100%; max-width: 600px; height: 500px; margin-inline: auto; order: 2; }
  .learning-copy h2, .adults-copy h2, .trial-copy h2 { font-size: 46px; }
  .learning-steps p { font-size: 18px; }
  .learning-steps h3 { font-size: 22px; }
  .learning-main { right: 15%; }
  .learning-detail { width: 55%; height: 45%; }
  .learning-seal { width: 164px; height: 164px; font-size: 18px; }
  .learning-seal strong { font-size: 26px; }
  .adults-visual { max-width: 660px; width: 100%; margin-inline: auto; }
  .adults-photo img { height: auto; aspect-ratio: 4 / 3; }
  .adults-toolbox { flex-direction: row; align-items: center; }
  .adults-toolbox > p br { display: initial; }
  .results-copy h2 { font-size: 46px; }
  .results-copy > p { max-width: 620px; }
  .results-photo { max-width: 620px; margin-inline: auto; }
  .results-outcomes { gap: 24px; margin-top: 40px; }
  .results-outcomes > div { padding-left: 0; }
  .results-outcomes > div > span { position: static; display: block; margin-bottom: 12px; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-layout h2 br { display: none; }
  .trial-form { padding: 30px; }
  .form-two-columns { grid-template-columns: 1.25fr 1fr; gap: 14px; }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top nav { flex-wrap: wrap; }
}
@media (max-width:600px) {
  :root { --header-height: 72px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  .brand img { width: 190px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .navigation { padding-inline: 20px; }
  .screen-section { min-height: 0; padding: 52px 0; }
  .hero { padding-top: 35px; }
  .hero-layout { display: flex; flex-direction: column; gap: 35px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(38px,10.2vw,58px); margin: 20px 0 24px; line-height: 1.06; }
  .hero h1 > .hero-audience { font-size: .61em; margin-top: 13px; }
  .hero .eyebrow { font-size: 12px; }
  .hero-description { font-size: 22px; }
  .hero-detail { font-size: 18px; margin-top: 17px; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .button { width: 100%; color: #fff; }
  .hero-actions .text-link { display: none; }
  .hero-facts { grid-template-columns: 1fr 1.2fr; gap: 15px; margin-top: 28px; padding-top: 22px; }
  .hero-facts strong { font-size: 26px; }
  .hero-facts span { font-size: 14px; }
  /* On phones the collage becomes one calm photo panel. Keep the original
     desktop composition above this breakpoint and reuse the real class photo. */
  .hero-visual { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: clamp(320px,100vw,400px); max-width: 470px; margin: 0; padding: 24px; overflow: hidden; border-radius: 22px; background: #1c201e; }
  .hero-photo { z-index: 0; inset: 0; width: 100%; height: 100%; border-radius: 0; transform: none; box-shadow: none; }
  .hero-photo > img { object-position: 57% center; }
  .hero-visual::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg,rgba(20,24,22,.22) 0%,rgba(20,24,22,.08) 35%,rgba(20,24,22,.32) 60%,rgba(20,24,22,.92) 100%); pointer-events: none; }
  .hero-photo-small, .hero-code, .hero-orbit, .hero-orbit-line { display: none; }
  .hero-trial-badge { z-index: 2; top: 18px; left: 18px; right: 18px; min-height: 44px; padding: 12px 10px; border: 0; border-radius: 10px; background: #fff9f1; font-size: 14px; line-height: 1.4; box-shadow: none; }
  .hero-trial-badge:focus-visible { outline-color: white; outline-offset: 4px; }
  .hero-trial-badge:not(.hero-learning-badge) { display: none; }
  .hero-learning-badge { display: block; }
  .hero-sticker { display: block; position: relative; z-index: 2; right: auto; bottom: auto; color: white; transform: none; }
  .hero-sticker strong { display: block; font-size: clamp(27px,8vw,32px); line-height: 1.15; letter-spacing: -.035em; }
  h2, .section-heading h2 { font-size: 40px; }
  .eyebrow { font-size: 12px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading .eyebrow { margin-bottom: 13px; }
  .section-heading > p { font-size: 18px; max-width: none; margin-top: 20px; }
  .direction-grid { gap: 22px; }
  .direction-card { display: flex; padding: 22px 22px 0; }
  .direction-top { font-size: 12px; margin: 0; }
  .direction-art { height: 210px; margin: 16px 0 23px; }
  .direction-card h3 { font-size: 28px; margin-bottom: 14px; }
  .direction-card > p { font-size: 18px; margin-bottom: 22px; }
  .direction-bottom { font-size: 15px; padding-block: 18px; }
  .code-lines { font-size: 12px; padding: 14px; }
  .tile-openai { width: 91px; height: 91px; }
  .tile-gemini, .tile-claude, .tile-deepseek, .tile-n8n { width: 59px; height: 59px; border-radius: 16px; }
  .course-controls { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .age-filter select { width: 100%; max-width: none; min-height: 48px; }
  .age-filter .custom-select { width: 100%; }
  .course-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-card { --card-padding: 23px; }
  .course-cover { margin-bottom: 23px; }
  .course-card h3 { font-size: 28px; min-height: 0; }
  .course-card > p { font-size: 18px; margin: 18px 0 25px; }
  .course-link { font-size: 17px; min-height: 64px; }
  .catalog-bottom { margin-top: 24px; }
  .learning-copy h2, .adults-copy h2, .trial-copy h2 { font-size: 40px; }
  .learning-copy .section-lead { font-size: 18px; }
  .learning-steps li { gap: 14px; padding-block: 21px; }
  .learning-steps h3 { font-size: 23px; }
  .learning-steps p { font-size: 18px; }
  .learning-photos { height: 420px; }
  .learning-main { right: 5%; height: 78%; }
  .learning-detail { width: 62%; height: 44%; border-width: 5px; }
  .learning-seal { width: 138px; height: 138px; font-size: 16px; }
  .learning-seal strong { font-size: 22px; }
  .adults-copy .eyebrow { font-size: 12px; letter-spacing: .02em; }
  .adults-lead { font-size: 24px; margin: 23px 0 20px; }
  .adults-copy > p:not(.eyebrow):not(.adults-lead) { font-size: 19px; }
  .adults-benefits li { font-size: 18px; margin-top: 13px; }
  .adults-toolbox { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .adults-toolbox > p { font-size: 18px; }
  .adults-photo img { border-radius: 18px; }
  .results-copy h2 { font-size: 40px; }
  .results-copy .eyebrow { margin-bottom: 16px; }
  .results-lead { font-size: 23px; margin-top: 22px; }
  .results-copy > p:last-child { font-size: 18px; }
  .results-photo { transform: none; border-radius: 18px; }
  .results-outcomes { grid-template-columns: 1fr; margin-top: 32px; padding-top: 24px; gap: 25px; }
  .results-outcomes > div { padding-left: 35px; }
  .results-outcomes > div > span { position: absolute; margin: 0; }
  .results-outcomes h3 { font-size: 23px; }
  .results-outcomes p { font-size: 18px; }
  .faq-layout h2 { max-width: 320px; }
  .faq-layout h2 br { display: initial; }
  .faq-layout .section-lead { font-size: 18px; }
  .faq-list summary { font-size: 21px; padding-block: 22px; }
  .faq-list details > p, .faq-answer > p { font-size: 18px; padding-right: 8px; }
  .trial-copy > p:not(.eyebrow) { font-size: 19px; }
  .trial-social-links .text-link { font-size: 17px; }
  .trial-address { margin-top: 27px; }
  .trial-address strong { font-size: 23px; }
  .trial-contact a { font-size: 27px; }
  .trial-form { width: 100%; max-width: 470px; margin-inline: auto; padding: 18px; border-radius: 20px; }
  .trial-form h3 { font-size: 26px; margin-bottom: 12px; }
  .form-audience { padding: 3px; margin-bottom: 12px; }
  .form-audience button { min-height: 44px; font-size: 14px; padding: 10px 4px; }
  .form-two-columns { grid-template-columns: minmax(0,1fr) 80px; gap: 10px; align-items: start; }
  .age-label-context { display: none; }
  .trial-form > label, .trial-form > .form-field, .form-two-columns > label { min-width: 0; gap: 5px; font-size: 14px; line-height: 1.3; margin-bottom: 12px; }
  .trial-form input:not([type=checkbox]), .trial-form select { height: 46px; padding: 10px; font-size: 16px; }
  .trial-form .select-trigger { height: auto; min-height: 46px; padding: 10px; font-size: 16px; gap: 8px; }
  .trial-form .select-value { white-space: normal; overflow: visible; }
  .form-two-columns input { padding-inline: 8px; }
  .trial-form .form-consent { gap: 8px; font-size: 13px; line-height: 1.4; margin: 12px 0 14px; }
  .form-submit { min-height: 48px; padding: 12px 16px; font-size: 16px; }
  .footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
  .footer-top > p { font-size: 16px; }
  .footer-top nav { font-size: 15px; gap: 16px; }
  .footer-bottom { font-size: 13px; flex-wrap: wrap; gap: 14px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .dialog-meta { flex-wrap: wrap; padding-right: 0; gap: 10px; }
  .dialog-meta .eyebrow { font-size: 12px; }
  .course-dialog h2 { font-size: clamp(28px,7.5vw,36px); }
  .dialog-description { font-size: 18px; }
  .course-dialog h3 { font-size: 24px; }
  .dialog-topics li { font-size: 18px; }
  .dialog-result { padding: 18px; }
  .dialog-result p { font-size: 18px; }
  .dialog-facts { flex-direction: column; gap: 8px; }
  .course-dialog .button { font-size: 17px; padding-inline: 16px; gap: 12px; }
}
@media (max-width:360px) {
  .container { width: calc(100% - 32px); }
  .navigation { padding-inline: 16px; }
  .hero h1 { font-size: 36px; }
  .hero h1 > .hero-audience { font-size: .59em; }
  .hero-description { font-size: 21px; }
  .hero-visual { padding: 22px; }
  h2, .section-heading h2, .learning-copy h2, .adults-copy h2, .trial-copy h2, .results-copy h2 { font-size: 36px; }
  .direction-card h3, .course-card h3 { font-size: 25px; }
  .direction-card { padding-inline: 20px; }
  .direction-bottom { font-size: 14px; }
  .trial-form { padding-inline: 14px; }
  .form-two-columns { grid-template-columns: minmax(0,1fr) 66px; gap: 8px; }
  .button { padding-inline: 19px; font-size: 17px; gap: 12px; }
}
@media (max-width:600px) and (max-height:740px) {
  .trial-form { padding-block: 14px; }
  .trial-form h3 { font-size: 25px; margin-bottom: 10px; }
  .form-audience { margin-bottom: 10px; }
  .trial-form > label, .trial-form > .form-field, .form-two-columns > label { margin-bottom: 10px; }
  .trial-form input:not([type=checkbox]), .trial-form select { height: 44px; padding-block: 9px; }
  .trial-form .select-trigger { min-height: 44px; padding-block: 9px; }
  .trial-form .form-consent { margin: 10px 0 12px; }
  .trial-form .form-submit { min-height: 44px; padding-block: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
