/* ==========================================================================
   ZVERITO ФОНД — Design System synchronized 1:1 with Zverito.ru
   ========================================================================== */

@font-face {
  font-family: 'Raleway';
  src: url('./assets/fonts/Raleway-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('./assets/fonts/Raleway-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('./assets/fonts/Raleway-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('./assets/fonts/Raleway-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baloo';
  src: url('./assets/fonts/Baloo-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rounded Mplus 1c';
  src: url('./assets/fonts/MPLUSRounded1c-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rounded Mplus 1c';
  src: url('./assets/fonts/MPLUSRounded1c-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Typography */
  --font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --second-family: 'Baloo', 'Baloo 2', 'M PLUS Rounded 1c', sans-serif;
  --third-family: 'Rounded Mplus 1c', 'M PLUS Rounded 1c', 'Raleway', sans-serif;

  /* Zverito Core Palette */
  --white: #ffffff;
  --black: #383b3d;
  --total-black: #000000;
  --app-bg: #d1dde6;
  --gray-50: #f1f3f5;
  --gray-100: #787e82;
  --gray-200: #989ea9;
  --gray-300: #4b5563;
  --gray-400: #747d8c;
  --border-color: #d8dce0;

  /* Primary Teal (Trust / Medical / Verification) */
  --green: #65b5ad;
  --green-300: #318d83;
  --green-soft: #e6f4f2;

  /* Accent Coral Orange (Donate / Action CTA) */
  --orange-100: #ff8a58;
  --orange-200: #ff6c58;
  --orange-soft: #fff2ec;
  --orange-gradient: linear-gradient(270deg, #ff8a58 0%, #ff6c58 100%);

  /* Semantic Ecosystem Colors */
  --violet: #b38fd2;
  --violet-soft: #f3edf9;
  --blue: #64accb;
  --blue-soft: #eaf5fa;
  --gold: #ffc658;
  --gold-soft: #fff8e6;
  --error-color: #eb5757;
  --error-soft: #fdecec;

  /* Elevation & Geometry */
  --radius-card: 20px;
  --radius-capsule: 40px;
  --radius-pill: 35px;
  --radius-input: 25px;
  --outline-shadow: inset 0 0 0 1px rgba(144, 159, 174, 0.2);
  --card-shadow: 0 10px 40px 0 rgba(144, 159, 174, 0.2);
  --card-shadow-hover: 0 16px 46px 0 rgba(49, 141, 131, 0.16);
  --glass-shadow: 0 4px 10px 0 rgba(70, 121, 116, 0.15);
  --bezier: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  --transition: 0.22s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Buttons & Pill Controls (35px pill radius per Zverito.ru)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-orange {
  background: var(--orange-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 108, 88, 0.28);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 108, 88, 0.38);
}

.btn-teal {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(101, 181, 173, 0.26);
}

.btn-teal:hover {
  background: var(--green-300);
  transform: translateY(-2px);
}

.btn-outline-teal {
  background: var(--white);
  color: var(--green-300);
  border: 1.5px solid var(--green);
}

.btn-outline-teal:hover {
  background: var(--green-soft);
}

.btn-outline-orange {
  background: var(--white);
  color: var(--orange-200);
  border: 1.5px solid var(--orange-100);
}

.btn-outline-orange:hover {
  background: var(--orange-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--black);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--green);
}

.btn-sos {
  background: var(--error-soft);
  color: var(--error-color);
  border: 1.5px solid rgba(235, 87, 87, 0.35);
}

.btn-sos:hover {
  background: var(--error-color);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Badges & Chips
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.badge-teal {
  background: var(--green-soft);
  color: var(--green-300);
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange-200);
}

.badge-violet {
  background: var(--violet-soft);
  color: #7c4ca5;
}

.badge-blue {
  background: var(--blue-soft);
  color: #2b7b9e;
}

.badge-gold {
  background: var(--gold-soft);
  color: #b77900;
}

.badge-danger {
  background: var(--error-soft);
  color: var(--error-color);
}

.badge-live {
  background: rgba(235, 87, 87, 0.92);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

/* ==========================================================================
   Header & Ecosystem Top Bar
   ========================================================================== */
.ecosystem-strip {
  background: #2e3336;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
}

.ecosystem-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ecosystem-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ecosystem-links a {
  opacity: 0.78;
  transition: opacity var(--transition), color var(--transition);
}

.ecosystem-links a:hover {
  opacity: 1;
  color: var(--orange-100);
}

.ecosystem-links a.is-active {
  opacity: 1;
  color: var(--white);
  background: rgba(101, 181, 173, 0.28);
  border: 1px solid rgba(101, 181, 173, 0.65);
  padding: 3px 10px;
  border-radius: 999px;
}

.ecosystem-slogan {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b7deda;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 32px;
  width: auto;
}

.brand-logo__tag {
  font-family: var(--third-family);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-300);
  padding: 2px 0 2px 10px;
  border-left: 1.5px solid var(--border-color);
  border-radius: 0;
  background: transparent;
}

.city-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background var(--transition);
}

.city-trigger:hover {
  background: var(--gray-50);
}

.header-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-300);
  background: var(--green-soft);
  border: 1px solid rgba(44, 155, 142, 0.28);
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-portal-link:hover {
  background: rgba(44, 155, 142, 0.16);
  border-color: var(--green);
  transform: translateY(-1px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-300);
  padding: 26px 2px;
  border-bottom: 2.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  position: relative;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--green-300);
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-sos-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--error-color);
  padding: 7px 10px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background var(--transition);
}

.header-sos-link:hover {
  background: var(--error-soft);
}

.sos-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error-color);
  animation: pulseLive 1.8s infinite;
  flex-shrink: 0;
}

