/*
Theme Name: Ак Журок
Description: Тема кризисного центра «Ак Журок» (crisis-center-osh.org). Основа — WP-CLEAN.
Author: IZILAB
Author URI: https://izilab.pro
Version: 1.0
*/

/* =========================================================
   Кризисный центр «Ак Журок» — стили
   Палитра взята из логотипа: глубокий синий + небесный
   ========================================================= */

:root {
  --navy: #24488a;
  --navy-deep: #182f5e;
  --sky: #7db0d8;
  --sky-soft: #e6f0f9;
  --sand: #f7f1e8;          /* тёплый фон — ощущение дома */
  --peach: #e9a77c;         /* тёплый акцент */
  --ink: #1d2433;
  --muted: #5d6779;
  --line: #dfe5ee;
  --white: #fff;
  --danger: #c0392b;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(24, 47, 94, .25);
  --font-head: "Lora", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
  padding-left: 28px; position: relative;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--sky);
}
.eyebrow--light { color: var(--sky); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; transition: .2s ease; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--navy-deep); color: #c9d8ee; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar__links { display: flex; gap: 22px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { height: 58px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy-deep); }
.brand__sub { font-size: .78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--sky); transition: .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle, .burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--sky-soft), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, #fff 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__danger {
  font-size: .92rem; color: var(--muted);
  padding: 12px 16px; border-left: 3px solid var(--danger); background: #fff; border-radius: 0 10px 10px 0;
  max-width: 520px;
}
.hero__danger a { color: var(--danger); font-weight: 800; }

