/*
Theme Name: SAD62 Mogilev
Theme URI: https://sad62mogilev.by
Author: Ермаков Сергей
Author URI: https://www.instagram.com/skater_92
Description: Тема для сайта детского сада №62 г. Могилёва. Поддерживает Customizer для настройки всех элементов.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sad62
Tags: education, kindergarten, child-friendly, customizable
*/
body.admin-bar #wpadminbar {
    position: fixed;
    top: auto;
    bottom: 0;
    z-index: 9999;
}

html {
    margin-top: 0px !important;
}

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --bg: #bfe4ff;
  --bg-2: #9fd6ff;
  --fg: #1f2547;
  --muted: #6b7290;
  --card: #ffffff;
  --border: #e1ecf7;
  --primary: #3aa6e6;
  --primary-2: #1f7fc7;
  --primary-soft: #e8f4fd;
  --berry: #ff7aa2;
  --sun: #ffd166;
  --leaf: #7fd29a;
  --shadow-soft: 0 12px 30px -14px rgba(58, 166, 230, .45);
  --shadow-card: 0 10px 26px -14px rgba(31, 37, 71, .20);
  --radius: 18px;
  --radius-lg: 24px;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fg);
  font-family: "Nunito", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 10% -10%, #e6f5ff 0%, transparent 60%),
    radial-gradient(1000px 500px at 110% 0%, #b7e2ff 0%, transparent 60%),
    linear-gradient(180deg, #7ec8ff 0%, #b7e2ff 40%, #d9efff 100%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { font-family: "Nunito", sans-serif; letter-spacing: -.01em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ===========================
   CLOUDS BACKGROUND
   =========================== */
.clouds-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.cloud { position: absolute; opacity: .72; animation: float 14s ease-in-out infinite; }
.cloud.c1 { top: 5%; left: 3%; width: 130px; animation-delay: 0s; animation-duration: 16s; }
.cloud.c2 { top: 15%; right: 5%; width: 95px; animation-delay: -3s; animation-duration: 13s; }
.cloud.c3 { top: 38%; left: 8%; width: 80px; animation-delay: -6s; animation-duration: 18s; }
.cloud.c4 { top: 55%; right: 12%; width: 115px; animation-delay: -9s; animation-duration: 15s; }
.cloud.c5 { top: 72%; left: 18%; width: 90px; animation-delay: -4s; animation-duration: 17s; }
.cloud.c6 { top: 82%; right: 4%; width: 70px; animation-delay: -11s; animation-duration: 12s; }
.cloud.c7 { top: 28%; left: 42%; width: 65px; animation-delay: -7s; animation-duration: 19s; opacity: .5; }
.cloud.c8 { top: 62%; left: 55%; width: 88px; animation-delay: -2s; animation-duration: 14s; opacity: .55; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(8px); }
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 220, 240, .6);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
  position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-right: 12px; }
.logo-mark { width: 106px; height: 42px; display: grid; place-items: center; overflow: hidden; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { line-height: 1.2; }
.logo-text strong { font-weight: 600; font-size: 14.5px; }
.logo-text span { display: block; font-size: 11.5px; color: var(--muted); }
@media (min-width: 1024px) {
  .header-inner { height: 72px; }
  .logo-mark { width: 126px; height: 50px; }
  .logo-text strong { font-size: 17px; }
  .logo-text span { font-size: 13px; }
}

/* Nav carousel */
.nav-car { display: none; flex: 1; min-width: 0; align-items: center; gap: 2px; padding: 0 4px; overflow: visible; }
.nav-car-viewport { overflow: hidden; flex: 1; min-width: 0; position: relative; }
.nav { display: flex; gap: 5px; transition: transform .35s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.nav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4063;
  transition: all .2s;
  white-space: nowrap;
  border: 1.5px solid rgba(58, 166, 230, .25);
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px -4px rgba(58, 166, 230, .2);
}
.nav a:hover, .nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px -4px rgba(58, 166, 230, .55);
  transform: translateY(-1px);
}
.nav a.highlight { color: #b5005b; background: rgba(255, 122, 162, .12); border-color: rgba(255, 122, 162, .35); }
.nav a.highlight:hover { background: #ff7aa2; color: #fff; border-color: #ff7aa2; }
.nav-car-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--primary-2);
  transition: all .2s;
}
.nav-car-btn:hover { background: var(--primary-soft); }
.nav-car-btn:disabled { opacity: .25; pointer-events: none; }

/* Header right */
.header-right { display: none; align-items: center; gap: 8px; flex: 0 0 auto; padding-left: 8px; }
@media (min-width: 1024px) {
  .nav-car { display: flex; }
  .header-right { display: flex; }
  .menu-btn { display: none !important; }
  .mobile-nav { display: none !important; }
}

/* Search */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  color: var(--primary-2); transition: all .2s; flex: 0 0 auto;
}
.search-toggle:hover, .search-toggle.active { background: var(--primary-soft); }
.search-expanded {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 0; overflow: hidden; transition: width .3s cubic-bezier(.22, .61, .36, 1);
  background: #fff; border-radius: 999px; border: none;
  display: flex; align-items: center; pointer-events: none;
}
.search-expanded.open {
  width: 240px; border: 1px solid var(--primary); pointer-events: auto;
  box-shadow: 0 0 0 3px rgba(58, 166, 230, .15);
}
.search-expanded input {
  width: 100%; height: 34px; padding: 0 12px 0 36px; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--fg); outline: none;
}
.search-expanded .s-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex; align-items: center;
}
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 300px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-soft);
  max-height: 380px; overflow: auto; z-index: 60; display: none; padding: 6px;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.search-results a:hover { background: var(--primary-soft); color: var(--primary-2); }