.icon-counter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.icon-counter-btn:hover {
  background: var(--green-soft);
  color: var(--green-300);
}

.header-user-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  padding: 7px 11px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header-user-link:hover {
  background: var(--green-soft);
  color: var(--green-300);
}

.header-user-link .user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-300);
  flex-shrink: 0;
}

.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--black);
  font-size: 19px;
  transition: background var(--transition), color var(--transition);
}

.burger-btn:hover {
  background: var(--gray-50);
  color: var(--green-300);
}

/* ==========================================================================
   Hero Section (Matching Zverito.ru #d1dde6 + hero-bg.png + Clean Glass Capsule)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--app-bg);
  background-image:
    linear-gradient(90deg, rgba(209, 221, 230, 0.95) 0%, rgba(209, 221, 230, 0.85) 38%, rgba(209, 221, 230, 0.12) 68%, rgba(209, 221, 230, 0.0) 100%),
    url('./assets/hero-bg.png');
  background-size: cover;
  background-position: right center;
  padding: 52px 0 46px;
  overflow: hidden;
}

.hero-content-col {
  max-width: 620px;
  margin-bottom: 42px;
}

.hero-title {
  font-family: var(--third-family);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.12;
  color: var(--black);
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--black);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  opacity: 0.88;
  margin-bottom: 30px;
}

.hero-counters {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  flex-wrap: wrap;
}

.hero-counter-item {
  background: transparent;
  padding: 0;
}

.hero-counter-item__val {
  font-family: var(--third-family);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  color: var(--green);
  margin-bottom: 6px;
}

.hero-counter-item__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

/* Hero Glassmorphic Action Capsule (40px radius, 2 clean lines) */
.hero-capsule {
  background: hsla(0, 0%, 100%, 0.64);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-capsule);
  padding: 22px 28px;
  box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.capsule-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.capsule-head-title {
  font-family: var(--third-family);
  font-weight: 800;
  font-size: 17px;
  color: var(--black);
}

.capsule-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.capsule-tab {
  border: 1px solid rgba(101, 181, 173, 0.3);
  background: rgba(255, 255, 255, 0.78);
  color: var(--gray-300);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.capsule-tab:hover {
  background: var(--white);
  color: var(--black);
}

.capsule-tab.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(101, 181, 173, 0.24);
}

.capsule-pane {
  display: none;
}

.capsule-pane.is-active {
  display: block;
}

/* Single Streamlined Donation Row */
.donate-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-switch {
  display: inline-flex;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(144, 159, 174, 0.25);
  gap: 3px;
}

.pill-switch__btn {
  border: none;
  background: transparent;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.pill-switch__btn.is-active {
  background: var(--black);
  color: var(--white);
}

.pill-switch__btn.is-active.is-teal {
  background: var(--green);
  color: var(--white);
}

.amount-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.amount-chip {
  border: 1.5px solid rgba(144, 159, 174, 0.35);
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-pill);
  padding: 10px 15px;
  font-family: var(--third-family);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.amount-chip:hover {
  border-color: var(--orange-100);
}

.amount-chip.is-active {
  background: var(--orange-soft);
  border-color: var(--orange-200);
  color: var(--orange-200);
}

.custom-amount-input {
  width: 102px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(144, 159, 174, 0.38);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  outline: none;
}

.custom-amount-input:focus {
  border-color: var(--orange-100);
}

.impact-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  flex: 1;
  min-width: 180px;
}

