/*
Theme Name: Шаблон БГБСМП
Theme URI: https://bgbsmp.by
Author: t.me/etyapp
Author URI: https://t.me/etyapp
Description: Официальный шаблон сайта БГБСМП с адаптивной компоновкой, версией для слабовидящих и редактируемым содержимым.
Version: 1.19.41
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bgbsmp-theme
*/


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  letter-spacing: -0.006em;
}

.translucent-surface {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: 0 8px 32px rgba(52, 67, 87, 0.09);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}
.dark .glass-card {
  background: rgba(15, 23, 42, 0.92);
}

.translucent-menu {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px) saturate(135%);
  -webkit-backdrop-filter: blur(30px) saturate(135%);
}

.rounded-panel { border-radius: 24px; }
.rounded-panel-large { border-radius: 32px; }

.dark .translucent-surface,
.dark .translucent-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.75);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
}

@keyframes scrollRibbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: scrollRibbon 45s linear infinite;
}

.ribbon-track:hover { animation-play-state: paused; }

#mobile-menu { padding: 0; }
#mobile-drawer {
  transform-origin: top center;
  animation: mobileDropdownIn 180ms ease-out both;
  border: 1px solid rgba(52, 67, 87, 0.12);
  border-top: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(32, 50, 70, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark #mobile-drawer { border-color: rgba(148, 163, 184, 0.18); background: rgba(15, 23, 42, 0.94); border-top: 0; }
header.mobile-menu-open > .translucent-surface { border-bottom-color: transparent; border-bottom-right-radius: 0; border-bottom-left-radius: 0; box-shadow: 0 4px 14px rgba(32,50,70,.06); }
header.mobile-menu-open #mobile-menu-trigger { background: #3ca6d4 !important; color: #fff !important; }
header.mobile-menu-open #mobile-menu-trigger .fa-bars::before { content: "\f00d"; }
@keyframes mobileDropdownIn { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

body.accessible-large { font-size: 118%; }
body.accessible-xlarge { font-size: 136%; }
body.accessible-contrast { background: #000 !important; color: #fff !important; }
body.accessible-yellow { background: #000 !important; color: #ff0 !important; }


.font-black,
.font-extrabold {
  font-weight: 600 !important;
}

.font-bold,
.font-semibold {
  font-weight: 600 !important;
}

.font-medium {
  font-weight: 500 !important;
}

main h1,
main h2 {
  font-weight: 600 !important;
  letter-spacing: -0.025em;
}

main h3,
main h4 {
  font-weight: 600 !important;
  letter-spacing: -0.012em;
}


.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(254, 111, 35, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 245, 239, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(52, 67, 87, 0.05);
  color: #cf5718;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.dark .section-eyebrow {
  border-color: rgba(254, 111, 35, 0.25);
  background: rgba(94, 50, 28, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ff9b65;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(254, 111, 35, 0.18);
  border-radius: 0.65rem;
  background: rgba(254, 111, 35, 0.09);
  color: #cf5718;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.15;
}

.dark .category-badge {
  border-color: rgba(254, 111, 35, 0.25);
  background: rgba(254, 111, 35, 0.14);
  color: #ff9b65;
}

.hero-slide-backdrop,
.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-backdrop {
  z-index: 0;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(28px) saturate(115%);
  opacity: 0.72;
}

.hero-slide-image {
  z-index: 1;
  object-fit: contain;
  object-position: center;
}


img {
  max-width: 100%;
  height: auto;
}

.admin-bar header.sticky {
  top: 48px;
}

@media (min-width: 783px) {
  .admin-bar header.sticky {
    top: 52px;
  }
}

.desktop-wp-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.desktop-wp-menu > li {
  position: relative;
}

.desktop-wp-menu a {
  display: block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-wp-menu a:hover,
.desktop-wp-menu .current-menu-item > a {
  color: #3ca6d4;
}

.desktop-wp-menu > .menu-item-has-children > a::after {
  content: "\f078";
  margin-left: 0.35rem;
  font-family: "Font Awesome 6 Free";
  font-size: 0.55rem;
  font-weight: 900;
}

.desktop-wp-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  width: 15rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(32, 50, 70, 0.14);
  backdrop-filter: blur(24px);
  transition: 0.2s ease;
}

.desktop-wp-menu li:hover > .sub-menu,
.desktop-wp-menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.desktop-wp-menu .sub-menu a {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.dark .desktop-wp-menu .sub-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.96);
}

.dark .mobile-wp-menu > li > a:hover,
.dark .mobile-wp-menu .current-menu-item > a {
  background: rgba(60, 166, 212, 0.14);
  color: #6ec6e9;
}

.dark .mobile-wp-menu .sub-menu {
  border-left-color: #475569;
  color: #94a3b8;
}

.mobile-wp-menu > li > a {
  display: block;
  padding: 0.7rem 2.5rem 0.7rem 0.75rem;
  border-radius: 0.75rem;
}

.mobile-wp-menu > li > a:hover,
.mobile-wp-menu .current-menu-item > a {
  background: rgba(60, 166, 212, 0.1);
  color: #247fa8;
}

.mobile-wp-menu .menu-item-has-children {
  position: relative;
}

.mobile-wp-menu .submenu-toggle {
  position: absolute;
  top: 0.35rem;
  right: 0.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  color: #64748b;
}

.mobile-wp-menu .sub-menu {
  display: none;
  margin: 0.15rem 0 0.35rem 1rem;
  padding-left: 0.75rem;
  border-left: 1px solid #cbd5e1;
  font-weight: 500;
  color: #64748b;
}

.mobile-wp-menu .submenu-open > .sub-menu {
  display: block;
}

.mobile-wp-menu .sub-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
}

.news-article-content {
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.news-article-content > * + * {
  margin-top: 1.25rem;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  color: #1e293b;
  font-weight: 800;
  line-height: 1.25;
}

.news-article-content h2 { font-size: 1.65rem; }
.news-article-content h3 { font-size: 1.3rem; }
.news-article-content a { color: #247fa8; text-decoration: underline; }
.news-article-content ul { list-style: disc; padding-left: 1.35rem; }
.news-article-content ol { list-style: decimal; padding-left: 1.35rem; }
.news-article-content blockquote {
  border-left: 4px solid #fe6f23;
  border-radius: 0 1rem 1rem 0;
  background: rgba(254, 111, 35, 0.08);
  padding: 1rem 1.25rem;
}
.news-article-content img { border-radius: 1.25rem; }

.dark .news-article-content { color: #cbd5e1; }
.dark .news-article-content h2,
.dark .news-article-content h3,
.dark .news-article-content h4 { color: #f8fafc; }

.news-list-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(52, 67, 87, 0.035);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.news-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 67, 87, 0.08);
}

.dark .news-list-card {
  border-color: rgba(255, 255, 255, 0.06);
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 0.875rem;
  line-height: 1.4285;
}

p,
li {
  line-height: 1.55;
}

main .text-xs {
  font-size: 0.75rem !important;
  line-height: 1.3333 !important;
}

main .text-\[9px\],
main .text-\[10px\],
main .text-\[11px\] {
  font-size: 0.625rem !important;
  line-height: 1.4 !important;
}

main h1,
main h1.text-3xl,
main h1.text-4xl,
main h1.text-5xl {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

main h2.text-3xl,
main h2.text-4xl,
main h2.text-5xl {
  font-size: clamp(1.5rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.022em;
}

main h3,
main h3.text-xl,
main h3.text-2xl {
  font-weight: 600;
  line-height: 1.3333;
  letter-spacing: -0.014em;
}

main .slide h2 {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  line-height: 1.06 !important;
}

.news-article-content {
  font-size: 1rem;
  line-height: 1.6;
}

.news-article-content p,
.news-article-content li {
  line-height: 1.65;
}

.translucent-surface input[type="search"],
.translucent-menu input[type="search"] {
  min-height: 2.75rem;
}

.slider-dot,
.review-dot {
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.navigation.pagination .nav-links,
ul.page-numbers,
.post-pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation.pagination {
  display: flex;
  justify-content: center;
}

.navigation.pagination .page-numbers,
ul.page-numbers > li > .page-numbers,
.post-page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(52, 67, 87, 0.04);
  color: #526174;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.navigation.pagination a.page-numbers:hover,
ul.page-numbers > li > a.page-numbers:hover,
a.post-page-numbers:hover {
  transform: translateY(-1px);
  border-color: rgba(60, 166, 212, 0.45);
  background: #fff;
  color: #247fa8;
}

.navigation.pagination .page-numbers.current,
ul.page-numbers > li > .page-numbers.current,
.post-page-numbers.current {
  border-color: #3ca6d4;
  background: #3ca6d4;
  box-shadow: 0 6px 18px rgba(60, 166, 212, 0.2);
  color: #fff;
}

.navigation.pagination .page-numbers.dots,
ul.page-numbers > li > .page-numbers.dots {
  min-width: 1.5rem;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.navigation.pagination .prev,
.navigation.pagination .next,
ul.page-numbers > li > .prev,
ul.page-numbers > li > .next {
  padding-inline: 1rem;
}

.post-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.post-pagination-title {
  display: block;
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.dark .navigation.pagination .page-numbers,
.dark ul.page-numbers > li > .page-numbers,
.dark .post-page-numbers {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
}

.dark .navigation.pagination .page-numbers.current,
.dark ul.page-numbers > li > .page-numbers.current,
.dark .post-page-numbers.current {
  border-color: #3ca6d4;
  background: #3ca6d4;
  color: #fff;
}

.dark .navigation.pagination .page-numbers.dots,
.dark ul.page-numbers > li > .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 480px) {
  .navigation.pagination .page-numbers,
  ul.page-numbers > li > .page-numbers,
  .post-page-numbers {
    min-width: 2.25rem;
    height: 2.25rem;
    padding-inline: 0.65rem;
  }
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(var(--footer-columns), minmax(0, 1fr));
  gap: 2rem;
}

.site-footer .footer-column h4,
.site-footer .footer-widget-title,
.site-footer .widget-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.site-footer .footer-column p,
.site-footer .footer-menu,
.site-footer .footer-widget {
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.site-footer .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a:hover {
  color: #6ec6e9;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-socials a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-size: 1.125rem;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-socials a:hover {
  transform: translateY(-1px);
  background: #247fa8;
  color: #fff;
}

.site-footer .footer-widget + .footer-widget {
  margin-top: 1.5rem;
}

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

  .footer-columns-1 {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 640px) {
  body {
    font-size: 0.8125rem;
  }

  main h1,
  main h1.text-3xl,
  main h1.text-4xl,
  main h1.text-5xl {
    font-size: 1.75rem;
  }
}

/* ========== BRAND FORCED OVERRIDES (dark variant + iOS aliases) ========== */
.dark .dark\:bg-brandcyan\/20 { background-color: rgba(60, 166, 212, 0.2) !important; }
.dark .dark\:bg-brandorange\/20 { background-color: rgba(254, 111, 35, 0.2) !important; }
.dark .dark\:text-brandcyan { color: #3CA6D4 !important; }
.text-brandorange { color: #FE6F23 !important; }
.dark .dark\:text-brandorange { color: #FE6F23 !important; }
.dark .dark\:bg-amber-950\/20 { background-color: rgba(60, 166, 212, 0.2) !important; }
.dark .dark\:bg-amber-950\/70 { background-color: rgba(60, 166, 212, 0.15) !important; }
.dark .dark\:bg-amber-950 { background-color: rgba(60, 166, 212, 0.15) !important; }
.dark .dark\:bg-blue-950 { background-color: rgba(60, 166, 212, 0.15) !important; }
.dark .dark\:bg-red-950 { background-color: rgba(60, 166, 212, 0.15) !important; }
.dark .dark\:bg-red-950\/30 { background-color: rgba(60, 166, 212, 0.12) !important; }
.dark .dark\:bg-blue-950\/40 { background-color: rgba(60, 166, 212, 0.12) !important; }
.dark .dark\:bg-blue-950\/60 { background-color: rgba(60, 166, 212, 0.25) !important; }
.dark .dark\:bg-purple-950\/40 { background-color: rgba(60, 166, 212, 0.12) !important; }
.dark .dark\:text-amber-400 { color: #3CA6D4 !important; }
.dark .dark\:text-blue-400 { color: #3CA6D4 !important; }
.dark .dark\:text-red-400 { color: #3CA6D4 !important; }
.dark .dark\:text-purple-400 { color: #3CA6D4 !important; }
.dark .dark\:text-teal-400 { color: #3CA6D4 !important; }
.dark .dark\:text-emerald-400 { color: #3CA6D4 !important; }
.dark .dark\:text-sky-400 { color: #3CA6D4 !important; }
.dark .dark\:text-indigo-400 { color: #3CA6D4 !important; }
.dark .dark\:text-orange-400 { color: #3CA6D4 !important; }
.dark .dark\:border-amber-900\/30 { border-color: rgba(254, 111, 35, 0.3) !important; }

.text-ios-blue { color: #3CA6D4 !important; }
.text-ios-blue\/5 { color: rgba(60, 166, 212, 0.05) !important; }
.bg-ios-green { background-color: #3CA6D4 !important; }
.bg-ios-red { background-color: #3CA6D4 !important; }
.bg-ios-blue { background-color: #3CA6D4 !important; }
.bg-ios-blue\/5 { background-color: rgba(60, 166, 212, 0.05) !important; }
.bg-ios-blue\/10 { background-color: rgba(60, 166, 212, 0.1) !important; }
.bg-ios-blue\/20 { background-color: rgba(60, 166, 212, 0.2) !important; }
.hover\:bg-ios-blue:hover { background-color: #3CA6D4 !important; }
.hover\:bg-ios-blue\/5:hover { background-color: rgba(60, 166, 212, 0.05) !important; }
.hover\:bg-ios-blue\/10:hover { background-color: rgba(60, 166, 212, 0.1) !important; }
.hover\:text-ios-blue:hover { color: #3CA6D4 !important; }
.hover\:border-ios-blue\/20:hover { border-color: rgba(60, 166, 212, 0.2) !important; }
.group:hover .group-hover\:text-ios-blue { color: #3CA6D4 !important; }
.border-ios-blue\/20 { border-color: rgba(60, 166, 212, 0.2) !important; }
.shadow-blue-500\/10 { box-shadow: 0 4px 12px rgba(60, 166, 212, 0.1) !important; }
.shadow-blue-500\/15 { box-shadow: 0 4px 14px rgba(60, 166, 212, 0.15) !important; }
.shadow-blue-500\/20 { box-shadow: 0 4px 16px rgba(60, 166, 212, 0.2) !important; }
.ring-ios-blue\/50 { --tw-ring-color: rgba(60, 166, 212, 0.5) !important; }

/* Icon colours forced to brand cyan */
.text-red-600, .text-purple-600, .text-teal-600, .text-indigo-600,
.text-emerald-600, .text-sky-600, .text-amber-600, .text-ios-green, .text-ios-red,
.text-ios-orange, .text-amber-400, .text-yellow-400 { color: #3CA6D4 !important; }

/* Icon circle backgrounds forced to brand light */
.bg-purple-100, .bg-teal-100, .bg-indigo-100, .bg-red-100,
.bg-amber-100, .bg-emerald-100, .bg-sky-100 { background-color: #E7EEFF !important; }

/* CTA / semaphore buttons */
.bg-blue-600 { background-color: #3CA6D4 !important; }
.bg-red-600 { background-color: #FE6F23 !important; }
.hover\:bg-red-500:hover { background-color: #FE6F23 !important; }

/* Badge / label backgrounds */
.bg-red-50 { background-color: rgba(254, 111, 35, 0.15) !important; }
.bg-blue-50 { background-color: rgba(60, 166, 212, 0.12) !important; }
.bg-purple-50 { background-color: rgba(60, 166, 212, 0.12) !important; }

.rounded-lg { border-radius: 0.625rem !important; }

/* Dark mode map fix */
.dark .contacts-map { filter: invert(0.95) hue-rotate(180deg); }

/* ========== DESIGN TOKENS ========== */
:root {
  --brand-primary: #3CA6D4;
  --brand-primary-dark: #247FA8;
  --brand-ink: #344357;
  --brand-accent: #FE6F23;
  --brand-accent-text: #C84E14;
  --brand-accent-soft: rgba(254,111,35,.10);
}

body {
  background-color: #f6f9fb !important;
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(60, 166, 212, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(254, 111, 35, 0.06) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
}
.dark body {
  background-color: #0f172a !important;
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(60, 166, 212, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(254, 111, 35, 0.08) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(60,166,212,.38);
  outline-offset: 3px;
}

/* Card shadows */
main .shadow-xl, main .shadow-lg, main .shadow-md {
  box-shadow: 0 5px 20px rgba(32,50,70,.08) !important;
}
main .hover\:-translate-y-1:hover { transform: translateY(-2px); }

/* Accent surfaces via CSS variables */
.bg-amber-50 { background-color: var(--brand-accent-soft) !important; }
.text-amber-800 { color: var(--brand-accent-text) !important; }
.border-amber-100 { border-color: rgba(254,111,35,.24) !important; }
.dark .dark\:bg-amber-950\/20,
.dark .dark\:bg-amber-950\/70,
.dark .dark\:bg-amber-950 {
  background-color: rgba(254,111,35,.12) !important;
}

/* Mobile header tweaks */
@media (max-width: 767px) {
  header { top: .5rem !important; }
  main { padding-top: 2rem !important; }
  #home > .grid > div:first-child { min-height: 430px; border-radius: 24px; }
}

/* ========== TYPOGRAPHY REFINEMENTS ========== */
body, p, li {
  font-size: 0.875rem;
  line-height: 1.4285;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

main .text-sm {
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
}

@media (max-width: 480px) {
  body { font-size: 0.8125rem; }
  main h1 { font-size: 1.5rem; }
  main h2 { font-size: 1.25rem; }
  main h3 { font-size: 1.125rem; }
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  transition: border-color 0.2s;
}
.dark .faq-item { border-color: rgba(51, 65, 85, 0.5); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: #1e293b;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.dark .faq-question { color: #e2e8f0; }
.faq-question:hover { color: #3CA6D4; }
.faq-question i {
  font-size: 0.625rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: #3CA6D4;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}
.faq-answer-inner {
  padding-bottom: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
}
.dark .faq-answer-inner { color: #94a3b8; }
.faq-item.open .faq-answer {
  max-height: none;
}

.faq-search {
  position: relative;
}
.faq-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dark .faq-search input {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(51, 65, 85, 0.5);
  color: #e2e8f0;
}
.faq-search input:focus {
  border-color: #3CA6D4;
  box-shadow: 0 0 0 3px rgba(60, 166, 212, 0.15);
}
.faq-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.875rem;
}
.faq-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* FAQ form (CF7) */
.faq-form .wpcf7-form p { margin: 0 0 1rem; }
.faq-form input[type="text"],
.faq-form input[type="email"],
.faq-form textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  outline: none !important;
  font-family: inherit !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  height: auto !important;
}
.dark .faq-form input[type="text"],
.dark .faq-form input[type="email"],
.dark .faq-form textarea {
  background: rgba(30, 41, 59, 0.4) !important;
  border-color: rgba(51, 65, 85, 0.5) !important;
  color: #e2e8f0 !important;
}
.faq-form input:focus,
.faq-form textarea:focus {
  border-color: #3CA6D4 !important;
  box-shadow: 0 0 0 3px rgba(60, 166, 212, 0.15) !important;
}
.faq-form textarea { min-height: 100px !important; resize: vertical; }
.faq-form .wpcf7-submit {
  padding: 0.75rem 2rem !important;
  background: #3CA6D4 !important;
  color: white !important;
  border: none !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  width: auto !important;
}
.faq-form .wpcf7-submit:hover { background: #247FA8 !important; }
.faq-form .wpcf7-not-valid-tip { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }
.faq-form .wpcf7-response-output { font-size: 0.8125rem; margin: 0.75rem 0 0; padding: 0.75rem; border-radius: 0.75rem; border: 1px solid; }
.faq-form .wpcf7-mail-sent-ok { border-color: #16a34a; color: #16a34a; background: rgba(22, 163, 74, 0.08); }
.faq-form .wpcf7-validation-errors,
.faq-form .wpcf7-spam-blocked { border-color: #dc2626; color: #dc2626; background: rgba(220, 38, 38, 0.08); }