.hero__visual { position: relative; min-height: 500px; }
.hero__photo { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main {
  inset: 0 0 60px 60px;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg); /* арка — как в логотипе */
}
.hero__photo--small { width: 44%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid #fff; }
.hero__badge {
  position: absolute; right: -10px; bottom: 20px;
  background: var(--navy); color: #fff; padding: 18px 22px; border-radius: var(--radius);
  max-width: 200px; box-shadow: var(--shadow);
}
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.hero__badge span { font-size: .85rem; color: #cfe0f4; }

/* ---------- Цифры ---------- */
.stats { background: var(--navy); color: #fff; padding: 48px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { border-left: 2px solid rgba(125, 176, 216, .5); padding-left: 20px; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: #fff; }
.stat__label { font-size: .92rem; color: #c3d5ec; }

/* ---------- Видение / миссия ---------- */
.vision { padding: clamp(56px, 8vw, 90px) 0 0; }
.vision__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vision__card { padding: 44px; border-radius: var(--radius-lg); background: var(--sky-soft); }
.vision__card--dark { background: var(--navy-deep); }
.vision__tag {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--navy); margin-bottom: 20px;
}
.vision__quote { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: #fff; margin: 0; }
.vision__text { font-size: 1.15rem; color: var(--navy-deep); margin: 0; }

/* ---------- О центре ---------- */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: start; }
.about__text p { color: #3b4458; }
.timeline { list-style: none; padding: 0; margin: 32px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--sky); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--sky);
}
.timeline span { display: block; font-weight: 800; color: var(--navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

.leader { margin: 0; position: sticky; top: 110px; }
.leader__photo { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.6; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.leader figcaption {
  margin: -40px 24px 0; position: relative; background: #fff; padding: 20px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.leader figcaption strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy-deep); }
.leader figcaption span { font-size: .9rem; color: var(--muted); }

/* ---------- Услуги ---------- */
.services { background: var(--sand); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: #fff; padding: 32px 26px; border-radius: var(--radius-lg);
  border: 1px solid #efe6d8; transition: .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); margin-bottom: 22px;
}
.service__icon svg { width: 28px; height: 28px; fill: currentColor; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

.how { margin-top: 56px; background: #fff; border-radius: var(--radius-lg); padding: 40px; }
.how__title { margin-bottom: 26px; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.how__steps li { display: flex; gap: 14px; font-size: .93rem; color: var(--muted); }
.how__steps li > span {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--peach); color: #fff; font-weight: 800;
}
.how__steps strong { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Шелтер ---------- */
.shelter { background: var(--navy-deep); color: #d5e2f3; }
.shelter h2 { color: #fff; max-width: 620px; }
.shelter__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.shelter__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 32px; }
.shelter__facts li { font-size: .88rem; max-width: 130px; line-height: 1.4; }
.shelter__facts strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--sky); }

.shelter-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.shelter-gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; }
.shelter-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shelter-gallery__item:hover img { transform: scale(1.05); }
.shelter-gallery__item--wide { grid-column: span 2; }
.shelter-gallery__item--tall { grid-row: span 2; }

/* ---------- Направления ---------- */
.directions__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.directions__list { list-style: none; margin: 0; padding: 0; }
.directions__list li {
  display: flex; gap: 22px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 600;
}
.directions__list li:first-child { border-top: 1px solid var(--line); }
.directions__list span { font-family: var(--font-head); font-size: 1.5rem; color: var(--sky); font-weight: 700; min-width: 40px; }

/* ---------- Обучение ---------- */
.training { background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 100%); }
.training__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.training__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; }
.training__photo img { width: 100%; height: 100%; object-fit: cover; }
.training__text p { color: #3b4458; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding: 10px 0 10px 40px; font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem;
}

/* ---------- Команда ---------- */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .25s; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-card__photo { aspect-ratio: 4/3; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 24px 26px 28px; }
.team-card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.strip img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Партнёры ---------- */
.partners { background: var(--sand); }
.partners__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 220px; gap: 14px;
  grid-template-areas: "a a b c" "a a d e";
}
.p-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-photo--a { grid-area: a; } .p-photo--b { grid-area: b; } .p-photo--c { grid-area: c; }
.p-photo--d { grid-area: d; } .p-photo--e { grid-area: e; } .p-photo--f { display: none; }
.partners__logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.partners__logos span {
  flex: 1 1 180px; text-align: center; padding: 22px 16px; border-radius: var(--radius);
  background: #fff; border: 1px dashed #d8ccb8; color: var(--muted); font-weight: 700; font-size: .9rem;
}

/* ---------- Новости ---------- */
.news__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.news__head h2 { margin: 0; }
.news__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.news__list { display: grid; gap: 18px; align-content: start; }
.news-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .25s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card__img { overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.news-card__tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--navy);
}
.news-card h3 { font-size: 1.08rem; margin: 0; transition: color .2s; }
.news-card:hover h3 { color: var(--navy); }

/* крупная карточка */
.news-card--featured .news-card__img { aspect-ratio: 16/9; }
.news-card--featured .news-card__body { padding: 28px 30px 32px; }
.news-card--featured h3 { font-size: 1.5rem; margin-bottom: 12px; }
.news-card--featured p { color: var(--muted); }
.news-card__more { font-weight: 700; color: var(--navy); font-size: .95rem; }

/* карточки списка */
.news__list .news-card__link { display: grid; grid-template-columns: 150px 1fr; }
.news__list .news-card__img { aspect-ratio: auto; min-height: 120px; }
.news__list .news-card__body { padding: 18px 22px; align-self: center; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(125,176,216,.35), transparent 70%),
    var(--navy);
  color: #fff; padding: 64px 0;
}
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 620px; }
.cta p { color: #cfe0f4; margin: 0; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta__or { font-size: .9rem; color: #cfe0f4; }
.cta__or a { color: #fff; font-weight: 800; }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch; }
.contacts__list { list-style: none; padding: 0; margin: 0 0 28px; }
.contacts__list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 600; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.contacts__label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contacts__safe { font-size: .9rem; color: var(--muted); background: var(--sky-soft); padding: 18px 20px; border-radius: var(--radius); }
.contacts__safe strong { color: var(--navy-deep); }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy-deep); color: #b8c8df; padding: 44px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { margin: 0; line-height: 1.4; }
.footer__logo { height: 56px; background: #fff; padding: 6px; border-radius: 12px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: #fff; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { margin: 0; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
}

@media (max-width: 920px) {
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer;
    border-radius: 12px; background: var(--sky-soft);
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 22px; height: 2px; background: var(--navy-deep); position: relative; transition: .25s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .nav-toggle:checked + .burger span { background: transparent; }
  .nav-toggle:checked + .burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .burger span::after { top: 0; transform: rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; justify-content: center; }
  .nav-toggle:checked ~ .nav { display: flex; }

  .hero__grid, .about__grid, .directions__grid, .training__grid, .contacts__grid, .vision__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 420px; }
  .leader { position: static; max-width: 440px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .shelter-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .partners__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "a a" "b c" "d e"; grid-auto-rows: 180px; }
  .p-photo--a { height: 280px; }
  .news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { height: 68px; }
  .brand__logo { height: 46px; }
  .brand__sub { display: none; }
  .hero__visual { min-height: 340px; }
  .hero__photo--main { inset: 0 0 50px 30px; }
  .hero__badge { right: 0; bottom: 0; padding: 14px 16px; }
  .hero__badge strong { font-size: 1.5rem; }
  .btn--lg { width: 100%; justify-content: center; }
  .vision__card { padding: 30px 24px; }
  .services__grid, .how__steps, .team__grid, .strip { grid-template-columns: 1fr; }
  .how { padding: 28px 22px; }
  .shelter__facts { gap: 20px; flex-wrap: wrap; }
  .shelter-gallery__item--wide { grid-column: span 2; }
  .shelter-gallery__item--tall { grid-row: span 1; }
  .shelter-gallery__item:last-child { grid-column: span 2; }
  .cta__actions { width: 100%; }
  .news__head .btn { width: 100%; justify-content: center; }
  .news-card--featured .news-card__body { padding: 22px; }
  .news-card--featured h3 { font-size: 1.25rem; }
  .news__list .news-card__link { grid-template-columns: 110px 1fr; }
  .news__list .news-card__body { padding: 14px 16px; }
}

/* =========================================================
   Внутренняя страница новости (inner.html)
   ========================================================= */
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after { width: 100%; }

.article-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, var(--sky-soft), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, #fff 100%);
  padding: 36px 0 48px;
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 36px; }
.breadcrumbs a { color: var(--navy); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span:last-child { color: var(--muted); }

.article-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.article-hero__meta .news-card__tag { text-decoration: none; }
.article-hero__title { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 900px; }
.article-hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 780px; margin: 0; }