.impact-inline__icon {
  font-size: 18px;
  line-height: 1;
}

.pay-methods-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(144, 159, 174, 0.22);
}

.pay-method-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-pill {
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.pay-pill.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-300);
}

.ecosystem-roundup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  cursor: pointer;
}

.ecosystem-roundup input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}

/* B2B inline inside capsule */
.b2b-inline-box {
  display: none;
  margin-top: 14px;
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  align-items: center;
}

.b2b-inline-box.is-visible {
  display: grid;
}

/* Search Pane inside Capsule */
.search-capsule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.z-select, .z-input {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(144, 159, 174, 0.35);
  border-radius: var(--radius-input);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  outline: none;
}

.z-select:focus, .z-input:focus {
  border-color: var(--green);
}

/* Wheel of Kindness Pane inside Capsule */
.wheel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-radius: 24px;
  padding: 16px 22px;
  flex-wrap: wrap;
}

.wheel-pet-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wheel-pet-info img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

/* ==========================================================================
   Live Activity Strip (Blocks 2.3 & 2.4)
   ========================================================================== */
.live-ticker-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.live-ticker-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-stream {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 4px 16px 4px 0;
  border-right: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  white-space: nowrap;
}

.ticker-pill:last-child {
  border-right: none;
}

/* ==========================================================================
   Common Section Styling
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section--white {
  background: var(--white);
}

.section--soft {
  background: var(--gray-50);
}

.section--mint {
  background: linear-gradient(180deg, #eaf4f3 0%, #f5f9fa 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--third-family);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.18;
  color: var(--black);
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray-100);
  margin-top: 6px;
  max-width: 680px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.filter-tab {
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--gray-100);
  border-radius: 0;
  padding: 9px 2px 12px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.filter-tab:hover {
  color: var(--black);
  border-bottom-color: rgba(101, 181, 173, 0.45);
}

.filter-tab.is-active {
  background: transparent;
  border-bottom-color: var(--green-300);
  color: var(--green-300);
}

/* ==========================================================================
   Cards Grid & Zverito Card Component (20px radius)
   ========================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.z-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(144, 159, 174, 0.14);
}

.z-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.z-card__media {
  position: relative;
  height: 240px;
  background: var(--gray-50);
  overflow: hidden;
}

.z-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.z-card:hover .z-card__media img {
  transform: scale(1.04);
}

.z-card__top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.z-card__top-badges > * {
  pointer-events: auto;
}

.fav-heart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--transition), background var(--transition);
}

.fav-heart-btn:hover {
  transform: scale(1.1);
}

.fav-heart-btn.is-liked {
  background: var(--orange-soft);
}

.z-card__bottom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.z-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.z-card__title {
  font-family: var(--third-family);
  font-weight: 800;
  font-size: 20px;
  color: var(--black);
}

.z-card__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-100);
}

.z-card__desc {
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.5;
}

.z-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.z-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-100);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.z-chip::before {
  content: '•';
  color: var(--green);
  font-weight: 800;
}

/* Progress bar for fundraising */
.progress-block {
  margin-top: auto;
}

.progress-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.progress-numbers strong {
  color: var(--green-300);
  font-size: 15px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--gray-50);
  border-radius: 999px;
  overflow: hidden;
}

.progress-track--dual {
  display: flex;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0%, #48c9bc 100%);
  transition: width 0.45s ease;
  flex-shrink: 0;
}

.progress-track--dual .progress-fill {
  border-radius: 999px 0 0 999px;
}

.progress-fill-transit {
  height: 100%;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(101, 181, 173, 0.45),
    rgba(101, 181, 173, 0.45) 6px,
    rgba(101, 181, 173, 0.2) 6px,
    rgba(101, 181, 173, 0.2) 12px
  );
  transition: width 0.45s ease;
}

.progress-fill--orange {
  background: var(--orange-gradient);
}

.z-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ==========================================================================
   Quiz Banner (Block 3.2)
   ========================================================================== */
