:root {
  --brand-primary: #3198C5;
  --brand-primary-dark: #1F6A8E;
  --brand-primary-light: #E8F4FA;
  --brand-accent: #F5A623;
  --brand-navy: #0F2A44;
  --brand-slate: #1a2b3c;
  --text-primary: #0F2A44;
  --text-secondary: #4A6178;
  --text-muted: #8092A5;
  --text-inverse: #FFFFFF;
  --surface-page: #FFFFFF;
  --surface-soft: #F5F9FC;
  --surface-tint: #ECF4F9;
  --border: #E1EAF1;
  --border-strong: #C7D6E2;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 42, 68, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 42, 68, 0.10);
  --shadow-focus: 0 0 0 3px rgba(49, 152, 197, 0.28);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: #0f2a44; /* same as the footer: iOS shows this colour, not white, when the keyboard adds scroll space */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img, svg { display: block; max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }
/* Prevent long words / URLs from pushing layout wider than viewport */
p, li, td, a, span, div { overflow-wrap: break-word; word-wrap: break-word; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }

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

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

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--brand-navy);
}
.logo__mark {
  width: 40px; height: 40px;
  background: var(--brand-primary);
  border-radius: 10px;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 15px;
  letter-spacing: -0.03em;
}
.logo__mark svg { width: 22px; height: 22px; fill: white; }
.logo__meta { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item {
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__item:hover { color: var(--brand-primary); background: var(--brand-primary-light); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px;
  font-size: 12px; font-weight: 600;
}
.lang-switch button {
  padding: 5px 12px; border-radius: 999px;
  color: var(--text-muted); transition: all var(--transition);
}
.lang-switch button.active { background: var(--brand-navy); color: white; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-primary); color: white;
}
.btn--primary:hover { background: var(--brand-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent; color: var(--brand-navy);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--ghost { background: transparent; color: var(--brand-navy); padding: 10px 16px; }
.btn--ghost:hover { background: var(--surface-soft); }
.btn--accent { background: var(--brand-accent); color: white; }
.btn--accent:hover { background: #d88e14; }
.btn--large { padding: 16px 32px; font-size: 15px; }

.burger {
  display: none;
  padding: 10px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column;
  border-radius: 8px;
  cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--brand-navy); margin: 3px 0; border-radius: 2px; transition: transform var(--transition); }
.header.is-mobile-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header.is-mobile-open .burger span:nth-child(2) { opacity: 0; }
.header.is-mobile-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 640px;
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(49,152,197,0.18), transparent 60%),
    linear-gradient(180deg, #F5F9FC 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero__decoration {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__decoration::before,
.hero__decoration::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__decoration::before {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, var(--brand-primary), transparent);
}
.hero__decoration::after {
  width: 400px; height: 400px;
  bottom: -150px; left: -50px;
  background: radial-gradient(circle, #7BC5DE, transparent);
  opacity: 0.20;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: white; border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.hero__title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  margin-bottom: 24px;
}
.hero__title span {
  color: var(--brand-primary);
  position: relative;
  display: inline-block;
}
.hero__title span::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 12px;
  background: var(--brand-primary-light);
  z-index: -1;
  border-radius: 4px;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-size: 32px; font-weight: 800; color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-num sup { font-size: 18px; color: var(--brand-primary); }
.hero__stat-label {
  font-size: 13px; color: var(--text-secondary);
  margin-top: 6px;
}

.hero__visual {
  position: relative;
  perspective: 1000px;
}
.hero__card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero__card--main {
  transform: rotate(-2deg);
}
.hero__card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero__card-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  display: grid; place-items: center;
  color: white; font-weight: 700;
}
.hero__card-title { font-weight: 600; font-size: 15px; }
.hero__card-sub { font-size: 12px; color: var(--text-muted); }
.hero__card-body { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.hero__card-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.hero__tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  border-radius: 999px;
}

.hero__card--floating {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 260px;
  transform: rotate(3deg);
  padding: 18px;
}
.hero__floating-stat {
  display: flex; align-items: center; gap: 12px;
}
.hero__floating-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
}
.hero__floating-icon svg { width: 22px; height: 22px; fill: white; }
.hero__floating-num { font-weight: 800; font-size: 22px; color: var(--brand-navy); }
.hero__floating-label { font-size: 12px; color: var(--text-muted); }

.section {
  padding: 100px 0;
  position: relative;
}
.section--soft { background: var(--surface-soft); }
.section--dark {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3a5c 100%);
  color: white;
}
.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section--dark .section__title { color: white; }
.section--dark .section__eyebrow { color: #7BC5DE; }
.section__subtitle {
  font-size: 17px; line-height: 1.6;
  color: var(--text-secondary);
}
.section--dark .section__subtitle { color: rgba(255,255,255,0.75); }

/* Uppercase tagline used under section title (e.g. about section) */
.section__tagline {
  font-size: 15px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-top: 12px;
  line-height: 1.4;
}
.section--dark .section__tagline { color: #7BC5DE; }

/* Centered prose block under section header (about + fullSpectrum) */
.about__prose {
  max-width: 920px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.75;
}
.about__prose p { margin-bottom: 20px; }
.about__prose p:last-child { margin-bottom: 0; }
.about__pdf { margin-top: 28px; display: flex; justify-content: center; }
.about__pdf .btn { gap: 10px; }
@media (max-width: 640px) {
  .about__prose { font-size: 15px; margin-top: 24px; text-align: left; }
}

/* Value card without the icon (title + description only) */
.value-card--no-icon .value-card__icon { display: none; }
.value-card--no-icon { padding-top: 32px; }

/* =========================================================
   About section: journey strip + two-column grid
   ========================================================= */
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 8px 0 48px;
  padding: 0;
  position: relative;
}
/* Connecting line behind the steps */
.journey::before {
  content: '';
  position: absolute;
  left: 12.5%; right: 12.5%;
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary-light), var(--brand-primary), var(--brand-primary-light));
  z-index: 0;
}
.journey__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.journey__num {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(49,152,197,0.18);
  margin-bottom: 14px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.journey__step:hover .journey__num {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-3px);
}
.journey__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.4;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-grid__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 28px 28px 32px;
  border-left: 4px solid var(--brand-primary);
  background: linear-gradient(180deg, var(--surface-soft), white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.about-grid__tagline {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  margin-bottom: 24px;
}
.about-grid__facts {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
}
.about-grid__facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-strong);
}
.about-grid__facts li:last-child { border-bottom: none; padding-bottom: 0; }
.about-grid__facts strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-primary);
  min-width: 74px;
  letter-spacing: -0.02em;
}
.about-grid__facts span {
  font-size: 14px;
  color: var(--text-secondary);
}
.about-grid__pdf { width: 100%; justify-content: center; gap: 10px; }

