:root {
  --bg: #f3f6f9;
  --bg-mesh: radial-gradient(1200px 600px at 80% -10%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(900px 500px at -5% 20%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #0ea5e9;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(15, 23, 42, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
}

body.theme-dark {
  --bg: #0f172a;
  --bg-mesh: radial-gradient(1000px 500px at 85% -5%, rgba(45, 212, 191, 0.12), transparent 50%),
    radial-gradient(800px 480px at -5% 15%, rgba(56, 189, 248, 0.1), transparent 48%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --accent: #38bdf8;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 20px 40px -12px rgba(0, 0, 0, 0.45);
}

body.theme-dark .header-fixed-zone,
body.theme-dark .header-scroll-zone {
  background: var(--card);
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.4);
}

body.theme-dark .header-top {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: var(--border);
}

body.theme-dark .logo--wide .logo-img {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-high-contrast {
  --bg: #0a0a0a;
  --bg-mesh: #0a0a0a;
  --card: #141414;
  --text: #f2f2f2;
  --muted: #b8c0d0;
  --border: #3a4456;
  --primary: #5eead4;
  --primary-dark: #2dd4bf;
  --accent: #7dd3fc;
  --shadow: none;
}

body.theme-high-contrast .btn-primary {
  background: var(--primary);
  color: #0a0a0a;
  box-shadow: none;
}

body.theme-high-contrast .btn-primary:hover {
  filter: brightness(1.1);
}

body.theme-high-contrast .hero-figure img,
body.theme-high-contrast .about-figure img,
body.theme-high-contrast .card-img-wrap img,
body.theme-high-contrast .gallery-grid img {
  filter: contrast(1.05) brightness(0.95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-mesh);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.01em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 50;
}

.theme-high-contrast .site-header {
  background: transparent;
}

.header-fixed-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.15);
}

.theme-high-contrast .header-fixed-zone {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-fixed-spacer {
  width: 100%;
  flex-shrink: 0;
}

.header-scroll-zone {
  position: relative;
  z-index: 40;
  background: #fff;
}

.theme-high-contrast .header-scroll-zone {
  background: var(--bg);
}

.header-top {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef4 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
}

.theme-high-contrast .header-top {
  background: #0f172a;
  border-color: var(--border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 40px;
  padding: 6px 0;
}

.header-lidrekon {
  display: flex;
  align-items: center;
}

.header-lang-theme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-icons {
  display: grid;
  place-items: center;
}

.theme-toggle-icons .theme-toggle-icon {
  grid-area: 1 / 1;
}

.header-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: var(--muted);
}

.header-phone {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.header-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.header-email-icon {
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--primary);
  text-decoration: none;
}

.header-email:hover {
  color: var(--primary);
  text-decoration: none;
}

.theme-high-contrast .header-phone {
  color: var(--text);
}

.theme-high-contrast .header-email {
  color: var(--text);
}

.header-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.header-address-icon {
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lang-switch--header {
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--primary);
  color: #fff;
}

.header-brand {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.header-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-book-online {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #2eb872 0%, #23965c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35, 150, 92, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-book-online:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(35, 150, 92, 0.45);
  color: #fff;
}

.theme-high-contrast .header-book-online {
  border: 2px solid #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo--wide .logo-img {
  border-radius: 14px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.logo-img--med {
  width: 94px;
  height: 86px;
  object-fit: contain;
  padding: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.logo-title {
  font-size: clamp(1.2rem, 2.7vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0b1f3f;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #1f2937;
  font-weight: 500;
  max-width: 42ch;
  line-height: 1.35;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  color: #102746;
}

.header-nav-bar {
  position: relative;
  background: linear-gradient(180deg, #1e4a7a 0%, #163a62 100%);
  border-bottom: 3px solid #0d9488;
}

.theme-high-contrast .header-nav-bar {
  background: #0f172a;
  border-color: var(--primary);
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.nav-main-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.nav-main-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-dropdown-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.7);
}

.nav-dropdown.is-open .nav-dropdown-btn,
.nav-item-panel.is-open .nav-dropdown-btn {
  background: rgba(255, 255, 255, 0.12);
}

.nav-item-panel {
  position: relative;
}

.nav-megamenu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.2);
  padding: 20px 0 24px;
}

.nav-megamenu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.nav-megamenu-col h4 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-megamenu-col a {
  display: block;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-megamenu-col a:hover {
  color: var(--primary-dark);
  border-bottom-color: rgba(13, 148, 136, 0.35);
}

.theme-high-contrast .nav-megamenu-panel {
  background: var(--card);
  border-color: var(--border);
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border);
  border-top: none;
  z-index: 60;
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-dropdown-panel a:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary-dark);
}

.theme-high-contrast .nav-dropdown-panel {
  background: var(--card);
  border-color: var(--border);
}

.menu-btn {
  display: none;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding-bottom: 8px;
}

.theme-high-contrast .mobile-nav {
  background: var(--card);
}

.mobile-nav a,
.mobile-nav-label {
  display: block;
  padding: 12px 4%;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 16px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav details {
  border-bottom: 1px solid var(--border);
}

.mobile-nav summary {
  padding: 12px 4%;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav details a {
  padding-left: 8%;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mobile-nav-book {
  display: block;
  width: calc(100% - 8%);
  margin: 8px 4% 0;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2eb872 0%, #23965c 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(35, 150, 92, 0.3);
}

.mobile-nav-book:hover {
  filter: brightness(1.05);
}

.mobile-nav-theme {
  display: grid;
  place-items: center;
  width: calc(100% - 8%);
  margin: 0 4% 8px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.mobile-nav-theme:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-lidrekon img {
  max-width: 38px;
  width: 38px;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 5px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.header-lidrekon img:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.section-gov {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(30, 74, 122, 0.06) 100%);
  border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.gov-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

.gov-lead {
  margin-bottom: 1rem;
}

.gov-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.gov-list li {
  margin-bottom: 0.35rem;
}

.egov-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #1e4a7a 0%, #0f766e 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.egov-card:hover {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
}

.egov-card-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.egov-card-text {
  font-size: 0.9rem;
  opacity: 0.92;
}

.content-narrow {
  max-width: 72ch;
}

.info-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.info-list li {
  margin-bottom: 0.5rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
}

.news-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.news-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.news-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.portal-hero {
  padding-top: 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(13, 148, 136, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14, 165, 233, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.portal-breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.portal-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.portal-breadcrumb a:hover {
  text-decoration: underline;
}

.portal-breadcrumb-sep {
  color: var(--border);
  user-select: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}

.hero-copy .text-block {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-figure img {
  transition: transform 0.5s ease;
}

.hero-visual:hover .hero-figure img {
  transform: scale(1.02);
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
}

.lead {
  color: var(--muted);
  margin: 16px 0 12px;
  font-size: 1.05rem;
}

.intro {
  font-size: 1.05rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.portal-hero-actions .btn {
  padding: 13px 22px;
  font-size: inherit;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(13, 148, 136, 0.55);
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(13, 148, 136, 0.65);
}

.btn-outline {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.35);
}

.btn-outline:hover {
  background: rgba(13, 148, 136, 0.08);
  text-decoration: none;
}

.btn-soft {
  color: var(--primary-dark);
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.btn-soft:hover {
  background: rgba(13, 148, 136, 0.08);
  text-decoration: none;
}

.theme-high-contrast .btn-soft {
  background: #1e2a3d;
  border-color: var(--border);
  color: var(--text);
}

.btn-full {
  width: 100%;
  margin-top: 14px;
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.btn-block {
  width: 100%;
}

.quick-phones {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.quick-phones a {
  color: #1e3a4f;
}

.theme-high-contrast .quick-phones a {
  color: var(--muted);
}

.portal-hero-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
}

.portal-hero-links a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.portal-hero-links a:hover {
  border-bottom-color: var(--primary);
}

.hero-social {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.hero-social-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.social-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.25);
}

.social-chip:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: brightness(1.06);
}

.social-chip--wa {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.social-chip--ig {
  background: linear-gradient(145deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-chip--fb {
  background: linear-gradient(145deg, #1877f2, #0c63d4);
}

.social-chip--yt {
  background: linear-gradient(145deg, #ff0000, #c40000);
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 0;
}

.portal-tiles {
  position: relative;
  z-index: 1;
  padding: 0 0 36px;
  margin-top: -8px;
}

.portal-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-tile:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  color: inherit;
}

.portal-tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-dark);
  flex-shrink: 0;
}

.portal-tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.portal-tile-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.portal-tile-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.portal-tile-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.portal-tile:hover .portal-tile-cta {
  text-decoration: underline;
}

.stats {
  padding: 8px 0 48px;
}

.stats-section-title {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-grid article {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.theme-high-contrast .stat-grid article {
  background: var(--card);
}

.stat-grid h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.theme-high-contrast .stat-grid h2 {
  background: none;
  color: var(--primary);
  -webkit-background-clip: unset;
  background-clip: unset;
}

.stat-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section {
  padding: 56px 0;
  scroll-margin-top: 120px;
}

.hero,
.portal-tiles,
.stats {
  scroll-margin-top: 120px;
}

#gov-npa,
#gov-contact,
#scope-activity,
#structure,
#licenses,
#anticorruption,
#vacancies,
#patient-rights,
#useful-info,
#svc-poly,
#svc-rehab,
#svc-mri {
  scroll-margin-top: 120px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.theme-high-contrast .section-alt {
  background: #121820;
  border-color: var(--border);
}

.section h2 {
  font-size: clamp(28px, 3vw, 34px);
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-col p {
  margin: 0 0 1rem;
  max-width: 58ch;
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.about-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.cards-media {
  align-items: stretch;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cards-media .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.theme-high-contrast .card {
  background: var(--card);
}

.card-with-img .card-body {
  padding: 18px;
}

.card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Отделения (как на сетевых клиниках) —— */
.section-departments {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 148, 136, 0.06) 100%);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.theme-high-contrast .glass-panel {
  background: rgba(30, 30, 30, 0.85);
  border-color: var(--border);
  box-shadow: none;
}

.dept-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 88px;
}

.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  color: var(--text);
  text-decoration: none;
}

.dept-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.dept-card-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* —— Галерея «стекло» —— */
.section-gallery-glass {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  overflow: hidden;
}

.gallery-glass-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(13, 148, 136, 0.92) 0%, rgba(30, 74, 122, 0.88) 45%, rgba(15, 23, 42, 0.9) 100%),
    url("img/gallery-bg.jpg") center / cover no-repeat;
  filter: saturate(1.05);
}

.gallery-glass-inner {
  position: relative;
  z-index: 1;
}

.section-gallery-glass h2,
.section-gallery-glass .section-lead {
  color: rgba(255, 255, 255, 0.96);
}

.section-gallery-glass .section-lead {
  opacity: 0.92;
}

.gallery-grid--glass {
  gap: 18px;
}

.gallery-glass-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gallery-glass-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-high-contrast .gallery-glass-bg {
  filter: none;
  opacity: 0.95;
}

.theme-high-contrast .gallery-glass-figure {
  border-color: rgba(255, 255, 255, 0.5);
}

/* —— Модальное окно «Записаться онлайн» —— */
.quick-book-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.quick-book-modal[hidden] {
  display: none !important;
}

.quick-book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.quick-book-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.quick-book-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.quick-book-close:hover {
  background: #f1f5f9;
  color: #64748b;
}

.quick-book-title {
  margin: 0 32px 20px 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.quick-book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-book-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.quick-book-field abbr {
  text-decoration: none;
  color: #dc2626;
}

.quick-book-field input,
.quick-book-field select,
.quick-book-field textarea {
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

.quick-book-field textarea {
  resize: vertical;
  min-height: 88px;
}

.quick-book-field input:focus,
.quick-book-field select:focus,
.quick-book-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.quick-book-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, #2eb872 0%, #23965c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35, 150, 92, 0.35);
}

.quick-book-submit:hover {
  filter: brightness(1.03);
}

.quick-book-privacy {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}

.quick-book-toast {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

.theme-high-contrast .quick-book-dialog {
  background: var(--card);
  border: 1px solid var(--border);
}

.theme-high-contrast .quick-book-field input,
.theme-high-contrast .quick-book-field select,
.theme-high-contrast .quick-book-field textarea {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.doctor-card {
  padding: 22px;
  align-items: start;
}

.director-block {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.director-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

.director-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.director-copy p {
  margin-top: 0;
}

.director-signature {
  margin: 18px 0 0;
  color: var(--muted);
}

.doctors-schedule-block {
  margin-top: 26px;
}

.doctors-schedule-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.doctors-schedule-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.doctors-schedule-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.director-page-section {
  padding-top: 34px;
}

.director-page-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.director-tabs-wrap {
  margin-top: 18px;
}

.director-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.director-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.director-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.director-tab-panel {
  display: block;
}

.director-tab-panel[hidden] {
  display: none;
}

.director-bio-card,
.director-question-card {
  padding: 22px;
}

.director-question-form {
  display: grid;
  gap: 12px;
}

.director-question-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.director-question-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.director-public-questions {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.director-public-questions h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.director-public-list {
  display: grid;
  gap: 10px;
}

.director-public-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 12px 14px;
}

.director-public-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.director-public-item header span {
  font-size: 0.85rem;
  color: var(--muted);
}

.director-public-item p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}

.director-public-reply {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--muted) !important;
}

.doctor-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.doctor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.5);
}

.quote {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-left: 4px solid var(--primary);
  background: var(--card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.section-book {
  padding-bottom: 72px;
}

.appointment-head {
  margin-bottom: 28px;
}

.appointment-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.booking-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .booking-panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
  }
}

.calendar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow);
}

.calendar-widget--large {
  width: 100%;
  max-width: 720px;
}

.booking-date-heading {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.booking-date-label {
  display: block;
}

.booking-date-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.booking-date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.theme-high-contrast .booking-date-input {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

@media (min-width: 960px) {
  .calendar-widget--large {
    max-width: none;
  }
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cal-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cal-nav {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cal-nav:hover {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.06);
}

.calendar-sheet {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fafbfc;
}

.theme-high-contrast .calendar-sheet {
  background: var(--card);
  border-color: var(--border);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef4 100%);
  border-bottom: 2px solid #e2e8f0;
}

.cal-weekdays span {
  padding: 14px 6px;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.cal-weekdays span:last-child {
  border-right: none;
  color: #94a3b8;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 10px;
  min-height: 320px;
  align-content: start;
}

.cal-day {
  min-height: 56px;
  aspect-ratio: 1;
  max-height: 88px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  cursor: pointer;
  padding: 0;
  margin: 4px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.cal-day:hover:not(:disabled):not(.is-muted) {
  border-color: var(--primary);
}

.cal-day.is-muted {
  visibility: hidden;
  pointer-events: none;
  margin: 4px;
  min-height: 56px;
  aspect-ratio: 1;
  max-height: 88px;
  box-shadow: none;
  border: none;
  background: transparent;
}

.cal-day.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.is-today {
  outline: 2px solid var(--primary);
}

.cal-day.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cal-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.time-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.time-panel h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.time-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.appointment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.summary-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.summary-box strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
}

label {
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--card);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.9rem;
  color: var(--primary);
}

footer {
  scroll-margin-top: 80px;
  background: linear-gradient(165deg, #0c1929 0%, #0f766e 120%);
  color: #cbd5e1;
  padding: 48px 0 0;
}

footer h3 {
  color: #fff;
  margin-top: 0;
}

footer a {
  color: #8dc1ff;
}

.foot-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 28px;
}

.footer-social-block h3 {
  margin-top: 0;
}

.footer-social-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-social-list a {
  color: #e2e8f0;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
}

.footer-social-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-hint {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
  line-height: 1.45;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.92;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 14px;
}

.footer-legal-links a {
  color: #e3f2fd;
  font-weight: 500;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 920px;
}

.footer-legal a {
  color: #90caf9;
}

.footer-copy {
  display: block;
  opacity: 0.88;
}

.footer-meta a {
  color: #b8d4ff;
}

.social-dock {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
}

.theme-high-contrast .social-dock {
  background: rgba(20, 20, 20, 0.95);
  border-color: var(--border);
}

.social-dock-link {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.35);
}

.social-dock-link:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
  text-decoration: none;
}

.social-dock-link--wa {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.social-dock-link--ig {
  background: linear-gradient(145deg, #f09433, #dc2743, #bc1888);
}

.social-dock-link--fb {
  background: linear-gradient(145deg, #1877f2, #0c63d4);
}

.social-dock-link--yt {
  background: linear-gradient(145deg, #ff0000, #b30000);
}

.social-dock-link--phone {
  background: linear-gradient(145deg, var(--primary), #0f766e);
}

.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #1e293b;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.45);
  cursor: pointer;
  z-index: 32;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-high-contrast .scroll-top-btn {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.social-dock-link:focus-visible,
.social-chip:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.saqtandyry-widget-container {
  position: static;
  pointer-events: none;
}

.saqtandyry-widget-container > * {
  pointer-events: auto;
}

.saqtandyry-status-btn {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 8px;

  background: #44804d;
  padding: 14px 28px;
  border-radius: 40px;

  font-size: 15px;
  font-family: Arial, sans-serif;
  color: #fff;
  cursor: pointer;
  z-index: 99999;

  border: none;
  box-shadow: 0 0 10px rgba(68, 128, 77, 0.35);
  animation: saqtandyry-flame 2.4s infinite ease-in-out;
}

@keyframes saqtandyry-flame {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 10px rgba(68, 128, 77, 0.35);
  }
  20% {
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 0 16px rgba(68, 128, 77, 0.5);
  }
  40% {
    transform: translateX(-50%) scale(1.015);
    box-shadow: 0 0 12px rgba(68, 128, 77, 0.4);
  }
  60% {
    transform: translateX(-50%) scale(1.035);
    box-shadow: 0 0 18px rgba(68, 128, 77, 0.55);
  }
  80% {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 0 14px rgba(68, 128, 77, 0.45);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 10px rgba(68, 128, 77, 0.35);
  }
}

.saqtandyry-status-btn:hover {
  transform: translateX(-50%) scale(1.08);
  animation: none;
  box-shadow: 0 0 18px rgba(68, 128, 77, 0.55);
}

.saqtandyry-status-form-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 100000;
  overflow: hidden;
}

.saqtandyry-status-form-container .handle {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.saqtandyry-close {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
}

.saqtandyry-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.saqtandyry-status-logo {
  width: 20px;
  height: 21px;
  flex-shrink: 0;
}

.saqtandyry-status-btn-title {
  font-weight: 600;
  white-space: nowrap;
}

.saqtandyry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99990;
  display: none;
}

.theme-high-contrast .saqtandyry-status-form-container {
  background: var(--card);
  border: 1px solid var(--border);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 930px) {
  .portal-tiles-grid {
    grid-template-columns: 1fr;
  }

  .portal-tile {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .portal-tile-cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .hero-grid,
  .two-col,
  .appointment-layout,
  .cards,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gov-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-main {
    display: none;
  }

  .nav-megamenu-panel {
    display: none !important;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 960px) {
  .nav-megamenu-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-megamenu-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .hero-grid,
  .two-col,
  .appointment-layout,
  .cards,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-brand-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-top-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .header-top-meta {
    gap: 8px 14px;
  }

  .header-lang-theme {
    justify-content: space-between;
  }

  .header-book-online {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 32px;
  }

  .social-dock {
    flex-direction: row;
    flex-wrap: wrap;
    right: 0.5rem;
    bottom: 5rem;
    max-width: calc(100vw - 1rem);
    justify-content: center;
  }

  .social-dock-link {
    width: 44px;
    height: 44px;
  }

  .scroll-top-btn {
    right: 0.5rem;
    bottom: 0.5rem;
    width: 44px;
    height: 44px;
  }

  .director-block {
    grid-template-columns: 1fr;
  }
}