.quiz-banner {
  background: linear-gradient(135deg, #65b5ad 0%, #4a9d95 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(49, 141, 131, 0.22);
}

.quiz-banner h3 {
  font-family: var(--third-family);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.quiz-banner p {
  opacity: 0.94;
  max-width: 650px;
  font-size: 15px;
}

/* ==========================================================================
   Non-Financial & Ecosystem Help Hub (Blocks 6.1–6.5 & 10.3)
   ========================================================================== */
.hub-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hub-tab {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.hub-tab:hover {
  border-color: var(--green);
}

.hub-tab.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.hub-panel {
  display: none;
}

.hub-panel.is-active {
  display: block;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wishlist-item {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(144, 159, 174, 0.14);
  min-width: 0;
}

.wishlist-sku-note {
  font-size: 12px;
  color: var(--gray-200);
  line-height: 1.45;
  margin: -4px 0 2px;
}

.pvz-step-head {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-300);
  margin-bottom: 8px;
}

.mp-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wishlist-pvz-box {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pvz-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(144, 159, 174, 0.16);
  min-width: 0;
}

.pvz-copy-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pvz-copy-row__text {
  font-size: 13px;
  color: var(--black);
  line-height: 1.4;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 560px) {
  .pvz-copy-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pvz-banner {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Interactive City Map */
.map-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

/* Interactive Multi-Provider Collection Points Map */
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.map-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 240px;
}

.map-engine-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px;
}

.map-engine-btn {
  border: none;
  background: transparent;
  color: var(--gray-200);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.map-engine-btn.is-active {
  background: var(--green);
  color: var(--white);
}

.map-canvas-wrap {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-width: 0;
}

#collectionMapViewport {
  width: 100%;
  height: 460px;
  background: #e9eff3;
  position: relative;
  z-index: 1;
}

#collectionMapViewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-selected-bar {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-selected-bar__info {
  min-width: 0;
  flex: 1;
}

.map-selected-bar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.z-leaflet-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.z-leaflet-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.z-leaflet-pin--box { background: #ff8a58; }
.z-leaflet-pin--clinic { background: #2c9b8e; }
.z-leaflet-pin--shop { background: #3b82f6; }
.z-leaflet-pin.is-active {
  transform: rotate(-45deg) scale(1.22);
  box-shadow: 0 6px 18px rgba(255, 138, 88, 0.45);
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 545px;
  overflow-y: auto;
  min-width: 0;
}

.map-point-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--outline-shadow);
  cursor: pointer;
  transition: all var(--transition);
}

.map-point-card.is-active, .map-point-card:hover {
  box-shadow: inset 0 0 0 2px var(--green), var(--card-shadow);
}

@media (max-width: 640px) {
  #collectionMapViewport {
    height: 320px;
  }
  .map-selected-bar {
    padding: 12px 14px;
  }
}

/* Volunteer Tasks Exchange & Pass Modals */
.vol-task-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid rgba(144, 159, 174, 0.14);
  min-width: 0;
}

.vol-task-card.is-claimed {
  box-shadow: inset 0 0 0 2px var(--green), var(--card-shadow);
}

.vol-req-box {
  font-size: 12px;
  line-height: 1.45;
  color: var(--gray-200);
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid rgba(144, 159, 174, 0.14);
  word-break: break-word;
}

.vol-slots-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-300);
}

.vol-pass-box {
  border: 1px solid rgba(44, 155, 142, 0.28);
  background: var(--green-soft);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  word-break: break-word;
}

/* Zverito Pro Bono Specialists (Block 10.3) */
.specialist-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specialist-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.specialist-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--third-family);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.specialist-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.specialist-services li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-color);
}

/* ==========================================================================
   Community: P2P, Merch, Festivals, CSR (Blocks 9.1–9.4)
   ========================================================================== */
.p2p-banner {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-left: 6px solid var(--orange-100);
}

.fest-csr-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 32px;
}

.fest-card {
  background: linear-gradient(135deg, #2e3d42 0%, #3d5a58 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.csr-card {
  background: var(--white);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Transparency: Before/After, Budget Breakdown, Shelters, Live Ledger
   ========================================================================== */
.before-after-toggle {
  position: relative;
}

.ba-switch-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  background: rgba(56, 59, 61, 0.84);
  backdrop-filter: blur(6px);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.ba-switch-pill button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.ba-switch-pill button.is-active {
  background: var(--orange-100);
  color: var(--white);
}

.ledger-dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 24px;
  margin-top: 32px;
}

.budget-card, .ledger-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.budget-bar-row {
  margin-bottom: 14px;
}

.budget-bar-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ledger-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--gray-100);
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.ledger-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-50);
  vertical-align: middle;
}

