﻿/*
Theme Name: Fitness UZ
Theme URI: https://fitness.uz
Description: O'zbekiston Sog'lom Turmush Tarzi va Fitnes Milliy Assotsiatsiyasi rasmiy veb-sayti uchun tema. Uz / Ru / En (Polylang).
Author: AviodMedia
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: fitness-uz
Tags: association, news, media, multilingual
*/

/* =========================================================
   Р Р°Р·РјРµСЂС‹ СЃРІРµСЂРµРЅС‹ СЃ РјР°РєРµС‚РѕРј Figma (Р±Р°Р·РѕРІР°СЏ С€РёСЂРёРЅР° 1440):
   РєРѕРЅС‚РµРЅС‚ 1320 px, С€СЂРёС„С‚ Inter. РћС‚СЃС‚СѓРїР»РµРЅРёСЏ РѕС‚ РјР°РєРµС‚Р° вЂ”
   С‚РѕР»СЊРєРѕ С‚Р°Рј, РіРґРµ РѕР± СЌС‚РѕРј РїСЂСЏРјРѕ РїСЂРѕСЃРёР»Рё РІ РїСЂР°РІРєР°С….
   ========================================================= */

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --teal:        #2AA4B7;
  --teal-bright: #59B6C1;
  --blue:        #1A6BA5;
  --navy:        #043055;
  --navy-deep:   #02294A;
  --ocean:       #005B87;

  --grad-cta:    linear-gradient(90deg, #64C2C8 0%, #3CB496 100%);
  --grad-stats:  linear-gradient(90deg, #025D89 0%, #2E93AC 52%, #63C1C8 100%);
  --grad-sub:    linear-gradient(90deg, #05618B 0%, #2288A6 55%, #4CB1C1 100%);
  --grad-top:    linear-gradient(90deg, #14607F 0%, #2F839E 50%, #4CB1C1 100%);
  --grad-page:   linear-gradient(100deg, #02294A 0%, #0E4F78 60%, #1E8DAE 100%);
  --grad-accent: linear-gradient(135deg, #3FB6C4 0%, #2795B4 50%, #1E7BB0 100%);
  --tint-map:    linear-gradient(90deg, #FBFDFF 0%, #EAF4FE 55%, #D3EAFF 100%);
  --tint-story:  #EAF6F8;
  --footer-bg:   #01274B;

  --ink:         #000000;
  --ink-soft:    #2B2B2B;
  --muted:       #8E8E8E;
  --line:        #E4E8EC;
  --border-soft: #8DB8CC;
  --bg:          #FFFFFF;
  --bg-alt:      #F5F7F9;

  --container:   1368px;
  --gutter:      24px;
  /* Р Р°СЃСЃС‚РѕСЏРЅРёРµ РѕС‚ РєСЂР°СЏ СЌРєСЂР°РЅР° РґРѕ РєСЂР°СЏ РєРѕРЅС‚РµРЅС‚Р° вЂ” РґР»СЏ РєР°СЂСѓСЃРµР»РµР№ В«РІ РєСЂР°Р№В». */
  --bleed:       max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));

  --radius:      12px;
  --radius-sm:   8px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, .10);
  --shadow-lift: 0 14px 32px rgba(0, 0, 0, .16);

  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 142px;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.top-accent { height: 22px; background: var(--grad-top); }

/* =========================================================
   3. Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 33px 0; }
.section--tight { padding: 33px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}

.section-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--lg { height: 55px; padding: 0 20px; font-size: 16px; font-weight: 400; text-transform: uppercase; }

.btn--accent { background: var(--grad-cta); color: #fff; }
.btn--accent:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 8px 20px rgba(60, 180, 150, .32); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--blue); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-card); }
.btn--ghost:hover { border-color: var(--teal); color: var(--blue); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn--outline-light:hover { background: #fff; color: var(--navy); }

/* В«Barcha вЂ¦В»: СЂР°Р·РјРµСЂС‹ РїРѕ РїСЂР°РІРєРµ вЂ” 42 px, С€СЂРёС„С‚ 15 px Medium. */
.btn--see-all {
  flex: none;
  height: 42px;
  padding: 0 18px 0 20px;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.btn--see-all:hover { border-color: var(--teal); color: var(--ocean); }

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  color: #575756;
}

.brand__mark { width: 76px; height: 76px; flex: none; }
.brand__full { max-height: 76px; width: auto; }
.brand__mark--fallback { color: var(--teal); }

/* РќР°РґРїРёСЃСЊ Р»РѕРіРѕС‚РёРїР°: РїРѕ РјР°РєРµС‚Сѓ РІС‹СЃРѕС‚Р° СЃС‚СЂРѕРє в‰€ Р·РЅР°РєСѓ, РїРѕ РїСЂР°РІРєРµ РєСЂСѓРїРЅРµРµ РЅР° 12%. */
.brand__wordmark { height: 69px; width: auto; flex: none; }

.brand__name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.18;
  color: #575756;
}
.brand__name-top   { display: block; font-size: 18px; font-weight: 400; }
.brand__name-main  { display: block; font-size: 18px; }
.brand__name-light { font-weight: 400; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: 24px; }
.primary-nav ul a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.primary-nav ul a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--ocean); }

/* РЎС‚СЂРµР»РєР° СЂР°СЃРєСЂС‹РІР°СЋС‰РµРіРѕСЃСЏ РјРµРЅСЋ вЂ” РїРѕРґ РЅР°Р·РІР°РЅРёРµРј РїСѓРЅРєС‚Р°, РєР°Рє РІ РјР°РєРµС‚Рµ. */
.primary-nav .menu-item-has-children > a::after {
  content: "";
  width: 6px; height: 6px;
  margin-top: -1px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
}

.primary-nav li { position: relative; }
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  min-width: 230px; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 20;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu a {
  flex-direction: row;
  align-items: flex-start;
  padding: 9px 18px;
  font-size: 14px;
  text-transform: none;
  white-space: normal;
}
.primary-nav .sub-menu a:hover { background: var(--bg-alt); }

.header-tools { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.header-cta {
  height: 48px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #5CB9C2 0%, #09658D 100%);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
.header-cta:hover { filter: brightness(1.07); box-shadow: none; }
.header-cta--mobile { display: none; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch__toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 2px;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.lang-switch__toggle svg { width: 10px; height: 7px; color: var(--ocean); transition: transform .2s ease; }
.lang-switch[aria-expanded="true"] .lang-switch__toggle svg { transform: rotate(180deg); }
.lang-switch__list {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 140px; padding: 6px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  display: none; z-index: 5;
}
.lang-switch[aria-expanded="true"] .lang-switch__list { display: block; }
.lang-switch__list a { display: block; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
.lang-switch__list a:hover { background: var(--bg-alt); color: var(--ocean); }
.lang-switch__list .is-current a { color: var(--teal); }

.search-toggle {
  background: none; border: 0; padding: 2px;
  display: grid; place-items: center; color: var(--ink);
}
.search-toggle svg { width: 22px; height: 22px; }
.search-toggle:hover { color: var(--teal); }

.header-search {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 18px 0;
}
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: 10px; }
.header-search input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 15px;
  background: #fff;
}
.header-search input[type="search"]:focus { border-color: var(--teal); outline: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.hero__slide { display: none; position: relative; }
.hero__slide.is-active { display: block; }

.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero__veil { position: absolute; inset: 0; }

/* Р”РµСЃРєС‚РѕРї: С„РѕС‚Рѕ Р·Р°РЅРёРјР°РµС‚ РїСЂР°РІС‹Рµ 65% РєР°РґСЂР° (РїРѕ РїСЂР°РІРєРµ вЂ” С‡СѓС‚СЊ РґРѕРјРёРЅР°РЅС‚РЅРµРµ, С‡РµРј
   РІ РјР°РєРµС‚Рµ), СЃР»РµРІР° РµРіРѕ РјСЏРіРєРѕ РіР°СЃРёС‚ РіСЂР°РґРёРµРЅС‚ РїСЂСЏРјРѕ РЅР° СЃР°РјРѕРј С„РѕС‚Рѕ вЂ” Р±РµР· СЃС‚С‹РєР°. */
@media (min-width: 861px) {
  /* РљР°РґСЂ РїСЂРёР¶Р°С‚ Рє РІРµСЂС…Сѓ, РєР°Рє РІ РјР°РєРµС‚Рµ: РіРѕР»РѕРІС‹ РЅРµ РѕР±СЂРµР·Р°СЋС‚СЃСЏ. */
  .hero__photo { left: auto; right: 0; width: min(62%, 800px); background-position: right top; }
  .hero__photo::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, #02294A 0%, rgba(2, 41, 74, .72) 10%, rgba(2, 41, 74, .25) 22%, rgba(2, 41, 74, 0) 32%);
  }
  .hero__veil { display: none; }
}

.hero__inner { position: relative; z-index: 2; }

.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  max-width: 700px;
  min-height: 396px;
  padding: 40px 0 38px;
}

.hero__title {
  margin: 0;
  font-size: 68px;
  font-weight: 600;
  line-height: .97;
  letter-spacing: -.01em;
}
.hero__excerpt {
  margin: 28px 0 0;
  max-width: 370px;
  font-size: 17.5px;
  line-height: 18px;
  color: #fff;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }

.hero__video {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0;
  color: #fff; font-size: 17px; font-weight: 400;
  letter-spacing: 0; text-transform: uppercase;
}
.hero__video-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid #fff;
  transition: background .2s ease, color .2s ease;
}
.hero__video:hover .hero__video-icon { background: #fff; color: var(--navy); }

.hero__dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .45);
  transition: background .2s ease, width .2s ease;
}
.hero__dot.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* =========================================================
   6. Raqamlar
   ========================================================= */
.section--stats { padding-top: 61px; }

/* РЁРёСЂРёРЅС‹ РєРѕР»РѕРЅРѕРє РІР·СЏС‚С‹ РёР· РјР°РєРµС‚Р°: РєРѕР»РѕРЅРєРё РїРѕРґСЃС‚СЂР°РёРІР°СЋС‚СЃСЏ РїРѕРґ СЃРІРѕР№ С‚РµРєСЃС‚. */
.stats-panel {
  display: grid;
  grid-template-columns: 321fr 297fr 368fr 334fr;
  min-height: 183px;
  border-radius: 22px;
  background: var(--grad-stats);
  box-shadow: 0 8px 20px rgba(2, 93, 137, .18);
  color: #fff;
}
.stat { position: relative; padding: 42px 20px 28px 72px; }
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 29px; bottom: 29px;
  width: 1px; background: rgba(255, 255, 255, .5);
}
.stat__value { margin-bottom: 26px; font-size: 44px; font-weight: 500; line-height: 1; white-space: nowrap; }
.stat__label { max-width: 230px; font-size: 22px; font-weight: 400; line-height: 20px; color: #fff; }

/* =========================================================
   7. Loyihalar
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.project-card__media { display: block; aspect-ratio: 311 / 202; background: var(--bg-alt); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__body { position: relative; flex: 1; padding: 34px 24px 54px; }

.project-card__icon {
  position: absolute; top: -33px; left: 18px;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.project-card__icon svg { width: 26px; height: 26px; }

.project-card__title { max-width: 250px; margin: 0 0 20px; font-size: 29px; font-weight: 500; line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
/* Русские названия проектов длиннее узбекских — иначе длинные слова рвутся посреди карточки. */
html:lang(ru) .project-card__title { font-size: 24px; }
.project-card__title a { color: var(--ink); }
.project-card:hover .project-card__title a { color: var(--ocean); }
.project-card__text {
  margin: 0;
  max-width: 240px;
  font-size: 12px; font-weight: 600; line-height: 1.12;
  color: var(--ink);
  overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.project-card__arrow {
  position: absolute; right: 26px; bottom: 15px; line-height: 0;
  color: var(--ink);
  transition: color .2s ease, transform .2s ease;
}
.project-card__arrow svg { width: 18px; height: 18px; }
.project-card:hover .project-card__arrow { color: var(--teal); transform: translate(2px, -2px); }

/* =========================================================
   8. Carousels (Tadbirlar, Media)
   ========================================================= */
.section--events,
.section--media { overflow-x: clip; }

.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 381px;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  /* Р›РµРЅС‚Р° СѓС…РѕРґРёС‚ Р·Р° РїСЂР°РІС‹Р№ РєСЂР°Р№ СЌРєСЂР°РЅР°, РєР°Рє РІ РјР°РєРµС‚Рµ. */
  margin: -8px calc(-1 * var(--bleed)) -16px 0;
  padding: 8px var(--bleed) 16px 0;
  scroll-padding-left: 0;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

.carousel__nav {
  position: absolute;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 0;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  z-index: 3;
}
.carousel__nav:hover { color: var(--teal); }
.carousel__nav[hidden] { display: none; }

/* РЎС‚СЂРµР»РєРё РІ РјР°РєРµС‚Рµ СЃС‚РѕСЏС‚ РЅР° СЃС‚С‹РєРµ 3-Р№ Рё 4-Р№ РєР°СЂС‚РѕС‡РєРё. */
.section--events .carousel__nav--next { left: calc(3 * 381px + 2.5 * 28px - 4px); top: 145px; }
.section--events .carousel__nav--prev { left: -16px; top: 145px; }

/* =========================================================
   9. Tadbirlar
   ========================================================= */
.event-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.event-card__media { position: relative; display: block; aspect-ratio: 381 / 201; background: var(--bg-alt); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }

.event-card__badge {
  position: absolute; top: 22px; left: 20px;
  min-width: 44px; padding: 6px 7px 6px;
  background: #fff; border-radius: 5px;
  text-align: center; line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.event-card__day { display: block; font-size: 26px; font-weight: 700; color: var(--ink); }
.event-card__month { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; text-transform: uppercase; color: var(--ink); }

.event-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 18px 22px 20px; }
.event-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.event-card__title {
  margin: 0;
  font-size: 26px; font-weight: 500; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-card__title a { color: var(--ink); }
.event-card:hover .event-card__title a { color: var(--ocean); }
.event-card__date { flex: none; font-size: 12px; color: var(--ink); white-space: nowrap; }

.event-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
}
.event-card__place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 10px; line-height: 1.25; color: var(--muted); }
.event-card__place svg { flex: none; width: 14px; height: 14px; }

.btn--reg {
  flex: none;
  height: 32px; padding: 0 12px; gap: 6px;
  border: 1px solid #E2E2E2; border-radius: 4px;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
  font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: uppercase;
  color: var(--ink);
}

/* =========================================================
   10. Xarita bloki
   ========================================================= */
.section--map {
  position: relative;
  margin: 46px 0 36px;
  padding: 80px 0;
  background: var(--tint-map);
  overflow: hidden;
}

.map-layout { position: relative; min-height: 350px; }
.map-layout__text { position: relative; z-index: 1; max-width: 640px; }
.map-title {
  margin: 0;
  max-width: 520px;
  font-size: 75px;
  font-weight: 600;
  line-height: .987;
  color: var(--ocean);
}
.map-text { margin: 22px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 40ch; }
.map-layout__text .btn {
  margin-top: 53px;
  height: 71px; padding: 0 43px;
  border-radius: var(--radius-sm);
  font-size: 23px; font-weight: 400; text-transform: uppercase;
}
/* РљР°СЂС‚Р° СЃРїСЂР°РІР° Рё С‡Р°СЃС‚РёС‡РЅРѕ РїРѕРґ Р·Р°РіРѕР»РѕРІРєРѕРј вЂ” РєР°Рє РІ РјР°РєРµС‚Рµ. */
.map-layout__image {
  position: absolute; right: calc(var(--gutter) - 6px); top: calc(50% - 23px);
  width: 746px; max-width: 60%;
  transform: translateY(-50%);
}
.map-layout__image img { width: 100%; height: auto; }

/* =========================================================
   11. Yangiliklar
   ========================================================= */
.news-layout {
  display: grid;
  grid-template-columns: 642fr 650fr;
  gap: 25px;
}
.news-layout__rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.news-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.news-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }

/* РЎС‚СЂРµР»РєР°-СЃСЃС‹Р»РєР° РІ СѓРіР»Сѓ С„РѕС‚Рѕ вЂ” РєР°Рє РІ РјР°РєРµС‚Рµ: Р±РµР· РїРѕРґР»РѕР¶РєРё Рё РІРёРґРЅР° РІСЃРµРіРґР°.
   РќР° РјР°Р»С‹С… РєР°СЂС‚РѕС‡РєР°С… Рё РІ В«TadbirlarВ» Р±РµР»Р°СЏ, РЅР° РєСЂСѓРїРЅРѕР№ РЅРѕРІРѕСЃС‚Рё вЂ” С‡С‘СЂРЅР°СЏ. */
.news-card__arrow,
.event-card__arrow {
  position: absolute; z-index: 1;
  display: block; line-height: 0;
  color: #fff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35));
  pointer-events: none;
  transition: transform .2s ease;
}
.news-card__arrow { right: 9px; bottom: 7px; }
.news-card__arrow svg { width: 16px; height: 16px; }
.event-card__arrow { right: 12px; bottom: 7px; }
.event-card__arrow svg { width: 18px; height: 18px; }
.news-card--feature .news-card__arrow { right: 12px; bottom: 9px; color: var(--ink); filter: drop-shadow(0 0 2px rgba(255, 255, 255, .6)); }
.news-card--feature .news-card__arrow svg { width: 30px; height: 30px; }
.news-card--feature .news-card__arrow path { stroke-width: 1.2; }
.news-card:hover .news-card__arrow,
.event-card:hover .event-card__arrow { transform: translate(2px, -2px); }

