/* ==========================================================================
   Шаблон «shifa» — Учебный центр «Шифа» (дизайн «Панорама»)
   Белый, серый и зелёные оттенки; Onest + JetBrains Mono.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --mist: #f4f6f5;
  --fog: #e9edeb;
  --hero-bg: #eef1f0;   /* фон слайдера = фон фотографий курсов */
  --line: #d9e0dc;
  --line-2: #cfd8d3;
  --ink: #17221d;
  --ink-2: #4e5c55;
  --ink-3: #6f7c76;
  --g950: #0f2a1d;
  --g800: #1b4a33;
  --g600: #237049;
  --g500: #2e8a59;
  --g300: #94c7a8;
  --g150: #dceee3;
  --g050: #eff7f2;
  --sans: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; min-width: 360px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--g600); }
a:hover { color: var(--g800); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--g500); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--g800); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.block { padding-block: 52px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--g600); color: #fff; border: 0; border-radius: var(--radius); padding: 13px 30px; font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.2; transition: background .15s; }
.btn:hover, .btn:focus-visible { background: var(--g800); color: #fff; }

/* ---------- header ---------- */
.util { background: var(--mist); font-size: 13px; color: var(--ink-2); }
.util .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding-block: 9px; }
.blind { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--g600); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.blind:hover { color: var(--g800); }
.phones { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; color: var(--g600); }
.phones a { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.phones a:hover { color: var(--g600); }
.util .sp { flex: 1; }
.btn-head { padding: 10px 22px; font-size: 14px; }

.head { background: var(--paper); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 20; }
.head .wrap { display: flex; align-items: center; gap: 16px 36px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; color: inherit; }
.logo svg { width: 48px; height: 50px; flex: 0 0 auto; }
.logo .name { display: grid; line-height: 1.05; }
.logo .name b { font-size: 23px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--g800); white-space: nowrap; }
.logo .name > span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; margin-top: 5px; white-space: nowrap; }

.menu { margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.menu li { margin: 0; }
.menu a { display: block; text-decoration: none; color: var(--ink); font-size: 15px; padding-block: 4px; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--g600); border-bottom-color: var(--g300); }
.menu .current > a, .menu .active > a { color: var(--g600); border-bottom-color: var(--g500); }
.menu ul ul { display: none; }
.call { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; justify-content: center; color: var(--g600); flex: 0 0 auto; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); flex: 0 0 auto; padding: 0; }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- a11y panel ---------- */
.a11y-panel { background: var(--paper); border-bottom: 1px solid var(--line); }
.a11y-panel .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-block: 12px; }
.a11y-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a11y-group span { font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.a11y-panel button { border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--radius); padding: 6px 12px; font-size: 14px; }
.a11y-panel button[aria-pressed="true"] { background: var(--g800); border-color: var(--g800); color: #fff; }
.a11y-panel .a11y-off { margin-left: auto; border-color: var(--g500); color: var(--g600); }

/* ---------- hero (slider) ---------- */
.hero { background: var(--hero-bg); }
.hero-stage .slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 420px; }
.hero-stage .slide[hidden] { display: none; }
.slide-text { padding-block: 52px 40px; padding-right: 30px; display: grid; gap: 20px; align-content: center; min-width: 0; }
.start-label { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); }
.slide-title { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.slide-title a { color: var(--ink); text-decoration: none; }
.slide-title a:hover { color: var(--g800); }
.facts-line { display: flex; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); row-gap: 6px; }
.facts-line span { padding-inline: 14px; border-left: 1px solid #c6d0cb; }
.facts-line span:first-child { padding-left: 0; border-left: 0; }
.facts-line b { color: var(--ink); font-weight: 600; }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.slide-actions .link { color: var(--ink-2); font-size: 15px; }
.slide-ill { position: relative; background: var(--paper); display: grid; place-items: center; padding: 24px 28px; }
.slide-ill img { width: 100%; height: 100%; max-height: 380px; object-fit: contain; }
/* фото курса — на всю панель */
.slide-ill.is-photo { padding: 0; overflow: hidden; }
.slide-ill.is-photo img { position: absolute; inset: 0; max-height: none; object-fit: cover; object-position: center 20%; }
.card .frame.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-image.is-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; border-top: 1px solid var(--line-2); }
.thumbs button { text-align: left; background: none; border: 0; border-right: 1px solid var(--line-2); padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; position: relative; color: var(--ink-2); }
.thumbs button:last-child { border-right: 0; }
.thumbs button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; }
.thumbs button:hover { background: rgba(255,255,255,.55); }
.thumbs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.thumbs button[aria-selected="true"]::before { background: var(--g500); }
.thumbs small { font-size: 12.5px; color: var(--g600); font-weight: 600; }
.thumbs span { font-size: 13.5px; line-height: 1.3; }