/* ==========================================================================
   Footer (Matching Zverito.ru 5-column ecosystem directory)
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--third-family);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--black);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--gray-300);
}

.footer-col ul a:hover {
  color: var(--green-300);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-100);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
html.scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.scroll-locked {
  position: fixed !important;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 44, 49, 0.58);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: 26px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.22s ease;
}

.modal-dialog--narrow {
  max-width: 580px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}

.modal-close:hover {
  background: var(--gray-50);
}

/* Ecosystem Navigation Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 44, 49, 0.45);
  z-index: 1050;
  display: none;
  justify-content: flex-end;
  overscroll-behavior: contain;
}

.drawer-backdrop.is-open {
  display: flex;
}

.drawer-panel {
  width: min(380px, 100%);
  background: var(--white);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 20px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-panel > * {
  flex-shrink: 0;
}

/* Live Stream Stage & Player Controls */
.live-cam-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #141a1d;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.live-cam-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.live-cam-stage img,
.live-cam-stage video,
.live-cam-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.live-cam-stage img {
  filter: saturate(1.06);
}

.live-cam-overlay {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 38%, rgba(0, 0, 0, 0.52) 100%);
  color: var(--white);
  pointer-events: none;
}

.live-cam-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.live-cam-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-cam-controls button {
  pointer-events: auto;
}

.live-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 22, 26, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.live-ctrl-btn:hover {
  background: rgba(16, 22, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.42);
}

.live-cam-shelter-tag {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.live-cam-overlay #teddyLiveFeedNote {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.badge-live--offline {
  background: rgba(45, 55, 62, 0.88);
  color: #f3f6f7;
  backdrop-filter: blur(4px);
}

.badge-live--offline .live-dot {
  background: #f5b942;
  animation: none;
}

@media (max-width: 640px) {
  .live-cam-stage {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
  .live-cam-overlay {
    padding: 10px 12px;
  }
  .live-cam-overlay #teddyLiveFeedNote {
    font-size: 12px;
    padding: 6px 10px;
  }
}

.teddy-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.teddy-action-btn {
  background: var(--gray-50);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.teddy-action-btn:hover {
  background: var(--orange-soft);
  border-color: var(--orange-100);
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--green);
}

/* Form helpers */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-300);
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-btn {
  border: 1.5px solid var(--border-color);
  background: var(--white);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.slot-btn.is-active {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-300);
}

/* ==========================================================================
   Internal Pages, Breadcrumbs, News Reader, Detail Pages & Admin CMS
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #dce8ef 0%, #eaf4f3 100%);
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(144, 159, 174, 0.22);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-100);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--green-300);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.news-featured-card {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 32px;
  border: 1px solid rgba(144, 159, 174, 0.14);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.news-featured-card__media {
  min-height: 320px;
  height: 100%;
  overflow: hidden;
}

.news-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.article-card {
  background: var(--white);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  margin: 18px 0 24px;
}

.article-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.detail-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel-card {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(144, 159, 174, 0.14);
}

.comments-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.comment-item {
  background: transparent;
  border-radius: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Admin CMS Panel */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  background: var(--white);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 92px;
}

.admin-nav-btn {
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all var(--transition);
}

.admin-nav-btn:hover {
  background: var(--gray-50);
  color: var(--black);
}

.admin-nav-btn.is-active {
  background: var(--green);
  color: var(--white);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--outline-shadow);
}

.admin-kpi strong {
  display: block;
  font-family: var(--third-family);
  font-size: 26px;
  color: var(--green-300);
}

.z-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(144, 159, 174, 0.35);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  outline: none;
  min-height: 110px;
  resize: vertical;
}

.z-textarea:focus {
  border-color: var(--green);
}