.search-results .empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.search-results small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* Lang switcher — поддержка кнопок и ссылок GTranslate */
.lang,
.gtranslate-wrap { display: inline-flex; background: var(--primary-soft); border-radius: 999px; padding: 2px; gap: 1px; }
.lang button,
.lang a.gt-lang-btn,
.gtranslate-wrap a.gt-lang-btn {
  border: 0; background: transparent; color: var(--primary-2); font: inherit;
  font-weight: 700; font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  cursor: pointer; letter-spacing: .04em; text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center;
}
.lang button.active,
.lang a.gt-lang-btn.active,
.gtranslate-wrap a.gt-lang-btn.active { background: #fff; color: var(--fg); box-shadow: var(--shadow-card); }
/* GTranslate dropdown */
.gt-dropdown select {
  border: none; background: var(--primary-soft); border-radius: 999px;
  padding: 5px 10px; font: inherit; font-weight: 700; font-size: 11.5px;
  color: var(--primary-2); cursor: pointer; outline: none;
}
@media(max-width:1023px) {
  .lang a.gt-lang-btn,
  .gtranslate-wrap a.gt-lang-btn,
  .mobile-header-actions .lang button { font-size: 10.5px; padding: 5px 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700;
  font-size: 13.5px; border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-outline { background: #fff; color: var(--fg); border-color: rgba(58, 166, 230, .4); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-lg { padding: 10px 20px; font-size: 14px; }

/* Mobile nav */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: transparent; cursor: pointer; flex: 0 0 auto; margin-left: auto;
}
.menu-btn:hover { background: var(--primary-soft); }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 0 16px; border-top: 1px solid var(--border); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.mobile-nav a:hover { background: var(--primary-soft); color: var(--primary-2); }
.mobile-nav .mn-highlight { color: #b5005b; font-weight: 700; }

/* Mobile header actions */
.mobile-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1024px) { .mobile-header-actions { display: none; } }

/* Mobile search overlay */
.mob-search-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  color: var(--primary-2);
}
.mob-search-overlay {
  display: none; position: absolute; inset: 0; z-index: 10;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  align-items: center; gap: 10px; padding: 0 12px;
}
.mob-search-overlay.open { display: flex; }
.mob-sb-inner {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft); border-radius: 999px;
  padding: 0 14px; height: 40px;
}
.mob-sb-inner input {
  flex: 1; border: none; background: transparent; font: inherit;
  font-size: 14px; color: var(--fg); outline: none;
}
.mob-close-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  color: var(--primary-2);
}
.mob-search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-soft); max-height: 320px; overflow: auto;
  display: none; padding: 6px;
}
.mob-search-results.open { display: block; }
.mob-search-results a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.mob-search-results a:hover { background: var(--primary-soft); color: var(--primary-2); }

/* Desktop full-width search overlay */
.desk-search-overlay { display: none; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.desk-search-overlay .desk-sb-inner {
  flex: 1; display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--primary);
  border-radius: 999px; padding: 0 18px; gap: 10px;
  box-shadow: 0 0 0 4px rgba(58, 166, 230, .13); height: 44px;
}
.desk-search-overlay input {
  flex: 1; height: 100%; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--fg); outline: none; min-width: 0;
}
.desk-search-overlay .desk-hint { font-size: 12px; color: var(--muted); white-space: nowrap; padding-right: 6px; }
.desk-close-btn {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  color: var(--primary-2); transition: all .2s;
}
.desk-close-btn:hover { background: var(--primary-soft); }
.desk-search-results {
  position: absolute; top: 100%; left: 16px; right: 16px; z-index: 60; margin-top: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(31, 37, 71, .25);
  max-height: 380px; overflow: auto; display: none; padding: 8px;
}
.desk-search-results.open { display: block; }
.desk-search-results a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; color: var(--fg); }
.desk-search-results a:hover { background: var(--primary-soft); color: var(--primary-2); }
.desk-search-results small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* Accordion nav */
.accordion-nav { font-size: 15px; }
.acc-link { padding: 12px 16px; border-radius: 12px; font-weight: 600; display: block; }
.acc-link:hover { background: var(--primary-soft); color: var(--primary-2); }
.acc-item { border-radius: 12px; overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px; border: none;
  background: transparent; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--fg); cursor: pointer; text-align: left; gap: 8px;
}
.acc-head:hover { background: var(--primary-soft); color: var(--primary-2); }
.acc-head-sub { font-size: 14px; padding: 10px 16px; color: var(--muted); }
.acc-arrow { transition: transform .25s; flex-shrink: 0; }
.acc-item.open > .acc-head .acc-arrow { transform: rotate(180deg); }
.acc-body {
  display: none; flex-direction: column; padding: 0 0 6px 16px;
}
.acc-item.open > .acc-body { display: flex; }
.acc-body a { padding: 9px 14px; border-radius: 10px; font-size: 14px; display: block; }
.acc-body a:hover { background: var(--primary-soft); color: var(--primary-2); }
.acc-nested { margin-top: 2px; }
/* Hero grid layout */
.hero { position: relative; padding: 32px 0 40px; overflow: visible; }
@media (min-width: 768px) { .hero { padding: 48px 0 64px; } }
@media (min-width: 1024px) { .hero { padding: 40px 0 10px; } .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 2; }
.hero-org-title { font-size: clamp(15px, 1.55vw, 22px); font-weight: 700; line-height: 1.3; margin: 0 0 18px; }
@media (max-width: 639px) { .hero-org-title { font-size: clamp(14px, 4vw, 17px); } }
.grad-text { background: linear-gradient(135deg, var(--primary), var(--berry)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-center-mobile { text-align: center; }
@media (min-width: 1024px) { .text-center-mobile { text-align: left; } }

/* Hero info cards (cloud style) */
.hero-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 0 0 28px; }
@media (max-width: 479px) { .hero-info-grid { grid-template-columns: 1fr; } }
.hi-card-outer { position: relative; filter: drop-shadow(0 5px 14px rgba(58,166,230,.28)); animation: cloudFloat 5s ease-in-out infinite; }
.hi-card-outer:nth-child(2) { animation-delay: -1.2s; animation-duration: 5.8s; }
.hi-card-outer:nth-child(3) { animation-delay: -2.5s; animation-duration: 4.6s; }
.hi-card-outer:nth-child(4) { animation-delay: -3.7s; animation-duration: 6.2s; }
.hi-card-outer:nth-child(5) { animation-delay: -0.8s; animation-duration: 5.3s; }
@keyframes cloudFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hi-card--wide { grid-column: 1 / -1; }
.hi-card-outer > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hi-card { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 1px; background: transparent; padding: 22px 25px 12px; min-height: 80px; }
.hi-ico { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.2rem; }
.hi-body { min-width: 0; }
.hi-label { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-2); margin-bottom: 3px; opacity: .85; }
.hi-value { font-size: .83rem; font-weight: 600; color: var(--fg); line-height: 1.45; }
.hi-value a { color: var(--primary-2); }
.hi-value a:hover { text-decoration: underline; }
.hi-sub { color: var(--muted); font-size: .76rem; font-weight: 400; }
.hi-off { color: #e05060; font-size: .78rem; }

/* Hero bottom row */
.hero-bottom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
@media (max-width: 1023px) { .hero-bottom-row { justify-content: center; } }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }
.stats-inline { display: flex; align-items: center; gap: 16px; margin: 0; }
.stats-sep { width: 1px; height: 34px; background: rgba(58,166,230,.2); flex-shrink: 0; }
.stats-inline .num { font-weight: 700; font-size: 22px; color: var(--primary-2); }
.stats-inline .lbl { font-size: 11px; color: var(--muted); }
@media (min-width: 768px) { .stats-inline .num { font-size: 26px; } }