.news-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 20px 18px; }
.news-card__title {
  margin: 0;
  font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__title a { color: inherit; }
.news-card:hover .news-card__title a { color: var(--ocean); }
.news-card__date { margin-top: auto; font-size: 13px; color: var(--ink-soft); }

/* Р“Р»Р°РІРЅР°СЏ: РєСЂСѓРїРЅР°СЏ РЅРѕРІРѕСЃС‚СЊ Рё С‡РµС‚С‹СЂРµ РјР°Р»С‹С… вЂ” РїСЂРѕРїРѕСЂС†РёРё РјР°РєРµС‚Р°. */
.news-layout .news-card__media { aspect-ratio: 313 / 129; }
.news-layout .news-card__body { padding: 10px 18px 12px; gap: 8px; }
.news-layout .news-card__title { font-size: 13px; line-height: 1.2; }
/* РњР°Р»С‹Рµ РєР°СЂС‚РѕС‡РєРё вЂ” РґРІРµ СЃС‚СЂРѕРєРё Р·Р°РіРѕР»РѕРІРєР°, С‡С‚РѕР±С‹ РІС‹СЃРѕС‚Р° СЃРѕРІРїР°Р»Р° СЃ РјР°РєРµС‚РѕРј (207 px). */
.news-layout__rest .news-card__title { -webkit-line-clamp: 2; }
.news-layout .news-card__date { font-size: 11px; color: var(--ink); }

.news-layout .news-card--feature .news-card__media { aspect-ratio: 642 / 270; }
.news-layout .news-card--feature .news-card__body { padding: 25px 35px 22px; gap: 14px; }
.news-layout .news-card--feature .news-card__title { font-size: 18px; line-height: 1.1; -webkit-line-clamp: 4; }
.news-layout .news-card--feature .news-card__date { font-size: 15px; line-height: 1.2; }

/* =========================================================
   12. Media
   ========================================================= */
.media-layout {
  display: grid;
  grid-template-columns: 538fr 782fr;
  gap: 26px;
}
@media (min-width: 1200px) {
  .media-layout { grid-template-columns: 538px minmax(0, 1fr); }
}

.media-item {
  position: relative;
  display: block;
  border: 0; padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
}
.media-item--feature { aspect-ratio: 538 / 383; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-item:hover img { transform: scale(1.04); }

.media-side { min-width: 0; }
.media-layout__side {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: 304px;
  gap: 21px 26px;
  height: calc(100% + 24px);
}
.media-layout__side .media-item { aspect-ratio: auto; height: 100%; }
.media-layout .carousel__track { margin-top: -8px; margin-bottom: -16px; }
.section--media .carousel__nav--next { left: calc(2 * 304px + 26px + 10px); top: calc(50% - 16px); }
.section--media .carousel__nav--prev { left: -16px; top: calc(50% - 16px); }

.media-item__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
/* РљРЅРѕРїРєР° вЂ” В«РјР°С‚РѕРІРѕРµ СЃС‚РµРєР»РѕВ» С€РёСЂРёРЅРѕР№ 27% РїР»РёС‚РєРё. РўР°РєРѕР№ СЂР°Р·РјРµСЂ РЅР° Р»СЋР±РѕР№ С€РёСЂРёРЅРµ
   СЌРєСЂР°РЅР° РїРµСЂРµРєСЂС‹РІР°РµС‚ РјРµСЃС‚Рѕ, РіРґРµ РЅР° РёСЃС…РѕРґРЅС‹С… С„РѕС‚Рѕ РёР· РјР°РєРµС‚Р° Р±С‹Р»Рѕ РєРѕР»СЊС†Рѕ. */
.media-item__play span {
  width: 27%; min-width: 56px; aspect-ratio: 1;
  display: grid; place-items: center;
  border: 2.5px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgba(2, 41, 74, .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .25s ease, transform .25s ease;
}
.media-item__play svg { width: 34%; height: auto; }
.media-item:hover .media-item__play span { background: rgba(2, 41, 74, .4); transform: scale(1.05); }
.media-item--feature .media-item__play span { border-width: 3.5px; }

.media-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 17px 28px;
  font-size: 14px; font-weight: 400; line-height: 1.35;
  color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(2, 41, 74, .85), rgba(2, 41, 74, 0));
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(6, 18, 30, .9);
  padding: var(--gutter);
}
.lightbox.is-open { display: grid; }
.lightbox__frame { width: min(960px, 100%); aspect-ratio: 16 / 9; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1;
}

/* =========================================================
   13. Haqiqiy hikoyalar
   РџРѕ РїСЂР°РІРєРµ: РєСЂСѓРїРЅРµРµ РјР°РєРµС‚Р° Рё РЅР° СЃРІРµС‚Р»Рѕ-Р±РёСЂСЋР·РѕРІРѕРј С„РѕРЅРµ.
   ========================================================= */
.section--stories { margin: 40px 0; padding: 64px 0; background: var(--tint-story); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  min-height: 220px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.story-card__media { position: relative; background: var(--bg-alt); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; }

.story-card__body { position: relative; display: flex; flex-direction: column; padding: 34px 26px 56px 28px; }
.story-card__name { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.story-card__role { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--teal); }
.story-card__quote {
  margin: 12px 0 0;
  font-size: 13px; line-height: 1.45; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.story-card__play {
  position: absolute; right: 22px; bottom: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.story-card__play svg { width: 12px; height: 14px; margin-left: 2px; }
.story-card__play:hover { background: var(--ink); color: #fff; }

/* =========================================================
   14. Hamkorlar
   ========================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.partner-card {
  display: grid; place-items: center;
  min-height: 120px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.partner-card:hover { border-color: var(--teal); box-shadow: var(--shadow-card); }
.partner-card img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner-card:hover img { filter: none; opacity: 1; }

/* =========================================================
   15. Inner pages
   ========================================================= */
.page-hero { background: var(--grad-page); color: #fff; padding: 56px 0; }
.page-hero__title { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.12; letter-spacing: 0; }

.breadcrumbs { margin-bottom: 12px; font-size: 14px; opacity: .9; }
.breadcrumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span + span::before { content: "/"; margin: 0 8px; opacity: .6; }

.entry { max-width: 820px; margin-inline: auto; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.entry-lead { font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--ink); margin-bottom: 1.1em; }
.entry h2 { margin-top: 1.6em; font-size: 26px; color: var(--ink); }
.entry h3 { margin-top: 1.4em; font-size: 21px; color: var(--ink); }
.entry img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.entry ul, .entry ol { margin: 0 0 1.2em 1.2em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal); font-style: italic; color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th { background: var(--bg-alt); }

.entry-meta { margin-bottom: 22px; font-size: 14px; color: var(--muted); }

/* РЈР·РєРёР№ СЃРЅРёРјРѕРє РїРѕРєР°Р·С‹РІР°РµС‚СЃСЏ РІ СЃРІРѕС‘Рј СЂР°Р·РјРµСЂРµ, Р° РЅРµ СЂР°СЃС‚СЏРіРёРІР°РµС‚СЃСЏ РЅР° РєРѕР»РѕРЅРєСѓ. */
.entry-media { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
/* Р¤РѕС‚Рѕ РЅРµ СЂР°СЃС‚СЏРіРёРІР°РµРј (СЃРЅРёРјРєРё Р±С‹РІР°СЋС‚ РЅРµР±РѕР»СЊС€РёРјРё), РЅРѕ РїСЂРёР¶РёРјР°РµРј Рє Р»РµРІРѕРјСѓ РєСЂР°СЋ вЂ” РїРѕ Р»РёРЅРёРё С‚РµРєСЃС‚Р°. */
.entry-media img { width: auto; max-width: 100%; margin-inline: 0; border-radius: var(--radius); }

/* РСЃС‚РѕСЂРёСЏ: С‚РµРєСЃС‚ РёРґС‘С‚ РІ РєРѕР»РѕРЅРєРµ СЂСЏРґРѕРј СЃ С„РѕС‚Рѕ, РїРѕРґ С†РёС‚Р°С‚РѕР№ вЂ” РѕРґРЅР° Р»РёРЅРёСЏ СЃР»РµРІР°. */
.story-hero .entry { max-width: 760px; margin: 28px 0 0; }

/* РџРѕРёСЃРє РЅР° СЃС‚СЂР°РЅРёС†Рµ СЂРµР·СѓР»СЊС‚Р°С‚РѕРІ Рё РЅР° 404 вЂ” РІ СЃС‚РёР»Рµ РїРѕРёСЃРєР° РёР· С€Р°РїРєРё. */
main form[role="search"] { display: flex; gap: 10px; }
main form[role="search"] input[type="search"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink);
}
main form[role="search"] input[type="search"]:focus { border-color: var(--teal); outline: none; }
main form[role="search"] .btn { height: 46px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--teal); color: var(--ocean); }
.pagination .current { background: var(--grad-accent); border-color: transparent; color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.archive-head { margin-bottom: 30px; }
.archive-lead { margin: 0; max-width: 70ch; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-tab {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.filter-tab:hover { border-color: var(--teal); color: var(--ocean); }
.filter-tab.is-active { background: var(--teal-bright); border-color: transparent; color: #fff; }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.events-group { margin-bottom: 52px; }
.events-group:last-child { margin-bottom: 0; }
.events-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.events-group__title {
  margin: 0 0 22px;
  font-size: 15px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.entry-layout .entry { max-width: none; margin-inline: 0; }
.entry-side { position: sticky; top: calc(var(--header-h) + 18px); }

.info-card {
  padding: 24px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.info-card__title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.info-card__row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-card__row:last-of-type { border-bottom: 0; }
.info-card__label { flex: none; min-width: 84px; color: var(--muted); }
.info-card .btn { width: 100%; margin-top: 16px; }

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
/* РџРѕСЂС‚СЂРµС‚ РЅРµ СЂР°СЃС‚СЏРіРёРІР°РµРј: СѓР·РєРёР№ СЃРЅРёРјРѕРє РѕСЃС‚Р°С‘С‚СЃСЏ РІ СЃРІРѕС‘Рј СЂР°Р·РјРµСЂРµ. */
.story-hero__photo img { width: auto; max-width: 100%; border-radius: var(--radius); }
.story-hero__role { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--teal); }
.story-quote {
  margin: 0 0 26px;
  padding-left: 22px;
  border-left: 3px solid var(--teal);
  font-size: 20px; line-height: 1.55; font-style: italic;
  color: var(--ink);
}

.project-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px; font-weight: 600; text-transform: uppercase;
}
.project-badge span {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.value-card {
  padding: 28px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.value-card__icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: var(--grad-accent); color: #fff;
}
.value-card__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.value-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.sitemap-col__title {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--teal);
}
.sitemap-col li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sitemap-col li a { color: var(--ink); }
.sitemap-col li a:hover { color: var(--ocean); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.contact-card { padding: 26px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { min-width: 160px; font-weight: 600; }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }

.event-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  padding: 20px 24px;
  margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}

/* =========================================================
   16. Obuna band
   ========================================================= */
.subscribe { margin-top: 52px; padding: 39px 0; background: var(--grad-sub); color: #fff; }

.subscribe__inner {
  display: grid;
  grid-template-columns: 354px minmax(0, 639px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.subscribe__inner .socials { justify-self: end; }
.subscribe__title { margin: 0; max-width: 320px; font-size: 18px; font-weight: 600; line-height: 1.5; }

.subscribe__form { margin: 0; }
.subscribe__field { position: relative; display: block; }
.subscribe__form input[type="email"] {
  width: 100%;
  height: 64px;
  padding: 0 72px 0 22px;
  border: 0; border-radius: 6px;
  background: #fff;
  font: inherit; font-size: 28px; font-weight: 400;
  color: var(--ocean);
}
.subscribe__form input[type="email"]::placeholder { color: var(--ocean); opacity: 1; }
.subscribe__form input[type="email"]:focus { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.subscribe__submit {
  position: absolute; top: 8px; right: 8px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 6px;
  background: transparent; color: var(--ocean);
  transition: background .2s ease;
}
.subscribe__submit:hover { background: #EAF4FA; }

.subscribe__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.subscribe__notice { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.subscribe__notice--error { color: #FFD9D2; }

.socials { display: flex; align-items: center; gap: 16px; }
.socials a { display: grid; place-items: center; color: #fff; transition: transform .2s ease, opacity .2s ease; }
.socials svg { width: 42px; height: 42px; }
.socials a:hover { transform: translateY(-2px); opacity: .8; color: #fff; }

/* =========================================================
   17. Footer
   ========================================================= */
.site-footer { background: var(--footer-bg); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: rgba(255, 255, 255, .78); }

.footer-top { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 484px minmax(0, 1fr); gap: 40px; }

.footer-brand { gap: 7px; margin-bottom: 40px; }
/* РџРѕРґРІР°Р» РЅР° С‚С‘РјРЅРѕРј С„РѕРЅРµ вЂ” Р»РѕРіРѕС‚РёРї РІС‹РІРѕРґРёС‚СЃСЏ Р±РµР»С‹Рј СЃРёР»СѓСЌС‚РѕРј. */
.footer-brand .brand__mark,
.footer-brand .brand__full,
.footer-brand .brand__wordmark { filter: brightness(0) invert(1); }
.footer-brand .brand__mark { width: 62px; height: 62px; }
.footer-brand .brand__wordmark { height: 44px; }
.footer-brand .brand__name,
.footer-brand .brand__name-top { color: #fff; }

/* РљРѕРЅС‚Р°РєС‚С‹: 15 px РїРѕ РїСЂР°РІРєРµ, РїРѕРґРїРёСЃСЊ Рё Р·РЅР°С‡РµРЅРёРµ СЂР°Р·РґРµР»РµРЅС‹ Р»РёРЅРёРµР№-РІС‹РЅРѕСЃРєРѕР№. */
.footer-contacts li {
  display: grid;
  grid-template-columns: 181px minmax(0, auto);
  align-items: end;
  font-size: 15px;
  line-height: 27px;
}
.footer-contacts .label { display: flex; align-items: flex-end; min-width: 0; }
.footer-contacts .label::after {
  content: "";
  flex: 1;
  min-width: 12px;
  margin: 0 4px 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .85);
}
.footer-contacts .dots { display: none; }

.footer-grid > nav { padding-top: 104px; }
.footer-menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 11px 26px;
  max-width: 520px;
}
.footer-menu a { font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }

/* Р Р°Р·РґРµР»РёС‚РµР»СЊ РІ РјР°РєРµС‚Рµ РѕС‚СЃС‚СѓРїР°РµС‚ РЅР° 24 px РѕС‚ РєСЂР°С‘РІ РєРѕРЅС‚РµРЅС‚Р°. Р РёСЃСѓРµРј РµРіРѕ
   РїСЃРµРІРґРѕСЌР»РµРјРµРЅС‚РѕРј: РїРѕР»СЏ Сѓ .container РґРѕР±Р°РІР»СЏР»Рё С€РёСЂРёРЅСѓ Рё РґР°РІР°Р»Рё РїСЂРѕРєСЂСѓС‚РєСѓ. */
.footer-bottom__inner {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 28px;
  padding: 22px var(--gutter) 26px;
  text-align: center;
}
.footer-bottom__inner::before {
  content: "";
  position: absolute; top: 0;
  left: calc(var(--gutter) + 24px); right: calc(var(--gutter) + 24px);
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.footer-legal { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .9); }
.footer-legal-links { display: flex; gap: 22px; }
.footer-legal-links a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: rgba(255, 255, 255, .85); }

/* Р’РЅСѓС‚СЂРµРЅРЅРёРµ РѕС‚СЃС‚СѓРїС‹, РєР°Рє РІ РјР°РєРµС‚Рµ: РіРµСЂРѕР№ Рё РєР°СЂС‚Р° СЃРґРІРёРЅСѓС‚С‹ РІРїСЂР°РІРѕ,
   РїРѕРґРїРёСЃРєР° Рё РїРѕРґРІР°Р» вЂ” С‡СѓС‚СЊ РјРµРЅСЊС€Рµ. РўРѕР»СЊРєРѕ РЅР° С€РёСЂРѕРєРёС… СЌРєСЂР°РЅР°С…. */
/* =========================================================
   A'zo bo'lish вЂ” СЃС‚СЂР°РЅРёС†Р° С‡Р»РµРЅСЃС‚РІР° Рё С„РѕСЂРјР° Р·Р°СЏРІРєРё
   ========================================================= */
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--tint-story); }

.page-hero--membership { padding: 64px 0 72px; }
.page-hero__lead { max-width: 660px; margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.membership-block,
.membership-apply { scroll-margin-top: var(--header-h); }

.membership-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
.membership-note { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* РџСѓРЅРєС‚С‹ СЃ РіР°Р»РѕС‡РєРѕР№ РІ РєСЂСѓРіРµ С„РёСЂРјРµРЅРЅРѕРіРѕ РіСЂР°РґРёРµРЅС‚Р°. */
.check-list { display: grid; gap: 14px; }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.check-list li {
  position: relative;
  padding: 18px 20px 18px 60px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute; left: 20px; top: 17px;
  width: 26px; height: 26px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat, var(--grad-cta);
}

.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.tier-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tier-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tier-card__note {
  align-self: flex-start;
  padding: 5px 11px; border-radius: 999px;
  background: #E3F3F5; color: var(--ocean);
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.tier-card__title { margin: 4px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.tier-card__text { flex: 1; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.tier-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ocean); }
.tier-card__link:hover { color: var(--teal); }

/* РЁР°РіРё РІСЃС‚СѓРїР»РµРЅРёСЏ: РЅРѕРјРµСЂ РІ РєСЂСѓРіРµ Рё РїСѓРЅРєС‚РёСЂ Рє СЃР»РµРґСѓСЋС‰РµРјСѓ С€Р°РіСѓ. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 72px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-stats); color: #fff;
  font-size: 22px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(2, 93, 137, .25);
}
.step::after {
  content: "";
  position: absolute; left: 68px; right: -14px; top: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 8px, transparent 8px 14px);
}
.step:last-child::after { display: none; }
.step__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.step__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Р¤РѕСЂРјР° Р·Р°СЏРІРєРё. */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.apply-intro { margin: 12px 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.apply-form { padding: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.apply-main > .section-title + .apply-form,
.apply-main > .section-title + .apply-success { margin-top: 24px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.form-field__req { color: #C8412F; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #CBD5DD; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 116px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 164, 183, .18); outline: none; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #C8412F; }
.form-field__error { font-size: 13px; line-height: 1.4; color: #B03A2E; }

.form-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.form-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.form-check a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.form-check.has-error { color: #B03A2E; }
.form-check + .form-field__error { display: block; margin: 6px 0 0 32px; }
.apply-form__submit { margin-top: 26px; }

.form-alert { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FCEBE8; color: #9E3325; font-size: 15px; font-weight: 500; }

.apply-success { padding: 42px 36px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); text-align: center; }
.apply-success__icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-cta); color: #fff; }
.apply-success__title { margin: 0 0 12px; font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.apply-success__title strong { color: var(--ocean); white-space: nowrap; }
.apply-success__text { max-width: 540px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.apply-success__details { display: inline-grid; gap: 8px; margin: 24px auto 0; padding: 16px 22px; border-radius: var(--radius-sm); background: var(--bg-alt); text-align: left; font-size: 15px; }
.apply-success__details div { display: flex; gap: 14px; }
.apply-success__details dt { min-width: 150px; color: var(--muted); }
.apply-success__details dd { margin: 0; font-weight: 500; color: var(--ink); }
.apply-success__actions { margin: 26px 0 0; }

.apply-aside { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 56px; }
.apply-aside__text { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.apply-aside a { color: var(--ocean); }

@media (max-width: 1060px) {
  .membership-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .apply-aside { position: static; margin-top: 0; }
}

@media (max-width: 860px) {
  .check-list--2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .step { min-height: 54px; padding: 4px 0 0 74px; }
  .step::after {
    left: 26px; right: auto; top: 62px; bottom: -22px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--border-soft) 0 8px, transparent 8px 14px);
  }
}

@media (max-width: 600px) {
  .page-hero--membership { padding: 40px 0 44px; }
  .page-hero__lead { font-size: 16px; }
  .page-hero__actions .btn { width: 100%; }
  .benefit-grid,
  .tier-grid,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .check-list li { padding: 16px 16px 16px 54px; font-size: 15px; }
  .check-list li::before { left: 16px; top: 15px; }
  .apply-form { padding: 22px 18px; }
  .apply-form__submit { width: 100%; }
  .apply-success { padding: 30px 20px; }
  .apply-success__title { font-size: 22px; }
  .apply-success__details div { flex-direction: column; gap: 2px; }
  .apply-success__details dt { min-width: 0; }
}

@media (min-width: 1200px) {
  .hero__content { padding-left: 77px; }
  .map-layout__text { padding-left: 75px; }
  /* Р Р°СЃСЃС‚РѕСЏРЅРёРµ РѕС‚ Р·Р°РіРѕР»РѕРІРєР° РґРѕ РєРѕРЅС‚РµРЅС‚Р° вЂ” 96 px РїРѕ РјР°РєРµС‚Сѓ (Сѓ В«RaqamlarВ» 84). */
  .section-head { margin-bottom: 63px; }
  .section--stats .section-head { margin-bottom: 50px; }
  /* РљРѕР»РѕРЅРєРё С†РёС„СЂ РІ РјР°РєРµС‚Рµ РІС‹СЂРѕРІРЅРµРЅС‹ РЅРµ РѕРґРёРЅР°РєРѕРІРѕ вЂ” РїРѕРІС‚РѕСЂСЏРµРј. */
  .stat:nth-child(1) { padding-left: 79px; }
  .stat:nth-child(2) { padding-left: 74px; }
  .stat:nth-child(3) { padding-left: 64px; }
  .stat:nth-child(4) { padding-left: 70px; }
  /* Р‘РѕР»СЊС€Р°СЏ РїР»РёС‚РєР° 538x383, РґРІРµ СЃС‚СЂРѕРєРё РјР°Р»С‹С… РїРѕ 181 px СЃ Р·Р°Р·РѕСЂРѕРј 21. */
  .media-layout__side { height: auto; grid-template-rows: repeat(2, 181px); }
  /* РљРѕРЅС‚РµР№РЅРµСЂ СѓР¶Рµ РґР°С‘С‚ РїРѕР»Рµ 24 px вЂ” Рє РЅРµРјСѓ РїСЂРёР±Р°РІР»СЏРµРј РѕС‚СЃС‚СѓРї РјР°РєРµС‚Р°. */
  .subscribe__inner,
  .footer-grid { padding-left: calc(var(--gutter) + 41px); }
}

/* РЁРёСЂРµ РјР°РєРµС‚Р° (1440): СЃРµС‚РєР° 1320 РѕСЃС‚Р°С‘С‚СЃСЏ РїРѕ С†РµРЅС‚СЂСѓ, Р° С‚Рѕ, С‡С‚Рѕ РІ РјР°РєРµС‚Рµ СѓС…РѕРґРёС‚ Р·Р° РїСЂР°РІС‹Р№
   РєСЂР°Р№ СЌРєСЂР°РЅР°, РїСЂРёРІСЏР·С‹РІР°РµРј Рє РєРѕРЅС‚РµРЅС‚Сѓ вЂ” РёРЅР°С‡Рµ РЅР° Р±РѕР»СЊС€РёС… РјРѕРЅРёС‚РѕСЂР°С… СЃС‚СЂР°РЅРёС†Р° РІС‹РіР»СЏРґРёС‚
   СЃРјРµС‰С‘РЅРЅРѕР№ РІРїСЂР°РІРѕ. */
@media (min-width: 1441px) {
  /* Р¤РѕС‚Рѕ РЅР°С‡РёРЅР°РµС‚СЃСЏ С‚Р°Рј Р¶Рµ, РіРґРµ РІ РјР°РєРµС‚Рµ (580 px РѕС‚ РєСЂР°СЏ РєРѕРЅС‚РµРЅС‚Р°), Рё С‚СЏРЅРµС‚СЃСЏ РґРѕ РєСЂР°СЏ СЌРєСЂР°РЅР°. */
  .hero__photo { left: calc(var(--bleed) + 580px); width: auto; }

  /* РљР°СЂСѓСЃРµР»Рё РІС‹С…РѕРґСЏС‚ Р·Р° РєРѕРЅС‚РµРЅС‚ РЅР° 60 px, РєР°Рє РЅР° 1440, Рё РґР°Р»СЊС€Рµ РјСЏРіРєРѕ РіР°СЃРЅСѓС‚. */
  .carousel__track {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--bleed) - 40px), transparent calc(100% - var(--bleed) + 60px));
            mask-image: linear-gradient(90deg, #000 calc(100% - var(--bleed) - 40px), transparent calc(100% - var(--bleed) + 60px));
  }

  /* Р“СЂР°РґРёРµРЅС‚ Р±Р»РѕРєР° РєР°СЂС‚С‹ СЃС‡РёС‚Р°РµРј РѕС‚ РєРѕРЅС‚РµРЅС‚Р°: С„РѕРЅ РєР°СЂС‚РёРЅРєРё РєР°СЂС‚С‹ СЃРѕРІРїР°РґР°РµС‚ СЃ РЅРёРј Р±РµР· С€РІР°. */
  .section--map {
    background: linear-gradient(90deg, #FBFDFF calc(var(--bleed) - 60px), #EAF4FE calc(var(--bleed) + 732px), #D3EAFF calc(100% - var(--bleed) + 60px));
  }
}

/* =========================================================
   18. Responsive
   ========================================================= */
/* 1366/1280 вЂ” СЃР°РјС‹Рµ С‡Р°СЃС‚С‹Рµ РЅРѕСѓС‚Р±СѓС‡РЅС‹Рµ С€РёСЂРёРЅС‹: РєРѕРјРїР°РєС‚РЅР°СЏ С€Р°РїРєР°. */
@media (max-width: 1399px) {
  .header-inner { gap: 22px; }
  .brand__mark { width: 66px; height: 66px; }
  .brand__wordmark { height: 56px; }
  .primary-nav > ul { gap: 18px; }
  .primary-nav ul a { font-size: 12.5px; }
  .header-tools { gap: 18px; }
  .header-cta { padding: 0 16px; }
}

@media (max-width: 1200px) {
  :root { --header-h: 112px; }
  .brand { gap: 12px; }
  .brand__mark { width: 58px; height: 58px; }
  .brand__wordmark { height: 44px; }
  .primary-nav > ul { gap: 14px; }
  .primary-nav ul a { font-size: 12px; }
  .header-cta { height: 42px; padding: 0 14px; font-size: 13px; }
  .lang-switch__toggle { font-size: 16px; }

  .hero__title { font-size: 56px; }
  .map-title { font-size: 60px; max-width: 440px; }
  .stat { padding-left: 40px; }
  .stat__value { font-size: 38px; }
  .stat__label { font-size: 18px; }
  .project-card__title { font-size: 23px; }
  .event-card__title { font-size: 22px; }
  .story-card__name { font-size: 23px; }
  .subscribe__inner { grid-template-columns: 300px minmax(0, 1fr) auto; }
  .subscribe__form input[type="email"] { font-size: 22px; }
  .footer-grid { grid-template-columns: 440px minmax(0, 1fr); }
}

@media (max-width: 1060px) {
  .brand__wordmark { display: none; }
  /* The footer has room for the association name even on phones. */
  .footer-brand .brand__wordmark { display: block; height: 40px; }
  .media-layout { grid-template-columns: minmax(0, 1fr); }
  .media-item--feature { aspect-ratio: 16 / 9; }
  .media-layout__side { grid-template-rows: repeat(2, 181px); height: auto; }
  .section--media .carousel__nav--next { left: auto; right: 0; }
  .section--events .carousel__nav--next { left: auto; right: 0; }
}

@media (max-width: 960px) {
  .stats-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 30px 24px 28px 32px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .3); }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .section--map { padding: 56px 0; }
  .map-layout { min-height: 0; }
  .map-layout__image { position: static; width: 100%; max-width: none; margin-top: 32px; transform: none; }

  .subscribe__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .subscribe__inner .socials { justify-self: start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid > nav { padding-top: 0; }
  .footer-menu { justify-content: flex-start; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .entry-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .entry-side { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .top-accent { height: 10px; }

  .nav-toggle { display: grid; place-items: center; order: 3; }
  /* РњРµРЅСЋ СѓС…РѕРґРёС‚ РІ РІС‹РµР·Р¶Р°СЋС‰СѓСЋ РїР°РЅРµР»СЊ вЂ” СЏР·С‹Рє, РїРѕРёСЃРє Рё Р±СѓСЂРіРµСЂ РїСЂРёР¶РёРјР°РµРј РІРїСЂР°РІРѕ. */
  .header-tools { margin-left: auto; }
  .header-tools .header-cta { display: none; }
  .header-cta--mobile { display: inline-flex; width: 100%; margin-top: 18px; }
  .brand__mark { width: 48px; height: 48px; }

  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(320px, 86vw);
    margin-left: 0;
    padding: 20px var(--gutter);
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid var(--line);
    /* Closed panel has no shadow and is hidden: otherwise its shadow shows as a grey strip on the right edge. */
    box-shadow: none;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .28s ease, box-shadow .28s ease, visibility 0s linear .28s;
  }
  .primary-nav.is-open {
    transform: translateX(0); visibility: visible; box-shadow: var(--shadow-lift);
    transition: transform .28s ease, box-shadow .28s ease;
  }
  /* Finger-sized tap area for the search icon. */
  .search-toggle { width: 40px; height: 40px; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav ul a { flex-direction: row; justify-content: space-between; padding: 14px 0; font-size: 15px; }
  .primary-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0 0 8px 14px;
    border: 0; box-shadow: none;
  }
  .primary-nav .sub-menu li { border-bottom: 0; }
  .primary-nav .sub-menu a { padding: 8px 0; font-size: 14px; }

  .hero__content { max-width: none; min-height: 0; padding: 46px 0 40px; }
  .hero__veil { background: linear-gradient(180deg, rgba(2, 41, 74, .9) 0%, rgba(2, 41, 74, .72) 55%, rgba(2, 41, 74, .92) 100%); }
  .hero__photo { background-position: center; }
  .hero__title { font-size: 42px; }
  .hero__excerpt { font-size: 16px; }
  .btn--lg { height: 50px; font-size: 15px; }
  .hero__video { font-size: 15px; }

  .section { padding: 30px 0; }
  .section--stats { padding-top: 44px; }
  .section--stories { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .section-title { font-size: 22px; }

  .carousel__track { grid-auto-columns: min(320px, 82vw); }
  .media-layout__side { grid-auto-columns: min(280px, 72vw); grid-template-rows: repeat(2, 160px); }
  .section--events .carousel__nav { top: 110px; }
  .carousel__nav--prev { display: none; }

  .map-title { font-size: 42px; max-width: none; }
  .map-layout__text .btn { height: 56px; margin-top: 30px; font-size: 18px; }

  .event-row { grid-template-columns: 92px minmax(0, 1fr); }
  .event-row .btn { grid-column: 1 / -1; justify-self: start; }

  .page-hero { padding: 40px 0; }
  .page-hero__title { font-size: 30px; }
}

@media (max-width: 600px) {
  .project-grid, .story-grid,
  .card-grid, .card-grid--2, .card-grid--4,
  .event-grid, .value-grid, .sitemap-grid,
  .news-layout__rest { grid-template-columns: minmax(0, 1fr); }

  .stats-panel { grid-template-columns: minmax(0, 1fr); }
  .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .3); }
  .stat__value { font-size: 34px; margin-bottom: 12px; }

  .story-card { grid-template-columns: 36% minmax(0, 1fr); min-height: 200px; }
  .story-card__body { padding: 20px 18px 52px; }
  .story-card__name { font-size: 20px; }

  .subscribe__form input[type="email"] { height: 56px; font-size: 18px; }
  .subscribe__submit { top: 4px; }
  .footer-contacts li { grid-template-columns: 128px minmax(0, 1fr); align-items: start; font-size: 14px; }
  .footer-contacts .label::after { min-width: 6px; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* Date above the title: long words (Russian) no longer run under the date. */
  .event-card__head { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  .event-card__month { font-size: 10px; }
  .event-card__place { font-size: 12px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-list b { min-width: 0; }
  .hero__actions .btn { width: 100%; }
}

/* =========================================================
   19. Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