/* Admin Media Manager & Drag-and-Drop */
.media-dropzone {
  border: 2px dashed rgba(49, 141, 131, 0.45);
  background: var(--green-soft);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.media-dropzone:hover,
.media-dropzone.is-dragover {
  border-color: var(--orange-100);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.media-dropzone--compact {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(56, 59, 61, 0.08);
}

.media-card__thumb {
  position: relative;
  height: 155px;
  background: var(--gray-50);
  overflow: hidden;
  cursor: pointer;
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.media-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.photo-field-widget {
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 12px;
  background: #fafcfe;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.photo-field-widget__preview {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--gray-100);
  text-align: center;
}

.photo-field-widget__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-field-widget__controls {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Global Table, Grid Overflow Safety & Mobile Header Helpers */
.detail-split > *,
.ledger-dashboard > *,
.article-layout > *,
.admin-shell > *,
.pvz-banner > *,
.fest-csr-grid > *,
.map-layout > * {
  min-width: 0;
}

.panel-card,
.ledger-card,
.budget-card,
.article-card {
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--gray-100);
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--gray-50);
  vertical-align: middle;
}

.mobile-cabinet-icon {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--black);
  flex-shrink: 0;
  transition: all var(--transition);
}

.mobile-cabinet-icon:hover {
  background: var(--gray-50);
}

.mobile-cabinet-icon.is-logged-in {
  background: var(--green-soft);
  color: var(--green-300);
}

.mobile-cabinet-icon.is-logged-in::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-300);
  border: 1.5px solid var(--white);
}

.drawer-mobile-controls {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.drawer-utility-box {
  background: var(--gray-50);
  border-radius: 14px;
  padding: 2px 12px;
}

.drawer-utility-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(144, 159, 174, 0.22);
  background: transparent;
  padding: 10px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
}

.drawer-utility-row:last-child {
  border-bottom: none;
}

.drawer-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-50);
}

.drawer-group__title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-200);
  padding: 0 10px 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  transition: background 0.16s ease, color 0.16s ease;
}

.drawer-link__arrow {
  color: var(--gray-200);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease;
}

.drawer-link:hover {
  background: var(--gray-50);
  color: var(--green-300);
}

.drawer-link:hover .drawer-link__arrow {
  color: var(--green-300);
  transform: translateX(2px);
}

.drawer-link.is-active {
  background: var(--green-soft);
  color: var(--green-300);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--green-300);
  border-radius: 4px 10px 10px 4px;
}

.drawer-link.is-active .drawer-link__arrow {
  color: var(--green-300);
}

.drawer-sos-callout {
  margin-top: 4px;
  padding: 11px 12px;
  border-left: 3px solid var(--error-color);
  background: var(--error-soft);
  border-radius: 4px 10px 10px 4px;
  color: var(--error-color);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Architectural Hairline Bento Directory */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.directory-cell {
  background: var(--white);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.18s ease;
}

.directory-cell h4 {
  font-family: var(--third-family);
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}

.directory-cell:hover {
  background: #f8fbfb;
}

.directory-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.directory-eyebrow--danger { color: var(--error-color); }
.directory-eyebrow--teal { color: var(--green-300); }
.directory-eyebrow--blue { color: #2b7b9e; }
.directory-eyebrow--violet { color: #7c4ca5; }
.directory-eyebrow--orange { color: var(--orange-200); }

.directory-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-300);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s ease;
}

.directory-cell:hover .directory-more {
  gap: 8px;
}

/* Editorial Links, Clean Hairline Rows & Vertical Timeline */
.section-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--third-family);
  font-weight: 800;
  font-size: 15px;
  color: var(--green-300);
  padding: 5px 1px;
  border-bottom: 2px solid rgba(49, 141, 131, 0.28);
  transition: border-color 0.18s ease, gap 0.18s ease;
}

.section-arrow-link:hover {
  border-bottom-color: var(--green-300);
  gap: 9px;
}

.clean-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.clean-list-row:first-child {
  padding-top: 4px;
}

.clean-list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.clean-list-row--compact {
  padding: 10px 0;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

.timeline-row {
  position: relative;
  border-left: 2px solid var(--border-color);
  padding: 2px 0 18px 20px;
}

.timeline-row:last-child {
  border-left-color: transparent;
  padding-bottom: 2px;
}

.timeline-row::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-row--done::before {
  background: var(--green-300);
  box-shadow: 0 0 0 1px var(--green-300);
}

.timeline-row--active::before {
  background: var(--orange-200);
  box-shadow: 0 0 0 2px rgba(255, 108, 88, 0.25);
}

.cabinet-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.cabinet-tabs-bar__pills {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cabinet-tabs-bar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
}

.cabinet-logout-link {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--error-color);
  cursor: pointer;
}