/* Portrait */
.portrait-wrap { position: relative; max-width: 320px; margin: 0 auto; }
@media (min-width: 768px) { .portrait-wrap { max-width: 400px; } }
@media (min-width: 1024px) { .portrait-wrap { max-width: 100%; width: 100%; } }
.portrait { position: relative; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 28px; box-shadow: inset 0 -120px 80px -60px rgba(31,37,71,.45); pointer-events: none; }
.portrait-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; z-index: 2; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); border-radius: 18px; padding: 10px 14px; backdrop-filter: blur(2px); }
.portrait-cap small { display: block; font-size: 11.5px; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.portrait-cap strong { font-weight: 600; font-size: 17px; display: block; margin-top: 2px; }

/* News section */
.news-section { background: rgba(255,255,255,.65); border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.more { color: var(--primary-2); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.news-thumb { border-radius: 14px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/9; background: var(--primary-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card-img:hover .news-thumb img { transform: scale(1.04); }
/* Карточка новости на главной — flex-column чтобы кнопка прижималась к низу */
.news-card-img { display: flex; flex-direction: column; }
.news-thumb-wrap { position: relative; flex-shrink: 0; }
.news-thumb-link { display: block; }
.news-card-img-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 0; }
.news-card-img-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0; }
.news-card-img-body p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
.news-card-img-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Grid + Cards */
.block { padding: 20px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(22px, 3.5vw, 38px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 18px; position: relative; z-index: 1; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; transition: all .25s; }
@media (min-width: 768px) { .card { border-radius: 24px; padding: 24px; } }
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

/* CTA card (градиентный) */
.cta-card { border-radius: 22px; padding: 24px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--berry)); box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .cta-card { border-radius: 28px; padding: 56px; } }
.cta-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-grid h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.cta-grid p { margin-top: 10px; opacity: .92; max-width: 440px; }
.cta-list { display: grid; gap: 10px; }
.cta-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.18); border-radius: 18px; padding: 14px 18px; backdrop-filter: blur(6px); }
.cta-item:hover { background: rgba(255,255,255,.28); }
.cta-item small { display: block; opacity: .8; font-size: 12px; }
.cta-item strong { font-weight: 700; }