/* ---------- module titles ---------- */
.mod-title { margin: 0 0 22px; font-size: 30px; }

/* ---------- course tabs ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.seg button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.seg button:hover { border-color: var(--g300); }
.seg button em { font-style: normal; font-size: 12px; background: var(--mist); color: var(--ink-3); border-radius: 999px; padding: 1px 7px; }
.seg button[aria-selected="true"] { background: var(--g800); border-color: var(--g800); color: #fff; }
.seg button[aria-selected="true"] em { background: rgba(255,255,255,.18); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 18px; }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.card[hidden] { display: none; }
.card .frame { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.card .frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; transition: transform .3s; }
.card:hover .frame img { transform: scale(1.04); }
.card .frame small { position: absolute; left: 10px; top: 10px; background: var(--paper); border-radius: 3px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--g600); }
.card h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.3; }
.card:hover h3 { color: var(--g800); text-decoration: underline; text-underline-offset: 3px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- facts band (mod_custom) ---------- */
.band { background: var(--g800); color: #e1ede6; }
.band .custom, .band > div { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.facts-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 34px; }
.facts-band > div { padding-inline: 22px; border-left: 1px solid rgba(255,255,255,.18); }
.facts-band > div:first-child { border-left: 0; padding-left: 0; }
.facts-band b { display: block; font-size: 26px; font-weight: 500; color: #fff; }
.facts-band span { font-size: 14px; color: #b9d3c4; }

/* ---------- inner pages ---------- */
.page { padding-block: 40px 56px; }
.page .with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.page-main { min-width: 0; }
.aside-sticky { position: sticky; top: 20px; display: grid; gap: 20px; }
.card-mod { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.card-title { margin: 0 0 12px; font-size: 21px; }

.article-head { margin-bottom: 26px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); text-decoration: none; margin-bottom: 8px; }
.eyebrow:hover { text-decoration: underline; }
.article-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }
.article-date { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }
.course-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; background: var(--mist); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px; }
.course-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 34px; margin: 0; flex: 1 1 auto; }
.course-facts dt { font-size: 13px; color: var(--ink-3); }
.course-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.article-body { font-size: 16.5px; line-height: 1.65; max-width: 860px; }
.article-body::after { content: ""; display: table; clear: both; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.6em 0 .6em; }
.article-body h4 { font-size: 20px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin: .25em 0; }
.article-body img { border-radius: var(--radius); }
.article-body img[style*="float: left"], .article-body img[style*="float:left"] { margin: 4px 24px 14px 0 !important; }
.article-body img[style*="float: right"], .article-body img[style*="float:right"] { margin: 4px 0 14px 24px !important; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.article-body a { word-break: break-word; }
.article-image { float: right; width: min(42%, 380px); margin: 4px 0 18px 30px; }
.article-image.is-ill { background: var(--mist); border-radius: var(--radius); padding: 14px; }
.article-image img { display: block; width: 100%; }
.article-image figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* blog */
.blog-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.post.has-image { grid-template-columns: 240px minmax(0, 1fr); }
.post-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.post-date { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.post-title { margin: 0 0 10px; font-size: 22px; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--g800); text-decoration: underline; text-underline-offset: 3px; }
.post-text { color: var(--ink-2); }
.post-text::after { content: ""; display: table; clear: both; }
.post-text img { border-radius: var(--radius); }
.post-text img[style*="float: left"] { margin: 4px 22px 12px 0 !important; max-width: 45%; height: auto; }
.post .more { display: inline-block; margin-top: 8px; font-weight: 500; }
.pagination-wrap { margin-top: 28px; }
.pagination-wrap ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-block; min-width: 38px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

/* «Рекомендуем к прочтению» (News Show Pro GK5) */
.mod-mod_news_pro_gk5 { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.nspMain, .nspMain .nspArts, .nspMain .nspArtScroll1, .nspMain .nspArtScroll2, .nspMain .nspArtPage { display: contents; }
.blog-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.blog-news .nspArt { padding: 0 !important; }
.blog-news .item { background: var(--mist); border-radius: var(--radius); padding: 20px 22px; height: 100%; }
.blog-news .title { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.blog-news .title a { color: var(--ink); text-decoration: none; }
.blog-news .title a:hover { color: var(--g800); text-decoration: underline; }
.blog-news p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.blog-news .item br { display: none; }
.blog-news .readmore.btn { display: inline; background: none; padding: 0; border-radius: 0; }
.blog-news .readmore a { font-weight: 500; font-size: 14px; color: var(--g600); }
.blog-news .item-separator, .blog-news .row-separator { display: none; }

/* ---------- apply block + forms ---------- */
.apply { background: var(--paper); border-top: 1px solid var(--line); }
.apply h2 { margin: 0 0 14px; font-size: 30px; }
.apply-text p { color: var(--ink-2); margin: 0 0 6px; max-width: 46ch; }
.contact-list { display: grid; gap: 14px; margin: 22px 0 0; }
.contact-list dt { color: var(--ink-3); font-size: 13px; }
.contact-list dd { margin: 2px 0 0; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--g600); }

/* Convert Forms: под стиль сайта */
.convertforms { --font: var(--sans) !important; --control-gap: 12px; --input-border-radius: 4px; --input-border-color: var(--line); --input-padding: 12px 14px; --input-size: 15px; --label-color: var(--ink-2); }
.convertforms .cf-form-wrap { padding: 0 !important; background: none !important; }
.convertforms .cf-content-wrap { padding: 0 0 6px !important; }
.convertforms .cf-content-text { font-size: 13px; color: var(--ink-3); }
.convertforms .cf-input { border: 1px solid var(--line) !important; border-radius: 4px !important; padding: 12px 14px !important; font-size: 15px !important; background: var(--paper) !important; color: var(--ink) !important; box-shadow: none !important; }
.convertforms .cf-input:focus { border-color: var(--g500) !important; }
.convertforms .cf-checkbox-group { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.convertforms .cf-checkbox-group .cf-label { cursor: pointer; padding: 0 !important; margin: 0 !important; }
/* оформленный чекбокс «Я даю согласие…» */
.convertforms .cf-checkbox-group input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px !important; height: 22px; margin: 0 !important; padding: 0 !important;
  border: 1.5px solid var(--line-2) !important; border-radius: 5px !important; background: var(--paper) !important; cursor: pointer; position: relative;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.convertforms .cf-checkbox-group input[type="checkbox"]:hover { border-color: var(--g500) !important; }
.convertforms .cf-checkbox-group input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--g150); border-color: var(--g500) !important; }
.convertforms .cf-checkbox-group input[type="checkbox"]:checked { background: var(--g600) !important; border-color: var(--g600) !important; }
.convertforms .cf-checkbox-group input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.convertforms .cf-has-error .cf-checkbox-group input[type="checkbox"], .convertforms .cf-checkbox-group input[type="checkbox"].cf-error { border-color: #b3261e !important; }
.convertforms .cf-btn { background: var(--g600) !important; border-radius: 4px !important; padding: 13px 30px !important; font-size: 15px !important; font-weight: 500 !important; }
.convertforms .cf-btn:hover { background: var(--g800) !important; }
.apply .convertforms .cf-btn { width: 100%; }
.page-aside .convertforms .cf-btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.site-footer .logo svg { width: 36px; height: 38px; }
.site-footer .logo .name b { font-size: 17px; }
.site-footer p { margin: 12px 0 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--g600); }
.foot-contacts { justify-self: end; text-align: right; }
.foot-contacts a { font-size: 19px; font-weight: 600; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.foot-address { margin-top: 4px; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--g950); color: #dbe8e0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 24px rgba(15, 42, 29, .18); }
.cookie .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; }
.cookie p { margin: 0; font-size: 14px; flex: 1 1 420px; }
.cookie a { color: #fff; }
.cookie .btn { padding: 10px 26px; background: var(--g500); }

/* ==========================================================================
   Адаптивность (минимальная ширина 360px)
   ========================================================================== */
@media (max-width: 1100px) {
  .menu ul { gap: 6px 18px; }
  .menu a { font-size: 14px; }
}
@media (max-width: 980px) {
  .burger { display: block; }
  .call { display: inline-flex; margin-left: auto; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 35, 28, .08); }
  .menu.open { display: block; }
  .menu ul { display: grid; gap: 0; padding: 6px var(--gutter) 12px; }
  .menu a { padding-block: 13px; border-bottom: 1px solid var(--fog); font-size: 16px; }
  .menu .current > a, .menu .active > a { border-bottom-color: var(--fog); }
  .page .with-aside { grid-template-columns: minmax(0, 1fr); }
  .aside-sticky { position: static; }
  .course-facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 820px) {
  .hero-stage .slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .slide-ill { order: -1; min-height: 210px; padding: 14px 18px; }
  .slide-ill img { max-height: 220px; }
  .slide-ill.is-photo { min-height: 0; aspect-ratio: 4 / 3; padding: 0; }
  .slide-text { gap: 14px; padding: 20px 0 22px; }
  .start-label { font-size: 12.5px; }
  .slide-title { font-size: 25px; }
  .facts-line { font-size: 14px; }
  .facts-line span:nth-child(3) { flex-basis: 100%; border-left: 0; padding-left: 0; }
  .slide-actions .btn { width: 100%; }
  .thumbs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbs button { border-bottom: 1px solid var(--line-2); padding: 10px 12px 12px; }
  .thumbs button:nth-child(2n) { border-right: 0; }
  .thumbs button:nth-last-child(-n+2):nth-child(odd), .thumbs button:last-child { border-bottom: 0; }
  .thumbs span { font-size: 13px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .facts-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .facts-band > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-contacts { justify-self: start; text-align: left; }
  .article-image { float: none; width: 100%; margin: 0 0 20px; }
  .post.has-image { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .blog-news { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .util { font-size: 12.5px; }
  .util .wrap { gap: 10px 14px; padding-block: 9px; }
  .blind { flex-basis: 100%; }
  .util .sp, .btn-head { display: none; }
  .phones { gap: 2px 14px; }
  .phones a { font-size: 15.5px; }
  .head .wrap { gap: 10px; padding-block: 10px; }
  .head .logo { flex: 1 1 auto; min-width: 0; }
  .logo svg { width: 40px; height: 42px; }
  .logo .name b { font-size: 18px; white-space: normal; line-height: 1.12; }
  .logo .name > span { display: none; }
  .call { margin-left: 0; }
  .block { padding-block: 34px; }
  .mod-title, .apply h2 { font-size: 24px; margin-bottom: 16px; }
  .seg { gap: 6px; margin-bottom: 20px; }
  .seg button { padding: 7px 12px; font-size: 13.5px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; }
  .card .frame small { font-size: 11px; left: 6px; top: 6px; }
  .facts-band > div { padding-inline: 14px; }
  .facts-band b { font-size: 21px; }
  .facts-band span { font-size: 13px; }
  .page { padding-block: 26px 40px; }
  .course-panel { padding: 16px; }
  .course-panel .btn { width: 100%; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mbar a { flex: 1; text-align: center; border-radius: var(--radius); padding: 12px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--g500); color: var(--g600); }
  .mbar a.primary { background: var(--g600); border-color: var(--g600); color: #fff; }
  .cookie { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 14px; }
  .course-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; }
}

/* ==========================================================================
   Версия для слабовидящих
   ========================================================================== */
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 150%; }
html.a11y-font-2 body { font-size: 20px; }
html.a11y-font-3 body { font-size: 24px; }
html.a11y-font-2 .article-body, html.a11y-font-2 .post-text, html.a11y-font-2 .card p, html.a11y-font-2 .facts-line, html.a11y-font-2 .menu a { font-size: 20px; }
html.a11y-font-3 .article-body, html.a11y-font-3 .post-text, html.a11y-font-3 .card p, html.a11y-font-3 .facts-line, html.a11y-font-3 .menu a { font-size: 24px; }
html.a11y-font-2 .card h3, html.a11y-font-2 .thumbs span, html.a11y-font-2 .contact-list dd { font-size: 21px; }
html.a11y-font-3 .card h3, html.a11y-font-3 .thumbs span, html.a11y-font-3 .contact-list dd { font-size: 25px; }
html.a11y-bw { --hero-bg: #fff; --paper: #fff; --mist: #fff; --fog: #fff; --line: #000; --line-2: #000; --ink: #000; --ink-2: #000; --ink-3: #000; --g950: #000; --g800: #000; --g600: #000; --g500: #000; --g300: #000; --g150: #fff; --g050: #fff; }
html.a11y-wb { --hero-bg: #000; --paper: #000; --mist: #000; --fog: #000; --line: #fff; --line-2: #fff; --ink: #fff; --ink-2: #fff; --ink-3: #fff; --g950: #000; --g800: #fff; --g600: #ffeb3b; --g500: #ffeb3b; --g300: #fff; --g150: #000; --g050: #000; color-scheme: dark; }
html.a11y-bw a, html.a11y-wb a { text-decoration: underline !important; }
html.a11y-bw .btn, html.a11y-bw .mbar a.primary { background: #000; color: #fff; }
html.a11y-wb .btn, html.a11y-wb .mbar a.primary { background: #ffeb3b; color: #000; }
html.a11y-wb .band, html.a11y-wb .cookie { border-block: 1px solid #fff; }
html.a11y-wb .band b, html.a11y-wb .band span, html.a11y-wb .cookie, html.a11y-wb .cookie a { color: #fff; }
html.a11y-bw .band { background: #000; }
html.a11y-bw img, html.a11y-wb img { filter: grayscale(1); }
html.a11y-noimg main img, html.a11y-noimg .slide-ill, html.a11y-noimg .card .frame, html.a11y-noimg .post-image, html.a11y-noimg .article-image { display: none !important; }
html.a11y-noimg .hero-stage .slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
html.a11y * { letter-spacing: .01em; }
