/* ==========================================================================
   norm.org.kz — стили сайта
   Все классы начинаются с «n-», чтобы не пересекаться со старыми страницами.
   ========================================================================== */

/* ---------- шрифты (лежат рядом, в assets/fonts) ---------- */
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geologica-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geologica-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geologica-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- переменные ---------- */
:root {
  --n-navy: #0a2f4a;        /* фон шапки, первого экрана, раздела конгрессов */
  --n-navy-deep: #072338;   /* подвал */
  --n-blue: #0a6cab;        /* фирменный синий: ссылки, акценты */
  --n-air: #eaf3f9;         /* светлый фон разделов */
  --n-yellow: #ffcb04;      /* фирменный жёлтый: главные кнопки, линия спирограммы */
  --n-ink: #12222e;         /* основной текст */
  --n-muted: #536675;       /* второстепенный текст */
  --n-line: #cfdde8;        /* разделительные линии */
  --n-display: "Geologica", "Segoe UI", Arial, sans-serif;
  --n-body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --n-radius: 10px;
}

/* ---------- основа ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body.norm { margin: 0; background: #fff; color: var(--n-ink); font: 400 17px/1.6 var(--n-body); -webkit-font-smoothing: antialiased; }
.norm *, .norm *::before, .norm *::after,
.n-header, .n-header *, .n-footer, .n-footer * { box-sizing: border-box; }
.norm h1, .norm h2, .norm h3, .norm p, .norm ul, .norm dl, .norm dd { margin: 0; padding: 0; }
.norm ul { list-style: none; }
.norm img { max-width: 100%; display: block; }
.norm p + p { margin-top: 1em; }
.norm :focus-visible, .n-header :focus-visible, .n-footer :focus-visible { outline: 3px solid var(--n-yellow); outline-offset: 3px; border-radius: 4px; }
.norm main :focus-visible { outline-color: var(--n-blue); }
.norm .n-section--navy :focus-visible, .norm .n-hero :focus-visible { outline-color: var(--n-yellow); }

.n-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.n-skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--n-yellow); color: #1a1300; padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.n-skip:focus { top: 12px; }

/* ---------- кнопки и ссылки ---------- */
.n-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--n-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.n-btn--small { padding: 10px 18px; font-size: 15px; }
.n-btn--yellow { background: var(--n-yellow); color: #1a1300; }
.n-btn--yellow:hover { background: #ffd83d; color: #1a1300; }
.n-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.n-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.n-btn--line { border-color: var(--n-blue); color: var(--n-blue); }
.n-btn--line:hover { background: var(--n-blue); color: #fff; }
.n-link { color: var(--n-blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.n-link:hover { color: var(--n-navy); }

/* ---------- шапка ---------- */
.n-header { position: relative; z-index: 10; background: var(--n-navy); color: #fff; font: 400 16px/1.4 var(--n-body); }
.n-header a { color: #fff; text-decoration: none; }
.n-header__bar { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.n-header__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.n-header__contacts, .n-header__tools { display: flex; align-items: center; gap: 22px; }
.n-header__top a { color: rgba(255, 255, 255, .82); }
.n-header__top a:hover { color: #fff; }
.n-lang { display: flex; gap: 2px; }
.n-header .n-lang a { padding: 3px 9px; border-radius: 5px; font-weight: 600; letter-spacing: .02em; }
.n-header .n-lang a[aria-current] { background: #fff; color: var(--n-navy); }

.n-header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.n-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* логотип на белой подложке: синие лёгкие на тёмно-синем фоне иначе теряются */
.n-brand img { height: 60px; width: 60px; padding: 6px; flex: none; object-fit: contain; background: #fff; border-radius: 14px; }
.n-brand span { font: 500 15px/1.25 var(--n-display); max-width: 15em; }
.n-nav { display: flex; align-items: center; gap: 28px; }
.n-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.n-nav li a { display: block; padding: 8px 0; font-weight: 500; border-bottom: 2px solid transparent; }
.n-nav li a:hover { border-bottom-color: var(--n-yellow); }
.n-header .n-btn--yellow { color: #1a1300; white-space: nowrap; }
.n-burger { display: none; align-items: center; gap: 10px; padding: 9px 14px; background: none; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; font: 600 15px/1 var(--n-body); cursor: pointer; }
.n-burger__lines { width: 16px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; }

/* ---------- первый экран ---------- */
.n-hero { position: relative; background: var(--n-navy); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.n-hero > .n-wrap, .n-hero > .n-spiro { position: relative; z-index: 1; }
/* фон: рисунок лёгких справа; если в админке загружено фото — оно, под синей вуалью */
.n-hero__lungs { position: absolute; top: clamp(8px, 2vw, 28px); right: max(-40px, calc(50% - 680px)); width: clamp(360px, 44vw, 620px); max-width: none; opacity: .42; pointer-events: none; }
.n-hero--photo { background-size: cover; background-position: center; }
.n-hero__title { font: 600 clamp(2.1rem, 5.4vw, 4.4rem)/1.04 var(--n-display); letter-spacing: -.025em; max-width: 13.5em; text-wrap: balance; }
.norm .n-hero__sub { margin-top: 18px; font: 300 clamp(1.1rem, 1.8vw, 1.5rem)/1.3 var(--n-display); color: rgba(255, 255, 255, .78); }
.norm .n-hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
.n-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Спирограмма: спокойное дыхание → глубокий вдох → форсированный выдох */
.n-spiro { display: block; width: 100%; height: clamp(110px, 17vw, 230px); margin: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); }
.n-spiro path { fill: none; vector-effect: non-scaling-stroke; }
.n-spiro__grid path { stroke: rgba(255, 255, 255, .13); stroke-width: 1; stroke-dasharray: 2 7; }
.n-spiro__line { stroke: var(--n-yellow); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; animation: n-breathe 2.8s cubic-bezier(.4, 0, .3, 1) both; }
@keyframes n-breathe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.norm .n-hero__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.n-hero__points li { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }

/* ---------- разделы ---------- */
.n-section { padding: clamp(56px, 8vw, 104px) 0; }
.n-section--air { background: var(--n-air); }
.n-section--navy { background: var(--n-navy); color: #fff; }
.n-section--page { padding-top: clamp(40px, 5vw, 64px); min-height: 50vh; }
.n-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }

.n-h1 { font: 600 clamp(1.9rem, 4vw, 3rem)/1.1 var(--n-display); letter-spacing: -.02em; color: var(--n-navy); text-wrap: balance; }
.norm .n-h2 { margin-bottom: 28px; font: 600 clamp(1.7rem, 3.2vw, 2.6rem)/1.1 var(--n-display); letter-spacing: -.02em; color: var(--n-navy); text-wrap: balance; }
.norm .n-h3 { margin-bottom: 18px; font: 600 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--n-display); letter-spacing: -.01em; }
.norm .n-section--navy .n-h2, .norm .n-section--navy .n-h3 { color: #fff; }
.n-lead { font-size: 1.18rem; line-height: 1.55; font-weight: 500; }

/* картинка + текст */
.n-split { display: flex; align-items: center; gap: clamp(32px, 6vw, 80px); }
.n-split--top { align-items: flex-start; }
.n-split--reverse { flex-direction: row-reverse; }
.n-split__media { flex: 0 0 44%; min-width: 0; }
.n-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--n-radius); }
.n-split__body { flex: 1; min-width: 0; max-width: 46em; }

/* вводный текст слева, список справа */
.n-cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.n-rules li { padding: 20px 0; border-top: 1px solid var(--n-line); font-size: 1.12rem; line-height: 1.45; font-weight: 500; }
.n-rules li:last-child { border-bottom: 1px solid var(--n-line); }
.n-section--air .n-rules li { border-color: #b9cfdf; }
.n-section--navy .n-rules li { border-color: rgba(255, 255, 255, .22); }
.n-goals { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, .22); }
.n-section--navy .n-cols__side p { color: rgba(255, 255, 255, .8); }

/* миссия */
.n-statement { max-width: 32em; font: 300 clamp(1.3rem, 2.5vw, 2rem)/1.35 var(--n-display); letter-spacing: -.01em; color: var(--n-navy); }
.n-theses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px clamp(32px, 6vw, 80px); margin-top: 48px; }
.norm .n-theses p { margin: 0; padding-left: 22px; border-left: 3px solid var(--n-yellow); font-size: 1.08rem; }

/* направления */
.n-defs { display: grid; gap: 26px; }
.n-defs dt { font: 600 1.2rem/1.25 var(--n-display); color: var(--n-navy); }
.norm .n-defs dd { margin-top: 6px; color: var(--n-muted); }

/* видео */
.n-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--n-radius); overflow: hidden; background: #000; }
.n-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- новости ---------- */
.n-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; margin-top: 12px; }
.n-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--n-radius); overflow: hidden; background: var(--n-air); color: #8fb6d2; }
.n-card__media img, .n-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.n-card__media .n-card__logo { object-fit: contain; padding: 9% 0; }  /* новость без обложки — показываем логотип */
.norm .n-card__date { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--n-blue); }
.norm .n-card__title { margin-top: 6px; font: 500 1.14rem/1.3 var(--n-display); }
.n-card__title a { color: var(--n-ink); text-decoration: none; }
.n-card__title a:hover { color: var(--n-blue); text-decoration: underline; text-underline-offset: 3px; }
.norm .n-card__text { margin-top: 8px; font-size: 15.5px; color: var(--n-muted); }
.n-pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 56px; color: var(--n-muted); }
.n-section--page .n-h1 { margin-bottom: 36px; }

/* страница новости */
.n-article { max-width: 808px; }
.norm .n-article__date { margin-top: 28px; font-weight: 600; color: var(--n-blue); }
.n-article .n-h1 { margin: 8px 0 24px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.n-article__image { width: 100%; margin: 32px 0; border-radius: var(--n-radius); }
.n-prose { margin-top: 28px; }
.norm .n-prose p, .norm .n-prose ul, .norm .n-prose ol, .norm .n-prose blockquote { margin: 0 0 1.1em; }
.norm .n-prose h2 { margin: 1.8em 0 .6em; font: 600 1.5rem/1.2 var(--n-display); color: var(--n-navy); }
.norm .n-prose h3 { margin: 1.6em 0 .5em; font: 600 1.2rem/1.25 var(--n-display); color: var(--n-navy); }
.norm .n-prose ul, .norm .n-prose ol { padding-left: 1.4em; }
.norm .n-prose ul { list-style: disc; }
.n-prose li + li { margin-top: .35em; }
.n-prose a { color: var(--n-blue); text-underline-offset: 3px; }
.norm .n-prose blockquote { padding-left: 22px; border-left: 3px solid var(--n-yellow); }

/* ---------- подвал ---------- */
.n-footer { background: var(--n-navy-deep); color: rgba(255, 255, 255, .86); padding: clamp(48px, 7vw, 88px) 0 0; font: 400 16px/1.55 var(--n-body); }
.n-footer a { color: #fff; text-decoration: none; }
.n-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.n-footer__grid { display: grid; grid-template-columns: 1.15fr .7fr 1.7fr; gap: 48px; }
.n-footer .n-footer__title { margin: 0 0 18px; font: 600 1.25rem/1.2 var(--n-display); color: #fff; }
.n-footer .n-footer__org { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; max-width: 22em; font: 500 15px/1.3 var(--n-display); color: #fff; }
.n-footer__org img { height: 64px; width: 64px; padding: 7px; flex: none; object-fit: contain; background: #fff; border-radius: 14px; }
.n-footer .n-footer__list { margin: 0; }
.n-footer .n-footer__list dt { font-size: 13.5px; font-weight: 400; color: rgba(255, 255, 255, .58); }
.n-footer .n-footer__list dd { margin: 0 0 14px; }
.n-footer .n-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.n-footer .n-footer__nav li { margin-bottom: 10px; }
.n-footer__map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--n-radius); }
.n-footer__bottom { margin-top: clamp(40px, 5vw, 64px); }
.n-footer__bottom div { padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .n-burger { display: inline-flex; flex: none; }
  .n-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px 24px 28px; background: var(--n-navy); border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 40px rgba(7, 35, 56, .35); }
  .n-nav.is-open { display: flex; }
  .n-nav ul { flex-direction: column; gap: 0; }
  .n-nav li a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 17px; }
  .n-nav li a:hover { border-bottom-color: rgba(255, 255, 255, .14); color: var(--n-yellow); }
}
@media (max-width: 900px) {
  .n-split, .n-split--reverse { flex-direction: column; align-items: stretch; }
  .n-split__media { flex: none; }
  .n-cols, .n-theses, .norm .n-hero__points { grid-template-columns: 1fr; }
  .norm .n-hero__points { gap: 20px; }
  .n-cards { grid-template-columns: repeat(2, 1fr); }
  .n-footer__grid { grid-template-columns: 1fr 1fr; }
  .n-footer__map { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.norm { font-size: 16px; }
  .n-wrap { padding: 0 18px; }
  .n-header__contacts a + a { display: none; }
  .n-brand img { height: 48px; width: 48px; padding: 5px; border-radius: 11px; }
  .n-brand span { font-size: 13.5px; }
  .n-cards { grid-template-columns: 1fr; }
  .n-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .n-hero__actions .n-btn { flex: 1 1 100%; }
  .n-hero__lungs { width: 330px; right: -110px; top: 4px; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .n-spiro__line { animation: none; }
  .n-btn { transition: none; }
}