/* Map */
.map { margin-top: 24px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (min-width: 768px) { .map iframe { height: 460px; } }

/* Instagram gradient card */
.ig-card { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; background: linear-gradient(135deg, #feda77 0%, #f58529 25%, #dd2a7b 55%, #8134af 80%, #515bd4 100%); color: #fff; box-shadow: 0 22px 44px -22px rgba(221,42,123,.5); display: grid; gap: 20px; align-items: center; }
@media (min-width: 768px) { .ig-card { padding: 40px 44px; grid-template-columns: auto 1fr auto; gap: 28px; } }
.ig-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); flex: 0 0 auto; }
.ig-icon svg { width: 38px; height: 38px; }
.ig-text h3 { font-weight: 600; font-size: clamp(22px,3vw,30px); margin: 0; }
.ig-text p { margin: 6px 0 0; opacity: .95; font-size: 15px; max-width: 520px; }
.ig-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #c4287a; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.ig-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(0,0,0,.5); color: #a01e64; }

/* Useful links - infinite scroll */
.links-wrap { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg,transparent 0%,#000 6%,#000 94%,transparent 100%); mask: linear-gradient(90deg,transparent 0%,#000 6%,#000 94%,transparent 100%); }
.links-track { display: flex; gap: 16px; width: max-content; will-change: transform; animation: linksScroll 40s linear infinite; cursor: grab; user-select: none; list-style: none; padding: 0; margin: 0; }
.links-track:hover { animation-play-state: paused; }
.links-track.dragging { animation-play-state: paused; cursor: grabbing; }
@keyframes linksScroll { 0% { transform: translateX(0); } 100% { transform: translateX(var(--scroll-half,-50%)); } }
.link-slide { flex: 0 0 200px; min-width: 0; }
@media (min-width: 640px) { .link-slide { flex: 0 0 210px; } }
@media (min-width: 1024px) { .link-slide { flex: 0 0 220px; } }
.link-card { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg,#fff 0%,#f4faff 100%); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 6px 18px -10px rgba(31,37,71,.18); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(58,166,230,.45); border-color: rgba(58,166,230,.45); }
.link-thumb { aspect-ratio: 3/2; background: #fff; border-radius: 16px 16px 0 0; padding: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.link-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s; }
.link-card:hover .link-thumb img { transform: scale(1.05); }
.link-title { padding: 10px 12px 14px; font-size: 12.5px; font-weight: 600; color: var(--fg); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; line-height: 1.35; }

/* ===========================
   PHOTO GRID
   =========================== */
.photo-grid-section { }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.photo-grid-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid-item:hover img { transform: scale(1.06); }

/* ===========================
   TEAM CAROUSEL
   =========================== */
.team-wrap { position: relative; padding: 0; }
.team-viewport { overflow: hidden; }
.team-track { display: flex; gap: 16px; transition: transform .45s cubic-bezier(.22, .61, .36, 1); will-change: transform; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.team-slide { flex: 0 0 calc((100% - 16px) / 2); min-width: 0; display: flex; }
@media (min-width: 768px) { .team-slide { flex-basis: calc((100% - 16px * 2) / 3); } }
@media (min-width: 1024px) { .team-slide { flex-basis: calc((100% - 16px * 3) / 4); } }
.team-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.team-photo { aspect-ratio: 1/1; background: linear-gradient(135deg, #e8f4fd, #fff5e8); overflow: hidden; position: relative; flex-shrink: 0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo.placeholder { display: flex; align-items: center; justify-content: center; font-size: 54px; color: var(--primary-2); font-weight: 700; }
.team-info { padding: 12px 14px 16px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.team-info strong { display: block; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 14px; color: var(--fg); line-height: 1.3; }
.team-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.team-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; background: linear-gradient(135deg, rgba(58, 166, 230, .09) 0%, rgba(255, 122, 162, .07) 100%); border: 1.5px solid rgba(58, 166, 230, .18); border-radius: 16px; padding: 7px 14px; box-shadow: 0 4px 18px -8px rgba(58, 166, 230, .22), inset 0 1px 0 rgba(255, 255, 255, .7); backdrop-filter: blur(6px); }
.team-nav-dots-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.team-arr-btn { width: 30px; height: 30px; border-radius: 10px; border: none; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(58, 166, 230, .55); transition: all .2s ease; flex: 0 0 auto; }
.team-arr-btn:hover { background: var(--primary-2); transform: scale(1.07); }
.team-arr-btn:disabled { background: #cde6f5; box-shadow: none; cursor: default; transform: none; color: #8ab8d8; }
.team-arr-btn svg { width: 14px; height: 14px; }

/* Carousel dots */
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(58, 166, 230, .25); border: none; padding: 0; cursor: pointer; transition: all .25s; }
.dot.active { background: var(--primary); width: 20px; border-radius: 999px; }
.car-dots { display: flex; justify-content: center; gap: 8px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfe1f2; border: 0; cursor: pointer; padding: 0; transition: all .2s; }
.car-dot.active { background: var(--primary); width: 22px; border-radius: 999px; }

/* ===========================
   POLL
   =========================== */
.poll-card { background: linear-gradient(135deg, rgba(58, 166, 230, .06), rgba(255, 122, 162, .05)); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.poll-inner { padding: 24px; }
@media (min-width: 768px) { .poll-inner { padding: 32px; } }
.poll-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.poll-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; }
.poll-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.poll-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.poll-options { display: flex; flex-direction: column; gap: 10px; }
.poll-opt {
  display: grid; grid-template-columns: 32px 1fr 100px 38px; gap: 10px; align-items: center;
  padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--border);
  background: #fafcff; cursor: pointer; text-align: left; font: inherit; transition: all .2s; position: relative; overflow: hidden;
}
@media (max-width: 639px) { .poll-opt { grid-template-columns: 28px 1fr 80px 34px; gap: 7px; padding: 9px 11px; } }
.poll-opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); transform: translateX(3px); }
.poll-opt.voted { border-color: var(--primary); background: var(--primary-soft); cursor: default; }
.poll-opt.voted.my-vote { border-color: var(--primary-2); background: rgba(58, 166, 230, .12); box-shadow: 0 0 0 3px rgba(58, 166, 230, .15); }
.poll-opt:disabled { cursor: default; }
.poll-emoji { font-size: 18px; line-height: 1; text-align: center; }
.poll-label { font-size: 14px; font-weight: 600; color: var(--fg); }
.poll-bar-wrap { height: 6px; background: rgba(58, 166, 230, .1); border-radius: 999px; overflow: hidden; }
.poll-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #5dc1f0); border-radius: 999px; transition: width .6s cubic-bezier(.22, .61, .36, 1); }
.poll-opt.my-vote .poll-bar { background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.poll-pct { font-size: 13px; font-weight: 700; color: var(--primary-2); text-align: right; min-width: 32px; }
.poll-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.poll-total { font-size: 13px; color: var(--muted); }
.poll-total strong { color: var(--fg); font-weight: 700; }
.poll-reset { background: transparent; border: 1px solid rgba(58, 166, 230, .3); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--primary-2); cursor: pointer; transition: all .2s; }
.poll-reset:hover { background: var(--primary-soft); }

/* ===========================
   ARTICLE / SINGLE POST
   =========================== */
.article { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-card); position: relative; z-index: 1; }
@media (min-width: 768px) { .article { padding: 44px; } }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.article h1.a-title { font-size: clamp(26px,3.6vw,40px); font-weight: 700; line-height: 1.1; color: var(--fg); }
.article .a-cover { margin: 24px 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg,#e8f4fd,#fff5e8); }
.article .a-cover img { width: 100%; object-fit: cover; }
.article .a-body { font-size: 16px; line-height: 1.7; color: #2a3157; }
.article .a-body p { margin: 0 0 14px; }
.article .a-body h2 { font-size: 22px; margin: 24px 0 10px; font-weight: 600; }
.article .a-body ul { padding-left: 20px; margin: 0 0 14px; }
.article .a-body ul li { list-style: disc; margin: 4px 0; }
.article .a-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; }
.article .a-share { display: flex; gap: 8px; }
.article .a-share a { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; transition: all .2s; }
.article .a-share a:hover { background: var(--primary); color: #fff; }


/* ===========================
   COMMENTS
   =========================== */
.comments-wrap { margin: 0 auto; }
.c-item { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); margin-bottom: 14px; }
.c-item.c-reply { margin-left: 32px; background: #f7fbff; }
.c-avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(135deg, var(--primary), var(--berry)); }
.c-avatar.a2 { background: linear-gradient(135deg, var(--leaf), var(--primary)); }
.c-avatar.a3 { background: linear-gradient(135deg, var(--sun), var(--berry)); }
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.c-head strong { font-size: 14.5px; color: var(--fg); }
.c-head .c-date { font-size: 12px; color: var(--muted); }
.c-text { font-size: 14.5px; color: #2a3157; line-height: 1.55; margin: 0; }
.c-actions { margin-top: 8px; display: flex; gap: 14px; font-size: 12.5px; }
.c-actions a { color: var(--primary-2); font-weight: 700; }
.c-actions a:hover { text-decoration: underline; }
.c-form { margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .c-form { padding: 32px; } }
.c-form h3 { font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.c-form .c-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.c-row { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .c-row.c-row-3 { grid-template-columns: repeat(3, 1fr); } }
.c-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.c-field input, .c-field textarea { width: 100%; border: 1.5px solid var(--border); background: #fbfdff; border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 14.5px; color: var(--fg); outline: none; transition: border-color .2s, box-shadow .2s; }
.c-field input:focus, .c-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(58, 166, 230, .15); background: #fff; }
.c-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.c-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.c-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.c-form .btn-primary { border: 0; }

/* ===========================
   FOOTER
   =========================== */
.site {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 0 20px;
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.foot-grid h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--primary-2); margin-bottom: 12px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 8px; }
.foot-grid li { font-size: 14px; color: var(--muted); }
.foot-grid li a { color: var(--fg); transition: color .2s; }
.foot-grid li a:hover { color: var(--primary-2); }
.copyright { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Dev card */
.dev-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(58, 166, 230, .12), rgba(255, 122, 162, .12)); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.dev-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--berry)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: .04em; box-shadow: var(--shadow-soft); }
.dev-meta { min-width: 0; }
.dev-meta .dev-tag { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.dev-meta .dev-name { display: block; font-weight: 600; font-size: 16px; color: var(--fg); margin-top: 2px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dev-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--fg); transition: all .2s; }
.dev-link:hover { border-color: var(--primary); color: var(--primary-2); transform: translateY(-1px); }
.dev-link.dev-link-primary { background: linear-gradient(135deg, var(--primary), var(--berry)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(58, 166, 230, .55); }
.dev-link.dev-link-primary:hover { color: #fff; filter: brightness(1.05); }

/* ===========================
   ICONS HELPER
   =========================== */
.i { width: 18px; height: 18px; flex-shrink: 0; }
.i-lg { width: 22px; height: 22px; }
.i-sm { width: 14px; height: 14px; }

/* ===========================
   DESKTOP NAV DROPDOWN
   =========================== */
#deskNav { display: flex; gap: 5px; }
.dn-item { position: relative; }
.dn-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 24px; font-size: 14px; font-weight: 600;
  color: #3a4063; background: rgba(255, 255, 255, .65); border: 1.5px solid rgba(58, 166, 230, .25);
  backdrop-filter: blur(4px); cursor: pointer; white-space: nowrap; transition: all .2s;
  box-shadow: 0 2px 8px -4px rgba(58, 166, 230, .2);
}
.dn-btn:hover, .dn-item.open .dn-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.dn-btn svg { width: 12px; height: 12px; transition: transform .2s; flex-shrink: 0; }
.dn-item.open .dn-btn svg { transform: rotate(180deg); }
.dn-drop {
  display: none; min-width: 220px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 16px 36px -14px rgba(31, 37, 71, .22); padding: 8px; z-index: 200;
}
.dn-drop a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--fg); white-space: nowrap; }
.dn-drop a:hover { background: var(--primary-soft); color: var(--primary-2); }
.dn-sub-item { position: relative; }
.dn-sub-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--fg); background: transparent; border: none; cursor: pointer; font: inherit; text-align: left; }
.dn-sub-btn:hover { background: var(--primary-soft); color: var(--primary-2); }
.dn-sub-btn svg { width: 10px; height: 10px; flex-shrink: 0; transform: rotate(-90deg); }
.dn-sub-drop { display: none; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 28px -12px rgba(31, 37, 71, .2); padding: 6px; z-index: 201; }
.dn-sub-drop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--fg); }
.dn-sub-drop a:hover { background: var(--primary-soft); color: var(--primary-2); }