.about-grid__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}
.about-grid__body p { margin-bottom: 20px; }
.about-grid__lead {
  font-size: 19px;
  font-weight: 500;
  color: var(--brand-navy);
  padding-left: 20px;
  border-left: 3px solid var(--brand-accent);
}
.about-grid__values {
  max-width: none;
  margin: 32px 0 0;
  gap: 20px;
}
.about-grid__values .value-card { padding: 24px 22px; }
.about-grid__values .value-card__title { font-size: 18px; }
.about-grid__values .value-card__desc { font-size: 15px; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid__aside { position: static; }
}
@media (max-width: 768px) {
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 24px; margin-bottom: 32px; }
  .journey::before { display: none; }
  .journey__num { width: 44px; height: 44px; font-size: 13px; margin-bottom: 10px; }
  .journey__label { font-size: 13px; }
  .about-grid__aside { padding: 22px 20px 22px 24px; }
  .about-grid__tagline { font-size: 17px; }
  .about-grid__facts strong { font-size: 24px; min-width: 64px; }
  .about-grid__body { font-size: 15px; }
  .about-grid__lead { font-size: 16px; }
}

/* =========================================================
   Full-spectrum band (dark, distinct from neighbours)
   ========================================================= */
.spectrum {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(49,152,197,0.35), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(245,166,35,0.18), transparent 50%),
    linear-gradient(135deg, var(--brand-navy) 0%, #143a5e 55%, var(--brand-primary-dark) 100%);
  color: white;
}
.spectrum__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.spectrum__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.spectrum__head .section__eyebrow {
  color: #7BC5DE;
  letter-spacing: 0.18em;
}
.spectrum__head .section__title {
  color: white;
  font-size: 30px;
  line-height: 1.2;
  margin: 10px 0 24px;
  letter-spacing: 0.01em;
}
.spectrum__areas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.spectrum__areas li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}
.spectrum__body {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.90);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.spectrum__body p { margin-bottom: 22px; }
.spectrum__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: white;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.spectrum__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
@media (max-width: 900px) {
  .spectrum__inner { grid-template-columns: 1fr; gap: 28px; }
  .spectrum__head .section__title { font-size: 26px; }
  .spectrum__body { padding: 24px 22px; font-size: 15px; }
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.values--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.values--two .value-card { padding: 40px 32px; }
.values--two .value-card__title { font-size: 22px; }
.values--two .value-card__desc { font-size: 16px; line-height: 1.6; }
.value-card {
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}
.value-card__icon {
  width: 52px; height: 52px;
  background: var(--brand-primary-light);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--brand-primary);
}
.value-card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.value-card__title {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-navy);
}
.value-card__desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}

.carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 20px 0;
}
.carousel__track {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel__slide {
  flex: 0 0 320px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carousel__slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.carousel__slide-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.carousel__logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--brand-primary-light);
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  color: var(--brand-primary-dark);
  flex-shrink: 0;
}
.carousel__partner-name { font-weight: 700; font-size: 16px; color: var(--brand-navy); }
.carousel__partner-cat {
  font-size: 12px; color: var(--brand-primary);
  font-weight: 600;
  margin-top: 2px;
}
.carousel__slide-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 66px;
}
.carousel__slide-cta {
  font-size: 13px; font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.carousel__slide-cta:hover { gap: 8px; }

.carousel__nav {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 32px;
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--brand-navy);
  transition: all var(--transition);
}
.carousel__btn:hover:not(:disabled) {
  background: var(--brand-primary); color: white; border-color: var(--brand-primary);
}
.carousel__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel__btn svg { width: 18px; height: 18px; }