.article-cover { margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-cover figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; }

.article-layout { padding: 56px 0 clamp(64px, 8vw, 100px); }
.article-layout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }

/* типографика текста статьи */
.article__content { font-size: 1.08rem; line-height: 1.8; color: #2e3647; max-width: 720px; }
.article__content > * + * { margin-top: 1.2em; }
.article__content p { margin-bottom: 0; }
.article__content h2 { font-size: 1.7rem; margin: 1.8em 0 .2em; }
.article__content a { color: var(--navy); text-decoration-color: var(--sky); text-underline-offset: 3px; }
.article__content ul, .article__content ol { padding-left: 1.3em; margin-bottom: 0; }
.article__content li { margin: .4em 0; padding-left: .3em; }
.article__content ul li::marker { color: var(--sky); }
.article__content ol li::marker { color: var(--navy); font-weight: 800; }
.article__content blockquote {
  margin: 2em 0; padding: 28px 32px; border-radius: var(--radius);
  background: var(--sky-soft); border-left: 4px solid var(--navy);
}
.article__content blockquote p { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.45; color: var(--navy-deep); font-style: italic; }
.article__content blockquote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--navy); }

.article__gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 170px 170px; gap: 12px; margin: 2em 0; }
.article__gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.article__gallery figure:first-child { grid-row: span 2; }
.article__gallery img { width: 100%; height: 100%; object-fit: cover; }