/* ===========================
   CONTACTS MAP BLOCK
   =========================== */
.contacts-block { padding: 40px 0; }
.contacts-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .contacts-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contacts-map { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; background: var(--primary-soft); }
.contacts-map iframe { width: 100%; height: 100%; border: 0; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-card); }
.contact-info-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row .ci-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ci-body small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.contact-row .ci-body strong { font-size: 15px; font-weight: 600; }
.contact-row .ci-body a { color: var(--primary-2); }
.contact-row .ci-body a:hover { text-decoration: underline; }

/* ===========================
   WP CONTENT STYLES
   =========================== */
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.5em 0 .75em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { color: var(--primary-2); text-decoration: underline; }
.entry-content img { border-radius: 14px; margin: 1em 0; width: 100% !important; height: auto !important; max-width: 100% !important; display: block; object-fit: unset; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--primary-soft); font-weight: 700; }
.wp-caption { max-width: 100%; text-align: center; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { margin: 0 auto; display: block; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: 14px; color: var(--fg); transition: all .2s; }
.pagination a:hover, .pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* No results */
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }
.no-results h2 { font-size: 24px; color: var(--fg); margin-bottom: 10px; }

/* Screen reader text */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6); clip: auto !important; color: #21759b; display: block; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }

    /* ── Картинки в теле статьи — единый стиль ── */
    .a-body img,
    .entry-content img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: var(--radius-lg, 24px);
        margin: 24px auto;
        box-shadow: 0 8px 32px -8px rgba(31,37,71,.18);
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .a-body img:hover,
    .entry-content img:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px -10px rgba(58,166,230,.28);
    }

    /* WordPress-обёртки (figure, wp-block-image) */
    .a-body .wp-block-image,
    .entry-content .wp-block-image,
    .a-body figure,
    .entry-content figure {
        margin: 28px auto;
        max-width: 100%;
    }
    .a-body figure img,
    .entry-content figure img {
        margin-bottom: 0;
    }
    .a-body figcaption,
    .entry-content figcaption {
        text-align: center;
        font-size: 13px;
        color: var(--muted);
        margin-top: 8px;
        font-style: italic;
    }

    /* Галерея WordPress (несколько картинок рядом) */
    .a-body .gallery,
    .entry-content .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        margin: 28px 0;
    }
    .a-body .gallery-item,
    .entry-content .gallery-item {
        overflow: hidden;
        border-radius: var(--radius, 18px);
        margin: 0;
    }
    .a-body .gallery-item img,
    .entry-content .gallery-item img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transition: transform .3s ease;
    }
    .a-body .gallery-item:hover img,
    .entry-content .gallery-item:hover img {
        transform: scale(1.04);
    }

    /* Выровнять по центру как блок */
    .a-body .aligncenter,
    .entry-content .aligncenter {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .a-body .alignleft,
    .entry-content .alignleft {
        float: none;
        display: block;
        margin: 20px auto;
    }
    .a-body .alignright,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }



/* Hero grid layout */
.hero { position: relative; padding: 32px 0 40px; overflow: visible; }
@media (min-width: 768px) { .hero { padding: 28px 0 64px; } }
@media (min-width: 1024px) { .hero { padding: 20px 0 10px; } .hero-grid {  grid-template-columns: 2.05fr 1fr;
        gap: 64px; } }
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 2; }
.hero-org-title { font-size: clamp(15px, 1.55vw, 19px); font-weight: 700; line-height: 1.3; margin: 0 0 18px; }
@media (max-width: 639px) { .hero-org-title { font-size: clamp(14px, 4vw, 17px); } }
.grad-text { background: linear-gradient(135deg, var(--primary), var(--berry)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-center-mobile { text-align: center; }
@media (min-width: 1024px) { .text-center-mobile { text-align: left; } }

/* Hero info cards (cloud style) */
.hero-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 0 0 28px; }
@media (max-width: 479px) { .hero-info-grid { grid-template-columns: 1fr; } }
.hi-card-outer { position: relative; filter: drop-shadow(0 5px 14px rgba(58,166,230,.28)); animation: cloudFloat 5s ease-in-out infinite; }
.hi-card-outer:nth-child(2) { animation-delay: -1.2s; animation-duration: 5.8s; }
.hi-card-outer:nth-child(3) { animation-delay: -2.5s; animation-duration: 4.6s; }
.hi-card-outer:nth-child(4) { animation-delay: -3.7s; animation-duration: 6.2s; }
.hi-card-outer:nth-child(5) { animation-delay: -0.8s; animation-duration: 5.3s; }
@keyframes cloudFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hi-card--wide { grid-column: 1 / -1; }
.hi-card-outer > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hi-card { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 1px; background: transparent; padding: 22px 25px 12px; min-height: 80px; }
.hi-ico { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.2rem; }
.hi-body { min-width: 0; }
.hi-label { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-2); margin-bottom: 3px; opacity: .85; }
.hi-value { font-size: .83rem; font-weight: 600; color: var(--fg); line-height: 1.45; }
.hi-value a { color: var(--primary-2); }
.hi-value a:hover { text-decoration: underline; }
.hi-sub { color: var(--muted); font-size: .76rem; font-weight: 400; }
.hi-off { color: #e05060; font-size: .78rem; }

/* Hero bottom row */
.hero-bottom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
@media (max-width: 1023px) { .hero-bottom-row { justify-content: center; } }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }
.stats-inline { display: flex; align-items: center; gap: 16px; margin: 0; }
.stats-sep { width: 1px; height: 34px; background: rgba(58,166,230,.2); flex-shrink: 0; }
.stats-inline .num { font-weight: 700; font-size: 22px; color: var(--primary-2); }
.stats-inline .lbl { font-size: 11px; color: var(--muted); }
@media (min-width: 768px) { .stats-inline .num { font-size: 26px; } }