.cabinet-logout-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .directory-grid { grid-template-columns: 1fr; }
  .directory-cell { padding: 18px 16px; }
}

.city-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 1100px) {
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Responsive Breakpoints */
@media (max-width: 1380px) {
  .header-nav { display: none; }
}

@media (max-width: 1200px) {
  .cards-grid-4, .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1120px) {
  .header-sos-btn { display: none; }
  .header-cabinet-btn {
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .drawer-mobile-controls { display: flex; }
}

@media (max-width: 960px) {
  .search-capsule-grid,
  .map-layout,
  .fest-csr-grid,
  .ledger-dashboard,
  .pvz-banner,
  .news-featured-card,
  .article-layout,
  .detail-split,
  .admin-shell,
  .b2b-inline-box.is-visible {
    grid-template-columns: 1fr;
  }
  .cards-grid-3, .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .article-sidebar { position: static; }
  .admin-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    gap: 8px;
  }
  .admin-nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .site-header__inner { min-height: 60px; gap: 8px; }
  .header-left { gap: 8px; min-width: 0; }
  .brand-logo { gap: 6px; }
  .brand-logo img { height: 24px; }
  .brand-logo__tag { font-size: 10px; padding: 3px 7px; }
  .city-trigger,
  .header-fav-btn,
  .header-cabinet-btn { display: none; }
  .header-portal-link { font-size: 11.5px; padding: 5px 9px; }
  .header-portal-link__prefix { display: none; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .header-donate-btn { padding: 8px 12px; font-size: 12px; }
  .mobile-cabinet-icon { display: inline-flex; }
  .burger-btn { width: 38px; height: 38px; flex-shrink: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .site-header__inner { min-height: 56px; gap: 6px; }
  .header-left { gap: 6px; }
  .brand-logo { gap: 5px; }
  .brand-logo img { height: 20px; }
  .brand-logo__tag { font-size: 9px; padding: 2px 0 2px 5px; }
  .header-portal-link { font-size: 11px; padding: 4px 7px; gap: 3px; }
  .header-actions { gap: 5px; }
  .mobile-cabinet-icon { width: 32px; height: 32px; }
  .header-donate-btn { padding: 6px 9px; font-size: 11.5px; }
  .burger-btn { width: 34px; height: 34px; font-size: 16px; }
}

@media (max-width: 720px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .section-head { gap: 12px; margin-bottom: 20px; }
  .page-banner { padding: 22px 0 20px; }
  .cards-grid-3, .cards-grid-4, .wishlist-grid, .teddy-actions-grid, .form-grid-2, .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  /* Hero & Capsule Mobile */
  .hero-section {
    padding: 26px 0 28px;
    background-position: 72% center;
  }
  .hero-content-col { margin-bottom: 24px; }
  .hero-title { font-size: clamp(26px, 7vw, 34px); }
  .hero-subtitle { font-size: 15px; margin-bottom: 20px; }
  .hero-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
  }
  .hero-counter-item__val { font-size: 28px; }
  .hero-counter-item__label { font-size: 13px; }
  .hero-capsule { padding: 16px; border-radius: 24px; }
  .capsule-head-row { gap: 10px; margin-bottom: 12px; }
  .capsule-head-title { font-size: 15px; }
  .capsule-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .capsule-tabs,
  .filter-tabs,
  .hub-tabs,
  .cabinet-tabs-bar__pills,
  .admin-sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .capsule-tabs::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar,
  .hub-tabs::-webkit-scrollbar,
  .cabinet-tabs-bar__pills::-webkit-scrollbar,
  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }
  .capsule-tab { flex-shrink: 0; padding: 6px 12px; font-size: 12px; white-space: nowrap; }
  .pill-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .pill-switch__btn { padding: 8px 6px; font-size: 12px; text-align: center; }
  .amount-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .custom-amount-input { width: 100%; }
  .impact-inline { min-width: 0; width: 100%; font-size: 12px; }
  .donate-bar-row > .btn { width: 100%; }
  .wheel-card { padding: 14px; gap: 14px; }
  .wheel-pet-info { align-items: flex-start; }

  /* Tabs & Adaptive Buttons */
  .filter-tabs,
  .cabinet-tabs-bar__pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    gap: 16px;
    max-width: 100%;
  }
  .hub-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .filter-tab {
    flex-shrink: 0;
    padding: 8px 2px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hub-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .cabinet-tabs-bar__actions {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 10px;
  }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .site-header .btn { white-space: nowrap; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .mobile-full-input,
  .section-head .z-input,
  .ledger-card .z-input {
    max-width: 100% !important;
    width: 100%;
  }

  /* Cards, Footer, Modals, Toasts */
  .article-card,
  .panel-card,
  .quiz-banner,
  .fest-card,
  .csr-card,
  .p2p-banner,
  .pvz-banner,
  .news-featured-card__body,
  .budget-card,
  .ledger-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .news-featured-card__media { min-height: 200px; }
  .article-hero-img { height: 220px; }
  .live-cam-stage { height: 220px; }
  .map-canvas { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 0 26px; }
  .modal-backdrop { padding: 10px; }
  .modal-dialog { padding: 18px 16px; border-radius: 20px; max-height: 92vh; }
  .city-modal-grid { grid-template-columns: repeat(2, 1fr); }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media screen and (max-width: 640px) {
  .tax-cert-sheet { padding: 14px; }
  .tax-cert-header,
  .tax-cert-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .tax-cert-meta {
    text-align: left;
    white-space: normal;
  }
  .tax-cert-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .header-fav-btn { display: none; }
}

@media (max-width: 380px) {
  .brand-logo img { height: 21px; }
  .city-modal-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Official NKO 3-NDFL Tax Certificate & Printable A4 Documents
   ========================================================================== */
.tax-cert-sheet {
  background: #ffffff;
  color: #15222b;
  border: 1.5px solid #cbd7e0;
  border-radius: 14px;
  padding: 26px 28px;
  font-size: 13px;
  line-height: 1.55;
}

.tax-cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #15222b;
  margin-bottom: 14px;
}

.tax-cert-org {
  font-size: 12px;
  line-height: 1.5;
  color: #2f3e48;
}

.tax-cert-meta {
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}

.tax-cert-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 12px;
}

.tax-cert-table th,
.tax-cert-table td {
  border: 1px solid #cbd7e0;
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}

.tax-cert-table th {
  background: #f2f6f9;
  font-weight: 700;
}

.tax-cert-summary {
  background: #f4faf8;
  border: 1px solid #9fd4ca;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.tax-cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #cbd7e0;
}

.nko-stamp-seal {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2.5px solid #1e6b8a;
  outline: 1px dashed #1e6b8a;
  outline-offset: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #1e6b8a;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-6deg);
  flex-shrink: 0;
  user-select: none;
}

.nko-stamp-seal strong {
  font-size: 10px;
  letter-spacing: 0.4px;
  margin: 3px 0;
}

.nko-stamp-img {
  max-width: 118px;
  max-height: 118px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nko-signature-img {
  max-height: 44px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 6px 0 -8px;
}

@media print {
  body.print-doc-mode > *:not(#universalModal) {
    display: none !important;
  }
  body.print-doc-mode #universalModal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.print-doc-mode .modal-dialog {
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.print-doc-mode .modal-close,
  body.print-doc-mode .no-print {
    display: none !important;
  }
  body.print-doc-mode .tax-cert-sheet {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}

/* Foundation Free (0 ₽) Specialists Corps (#/pro-bono) */
.probono-distinction-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(44, 155, 142, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

.probono-distinction-card__main {
  flex: 1;
  min-width: 0;
}

.probono-distinction-card__side {
  width: 280px;
  flex-shrink: 0;
  background: var(--gray-50);
  border: 1px solid rgba(144, 159, 174, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.probono-eligibility-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.probono-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.probono-format-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.probono-quota-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.specialist-card.is-booked {
  box-shadow: inset 0 0 0 2px var(--green), var(--card-shadow);
}

@media (max-width: 900px) {
  .probono-distinction-card {
    flex-direction: column;
    padding: 18px;
  }
  .probono-distinction-card__side {
    width: 100%;
  }
}

/* About Foundation Page (#/about) */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.about-kpi-highlight {
  background: linear-gradient(145deg, #21373a 0%, #194d48 100%);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-kpi-highlight__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-kpi-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
}

.about-kpi-tile span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 4px;
}

.about-kpi-tile strong {
  font-family: var(--third-family);
  font-size: 22px;
  color: var(--white);
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-milestone-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--green);
}

.about-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gray-50);
  border: 1px solid rgba(144, 159, 174, 0.16);
}

@media (max-width: 960px) {
  .about-hero-grid,
  .about-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-doc-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