.partners-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  align-items: center;
}
.search-box {
  flex: 1; min-width: 260px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition);
}
.search-box input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus);
}
.search-box svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-chip {
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.filter-chip.active {
  background: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
}
.filter-chip .count {
  font-size: 11px;
  padding: 1px 7px;
  background: var(--surface-tint);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 700;
}
.filter-chip.active .count { background: rgba(255,255,255,0.2); color: white; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.partner-card {
  padding: 28px 24px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
  text-align: center;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}
.partner-card__header {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.partner-card__header .p-logo {
  margin: 0 auto;
}
.partner-card__logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-primary-light);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  color: var(--brand-primary-dark);
  flex-shrink: 0;
}
.partner-card__name {
  font-weight: 700; font-size: 16px;
  color: var(--brand-navy);
  line-height: 1.3;
}
.partner-card__category {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: 3px;
}
.partner-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  text-align: left;
  min-height: 66px;
}
.partner-card__services-wrap {
  flex-grow: 1;
  margin-bottom: 16px;
  text-align: left;
}
.partner-card__services { text-align: left; }
.partner-card__services > li { text-align: left; }
.partner-card__footer {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.partner-card__link {
  font-size: 12px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 4px;
}
.partner-card__link--pdf {
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
}
.partner-card__link--pdf:hover { background: var(--brand-primary); color: white; }
.partner-card__link--web {
  color: var(--text-secondary);
}
.partner-card__link--web:hover { color: var(--brand-primary); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.process-step {
  counter-increment: step;
  position: relative;
}
.process-step__num {
  font-size: 60px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}
.process-step__num::before {
  content: "0" counter(step);
}
.process-step__title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
  color: white;
}
.process-step__desc {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.cta-band {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  text-align: center;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-band__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-band__sub {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}
.cta-band__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cta-band .btn--primary {
  background: white; color: var(--brand-primary-dark);
}
.cta-band .btn--primary:hover { background: #f5f5f5; }
.cta-band .btn--outline {
  border-color: rgba(255,255,255,0.4); color: white;
}
.cta-band .btn--outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.footer {
  padding: 60px 0 32px;
  background: var(--brand-navy);
  color: rgba(255,255,255,0.75);
}
.footer--minimal { padding: 32px 0; }
.footer__minimal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer__copyright { color: rgba(255,255,255,0.7); }
.footer__policies { display: flex; gap: 24px; }
.footer__policies a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 200ms;
}
.footer__policies a:hover { color: white; text-decoration: underline; }
@media (max-width: 640px) {
  .footer__minimal-row { flex-direction: column; text-align: center; }
  .footer__policies { justify-content: center; }
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__grid--slim {
  grid-template-columns: 2fr 1fr;
  max-width: 720px;
}
.footer__brand-title {
  color: white; font-weight: 800; font-size: 20px;
  margin-bottom: 12px;
}
.footer__brand-desc {
  font-size: 14px; line-height: 1.65;
  margin-bottom: 20px;
  max-width: 360px;
}
.footer__socials { display: flex; gap: 8px; }
.footer__social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: grid; place-items: center;
  transition: all var(--transition);
}
.footer__social:hover { background: var(--brand-primary); }
.footer__social svg { width: 16px; height: 16px; fill: white; }

.footer__col-title {
  color: white; font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__list a:hover { color: var(--brand-primary); }

.footer__bottom {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.chatbot-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(49,152,197,0.4);
  display: grid; place-items: center;
  transition: transform var(--transition);
  animation: floatIn 0.6s ease-out;
}
@keyframes floatIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chatbot-fab:hover { transform: scale(1.06); }
body:has(.cookie-banner.show) .chatbot-fab { bottom: calc(var(--cookie-banner-h, 0px) + 32px); }
.chatbot-fab svg { width: 26px; height: 26px; fill: white; }
.chatbot-fab__badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--brand-accent);
  color: white;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid white;
}

.chatbot {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 210;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 48px);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15,42,68,0.25);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chatbot.open { display: flex; }

.chatbot__header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  display: flex; align-items: center; gap: 12px;
}
.chatbot__avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: grid; place-items: center;
}
.chatbot__avatar svg { width: 22px; height: 22px; fill: white; }
.chatbot__title { font-weight: 700; font-size: 15px; }
.chatbot__status {
  font-size: 12px; opacity: 0.9;
  display: flex; align-items: center; gap: 6px;
}
.chatbot__status .dot {
  width: 6px; height: 6px;
  background: #4CD964;
  border-radius: 50%;
}
.chatbot__close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: white;
  display: grid; place-items: center;
  transition: background var(--transition);
}
.chatbot__close:hover { background: rgba(255,255,255,0.15); }
.chatbot__close svg { width: 18px; height: 18px; stroke: white; fill: none; }

.chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.chatbot__body::-webkit-scrollbar { width: 6px; }
.chatbot__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  animation: msgIn 0.3s ease-out;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--bot {
  align-self: flex-start;
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg--user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg--bot strong { color: var(--brand-navy); font-weight: 700; }
.msg--bot em { font-style: italic; color: var(--text-primary); }
.msg--bot a { color: var(--brand-primary); text-decoration: underline; font-weight: 600; word-break: break-word; }
.msg--bot a:hover { color: var(--brand-primary-dark); }
.msg--bot ul, .msg--bot ol { margin: 8px 0 8px 22px; padding: 0; }
.msg--bot ul li, .msg--bot ol li { margin: 4px 0; line-height: 1.5; }
.msg--bot ul { list-style: disc outside; }
.msg--bot ol { list-style: decimal outside; }
.msg--bot code { background: #eef3f8; padding: 1px 5px; border-radius: 3px; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--brand-navy); }
.msg--bot pre { background: #eef3f8; padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 8px 0; font-size: 12px; }
.msg--bot pre code { background: transparent; padding: 0; }
.msg__sources {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.msg__sources strong { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.msg__sources a {
  display: inline-block;
  margin-right: 8px;
  color: var(--brand-primary);
}
.msg__typing {
  display: inline-flex; gap: 4px;
  padding: 4px 0;
}
.msg__typing span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.msg__typing span:nth-child(2) { animation-delay: 0.2s; }
.msg__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chatbot__suggestions {
  padding: 12px 20px 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chatbot__suggestion {
  padding: 7px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.chatbot__suggestion:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary);
}

.chatbot__input {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 8px;
}
.chatbot__input textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  max-height: 100px;
  min-height: 40px;
  background: var(--surface-soft);
  transition: all var(--transition);
}
.chatbot__input textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: white;
}
.chatbot__send {
  width: 40px; height: 40px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chatbot__send:hover:not(:disabled) { background: var(--brand-primary-dark); }
.chatbot__send:disabled { opacity: 0.5; cursor: not-allowed; }
.chatbot__send svg { width: 18px; height: 18px; fill: white; }

.chatbot__lang {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px;
  font-size: 12px;
  padding: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}
.chatbot__lang button {
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-size: 11px; font-weight: 600;
  transition: all var(--transition);
}
.chatbot__lang button.active { background: white; color: var(--brand-primary-dark); }

.chatbot__disclaimer {
  padding: 8px 20px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  background: white;
  border-top: 1px solid var(--border);
}

.logo__img { height: 44px; width: auto; display: block; }
.logo__img-fallback {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--brand-navy);
}

/* Partner logo cell inside cards */
.p-logo {
  width: 176px; height: 176px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
}
/* Shimmer placeholder shown while the logo image is loading */
.p-logo:not(.p-logo--loaded)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f4f8 0%, #e6edf3 40%, #f0f4f8 80%);
  background-size: 200% 100%;
  animation: p-logo-shimmer 1.4s ease-in-out infinite;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
.p-logo img, .p-logo .p-logo-fallback {
  position: relative;
  z-index: 1;
}
/* Hide shimmer immediately if there's no img (fallback initial letters shown) */
.p-logo:has(> .p-logo-fallback)::before { display: none; }
@keyframes p-logo-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 640px) {
  .p-logo { width: 140px; height: 140px; padding: 12px; border-radius: 14px; }
}
.p-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.p-logo-fallback {
  width: 100%; height: 100%;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 38px;
  color: white;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3198C5, #1F6A8E);
}
.p-logo-fallback[data-cat="legal"]       { background: linear-gradient(135deg, #0F2A44, #1a3a5c); }
.p-logo-fallback[data-cat="consulting"]  { background: linear-gradient(135deg, #6B4E9E, #4A3672); }
.p-logo-fallback[data-cat="realestate"]  { background: linear-gradient(135deg, #2E7D5B, #1e5e42); }
.p-logo-fallback[data-cat="hr"]          { background: linear-gradient(135deg, #E67E22, #C55A11); }
.p-logo-fallback[data-cat="coworking"]   { background: linear-gradient(135deg, #16A085, #0e7565); }
.p-logo-fallback[data-cat="tech"]        { background: linear-gradient(135deg, #3198C5, #1F6A8E); }
.p-logo-fallback[data-cat="marketing"]   { background: linear-gradient(135deg, #C0397B, #8f2758); }
.p-logo-fallback[data-cat="immigration"] { background: linear-gradient(135deg, #B03A2E, #7d2820); }
.p-logo-fallback[data-cat="insurance"]   { background: linear-gradient(135deg, #B7950B, #8a6f08); }
.p-logo-fallback[data-cat="energy"]      { background: linear-gradient(135deg, #7D8C3E, #5a662d); }

/* Larger variant for detail pages and new-partner cards */
.p-logo--lg {
  width: 96px; height: 96px;
  border-radius: 16px;
  padding: 12px;
}
.p-logo--xl {
  width: 128px; height: 128px;
  border-radius: 20px;
  padding: 16px;
}
.p-logo--sm { width: 40px; height: 40px; padding: 4px; }
.p-logo--sm .p-logo-fallback { font-size: 13px; }

/* Hero rotation */
.hero__card--main { transition: opacity 400ms ease, transform 400ms ease; }
.hero__card--main.fade-out { opacity: 0; transform: rotate(-2deg) translateY(-8px); }
.hero__card--main.fade-in { opacity: 1; transform: rotate(-2deg) translateY(0); }
.hero__card-avatar-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  padding: 4px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__card-avatar-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Captcha */
.captcha-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-soft);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.captcha-question {
  flex-shrink: 0; white-space: nowrap;
  font-size: 15px; font-weight: 600;
  color: var(--brand-navy);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  user-select: none;
  padding: 6px 10px;
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
}
.captcha-refresh {
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: grid; place-items: center;
  transition: color 200ms;
}
.captcha-refresh:hover { color: var(--brand-primary); }
.captcha-refresh svg { width: 16px; height: 16px; }
.captcha-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  flex: 1 1 90px; min-width: 70px; max-width: 160px;
}
.captcha-input:focus { outline: none; border-color: var(--brand-primary); }

/* Admin trigger + modal */
.admin-trigger {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 190;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 8px;
  display: grid; place-items: center;
  opacity: 0.35;
  transition: all 200ms;
}
.admin-trigger:hover { opacity: 1; background: white; border-color: var(--border); color: var(--brand-navy); }
.admin-trigger svg { width: 18px; height: 18px; }

.admin-overlay {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(15, 42, 68, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-overlay.open { display: flex; }
.admin-panel {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.admin-header {
  padding: 18px 24px;
  background: var(--brand-navy);
  color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-title { font-weight: 700; font-size: 17px; }
.admin-close {
  color: white;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: background 200ms;
}
.admin-close:hover { background: rgba(255,255,255,0.15); }
.admin-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.admin-login {
  max-width: 340px;
  margin: 20px auto;
  text-align: center;
}
.admin-login h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brand-navy);
}
.admin-login p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.admin-login input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--surface-soft);
  margin-bottom: 12px;
}
.admin-login input:focus { outline: none; border-color: var(--brand-primary); background: white; }
.admin-login .btn { width: 100%; }
.admin-login .error-msg {
  color: #E74C3C;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-toolbar input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-soft);
}
.admin-table td { vertical-align: middle; }
.admin-table tr:hover { background: var(--surface-soft); }
.admin-cat-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.admin-actions { display: flex; gap: 6px; }
.admin-btn-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: grid; place-items: center;
  transition: all 200ms;
}
.admin-btn-icon:hover { background: var(--brand-primary-light); color: var(--brand-primary); }
.admin-btn-icon.danger:hover { background: #FEE; color: #E74C3C; }
.admin-btn-icon svg { width: 14px; height: 14px; }

.admin-form {
  display: none;
  padding: 20px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.admin-form.open { display: block; }
.admin-form h3 { font-size: 15px; color: var(--brand-navy); margin-bottom: 14px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.admin-form label { font-size: 12px; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  font-family: inherit;
}
.admin-form textarea { resize: vertical; min-height: 60px; }
.admin-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

@media (max-width: 768px) {
  .admin-panel { max-height: 96vh; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .admin-table { font-size: 12px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}

/* Partner services list in card preview - top-level only, sub-count as small badge */
.partner-card__services {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex-grow: 1;
}
.partner-card__services > li {
  position: relative;
  padding: 4px 0 4px 18px;
  /* Keep cards even: long service texts are clamped to 3 lines in the preview (full text on the partner page) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.partner-card__services > li.more-services { display: block; }
.partner-card__header { margin-bottom: 18px; }
.partner-card__services > li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  opacity: 0.7;
}
.partner-card__services .sub-count {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 11px;
  margin-left: 4px;
}
.partner-card__services .more-services {
  padding-left: 0;
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  font-size: 12px;
}
.partner-card__services .more-services::before { display: none; }
.partner-card__services .more-services:hover { color: var(--brand-primary-dark); text-decoration: underline; }

.partner-card__name-link {
  color: inherit;
  text-decoration: none;
}
.partner-card__name-link:hover .partner-card__name {
  color: var(--brand-primary);
}
.partner-card__link--details {
  background: var(--brand-primary);
  color: white !important;
  border-color: var(--brand-primary) !important;
}
.partner-card__link--details:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark) !important;
}

/* Services modal */
.services-modal {
  position: fixed; inset: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.services-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 42, 68, 0.55);
  backdrop-filter: blur(4px);
}
.services-modal__panel {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.services-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.services-modal__header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}
.services-modal__header button {
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: background 200ms;
}
.services-modal__header button:hover { background: var(--surface-soft); }
.services-modal__list {
  list-style: none;
  padding: 20px 24px;
  overflow-y: auto;
  margin: 0;
}
.services-modal__list > li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.services-modal__list > li:last-child { border-bottom: none; }
.services-modal__list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
}
.services-modal__list ul {
  list-style: none;
  padding: 6px 0 0 0;
  margin: 0;
}
.services-modal__list ul li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.services-modal__list ul li::before {
  content: "-";
  position: absolute;
  left: 0; top: 4px;
  color: var(--brand-primary);
  font-weight: 700;
}

/* New partners section */
.new-partners {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--surface-page) 0%, var(--surface-soft) 100%);
}
.new-partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.new-partner-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.new-partner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}
.new-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}
.new-partner-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--brand-accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.new-partner-card__logo {
  width: 72px; height: 72px;
  margin-bottom: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  display: grid; place-items: center;
  overflow: hidden;
}
.new-partner-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.new-partner-card__logo .p-logo-fallback {
  font-size: 18px;
}
.new-partner-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.new-partner-card__cat {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.new-partner-card__date {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.new-partner-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* FAQ section */
.faq {
  padding: 100px 0;
}
.faq__list {
  max-width: 820px;
  margin: 40px auto 0;
}
.faq__item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq__item[open] {
  border-color: var(--brand-primary-light);
  box-shadow: var(--shadow-sm);
}
.faq__question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233198C5' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq__item[open] .faq__question::after { transform: rotate(180deg); }
.faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .new-partners__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .new-partners__grid { grid-template-columns: 1fr; }
  .faq { padding: 60px 0; }
  .new-partners { padding: 60px 0; }
}

/* Partner detail page */
.partner-detail-section {
  padding: 28px 0 100px;
  background: var(--surface-page);
  min-height: calc(100vh - 200px);
}
.partner-detail__breadcrumb {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.partner-detail__breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
}
.partner-detail__breadcrumb a:hover { text-decoration: underline; }
.partner-detail__breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}
.partner-detail__header {
  display: grid;
  /* Logo column ~1/3 (max 360px), text column fills the rest */
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.partner-detail__intro { min-width: 0; }
/* Large logo on partner detail page - fills its grid column (up to 360px) */
.partner-detail__header .p-logo.p-logo--xl {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 28px;
  border-radius: 24px;
  max-width: 360px;
  justify-self: center;
}
.partner-detail__header .p-logo.p-logo--xl .p-logo-fallback {
  font-size: 72px;
  border-radius: 18px;
}
.partner-detail__category {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.partner-detail__title {
  font-size: 40px;
  color: var(--brand-navy);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.partner-detail__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 640px;
}
.partner-detail__joined {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.partner-detail__joined strong { color: var(--brand-navy); }
.partner-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.partner-detail__section-title {
  font-size: 24px;
  color: var(--brand-navy);
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}
.partner-detail__services {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
}
.pd-services {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  text-align: left;
}
.pd-service-item {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: left;
}
.pd-service-item:last-child { border-bottom: none; }
.pd-service-item::before {
  content: "";
  position: absolute;
  left: 4px; top: 20px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.pd-service-item strong {
  display: block;
  color: var(--brand-navy);
  margin-bottom: 4px;
  font-weight: 600;
}
.pd-subservices {
  list-style: none;
  padding: 6px 0 0 0;
  margin: 4px 0 0 0;
}
.pd-subservices li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pd-subservices li::before {
  content: "-";
  position: absolute;
  left: 0; top: 4px;
  color: var(--brand-primary);
  font-weight: 700;
}
.partner-detail__cta {
  background: linear-gradient(135deg, var(--brand-navy), #1a3a5c);
  color: white;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.partner-detail__cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.partner-detail__cta p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}
.partner-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.partner-detail__back:hover { color: var(--brand-primary-dark); }

@media (max-width: 780px) {
  .partner-detail__header {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    align-items: center;
  }
  .partner-detail__header .p-logo.p-logo--xl {
    max-width: 220px;
    padding: 22px;
  }
  .partner-detail__intro { text-align: center; }
  .partner-detail__desc { margin-left: auto; margin-right: auto; }
  .partner-detail__actions { justify-content: center; }
  .partner-detail__title { font-size: 30px; }
  .partner-detail__services { padding: 24px; }
  .partner-detail__cta { flex-direction: column; align-items: flex-start; padding: 28px; text-align: left; }
}

/* CONTACT-related old comment stripped */
.contact-section {
  padding: 100px 0;
  background: var(--surface-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-form { max-width: 100%; }
.contact-info__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-info__desc {
  font-size: 17px; line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.contact-info__list { list-style: none; }
.contact-info__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon {
  width: 40px; height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.contact-info__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-info__label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-info__value { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.contact-info__value a:hover { color: var(--brand-primary); }

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 6px;
}
.form-label .required { color: var(--brand-accent); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: white;
  box-shadow: var(--shadow-focus);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #E74C3C;
  background: #FEF2F2;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error {
  display: none;
  font-size: 12px;
  color: #E74C3C;
  margin-top: 4px;
}
.form-error.show { display: block; }

/* Partner-context banner in the contact form */
.form-partner-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--brand-primary-light);
  border: 1px solid var(--brand-primary);
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}
.form-partner-banner svg {
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.form-partner-banner strong { display: block; color: var(--brand-navy); font-size: 14px; }

.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 16px 0 20px;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-consent a { color: var(--brand-primary); text-decoration: underline; }
.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--brand-primary);
  color: white;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover:not(:disabled) {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.form-submit:disabled { opacity: 0.7; cursor: wait; }
.form-success {
  display: none;
  padding: 32px 24px;
  text-align: center;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-md);
}
.form-success.show { display: block; }
.form-success__icon {
  width: 56px; height: 56px;
  background: #22C55E;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.form-success__icon svg { width: 30px; height: 30px; stroke: white; fill: none; stroke-width: 3; }
.form-success__title {
  font-size: 18px; font-weight: 700; color: #14532D;
  margin-bottom: 6px;
}
.form-success__desc {
  font-size: 14px; color: #15803D;
}

/* Cookie banner - compact bottom bar, InvestSofia style */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px;
  z-index: 300;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,42,68,0.12);
  padding: 16px 20px;
  display: none;
  max-width: 460px;
  animation: slideUpBanner 0.35s ease-out;
}
.cookie-banner.show { display: block; }
@keyframes slideUpBanner {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.cookie-banner__text a { color: var(--brand-primary); text-decoration: underline; }
.cookie-banner__actions {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}
.cookie-banner__actions .btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cookie-banner__actions .btn--ghost:hover {
  background: var(--surface-soft);
  color: var(--brand-navy);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed; inset: 0;
  z-index: 600;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 42, 68, 0.55);
  backdrop-filter: blur(4px);
}
.cookie-modal__panel {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.cookie-modal__header {
  padding: 24px 28px 16px;
}
.cookie-modal__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 6px;
}
.cookie-modal__header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.cookie-modal__body {
  padding: 8px 28px 20px;
  overflow-y: auto;
}
.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat__label {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.cookie-cat__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-cat__toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 24px;
  background: #d0d7de;
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms;
  border: none;
  padding: 0;
}
.cookie-cat__toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-cat__toggle.on {
  background: var(--brand-primary);
}
.cookie-cat__toggle.on::after {
  transform: translateX(20px);
}
.cookie-cat__toggle.locked {
  background: #b8c3cf;
  cursor: not-allowed;
  opacity: 0.75;
}
.cookie-cat__toggle.locked::after { transform: translateX(20px); }
.cookie-modal__footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.cookie-modal__footer .btn { padding: 10px 20px; font-size: 14px; }

@media (max-width: 520px) {
  .cookie-banner {
    left: 12px; right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 14px 16px;
  }
  .cookie-modal__header, .cookie-modal__body, .cookie-modal__footer { padding-left: 20px; padding-right: 20px; }
  .cookie-modal__footer { flex-direction: column-reverse; }
  .cookie-modal__footer .btn { width: 100%; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 500px; margin: 0 auto; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* =========================================================
   Tablet (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
}

/* =========================================================
   Mobile (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* ----- Container: tighter sides on mobile ----- */
  .container { padding: 0 16px; }

  /* ----- Section/hero paddings: 44px, not 60px, saves scroll ----- */
  .section { padding: 44px 0; }
  .section__header { margin-bottom: 28px; }
  .hero { padding: 32px 0 48px; min-height: auto; }

  /* ----- Header: compact + burger menu ----- */
  .header { padding: 10px 0; }
  .header__inner { gap: 8px; }
  .burger { display: flex; }
  .header__cta { gap: 8px; }
  /* Burger stays always visible, other CTA items hide until menu opens */
  .nav,
  .header__cta .btn:not(.burger),
  .header__cta .lang-switch { display: none; }

  /* ----- Mobile menu open state ----- */
  .header.is-mobile-open .nav,
  .header.is-mobile-open .header__cta .btn:not(.burger),
  .header.is-mobile-open .header__cta .lang-switch { display: flex; }
  .header.is-mobile-open .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .header.is-mobile-open .nav .nav__item {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .header.is-mobile-open .nav .nav__item:last-child { border-bottom: none; }
  .header.is-mobile-open .header__cta {
    position: absolute;
    top: 100%; left: 0; right: 0;
    transform: translateY(100%);
    background: white;
    padding: 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(15,42,68,0.12);
    z-index: 99;
  }
  .header.is-mobile-open .header__cta .btn:not(.burger) {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
  .header.is-mobile-open .header__cta .lang-switch {
    display: inline-flex;
    align-self: center;
  }
  .burger { position: relative; z-index: 101; }

  /* ----- Hero ----- */
  .hero__title { font-size: 34px; line-height: 1.15; }
  .hero__subtitle { font-size: 16px; }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; text-align: left; padding: 20px; }
  .hero__stat { display: flex; align-items: baseline; gap: 12px; }
  .hero__stat-num { font-size: 24px; }
  .hero__card--floating { position: static; margin-top: 20px; transform: none; width: 100%; }
  .hero__card--main { transform: none; }

  /* ----- Section titles ----- */
  .section__title { font-size: 26px; line-height: 1.2; }
  .section__tagline { font-size: 13px; letter-spacing: 0.1em; }

  /* ----- Grids ----- */
  .values { grid-template-columns: 1fr; gap: 16px; }
  .values--two { gap: 16px; }
  .values--two .value-card { padding: 24px 20px; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* ----- Partners directory ----- */
  .partners-tools { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .partners-grid { grid-template-columns: 1fr; gap: 16px; }
  .partner-card { padding: 24px 20px; }
  /* Larger text on card action links so they're readable + tappable */
  .partner-card__link { font-size: 13px; padding: 10px 14px; }
  .partner-card__link svg { width: 14px; height: 14px; }

  /* Filter chips - taller for a 44px tap target */
  .filter-chip { padding: 10px 16px; font-size: 14px; }

  /* ----- Services / "more" link ----- */
  .partner-card__services .more-services { font-size: 13px; padding-top: 8px; }

  /* ----- Carousel: match mobile container padding so no overflow ----- */
  .carousel { margin: 0 -16px; }
  .carousel__track { padding: 0 16px; }
  .carousel__slide { flex: 0 0 280px; padding: 22px; }

  /* ----- CTA bands ----- */
  .cta-band { padding: 44px 24px; border-radius: var(--radius-lg); }

  /* ----- Contact ----- */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-section { padding: 44px 0; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* ----- Cookie banner ----- */
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }

  /* ----- Chatbot: use CSS env() for iOS/Android safe area ----- */
  .chatbot {
    width: calc(100vw - 16px);
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    max-height: none;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 8px;
    border-radius: var(--radius-md);
  }
  .chatbot-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 54px;
    height: 54px;
  }
  /* When cookie banner is showing at the bottom, lift the chatbot FAB above it */
  body:has(.cookie-banner.show) .chatbot-fab {
    bottom: calc(var(--cookie-banner-h, 120px) + 28px + env(safe-area-inset-bottom, 0px));
  }
}

/* Keep form inputs at ≥16px on touch screens so iOS Safari does not
   auto-zoom when the user focuses the field. */
@media (max-width: 768px) {
  .form-input, .form-select, .form-textarea, .captcha-input {
    font-size: 16px;
  }
}

/* =========================================================
   Very small phones (≤ 400px)
   ========================================================= */
@media (max-width: 400px) {
  .hero__title { font-size: 30px; }
  .section__title { font-size: 22px; }
  .partner-detail__title { font-size: 26px !important; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn--large { padding: 14px 24px; font-size: 15px; }
  .partner-detail__services { padding: 20px 16px !important; }
  .partner-detail__cta { padding: 22px !important; }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
/* =========================================================
   Mobile refinements (≤ 768px): new-partner cards, carousel swipe, chat
   ========================================================= */
@media (max-width: 768px) {
  /* "Последни партньорства": bigger logo, centred, roomier card */
  .new-partners__grid { grid-template-columns: 1fr; gap: 14px; }
  .new-partner-card { text-align: center; padding: 28px 20px 24px; }
  .new-partner-card__logo { width: 120px; height: 120px; margin: 6px auto 16px; padding: 14px; border-radius: 16px; }
  .new-partner-card__badge { left: 50%; transform: translateX(-50%); }
  .new-partner-card__name { font-size: 18px; }
  .new-partner-card__desc { font-size: 14px; }

  /* Carousel: native horizontal scroll with snap, so it can be swiped */
  .carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel__track { transform: none !important; transition: none; }
  .carousel__slide { scroll-snap-align: start; scroll-snap-stop: always; }
  .carousel__track { padding-right: 16px; }

  /* Chat: full-screen sheet so nothing is cut off on any phone */
  .chatbot {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    bottom: auto; right: auto;
    animation: none;
    border-radius: 0;
    border: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .chatbot__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .chatbot__input textarea,
  #chat-input { font-size: 16px; }   /* ≥16px = no auto-zoom on iOS */
  .chatbot__close { width: 44px; height: 44px; }
  /* Hide the FAB while the chat sheet is open */
  body:has(.chatbot.open) .chatbot-fab { display: none; }
  body.chat-open { overflow: hidden; }
}

/* Hero: equal-width buttons on phones */
@media (max-width: 768px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .new-partner-card { padding-top: 24px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .hero__actions { grid-template-columns: 1fr 1fr; }
}

/* Chat on phones: compact, keyboard-aware layout */
@media (max-width: 768px) {
  .chatbot__header { padding: 12px 14px; min-height: 60px; }
  .chatbot__title { font-size: 15px; line-height: 1.2; }
  .chatbot__body { padding: 14px 12px; }
  .chatbot__suggestions {
    padding: 8px 12px 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .chatbot__suggestions::-webkit-scrollbar { display: none; }
  .chatbot__suggestion { flex: 0 0 auto; white-space: nowrap; font-size: 13px; padding: 8px 12px; }
  .chatbot__input { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .chatbot__input textarea { max-height: 110px; }
  /* Page locked behind the open chat (iOS ignores overflow:hidden alone) */
  body.chat-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  /* Height follows the visual viewport (set from JS) so the input stays above the keyboard */
  .chatbot.open { height: var(--chat-vh, 100dvh); top: var(--chat-top, 0px); }
}

@media (max-width: 768px) {
  .partner-detail-section { padding-top: 16px; }
}
/* Clickable logo / name on partner cards */
.partner-card__logo-link, .carousel__partner-link, .new-partner-card__link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.partner-card__logo-link:hover .p-logo, .new-partner-card__link:hover .new-partner-card__logo { border-color: var(--brand-primary); }
.carousel__partner-link:hover .carousel__partner-name, .new-partner-card__link:hover .new-partner-card__name { color: var(--brand-primary); }