/* Portrait */
.portrait-wrap { position: relative; max-width: 320px; margin: 0 auto; }
@media (min-width: 768px) { .portrait-wrap { max-width: 400px; } }
@media (min-width: 1024px) { .portrait-wrap { max-width: 100%; width: 100%; } }
.portrait { position: relative; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 28px; box-shadow: inset 0 -120px 80px -60px rgba(31,37,71,.45); pointer-events: none; }
.portrait-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; z-index: 2; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); border-radius: 18px; padding: 10px 14px; backdrop-filter: blur(2px); }
.portrait-cap small { display: block; font-size: 11.5px; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.portrait-cap strong { font-weight: 600; font-size: 17px; display: block; margin-top: 2px; }

/* Stats */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.stat-card { background: rgba(255,255,255,.82); border-radius: var(--radius); border: 1px solid var(--border); padding: 14px 16px; text-align: center; backdrop-filter: blur(6px); }
.stat-num { display: block; font-family: "Fredoka", sans-serif; font-size: 28px; font-weight: 700; color: var(--primary-2); line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

/* ===========================
   SECTION COMMON
   =========================== */
.section { padding: 48px 0; position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { font-family: "Nunito", sans-serif; font-weight: 700; font-size: clamp(20px, 2.8vw, 26px); color: var(--fg); margin-bottom: 8px; }
.section-sub { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto; }
.section-footer { text-align: center; margin-top: 32px; }

/* ===========================
   NEWS GRID
   =========================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 8px 24px -12px rgba(31,37,71,.15); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -10px rgba(58,166,230,.35); }
.news-card-thumb-wrap { position: relative; display: block; flex-shrink: 0; }
.news-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-edit-overlay { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--primary-2); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: 11.5px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(31,37,71,.15); transition: background .2s, color .2s, transform .2s; z-index: 2; }
.news-card-edit-overlay:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.news-cat { background: var(--primary-soft); color: var(--primary-2); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 11px; }
.news-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.news-card-title a:hover { color: var(--primary-2); }
.news-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 0; flex: 1; }
.news-card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.news-read-more { font-size: 13px; font-weight: 700; color: var(--primary-2); display: inline-flex; align-items: center; gap: 4px; }
.news-read-more:hover { text-decoration: underline; }

/* ===========================
   STAFF CAROUSEL
   =========================== */
.staff-carousel { overflow: hidden; }
.staff-track { display: flex; gap: 20px; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.staff-card { flex: 0 0 200px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px 16px; text-align: center; box-shadow: 0 6px 20px -10px rgba(31,37,71,.15); transition: transform .2s; }
.staff-card:hover { transform: translateY(-4px); }
.staff-photo-wrap { margin-bottom: 14px; }
.staff-photo { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin: 0 auto; box-shadow: 0 4px 14px -4px rgba(58,166,230,.4); }
.staff-photo-placeholder { width: 90px; height: 90px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.staff-name { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--fg); }
.staff-role { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.staff-nav { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

/* ===========================
   CTA SECTION
   =========================== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); padding: 52px 0; position: relative; z-index: 1; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
@media (min-width: 768px) { .cta-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.cta-title { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-sub { color: rgba(255,255,255,.85); font-size: 15px; }
.cta-section .btn-primary { background: #fff; color: var(--primary-2); flex: 0 0 auto; }
.cta-section .btn-primary:hover { background: var(--primary-soft); }

/* ===========================
   INSTAGRAM SECTION
   =========================== */
.instagram-section { padding: 52px 0; position: relative; z-index: 1; }
.ig-inner { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .ig-inner { flex-direction: row; align-items: center; gap: 48px; } }
.ig-text-col { flex: 1 1 auto; }
.ig-icon { color: var(--berry); margin-bottom: 12px; }
.ig-photos { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; }
.ig-photo-item { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.ig-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-photo-item:hover img { transform: scale(1.06); }
.ig-placeholder { background: var(--primary-soft); }

/* ===========================
   USEFUL LINKS
   =========================== */
.useful-links-section { padding: 52px 0; position: relative; z-index: 1; }
.links-carousel { overflow: hidden; }
.links-track { display: flex; gap: 16px; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.link-card { flex: 0 0 220px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 6px 18px -10px rgba(31,37,71,.15); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -8px rgba(58,166,230,.3); }
.link-card-banner { height: 110px; overflow: hidden; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.link-card-banner img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.link-card-banner-empty { color: var(--muted); }
.link-card-body { padding: 14px 16px; flex: 1; }
.link-card-title { display: block; font-weight: 700; font-size: 13px; color: var(--fg); margin-bottom: 4px; line-height: 1.3; }
.link-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 0; }

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-grid { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .contact-grid { flex-direction: row; align-items: flex-start; } }
.contact-form-wrap { flex: 1 1 auto; }
.contact-map { flex: 1 1 auto; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 28px -10px rgba(31,37,71,.18); }
.contact-form { display: flex; flex-wrap: wrap; gap: 16px; }
.cf-row { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.cf-full { flex: 1 1 100%; }
.cf-row label { font-weight: 600; font-size: 13.5px; color: var(--fg); }
.cf-input, .cf-textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font: inherit; font-size: 14px; color: var(--fg); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.cf-input:focus, .cf-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,166,230,.15); }
.cf-textarea { resize: vertical; min-height: 120px; }
.cf-submit { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.cf-privacy { font-size: 12px; color: var(--muted); margin: 0; }
.cf-status { padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; display: none; }
.cf-status:not(:empty) { display: block; }
.cf-ok { background: #d1fae5; color: #065f46; }
.cf-err { background: #fee2e2; color: #991b1b; }
.required { color: var(--berry); }

/* ===========================
   FULL ARTICLE
   =========================== */
.full-article { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.article-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; line-height: 1.25; margin-bottom: 24px; }
.article-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.article-thumb img { width: 100%; max-height: 480px; object-fit: cover; }
.article-content { font-size: 15.5px; line-height: 1.75; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tag { background: var(--primary-soft); color: var(--primary-2); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.article-tag:hover { background: var(--primary); color: #fff; }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 20px; background: var(--primary-soft); border-radius: var(--radius); }
.article-author img { border-radius: 50%; flex: 0 0 auto; }
.author-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; }
.article-comments-link { color: var(--primary-2); font-size: 13px; }
.article-nav { display: flex; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-nav-link { flex: 1 1 200px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 14px 18px; transition: background .2s; }
.article-nav-link:hover { background: var(--primary-soft); }
.article-nav-next { text-align: right; }
.article-nav-dir { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.article-nav-title { font-weight: 700; font-size: 14px; color: var(--fg); display: block; }

/* ===========================
   COMMENTS
   =========================== */
.comments-section { max-width: 1200px; margin: 0 auto; }
.comments-count { color: var(--primary-2); }
.comment-list { list-style: none; padding: 0; margin: 24px 0 40px; display: flex; flex-direction: column; gap: 20px; }
.comment-card { display: flex; gap: 14px; }
.comment-avatar-img { border-radius: 50%; flex: 0 0 auto; }
.comment-body { flex: 1; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 16px 18px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-text { font-size: 14.5px; line-height: 1.6; }
.comment-text p { margin: 0 0 .6em; }
.comment-reply { margin-top: 10px; }
.comment-reply a { font-size: 13px; font-weight: 700; color: var(--primary-2); }
.comment-moderation { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.comment-form { display: flex; flex-wrap: wrap; gap: 16px; }
.comment-form-row { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.comment-form-full { flex: 1 1 100%; }
.comment-form-input, .comment-form-textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font: inherit; font-size: 14px; color: var(--fg); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.comment-form-input:focus, .comment-form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,166,230,.15); }
.comment-form-textarea { resize: vertical; min-height: 130px; }
.comment-form-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-reply-title { margin-bottom: 20px; }

/* ===========================
   PAGE ARTICLE
   =========================== */
.page-article { max-width: 820px; margin: 0 auto; }
.page-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.page-thumb img { width: 100%; max-height: 440px; object-fit: cover; }
.page-links { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }

/* ===========================
   BREADCRUMBS
   =========================== */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; position: relative; z-index: 1; }
.breadcrumbs a { color: var(--primary-2); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--fg); }

/* ===========================
   SEARCH FORM
   =========================== */
.search-form { display: flex; gap: 10px; margin-top: 20px; }
.search-form .search-field { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 16px; font: inherit; font-size: 14px; outline: none; }
.search-form .search-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,166,230,.15); }
.search-form .search-submit { padding: 11px 20px; border-radius: var(--radius); background: var(--primary); color: #fff; border: none; font: inherit; font-weight: 700; cursor: pointer; }
.search-form .search-submit:hover { background: var(--primary-2); }

/* ===========================
   MAP
   =========================== */
.map { margin-top: 24px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (min-width: 768px) { .map iframe { height: 460px; } }

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(31,37,71,.35); transform: translateY(140%); transition: transform .4s ease; display: flex; gap: 12px; align-items: flex-start; }
.cookie.show { transform: translateY(0); }
@media (min-width: 640px) { .cookie { left: auto; right: 24px; bottom: 24px; } }
.cookie .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; flex: 0 0 auto; font-size: 20px; }
.cookie h4 { font-size: 15px; margin: 0 0 4px; }
.cookie p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cookie .row { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie .btn-accept { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.cookie .btn-accept:hover { background: var(--primary-2); }
.cookie a.more { font-size: 12.5px; color: var(--primary-2); text-decoration: underline; }
.cookie .x { margin-left: auto; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.cookie .x:hover { background: var(--primary-soft); color: var(--fg); }

/* ===========================
   SCROLL TO TOP
   =========================== */
.to-top { position: fixed; right: 18px; bottom: 45px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--primary-2); transform: translateY(-3px); }
@media (min-width: 640px) { .to-top { right: 24px; bottom: 25px; width: 52px; height: 52px; } }

/* Mobile fixes */
@media (max-width: 639px) {
  .hero-grid { gap: 20px; }
  .portrait-wrap { max-width: 280px; }
  .cta-card { padding: 20px; }
}
/* ===========================
   EDIT BUTTON — полная новость
   =========================== */
.a-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--primary-soft);
    color: var(--primary-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
    margin-left: auto;
}
.a-edit-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.a-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===========================
   FULL-WIDTH COVER IMAGE
   =========================== */
.a-cover-fullwidth {
    margin: 24px calc(-1 * var(--container-pad, 20px));
    line-height: 0;
}
.a-cover-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
    max-height: none;
    object-fit: unset;
    border-radius: 0;
}
@media (min-width: 768px) {
    .a-cover-fullwidth {
        margin-left: -32px;
        margin-right: -32px;
        border-radius: var(--radius);
        overflow: hidden;
    }
}

/* ===========================
   NO-IMAGE PLACEHOLDER
   =========================== */
.news-card-no-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--primary-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-2);
    opacity: .7;
    font-size: 12px;
    font-weight: 600;
}
.news-thumb--placeholder {
    aspect-ratio: 16/9;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-2);
    opacity: .65;
}

/* ===========================
   NEWS PAGINATION
   =========================== */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.news-pagination__btn {
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid var(--primary);
    color: var(--primary-2);
    background: #fff;
    transition: background .2s, color .2s;
}
.news-pagination__btn:hover {
    background: var(--primary);
    color: #fff;
}


  /* ============ DESKTOP FULL-WIDTH SEARCH TAKEOVER ============ */
  /* Overlay скрыт по умолчанию; при .desk-search-open на header-inner — показывается */
  .desk-search-overlay{
    display:none;position:absolute;left:0;right:0;top:0;bottom:0;
    align-items:center;gap:10px;padding:0 12px;
    background:rgba(255,255,255,.97);backdrop-filter:blur(12px);
    z-index:100;
  }
  .header-inner.desk-search-open .logo,
  .header-inner.desk-search-open .nav-car,
  .header-inner.desk-search-open .header-right{display:none!important}
  .header-inner.desk-search-open .desk-search-overlay{
    display:flex;
  }

  /* ============ DESKTOP DROPDOWN NAV ============ */
  .dn-car-wrap{display:none;flex:1;min-width:0;align-items:center;gap:2px;padding:0 4px;overflow:visible;}
  @media(min-width:1024px){.dn-car-wrap{display:flex}}
  /* overflow:hidden clips scrolled-out nav buttons; dropdowns escape via JS teleport */
  .dn-clip{flex:1;min-width:0;overflow:hidden;position:relative;}
  .desk-nav{
    display:flex;align-items:center;gap:2px;
    flex:0 0 auto;
    transition:transform .3s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }

  /* Plain link */
  .dn-link{
    flex:0 0 auto;padding:9px 13px;border-radius:24px;
    font-size:13.5px;font-weight:600;color:var(--nav-btn-color,#3a4063);
    transition:all .2s;white-space:nowrap;
    border:1.5px solid var(--nav-btn-border,rgba(58,166,230,.25));
    background:var(--nav-btn-bg,rgba(255,255,255,.65));backdrop-filter:blur(4px);
    box-shadow:0 2px 8px -4px rgba(58,166,230,.2);
    display:inline-flex;align-items:center;line-height:1;
  }
  .dn-link:hover,.dn-link.active{
    background:var(--primary);color:#fff;
    border-color:var(--primary);
    transform:translateY(-1px);
  }
  .dn-link-highlight{
    color:#b5005b;background:rgba(255,122,162,.12);
    border-color:rgba(255,122,162,.35);
  }
  .dn-link-highlight:hover{background:#ff7aa2;color:#fff;border-color:#ff7aa2;}

  /* Dropdown item wrapper */
  .dn-item{position:relative;flex:0 0 auto}

  /* Dropdown trigger button */
  .dn-btn{
    display:flex;align-items:center;gap:5px;
    padding:7px 13px;border-radius:24px;border:1.5px solid var(--nav-btn-border,rgba(58,166,230,.25));
    background:var(--nav-btn-bg,rgba(255,255,255,.65));backdrop-filter:blur(4px);
    box-shadow:0 2px 8px -4px rgba(58,166,230,.2);
    font-family:inherit;font-size:13.5px;font-weight:600;color:var(--nav-btn-color,#3a4063);
    cursor:pointer;white-space:nowrap;transition:all .2s;
  }
  .dn-btn:hover,.dn-item.open > .dn-btn{
    background:var(--primary);color:#fff;
    border-color:var(--primary);
    box-shadow:0 4px 14px -4px rgba(58,166,230,.55);
    transform:translateY(-1px);
  }
  .dn-item.open > .dn-btn .dn-arrow{transform:rotate(180deg)}
  .dn-arrow{transition:transform .22s cubic-bezier(.22,.61,.36,1);flex:0 0 auto}

  /* Dropdown panel */
  .dn-drop{
    display:none;position:absolute;top:calc(100% + 8px);left:0;
    min-width:230px;background:#fff;
    border:1px solid var(--border);border-radius:16px;
    box-shadow:0 18px 40px -14px rgba(31,37,71,.22);
    padding:6px;z-index:9999;
    animation:dnFadeIn .18s ease;
  }
  .dn-item.open > .dn-drop{display:block}
  @keyframes dnFadeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

  .dn-drop > a{
    display:block;padding:9px 12px;border-radius:10px;
    font-size:13.5px;font-weight:500;color:#3a4063;
    transition:background .15s,color .15s;white-space:nowrap;
  }
  .dn-drop > a:hover{background:var(--primary-soft);color:var(--primary-2)}

  /* Sub-item (nested) */
  .dn-sub-item{position:relative}
  .dn-sub-btn{
    width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:9px 12px;border-radius:10px;border:none;
    background:transparent;font-family:inherit;font-size:13.5px;font-weight:500;color:#3a4063;
    cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;
  }
  .dn-sub-btn:hover,.dn-sub-item.open > .dn-sub-btn{
    background:var(--primary-soft);color:var(--primary-2)
  }
  .dn-sub-item.open > .dn-sub-btn .dn-arrow{transform:rotate(90deg)}

  .dn-sub-drop{
    display:none;position:absolute;top:0;left:calc(100% + 4px);
    min-width:220px;background:#fff;
    border:1px solid var(--border);border-radius:14px;
    box-shadow:0 14px 36px -12px rgba(31,37,71,.22);
    padding:6px;z-index:210;
    animation:dnFadeIn .15s ease;
  }
  .dn-sub-item.open > .dn-sub-drop{display:block}
  .dn-sub-drop > a{
    display:block;padding:9px 12px;border-radius:10px;
    font-size:13px;font-weight:500;color:#3a4063;
    transition:background .15s,color .15s;white-space:nowrap;
  }
  .dn-sub-drop > a:hover{background:var(--primary-soft);color:var(--primary-2)}