.article__footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.article__tags a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem; transition: .2s;
}
.article__tags a:hover { border-color: var(--navy); color: var(--navy); }
.share { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.share__btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); border: 0; cursor: pointer; transition: .2s;
}
.share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.share__btn:hover { background: var(--navy); color: #fff; }

.article__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager-link {
  display: block; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  text-decoration: none; transition: .2s;
}
.pager-link:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.pager-link--next { text-align: right; }
.pager-link__dir { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager-link__title { font-family: var(--font-head); font-weight: 600; color: var(--navy-deep); }

/* сайдбар */
.sidebar { display: grid; gap: 24px; position: sticky; top: 110px; }
.sidebar__box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.sidebar__title { font-size: 1.15rem; margin-bottom: 16px; }
.sidebar__help { background: var(--navy); border-color: var(--navy); color: #cfe0f4; }
.sidebar__help h3 { color: #fff; margin-bottom: 8px; }
.sidebar__help p { font-size: .92rem; }
.sidebar__help .btn { width: 100%; justify-content: center; }
.sidebar__small { margin: 14px 0 0; font-size: .85rem; }
.sidebar__small a { color: #fff; font-weight: 800; }

.sidebar__news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sidebar__news a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.sidebar__news img { width: 76px; height: 64px; object-fit: cover; border-radius: 12px; }
.sidebar__news span { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.sidebar__news time { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.sidebar__news a:hover span { color: var(--navy); }

.sidebar__cats { list-style: none; margin: 0; padding: 0; }
.sidebar__cats a {
  display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.sidebar__cats li:last-child a { border-bottom: 0; }
.sidebar__cats a:hover { color: var(--navy); }
.sidebar__cats span { font-size: .8rem; color: var(--muted); background: var(--sky-soft); padding: 2px 10px; border-radius: 999px; }

/* другие новости */
.related { background: var(--sand); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related__img { aspect-ratio: 16/10; }
.related__body { padding: 20px 22px 24px; }

@media (max-width: 1080px) {
  .article-layout__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 920px) {
  .article-layout__grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .sidebar__help { grid-column: span 2; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .article-cover img { aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .article-hero { padding: 24px 0 32px; }
  .breadcrumbs { margin-bottom: 24px; }
  .article-hero__lead { font-size: 1.05rem; }
  .article-cover img { border-radius: var(--radius); aspect-ratio: 4/3; }
  .article-layout { padding-top: 36px; }
  .article__content { font-size: 1rem; }
  .article__content h2 { font-size: 1.4rem; }
  .article__content blockquote { padding: 22px; }
  .article__content blockquote p { font-size: 1.15rem; }
  .article__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px; }
  .article__gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
  .article__pager { grid-template-columns: 1fr; }
  .pager-link--next { text-align: left; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar__help { grid-column: auto; }
  .related__grid { grid-template-columns: 1fr; }
}


/* =========================================================
   WordPress
   ========================================================= */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

.section__head--flat { margin-bottom: 0; }
.list-page { padding-top: 8px; }

/* сетка карточек: сотрудничество, другие материалы, списки рубрик */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid .news-card__img { aspect-ratio: 16/10; }
.cards-grid .news-card__body { padding: 20px 22px 24px; }

/* карточка команды — ссылка */
.team-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }

/* текст истории из редактора */
.about__content p { color: #3b4458; }

/* пагинация */
.mypagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.mypagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink);
}
.mypagination .page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.mypagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.mypagination .page-numbers.dots { border: 0; }

/* содержимое классического редактора внутри статьи */
.article__content img { height: auto; border-radius: var(--radius); }
.article__content .alignleft  { float: left;  margin: .3em 1.5em 1em 0; max-width: 50%; }
.article__content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.article__content .aligncenter { display: block; margin-inline: auto; }
.article__content::after { content: ""; display: table; clear: both; }
.article__content .wp-caption { max-width: 100%; }
.article__content .wp-caption-text,
.article__content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.article__content iframe { max-width: 100%; border-radius: var(--radius); }

/* галерея WordPress ([gallery]) */
.article__content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2em 0; }
.article__content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.article__content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.article__content .gallery br { display: none; }
.article__content .gallery-item { margin: 0; }
.article__content .gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 920px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .article__content .alignleft, .article__content .alignright { float: none; max-width: 100%; margin: 1em 0; }
  .article__content .gallery { grid-template-columns: 1fr 1fr; }
}
