/* ==========================================================================
   کلینیک 777 — Dental Clinic RTL Theme
   SmartSkill-style sidebar layout · Persian · Premium medical feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables — Dental Palette
   -------------------------------------------------------------------------- */
:root {
  /* Brand — navy to sky gradient */
  --brand-1: #328BF4;
  --brand-2: #2669C0;
  --brand-3: #1B4C93;
  --brand-4: #4A9AF6;
  --brand-5: #12233F;
  --brand-gradient: linear-gradient(90deg, #1B4C93 0%, #2669C0 50%, #328BF4 100%);
  --brand-gradient-soft: linear-gradient(90deg, #2669C0 0%, #328BF4 100%);

  --primary: #2669C0;
  --primary-dark: #1B4C93;
  --primary-light: #328BF4;
  --primary-mid: #2669C0;
  --sage: #328BF4;
  --gold: #C9A96E;
  --header: #1B4C93;
  --sky: #328BF4;
  --sky-dark: #2669C0;
  --sky-light: #8BBDF8;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-muted: #F4F8FD;
  --bg-section: #E8F1FC;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --ink: #12233F;
  --text: #3D5270;
  --muted: #5A6F8A;
  --line: #C9DCF5;
  --line-soft: #E8F1FC;

  /* Semantic */
  --danger: #C94F4F;
  --danger-bg: #FBECEC;
  --ok: #27835B;
  --ok-bg: #E7F4EE;
  --warning: #C9A96E;
  --warning-bg: #F7F3EA;

  /* Service card accents (calm sky family) */
  --teal: #2669C0;
  --teal-bg: #E8F1FC;
  --teal-border: #C9DCF5;
  --sky-card: #328BF4;
  --sky-bg: #E8F1FC;
  --sky-border: #C9DCF5;
  --violet: #1B4C93;
  --violet-bg: #F4F8FD;
  --violet-border: #C9DCF5;
  --emerald: #27835B;
  --emerald-bg: #E7F4EE;
  --emerald-border: #C5D9CC;
  --amber: #C9A96E;
  --amber-bg: #F7F3EA;
  --amber-border: #E8D9B8;
  --rose: #4A9AF6;
  --rose-bg: #F4F8FD;
  --rose-border: #C9DCF5;
  --blue: #1B4C93;
  --blue-bg: #E8F1FC;
  --blue-border: #C9DCF5;

  /* Layout */
  --sidebar-width: 280px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(27, 76, 147, 0.06);
  --shadow: 0 8px 32px rgba(27, 76, 147, 0.08);
  --shadow-lg: 0 16px 48px rgba(27, 76, 147, 0.12);
  --shadow-teal: 0 8px 32px rgba(38, 105, 192, 0.22);

  /* Typography */
  --font: "IRANYekan", Tahoma, sans-serif;
  --font-heading: "IRANYekan", Tahoma, sans-serif;
  --font-icon: "tielabs-fonticon";
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
  --duration-slow: 0.45s;

  /* Mobile nav heights */
  --mobile-topbar: 120px;
  --mobile-bottom-nav: 64px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

@supports (font-variation-settings: normal) {
  body {
    font-family: "IRANYekan", Tahoma, sans-serif;
    font-variation-settings: "wght" 400;
  }
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-header h2,
.page-hero-inner h1,
.logo-title,
.product-title,
.product-name,
.cat-modern-name {
  font-family: var(--font-heading);
  color: var(--ink);
}

@supports (font-variation-settings: normal) {
  h1, h2, h3, h4, h5, h6,
  .hero-title,
  .section-header h2,
  .page-hero-inner h1 {
    font-variation-settings: "wght" 700;
  }

  strong, b, .btn, .nav-item.active {
    font-variation-settings: "wght" 800;
  }
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 700;
}

/* Utility */
.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   App Grid Layout — SmartSkill Style
   -------------------------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  min-height: 100vh;
  background: var(--bg);
  overflow-x: clip;
  transition: grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.app.is-sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}

.main {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sidebar {
  grid-area: sidebar;
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.app.is-sidebar-collapsed .sidebar {
  transform: translateX(100%);
  pointer-events: none;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.close-sidebar {
  display: flex;
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 10;
  cursor: pointer;
}

.close-sidebar:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.sidebar-reopen {
  position: fixed;
  top: 1.15rem;
  inset-inline-start: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
  z-index: 210;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity 0.28s ease 0.12s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, visibility 0.28s ease 0.12s, filter 0.2s ease;
}
[dir="rtl"] .sidebar-reopen {
  transform: translateX(-14px);
}
.app.is-sidebar-collapsed .sidebar-reopen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.sidebar-reopen:hover,
.sidebar-reopen:focus-visible {
  filter: brightness(1.08);
}
.app.is-sidebar-collapsed .sidebar-reopen:hover,
.app.is-sidebar-collapsed .sidebar-reopen:focus-visible {
  transform: scale(1.05);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
  flex-shrink: 0;
}

.logo-icon-large {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-info {
  min-width: 0;
}

.logo-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.3;
}

.logo-subtitle {
  margin: 0.15rem 0 0;
  font-size: var(--font-size-xs);
  opacity: 0.75;
}

.sidebar-cta {
  padding: 1rem 1.25rem 0.5rem;
}

.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.sidebar-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-section-title {
  margin: 1.25rem 0.5rem 0.5rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

.nav-item-phone {
  direction: ltr;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
  background:
    linear-gradient(135deg, #1d8cf8 0%, #2669c0 48%, #1a4f96 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 24px rgba(15, 70, 160, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    filter var(--duration) var(--ease);
}

.nav-item-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.nav-item-phone:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  background:
    linear-gradient(135deg, #2a97ff 0%, #2f74d0 48%, #1f5cab 100%);
  box-shadow:
    0 14px 28px rgba(15, 70, 160, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff !important;
}

.nav-item-phone:hover::before {
  transform: translateX(-120%);
}

.nav-item-phone:active {
  transform: translateY(0);
}

.nav-item-phone .icon,
.nav-item-phone .icon-phone {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  animation: phone-ring 2.4s ease-in-out infinite;
}

.nav-item-phone .icon svg,
.nav-item-phone .icon-phone svg {
  width: 16px;
  height: 16px;
}

.nav-item-phone span {
  font-variant-numeric: tabular-nums;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(-12deg); }
  16% { transform: rotate(10deg); }
  24% { transform: rotate(-8deg); }
  32% { transform: rotate(6deg); }
  40%, 100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item-phone .icon,
  .nav-item-phone .icon-phone {
    animation: none;
  }

  .nav-item-phone::before {
    display: none;
  }
}

.nav-item-wa {
  position: relative;
}

.nav-badge-new {
  margin-right: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease);
}

.sidebar-overlay:not([hidden]) {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Mobile Topbar
   -------------------------------------------------------------------------- */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 180;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mobile-topbar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.mobile-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
  color: var(--ink);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--duration) var(--ease);
}

.mobile-icon-btn:hover {
  background: var(--line);
}

.mobile-icon-btn.primary {
  background: var(--primary);
  color: #fff;
}

.mobile-logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.mobile-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-logo-text {
  min-width: 0;
}

.mobile-logo-text .logo-text {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-sm);
  line-height: 1.3;
}

.mobile-logo-text small {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--line-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.mobile-search i {
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: var(--font-size-sm);
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.mobile-search input::placeholder {
  color: var(--muted);
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Mobile Bottom Nav
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--mobile-bottom-nav);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--duration) var(--ease);
}

.nav-btn i {
  font-size: 1.15rem;
}

.nav-btn.active,
.nav-btn:hover {
  color: var(--primary);
}

.nav-btn.primary {
  color: #fff;
  background: var(--brand-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: -8px;
  padding-top: 0.5rem;
  box-shadow: var(--shadow-teal);
}

.nav-btn.primary i {
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   Flash Messages
   -------------------------------------------------------------------------- */
.draft-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #7A5B1E;
  color: #fff;
  box-shadow: 0 2px 10px rgba(18, 35, 63, 0.18);
}

.draft-preview-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}

.draft-preview-banner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.draft-preview-banner strong {
  font-weight: 700;
}

.draft-preview-banner-icon {
  display: inline-flex;
  flex: 0 0 auto;
  opacity: 0.95;
}

.draft-preview-banner-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.draft-preview-banner-edit:hover {
  background: rgba(255, 255, 255, 0.28);
}

.flash {
  margin: 1rem 1.5rem 0;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #a7f3d0;
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #163E7A 0%, #1B4C93 50%, #2669C0 100%);
  box-shadow: 0 12px 36px rgba(27, 76, 147, 0.32);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-teal {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  background: linear-gradient(90deg, #163E7A 0%, #1B4C93 50%, #2669C0 100%);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: var(--font-size-xs);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 3rem 2.5rem 4rem;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 38%,
    rgba(255, 255, 255, 0.65) 58%,
    rgba(27, 76, 147, 0.06) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, var(--font-size-4xl));
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--ink);
}

.title-subtitle {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.title-highlight {
  position: relative;
  display: inline;
  color: var(--primary-dark);
}

.title-underline {
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  width: 100%;
  height: 10px;
  color: rgba(38, 105, 192, 0.35);
  pointer-events: none;
}

.hero-description {
  font-size: var(--font-size-base);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.85;
}

.hero-description strong {
  color: var(--ink);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-stat-icon.star {
  background: var(--amber-bg);
  color: var(--gold);
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat-text strong {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: transform 0.35s ease, color 0.35s ease;
}

.hero-stat-text strong.is-counting {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-stat-text strong.is-counted {
  color: var(--ink);
}

.hero-stat-text span {
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  margin: 0 0.5rem;
}

.visual-card {
  position: relative;
  width: min(100%, 320px);
  height: min(100%, 320px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-card {
  width: min(100%, 340px);
  height: min(100%, 340px);
  padding: 0;
}

.hero-clinic-image {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 8px);
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  inset: -20px;
  border: 2px dashed rgba(38, 105, 192, 0.25);
  border-radius: 50%;
  animation: orbit-spin 20s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-border-inner {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--teal-border);
  border-radius: calc(var(--radius-xl) - 8px);
  opacity: 0.5;
}

.card-icon.hero-logo-box {
  text-align: center;
  z-index: 2;
}

.hero-logo-box span {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-logo-box small {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  z-index: 3;
}

.floating-icon.icon-1 {
  top: 10%;
  right: -10%;
  animation: float-icon 5s ease-in-out infinite;
}

.floating-icon.icon-2 {
  bottom: 15%;
  left: -8%;
  color: var(--sky);
  animation: float-icon 6s ease-in-out infinite 1s;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Section Headers & Layout
   -------------------------------------------------------------------------- */
.categories-section,
.testimonials-section {
  padding: 4rem 2.5rem;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header-split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  text-align: right;
  width: 100%;
}

.section-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.section-header-split h2 {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.section-title-hr {
  flex: 1 1 auto;
  min-width: 48px;
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--primary) 65%, transparent),
    color-mix(in srgb, var(--primary) 22%, transparent) 45%,
    transparent
  );
  position: relative;
}

.section-title-hr::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.section-header-link {
  flex-shrink: 0;
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.section-header-link:hover {
  color: var(--primary-dark);
  opacity: 0.85;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-header-split > p {
  color: var(--muted);
  font-size: var(--font-size-base);
  margin: 0;
}

.section-header p {
  color: var(--muted);
  font-size: var(--font-size-base);
  margin: 0;
}

.brand-name {
  color: var(--primary);
}

.article-pro-banner .brand-name,
.price-shortcode-heading .brand-name,
.price-list-head .brand-name,
.price-shortcode-head .brand-name {
  color: #fff;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.section {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Services Grid — category-card-modern
   -------------------------------------------------------------------------- */
.categories-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}

.category-card-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

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

.cat-modern-decoration {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}

.cat-modern-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: var(--card-icon-bg, var(--teal-bg));
  color: var(--card-accent, var(--primary));
  overflow: hidden;
}

.cat-modern-icon img,
.nav-service-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-service-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cat-modern-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.cat-modern-desc {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0 0 1.25rem;
  flex: 1;
  line-height: 1.65;
}

.cat-modern-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.cat-modern-count {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--card-accent, var(--primary));
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cat-modern-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-icon-bg, var(--teal-bg));
  color: var(--card-accent, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--duration) var(--ease);
}

.category-card-modern:hover .cat-modern-arrow {
  transform: translateX(-4px);
}

/* Color variants — accent only, keep text readable */
.color-teal { --card-accent: var(--teal); --card-icon-bg: var(--teal-bg); border-color: var(--teal-border); }
.color-sky { --card-accent: var(--sky-card); --card-icon-bg: var(--sky-bg); border-color: var(--sky-border); }
.color-violet { --card-accent: var(--violet); --card-icon-bg: var(--violet-bg); border-color: var(--violet-border); }
.color-emerald { --card-accent: var(--emerald); --card-icon-bg: var(--emerald-bg); border-color: var(--emerald-border); }
.color-amber { --card-accent: var(--amber); --card-icon-bg: var(--amber-bg); border-color: var(--amber-border); }
.color-rose { --card-accent: var(--rose); --card-icon-bg: var(--rose-bg); border-color: var(--rose-border); }
.color-blue { --card-accent: var(--blue); --card-icon-bg: var(--blue-bg); border-color: var(--blue-border); }

.category-card-modern .cat-modern-name {
  color: var(--ink);
}

.category-card-modern .cat-modern-desc {
  color: var(--muted);
}

.cat-modern-photo {
  margin: -1.5rem -1.5rem 1.1rem;
  height: 168px;
  overflow: hidden;
  background: var(--bg-muted);
}

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

.categories-grid-modern.compact {
  gap: 1rem;
}

.categories-grid-modern.compact .cat-modern-photo {
  height: 132px;
}

.service-phases {
  margin: 2.25rem 0 0;
  padding: 1.35rem 1.4rem 1.2rem;
  border: 1px solid #C9DCF5;
  border-radius: 1.25rem;
  background: var(--teal-bg);
}

.service-phases h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.service-phases p {
  margin: 0 0 0.9rem;
  color: #3D5270;
  line-height: 1.9;
}

.service-phases ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-phases li {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--teal-border);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.service-contact-card {
  margin-top: 1.5rem;
}

.service-contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.service-contact-card .contact-form {
  display: grid;
  gap: 0.85rem;
}

.service-contact-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.service-contact-card input,
.service-contact-card select,
.service-contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

/* --------------------------------------------------------------------------
   Portfolio Grid
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

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

.portfolio-card-static {
  cursor: default;
}

.portfolio-card-static:hover {
  transform: none;
}

.portfolio-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line-soft);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--teal-bg);
  color: var(--primary);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 105, 192, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-body {
  padding: 1.25rem;
}

.portfolio-body h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.portfolio-body p {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   About Banner Section
   -------------------------------------------------------------------------- */
.about-banner-section {
  position: relative;
  width: 100%;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, #F7FAFE 0%, var(--bg-muted) 45%, var(--bg-section) 100%);
  color: var(--brand-5);
  border-block: 1px solid var(--line);
}

.about-banner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.about-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Soft brand-blue squares with faded edges */
.about-shape {
  position: absolute;
  border-radius: 18px;
  background: var(--brand-4);
  filter: blur(18px);
  opacity: 0.2;
}

.about-shape-1 {
  width: min(38vw, 300px);
  height: min(38vw, 300px);
  top: -12%;
  left: -5%;
  background: #A8CFFB;
  opacity: 0.35;
  filter: blur(22px);
  transform: rotate(12deg);
}

.about-shape-2 {
  width: min(32vw, 240px);
  height: min(32vw, 240px);
  bottom: -14%;
  right: 8%;
  background: var(--brand-1);
  opacity: 0.18;
  filter: blur(24px);
  transform: rotate(-14deg);
}

.about-shape-3 {
  width: min(24vw, 180px);
  height: min(24vw, 180px);
  top: 18%;
  right: -3%;
  background: var(--brand-2);
  opacity: 0.16;
  filter: blur(20px);
  transform: rotate(20deg);
}

.about-shape-4 {
  width: min(20vw, 140px);
  height: min(20vw, 140px);
  bottom: 18%;
  left: 28%;
  background: transparent;
  border: 2px solid rgba(50, 139, 244, 0.22);
  opacity: 0.7;
  filter: blur(1.5px);
  transform: rotate(-8deg);
}

.about-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
}

.about-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.about-banner-text h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--brand-5);
}

.about-banner-text p {
  font-size: var(--font-size-sm);
  color: var(--text);
  opacity: 1;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.about-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-card-mock {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.about-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--font-size-sm);
}

.about-mock-row span {
  opacity: 0.75;
}

.about-mock-row strong {
  font-weight: 700;
}

.about-mock-row.total {
  border-bottom: none;
  padding-top: 1rem;
  font-size: var(--font-size-base);
}

.about-mock-icon {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Products Grid & Product Cards
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}

.blog-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.product-card-new {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

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

.product-top-bar {
  padding: 0.75rem 1rem 0;
  min-height: 2rem;
}

.product-tag-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.product-image-wrap {
  position: relative;
  padding: 0 1rem;
}

.product-image-bg {
  position: absolute;
  inset: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--card-icon-bg, var(--teal-bg));
  opacity: 0.6;
}

.product-image {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.floating-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--card-accent, var(--primary));
  background: var(--card-icon-bg, var(--teal-bg));
}

.product-body {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
}

.product-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.product-tagline {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.blog-date {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.pricing-label {
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.pricing-final {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--card-accent, var(--primary));
}

.product-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-icon-bg, var(--teal-bg));
  color: var(--card-accent, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform var(--duration) var(--ease);
}

.product-card-new:hover .product-action-btn {
  transform: translateX(-3px);
}

.blog-card-new .product-footer {
  border-top: none;
  padding-top: 0;
}

/* Card grid (legacy listing pages) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  padding-bottom: 1rem;
}

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

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.media-card h3 {
  padding: 1rem 1.25rem 0.35rem;
  font-size: var(--font-size-base);
}

.media-card p {
  padding: 0 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.testimonial-stars .empty {
  color: var(--line);
}

.testimonial-text {
  font-size: var(--font-size-sm);
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient-soft);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.testimonial-author strong {
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Custom CTA Section
   -------------------------------------------------------------------------- */
.custom-cta {
  position: relative;
  margin: 0 2.5rem 4rem;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.custom-cta-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
}

.custom-cta-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 3rem;
  color: #fff;
  flex-wrap: wrap;
}

.custom-cta-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.custom-cta-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0; }
}

.custom-cta-text {
  flex: 1;
  min-width: 200px;
}

.custom-cta-text h2 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #fff;
}

.custom-cta-text p {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin: 0;
}

.custom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.custom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.custom-cta-btn:hover {
  transform: translateY(-2px);
}

.custom-cta-btn.primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.custom-cta-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-cta-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   Consult CTA + Site Footer
   -------------------------------------------------------------------------- */
.consult-cta {
  margin: 0 2.5rem 0;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
  padding: 0 0 2.5rem;
}

.consult-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(27, 76, 147, 0.06);
}

.consult-cta-copy h3 {
  margin: 0 0 0.2rem;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--ink);
}

.consult-cta-copy p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.consult-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consult-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.consult-cta-btn:hover {
  transform: translateY(-1px);
}

.consult-cta-btn.is-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(38, 105, 192, 0.22);
}

.consult-cta-btn.is-primary:hover {
  background: linear-gradient(90deg, #163E7A 0%, #1B4C93 50%, #2669C0 100%);
}

.consult-cta-btn.is-ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.consult-cta-btn.is-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer {
  margin-top: auto;
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.75rem 2.5rem 1.25rem;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
}

.footer-brand-col p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.7;
}

.footer-nav-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.footer-nav-col a {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  transition: color var(--duration) var(--ease);
}

.footer-nav-col a:hover {
  color: var(--primary);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--muted);
  text-align: left;
}

.footer-contact-col a {
  font-weight: 700;
  color: var(--ink);
}

.footer-contact-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem 1.25rem;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
}

.copyright {
  font-size: var(--font-size-xs);
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Page Hero & Shell
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 2.5rem 2.5rem 2rem;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(38, 105, 192, 0.08);
  filter: blur(40px);
}

.page-hero-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-3xl));
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.page-hero p {
  color: var(--muted);
  font-size: var(--font-size-base);
  margin: 0;
}

.page-shell {
  padding: 2.5rem;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
}

.page-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  color: var(--muted);
}

.empty-state p {
  margin: 0;
  max-width: 36rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-right: 0.35rem;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color var(--duration) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs li:last-child span {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Inner page breadcrumb (About / Contact)
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem 0;
  max-width: calc(var(--container) + 5rem);
  margin-inline: auto;
  width: 100%;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  display: inline-flex;
  color: var(--line);
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 700;
}

/* Compact inner-page hero */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-section.is-compact {
  min-height: 0;
  padding: 2.5rem;
  align-items: flex-start;
}

.hero-content.is-single {
  grid-template-columns: 1fr;
}

.hero-text.is-centered {
  text-align: center;
  align-items: center;
  max-width: 50rem;
  margin-inline: auto;
}

.hero-description.is-justified {
  text-align: justify;
  max-width: none;
}

.hero-section.is-compact .hero-description + .hero-description {
  margin-top: -0.75rem;
}

/* Value / contact tiles */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}



.card.is-centered {
  text-align: center;
}

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

.product-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card.is-centered .product-icon-wrap,
.contact-cta-card .product-icon-wrap {
  margin: 0 auto 1rem;
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.product-desc a {
  color: var(--primary);
  font-weight: 600;
}

.product-desc a:hover {
  text-decoration: underline;
}

.bg-blue-soft {
  background: var(--blue-bg);
  color: var(--blue);
}

.bg-emerald-soft {
  background: var(--ok-bg);
  color: var(--ok);
}

.bg-violet-soft {
  background: var(--violet-bg);
  color: var(--violet);
}

.bg-amber-soft {
  background: var(--warning-bg);
  color: var(--warning);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-form-section {
  padding-top: 0;
}

.hero-section.is-compact.contact-hero {
  position: relative;
  min-height: 0;
  padding: 2.25rem 1.5rem 1rem;
  display: block;
  isolation: isolate;
}

.contact-hero .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

.contact-hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.contact-hero .hero-title {
  margin: 0 0 0.75rem;
  text-align: center;
}

.contact-hero .contact-hero-desc {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  align-items: start;
}

.contact-quick-bar {
  display: none;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
}

.contact-channel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.15rem;
  text-align: center;
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.contact-channel-body h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.contact-channel-body p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.65;
}

.contact-channel-body a {
  color: var(--primary);
  font-weight: 600;
}

.contact-channel-body a:hover {
  text-decoration: underline;
}

.contact-channel-sep {
  margin-inline: 0.25rem;
  color: var(--muted);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label span {
  display: block;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.info-card i {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.info-card p {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.info-card a {
  color: var(--primary);
}

.info-card a:hover {
  text-decoration: underline;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cta-card {
  text-align: center;
}

.contact-cta-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.4rem;
}

.contact-cta-card p {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: 1.25rem;
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.map-wrap {
  padding: 0;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.about-page-visual img,
.about-clinic-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-banner-visual {
  position: relative;
}

.about-clinic-photo-wrap {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 35, 63, 0.08);
}

.about-banner-visual .about-clinic-photo-wrap .about-clinic-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 683;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Home — Andisheh services & why clinic
   -------------------------------------------------------------------------- */
.home-andisheh-section {
  padding: 3.75rem 0 4.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--brand-5);
}

.home-andisheh-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

.home-andisheh-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.home-andisheh-head h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--brand-5);
  line-height: 1.45;
}

.home-andisheh-head p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.85;
  color: var(--text);
}

.home-andisheh-line {
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.home-andisheh-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-andisheh-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 70%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-andisheh-grid li:hover {
  border-color: rgba(50, 139, 244, 0.35);
  box-shadow: 0 12px 28px rgba(18, 35, 63, 0.06);
  transform: translateY(-2px);
}

.home-andisheh-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: rgba(50, 139, 244, 0.12);
}

.home-andisheh-grid strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--brand-5);
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

.home-andisheh-grid li > div > span {
  display: block;
  font-size: var(--font-size-xs);
  line-height: 1.7;
  color: var(--text-muted, #5b6b7c);
}

.home-andisheh-why {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #F7FAFE 0%, #EEF5FD 48%, #FFFFFF 100%);
}

.home-andisheh-why-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.45rem;
}

.home-andisheh-why-copy h3 {
  margin: 0 0 0.85rem;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--brand-5);
  line-height: 1.45;
}

.home-andisheh-why-copy p {
  margin: 0 0 0.75rem;
  font-size: var(--font-size-sm);
  line-height: 1.85;
  color: var(--text);
}

.home-andisheh-why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.home-andisheh-why-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-andisheh-why-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 76, 147, 0.12);
  background: #eef5fd;
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.home-andisheh-why-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 900px) {
  .home-andisheh-why {
    grid-template-columns: 1fr;
  }
}

.about-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.15);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.about-slider-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}

.about-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

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

.about-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.about-slider-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
}

.about-slider-prev {
  right: 0.85rem;
}

.about-slider-next {
  left: 0.85rem;
}

.about-slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.about-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.about-slider-dot.is-active {
  width: 22px;
  background: #fff;
}

.about-banner-visual .about-clinic-photo {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Clinic Video Player
   -------------------------------------------------------------------------- */
.clinic-video-player {
  width: 100%;
}

.clinic-video-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0018;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.clinic-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.clinic-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.clinic-video-poster[hidden],
.clinic-video-shell.is-active.is-playing .clinic-video-poster {
  display: none !important;
}

.clinic-video-ui[hidden] {
  display: none !important;
}

.clinic-video-toggle-btn [hidden] {
  display: none !important;
}

.clinic-video-poster-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 0, 24, 0.15), rgba(10, 0, 24, 0.72)),
    radial-gradient(circle at 50% 40%, rgba(38, 105, 192, 0.22), transparent 55%);
  pointer-events: none;
}

.clinic-video-play-btn {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow:
    0 16px 40px rgba(38, 105, 192, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clinic-video-play-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 20px 48px rgba(38, 105, 192, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.clinic-video-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: clinic-video-pulse 2.2s ease-out infinite;
}

@keyframes clinic-video-pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.clinic-video-play-icon {
  display: inline-flex;
  margin-inline-start: 3px;
}

.clinic-video-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
}

.clinic-video-shell.is-active .clinic-video-ui {
  pointer-events: auto;
}

.clinic-video-top,
.clinic-video-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.clinic-video-shell.is-active.is-controls-visible .clinic-video-top,
.clinic-video-shell.is-active.is-controls-visible .clinic-video-bar,
.clinic-video-shell.is-active:not(.is-playing) .clinic-video-top,
.clinic-video-shell.is-active:not(.is-playing) .clinic-video-bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.clinic-video-bar {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  padding-top: 2rem;
  direction: ltr;
}

.clinic-video-bar-start,
.clinic-video-bar-end {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.clinic-video-bar-end {
  margin-inline-start: 0;
}

.clinic-video-toggle-btn {
  background: rgba(38, 105, 192, 0.35);
  border: 1px solid rgba(50, 139, 244, 0.45);
}

.clinic-video-toggle-btn:hover {
  background: rgba(38, 105, 192, 0.5);
}

.clinic-video-top-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.clinic-video-top-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.clinic-video-top-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.clinic-video-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.clinic-video-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.clinic-video-play-btn,
.clinic-video-icon-btn[data-tip] {
  position: relative;
}

.clinic-video-play-btn[data-tip]::after,
.clinic-video-icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(12, 0, 28, 0.92);
  border: 1px solid rgba(50, 139, 244, 0.35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.clinic-video-play-btn[data-tip]::before,
.clinic-video-icon-btn[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(12, 0, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.clinic-video-play-btn[data-tip]:hover::after,
.clinic-video-play-btn[data-tip]:hover::before,
.clinic-video-icon-btn[data-tip]:hover::after,
.clinic-video-icon-btn[data-tip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.clinic-video-play-btn[data-tip]:hover::after,
.clinic-video-icon-btn[data-tip]:hover::after {
  transform: translateX(-50%) translateY(0);
}

.clinic-video-top .clinic-video-icon-btn[data-tip]::after {
  bottom: auto;
  top: calc(100% + 10px);
}

.clinic-video-top .clinic-video-icon-btn[data-tip]::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-top-color: transparent;
  border-bottom-color: rgba(12, 0, 28, 0.92);
}

.clinic-video-top .clinic-video-icon-btn {
  margin-inline-start: auto;
}

.clinic-video-shell.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.clinic-video-shell.is-loading .clinic-video-play-btn {
  opacity: 0.7;
  pointer-events: none;
}

.clinic-video-center-toggle {
  flex: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.clinic-video-volume {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.clinic-video-volume-panel {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) scaleY(0.6);
  transform-origin: bottom center;
  width: 42px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(27, 76, 147, 0.95), rgba(18, 35, 63, 0.96));
  border: 1px solid rgba(50, 139, 244, 0.45);
  box-shadow: 0 12px 28px rgba(38, 105, 192, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.clinic-video-volume.is-open .clinic-video-volume-panel {
  height: 118px;
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
  pointer-events: auto;
  padding: 0.75rem 0;
}

.clinic-video-volume-slider {
  width: 4px;
  height: 88px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  -moz-orient: vertical;
  cursor: pointer;
  background: transparent;
  accent-color: #328BF4;
}

.clinic-video-volume-slider::-webkit-slider-runnable-track {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #328BF4, rgba(38, 105, 192, 0.35));
}

.clinic-video-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #328BF4;
  box-shadow: 0 0 0 3px rgba(50, 139, 244, 0.28);
}

.clinic-video-volume-slider::-moz-range-track {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #328BF4, rgba(38, 105, 192, 0.35));
}

.clinic-video-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #328BF4;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 139, 244, 0.28);
}

.clinic-video-progress-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  direction: ltr;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.clinic-video-progress {
  position: absolute;
  inset-inline: 0;
  height: 4px;
  margin: auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: visible;
  pointer-events: none;
}

.clinic-video-progress-wrap.is-seeking .clinic-video-progress,
.clinic-video-progress-wrap:hover .clinic-video-progress {
  height: 6px;
}

.clinic-video-progress-buffer,
.clinic-video-progress-played {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
}

.clinic-video-progress-buffer {
  background: rgba(255, 255, 255, 0.22);
}

.clinic-video-progress-played {
  background: linear-gradient(to right, var(--primary), #328BF4);
  z-index: 1;
}

.clinic-video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #328BF4;
  box-shadow: 0 0 0 3px rgba(50, 139, 244, 0.25);
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.clinic-video-progress-wrap.is-seeking .clinic-video-progress-thumb,
.clinic-video-progress-wrap:hover .clinic-video-progress-thumb {
  opacity: 1;
}

.clinic-video-time {
  font-size: var(--font-size-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.9;
  direction: ltr;
}

.clinic-video-shell.is-active .clinic-video-ui {
  opacity: 1;
  transition: opacity 0.28s ease;
}

.clinic-video-shell.is-active.is-playing:not(.is-controls-visible) .clinic-video-ui {
  opacity: 1;
}

.clinic-video-shell:fullscreen,
.clinic-video-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}

.clinic-video-shell:fullscreen .clinic-video-element,
.clinic-video-shell:-webkit-full-screen .clinic-video-element {
  object-fit: contain;
}

.clinic-video-shell.is-fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.clinic-video-shell.is-fallback-fullscreen .clinic-video-element {
  object-fit: contain;
}

body.clinic-video-open {
  overflow: hidden;
}

.about-values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.value-card i {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
}

.value-card p {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.contact-form h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--font-size-sm);
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 105, 192, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   FAQ Page
   -------------------------------------------------------------------------- */
.faq-page-section .section-header h1 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--teal-border);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.35s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item-index {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item summary h2 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  flex: 1;
}

.faq-item summary i,
.faq-item summary svg {
  color: var(--primary);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.faq-item[open] summary,
.faq-item.is-open summary {
  background: var(--teal-bg);
}

.faq-item[open] summary i,
.faq-item[open] summary svg,
.faq-item.is-open summary i,
.faq-item.is-open summary svg {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: var(--teal-bg);
}

.faq-item-panel {
  overflow: hidden;
  height: 0;
}

.faq-item[open] .faq-item-panel,
.faq-item.is-open .faq-item-panel {
  height: auto;
}

.faq-item p {
  padding: 1.35rem 1.35rem 1.35rem;
  padding-right: calc(1.35rem + 2.25rem + 0.9rem);
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Error Pages
   -------------------------------------------------------------------------- */
.error-page-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 2rem;
}

.error-page-card {
  text-align: center;
  max-width: 480px;
  padding: 3rem 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--brand-gradient-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.error-403 .error-code {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.error-page-card h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: 0.75rem;
}

.error-page-card p {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}

/* --------------------------------------------------------------------------
   Product Detail & Article Pages
   -------------------------------------------------------------------------- */
.product-detail {
  padding-top: 1rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.gallery .banner {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.gallery .main-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

.gallery .thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery .thumbs img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.gallery .thumbs img:hover {
  border-color: var(--primary);
}

.product-info h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.price-row del {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.price-row strong {
  font-size: var(--font-size-xl);
  color: var(--primary);
}

.price-row.large strong {
  font-size: var(--font-size-2xl);
}

.page-content {
  font-size: var(--font-size-base);
  line-height: 1.9;
  color: var(--ink);
}

.page-content h2,
.page-content h3 {
  margin-top: 2rem;
}

.page-content img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content h2,
.page-content h3 {
  scroll-margin-top: 6rem;
}

.article-pro {
  max-width: 64rem;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.article-pro-head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.article-pro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  grid-area: meta;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  justify-self: center;
}

.article-pro-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.4;
}

.article-pro-meta-item .icon,
.article-pro-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary, #2669C0);
}

.article-pro-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.article-pro-chip.is-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.article-pro-dot {
  opacity: 0.45;
}

.article-pro-head h1,
.article-pro-excerpt h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
  color: #111827;
}

.article-pro-dek {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.95;
  color: #4b5563;
}

.article-pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(min(100%, 260px), 0.95fr);
  grid-template-areas:
    "meta meta"
    "excerpt cover";
  column-gap: 1.25rem;
  row-gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.article-pro-excerpt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 100%;
  padding: 0.15rem 0.25rem 0.15rem 0;
  background: none;
  border: 0;
  grid-area: excerpt;
}

.article-pro-cover {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  margin: 0;
  min-height: 240px;
  grid-area: cover;
}

.article-pro-cover img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .article-pro-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "meta"
      "excerpt";
    row-gap: 0.75rem;
  }

  .article-pro-cover img {
    max-height: 260px;
  }

  .article-pro-excerpt {
    gap: 0.75rem;
  }
}

.article-pro-toc {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}

.article-pro-toc-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 2.5rem 0.9rem 1.15rem;
  border-bottom: 1px solid transparent;
  background: #f9fafb;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.article-pro-toc-label::-webkit-details-marker {
  display: none;
}

.article-pro-toc-label::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform 0.3s ease;
}

.article-pro-toc[open] > .article-pro-toc-label,
.article-pro-toc.is-open > .article-pro-toc-label {
  border-bottom-color: #f3f4f6;
}

.article-pro-toc[open] > .article-pro-toc-label::after,
.article-pro-toc.is-open > .article-pro-toc-label::after {
  transform: translateY(-30%) rotate(135deg);
}

.article-pro-toc-panel {
  overflow: hidden;
  height: 0;
}

.article-pro-toc[open] > .article-pro-toc-panel {
  height: auto;
}

.article-pro-toc ol {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-pro-toc a {
  display: inline-flex;
  padding: 0.38rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 700;
}

.article-pro-toc a:hover,
.article-pro-toc a.is-active {
  color: var(--primary-dark);
  border-color: var(--teal-border);
  background: var(--teal-bg);
}

.article-pro-body {
  color: #3D5270;
  font-size: 1rem;
  line-height: 1.95;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article-pro-body > *:first-child {
  margin-top: 0;
}

.article-pro-body p {
  margin: 0 0 1rem;
}

.article-pro-body a,
.article-pro-body a:link,
.article-pro-body a:visited {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;

}

.article-pro-body a:hover {
  color: var(--primary-dark);
}

.article-pro-body :is(b, strong) {
  font-weight: 800;
  font-variation-settings: "wght" 800;
  color: var(--ink);
}

.article-pro-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.25rem 0;
  border: 1px solid #e5e7eb;
}

.article-pro-body iframe,
.article-pro-body video,
.article-pro-body embed {
  max-width: 100%;
}

.article-pro-body pre {
  max-width: 100%;
  overflow-x: auto;
}

.article-pro-heading {
  margin: 2.5rem 0 1.25rem;
  scroll-margin-top: 5.5rem;
  align-items: center;
  width: 100%;
}

.article-pro-body > .article-pro-heading:first-child {
  margin-top: 0;
}

.article-pro-heading > h2 {
  flex: 0 1 auto;
  max-width: min(100%, 34rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-size: var(--font-size-xl);
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
  scroll-margin-top: 5.5rem;
}

/* Fallback for bare article h2s that were not wrapped yet */
.article-pro-body > h2:not(.article-pro-banner):not(.visually-hidden),
.comp-prices > h2:not(.article-pro-banner) {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-size: var(--font-size-xl);
  font-weight: 800;
  line-height: 1.55;
  scroll-margin-top: 5.5rem;
}

.article-pro-body > h2:not(.article-pro-banner):not(.visually-hidden)::after,
.comp-prices > h2:not(.article-pro-banner)::after {
  content: "";
  flex: 1 1 auto;
  align-self: center;
  min-width: 48px;
  height: 1px;
  background:
    radial-gradient(circle at right center, var(--primary) 0 3.5px, transparent 4px),
    linear-gradient(
      to left,
      color-mix(in srgb, var(--primary) 65%, transparent),
      color-mix(in srgb, var(--primary) 22%, transparent) 45%,
      transparent
    );
  background-repeat: no-repeat;
  background-size: 14px 14px, 100% 1px;
  background-position: right center, center;
  box-shadow: -4px 0 0 0 color-mix(in srgb, var(--primary) 16%, transparent);
}

.article-pro-banner {
  scroll-margin-top: 5.5rem;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 1.25rem;
  border-right: 4px solid #1B4C93;
  font-size: var(--font-size-xl);
  font-weight: 800;
  line-height: 1.6;
}

.article-pro-banner.is-soft {
  background: var(--teal-bg);
  color: var(--primary-dark);
  border-right-color: var(--primary);
}

.article-pro-body h3 {
  scroll-margin-top: 5.5rem;
  color: var(--primary-dark);
  background: var(--teal-bg);
  border-radius: 0.5rem;
  padding: 0.8rem 1.15rem;
  margin: 2rem 0 1rem;
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.article-pro-body h4 {
  margin: 1.5rem 0 0.65rem;
  color: var(--primary-dark);
  font-size: var(--font-size-base);
  font-weight: 800;
}

.article-pro-body ul,
.article-pro-body ol,
.article-pro-faq-body ul,
.article-pro-faq-body ol {
  margin: 0.35rem 0 1.4rem;
  padding: 1rem 1.15rem;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.65rem;
}

.article-pro-body ul > li,
.article-pro-body ol > li,
.article-pro-faq-body ul > li,
.article-pro-faq-body ol > li {
  position: relative;
  margin: 0;
  padding-inline-start: 1.85rem;
  color: var(--text);
  line-height: 1.9;
  font-weight: 500;
}

.article-pro-body ul > li::before,
.article-pro-faq-body ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.2rem;

  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(38, 105, 192, 0.12);
}

.article-pro-body ol,
.article-pro-faq-body ol {
  counter-reset: article-pro-ol;
}

.article-pro-body ol > li,
.article-pro-faq-body ol > li {
  counter-increment: article-pro-ol;
  padding-inline-start: 2.35rem;
}

.article-pro-body ol > li::before,
.article-pro-faq-body ol > li::before {
  content: counter(article-pro-ol);
  position: absolute;
  inset-inline-start: 0;
  top: 0.28em;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1b4c93, #2669c0 55%, #328bf4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(38, 105, 192, 0.22);
}

.article-pro-body li > ul,
.article-pro-body li > ol,
.article-pro-faq-body li > ul,
.article-pro-faq-body li > ol {
  margin: 0.65rem 0 0.1rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 220, 245, 0.7);
  border-inline-start: 2px solid var(--teal-border);
  border-radius: 0.5rem;
  gap: 0.45rem;
}

.article-pro-body li > ul > li::before,
.article-pro-faq-body li > ul > li::before {
  width: 0.38rem;
  height: 0.38rem;
  background: color-mix(in srgb, var(--primary) 70%, #fff);
  box-shadow: none;
}

.article-pro-body li > ol > li,
.article-pro-faq-body li > ol > li {
  padding-inline-start: 2.1rem;
}

.article-pro-body li > ol > li::before,
.article-pro-faq-body li > ol > li::before {
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.68rem;
  box-shadow: none;
}

.article-pro-body li strong,
.article-pro-faq-body li strong {
  color: var(--ink);
  font-weight: 800;
}

.article-pro-body ul ul,
.article-pro-body ol ol,
.article-pro-body ul ol,
.article-pro-body ol ul,
.article-pro-faq-body ul ul,
.article-pro-faq-body ol ol,
.article-pro-faq-body ul ol,
.article-pro-faq-body ol ul {
  box-shadow: none;
}

.article-pro-body blockquote {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-right: 4px solid var(--primary);
  background: var(--teal-bg);
  border-radius: 0.5rem;
  color: var(--primary-dark);
  font-style: italic;
  font-weight: 600;
}

.article-pro-body :has(> table),
.article-pro-body .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
}

.article-pro-body table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
}

.article-pro-body .table-wrap table {
  margin: 0;
}

.article-pro-body thead th {
  background: #1B4C93;
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 1rem;
  text-align: start;
  border: 1px solid #1B4C93;
}

.article-pro-body td {
  padding: 0.85rem 1rem;
  border: 1px solid #C9DCF5;
  background: #fff;
}

.article-pro-body tbody tr:nth-child(odd) td {
  background: var(--teal-bg);
}

.article-pro-prices {
  margin: 2rem 0 2.5rem;
  border: 1px solid #C9DCF5;
  border-radius: 14px;
  overflow: hidden;
  background: #F4F8FD;
}

.article-pro-prices .table-wrap,
.price-list-wrap {
  max-width: 100%;
  overflow: visible;
}

.article-pro-prices table,
.price-list-table {
  width: 100%;
  border-collapse: collapse;
}

.article-pro-prices th,
.price-list-table th {
  background: #1B4C93;
  color: #fff;
  font-weight: 800;
  padding: 0.75rem 1rem;
  text-align: start;
  border: 0;
}

.article-pro-prices td,
.price-list-table td {
  padding: 0.8rem 1rem;
  border-top: 1px solid #C9DCF5;
  background: #fff;
}

.article-pro-prices tbody tr:nth-child(odd) td,
.price-list-table tbody tr:nth-child(odd) td {
  background: #F7FBFF;
}

.price-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.85rem 1rem;
  background: #1B4C93;
  color: #fff;
}

.price-list-head .article-pro-banner,
.price-list-head .price-shortcode-heading {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.price-list-head .price-shortcode-updated,
.price-shortcode-head .price-shortcode-updated {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.5;
}

.price-list-head .price-shortcode-updated time,
.price-shortcode-head .price-shortcode-updated time {
  color: #fff;
  font-weight: 800;
}

.price-shortcode-updated-label::after {
  content: ":";
  margin-left: 0.2rem;
}

.price-list-amount {
  font-weight: 800;
  color: #1B4C93;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Price shortcodes inside blog/page content */
.price-shortcode {
  margin: 1.25rem 0;
  border: 1px solid #C9DCF5;
  border-radius: 14px;
  background: #F4F8FD;
  overflow: hidden;
}

.price-shortcode-item {
  padding: 0.85rem 1rem;
}

.price-shortcode-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.price-shortcode-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2669C0;
  margin-bottom: 0.2rem;
}

.price-shortcode-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.price-shortcode-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #12233F;
  line-height: 1.45;
}

.price-shortcode-amount {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex: 0 0 auto;
  color: #1B4C93;
  line-height: 1.2;
  text-align: end;
}

.price-shortcode-amount b {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-shortcode-amount small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B7F99;
}

.price-shortcode-amount .is-negotiable {
  font-size: 0.95rem;
}

.price-shortcode-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.85rem 1rem;
  background: #1B4C93;
  color: #fff;
}

.price-shortcode-heading {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  background: transparent;
  color: inherit;
  line-height: 1.4;
}

.price-shortcode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.price-shortcode-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #E3EDF9;
}

.price-shortcode-list-item:first-child {
  border-top: 0;
}

.price-shortcode-list-item:nth-child(odd) {
  background: #FBFCFE;
}

.price-shortcode-list-name {
  min-width: 0;
  flex: 1 1 auto;
  color: #12233F;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.price-shortcode-list-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  flex: 0 0 auto;
  color: #1B4C93;
  line-height: 1.2;
  text-align: end;
}

.price-shortcode-list-price b {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-shortcode-list-price small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6B7F99;
}

.price-shortcode-updated {
  margin: 0;
  color: #6B7F99;
  font-size: 0.78rem;
  line-height: 1.5;
}

.price-shortcode-updated time {
  color: #12233F;
  font-weight: 700;
}

.price-shortcode-item .price-shortcode-updated {
  margin-top: 0.45rem;
}

.price-shortcode-updated--foot {
  display: none;
}

.price-shortcode-head .price-shortcode-updated {
  color: rgba(255, 255, 255, 0.88);
}

.price-shortcode-head .price-shortcode-updated time {
  color: #fff;
}

.article-pro-body .price-shortcode {
  max-width: 100%;
}

.price-amount-shortcode {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .price-list-head,
  .price-shortcode-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
  }

  .price-shortcode {
    margin: 1rem 0;
    border-radius: 12px;
    background: #fff;
  }

  .price-shortcode-heading {
    font-size: 0.95rem;
  }

  .price-shortcode-updated--head {
    display: none;
  }

  .price-shortcode-updated--foot {
    display: block;
    padding: 0.55rem 0.8rem 0.7rem;
    border-top: 1px solid #E8F0FA;
    background: #F8FBFF;
    font-size: 0.72rem;
  }

  .price-shortcode-updated--foot time {
    font-weight: 800;
  }

  .price-shortcode-list-item {
    padding: 0.65rem 0.8rem;
    gap: 0.65rem;
  }

  .price-shortcode-list-name {
    font-size: 0.88rem;
    font-weight: 600;
  }

  .price-shortcode-list-price b {
    font-size: 0.92rem;
  }

  .price-shortcode-list-price small {
    font-size: 0.65rem;
  }

  .price-shortcode-item {
    padding: 0.7rem 0.8rem;
  }

  .price-shortcode-row {
    align-items: flex-start;
  }

  .price-shortcode-kicker {
    font-size: 0.7rem;
    margin-bottom: 0.12rem;
  }

  .price-shortcode-title {
    font-size: 0.9rem;
  }

  .price-shortcode-amount b {
    font-size: 0.95rem;
  }

  .price-shortcode-amount small {
    font-size: 0.65rem;
  }

  .price-shortcode-item .price-shortcode-updated {
    margin-top: 0.35rem;
    font-size: 0.7rem;
  }

  .price-list-table thead,
  .article-pro-prices .price-list-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .price-list-table,
  .article-pro-prices .price-list-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .price-list-table tbody tr,
  .article-pro-prices .price-list-table tbody tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-top: 1px solid #D7E5F7;
    background: #fff;
  }

  .price-list-table tbody tr:nth-child(odd),
  .article-pro-prices .price-list-table tbody tr:nth-child(odd) {
    background: #F7FBFF;
  }

  .price-list-table td,
  .article-pro-prices .price-list-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .price-list-amount {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }
}

.article-pro-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.article-pro-faq details {
  background: #fff;
  border: 1px solid #C9DCF5;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-pro-faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--primary-dark);
  list-style: none;
  transition: background 0.25s ease;
}

.article-pro-faq summary::-webkit-details-marker {
  display: none;
}

.article-pro-faq summary::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform 0.3s ease;
}

.article-pro-faq details[open] summary,
.article-pro-faq details.is-open summary {
  background: var(--teal-bg);
}

.article-pro-faq details[open] summary::after,
.article-pro-faq details.is-open summary::after {
  transform: translateY(-30%) rotate(135deg);
}

.article-pro-faq-panel {
  overflow: hidden;
  height: 0;
}

.article-pro-faq details[open] .article-pro-faq-panel {
  height: auto;
}

.article-pro-faq-body {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #3D5270;
  padding-top: 20px;
}

.article-pro-cta {
  margin-top: 2.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 0.5rem;
}

.article-pro-cta h2,
.article-pro-cta h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.article-pro-cta p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

.article-pro-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.article-pro-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.article-pro-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.article-pro-cta .btn-ghost .icon,
.article-pro-cta .btn-ghost .icon-whatsapp,
.article-pro-cta .btn-ghost svg {
  color: #fff;
  fill: currentColor;
}

.article-pro-related {
  margin-top: 2.5rem;
}

.article-pro-related .products-grid {
  padding-inline: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.related-svc-section {
  margin-top: 2.75rem;
}

.related-svc-head {
  margin-bottom: 1rem;
}

.related-svc-carousel {
  position: relative;
}

.related-svc-viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  container-name: related-svc;
  border-radius: var(--radius);
}

.related-svc-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.related-svc-card {
  flex: 0 0 calc((100cqi - 2rem) / 3);
  width: calc((100cqi - 2rem) / 3);
  max-width: calc((100cqi - 2rem) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px -28px rgba(18, 35, 63, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-svc-card:hover {
  border-color: rgba(50, 139, 244, 0.35);
  box-shadow: 0 16px 36px -24px rgba(18, 35, 63, 0.4);
  transform: translateY(-2px);
}

.related-svc-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #eef5fd, #f8fbff);
  overflow: hidden;
}

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

.related-svc-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--primary-dark);
}

.related-svc-title {
  display: block;
  padding: 0.85rem 0.95rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.55;
  color: var(--brand-5);
  text-align: center;
}

.related-svc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.related-svc-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.related-svc-nav:hover:not(:disabled) {
  border-color: rgba(50, 139, 244, 0.4);
  background: #f7faff;
}

.related-svc-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.related-svc-status {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-5);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.related-svc-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1rem;
}

.related-svc-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(27, 76, 147, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.related-svc-dot.is-active {
  width: 1.15rem;
  background: var(--primary);
}

@media (max-width: 992px) {
  .related-svc-card {
    flex-basis: calc((100cqi - 1rem) / 2);
    width: calc((100cqi - 1rem) / 2);
    max-width: calc((100cqi - 1rem) / 2);
  }
}

@media (max-width: 720px) {
  .related-svc-section {
    margin-top: 1.75rem;
  }

  .related-svc-track {
    gap: 0;
  }

  .related-svc-card {
    flex-basis: 100cqi;
    width: 100cqi;
    max-width: 100cqi;
    border-radius: 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .related-svc-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .related-svc-photo {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .related-svc-title {
    padding: 0.65rem 0.15rem 0.2rem;
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .related-svc-controls {
    gap: 1rem;
    margin-top: 0.7rem;
  }

  .related-svc-nav {
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    background: #f3f7fc;
  }

  .related-svc-dots {
    display: none;
  }
}

.article-pro-comments {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
}

.article-pro-comments .comments-block,
.article-pro-comments .reviews-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: 1100px;
  margin-inline: auto;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.page-content th,
.page-content td {
  border: 1px solid var(--line-soft);
  padding: 0.5rem 0.75rem;
  text-align: start;
}

.page-content blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-right: 3px solid var(--primary);
  color: var(--muted);
  background: var(--teal-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-related {
  padding-top: 2rem;
}

.article-comments {
  padding-top: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.comments-block h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--muted);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.chip:hover,
.chip.is-active {
  color: var(--primary-dark);
  border-color: var(--teal-border);
  background: var(--teal-bg);
}

.blog-card-cat {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--primary);
}

.article time {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-bottom: 1rem;
}

.article .lead {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.category-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.side-nav {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

.side-nav h3 {
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.side-nav li {
  margin-bottom: 0.35rem;
}

.side-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.side-nav a:hover,
.side-nav a.is-active {
  background: var(--teal-bg);
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comments h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.reviews-section {
  --rv-navy: #0B4EA2;
  --rv-blue: #2478E8;
  --rv-bg: #F4F8FE;
  --rv-line: #DCE7F5;
  --rv-text: #102A4C;
  --rv-muted: #64748B;
  --rv-gold: #F5A800;
  --rv-purple: #8B3DFF;
  --rv-teal: #14A99A;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 8px;
}

.reviews-section-hr {
  display: block;
  width: 100%;
  flex: none;
  margin: 0 0 1.75rem;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

/* ---- Main column ---- */
.reviews-main {
  min-width: 0;
}

.reviews-head {
  margin-bottom: 18px;
  text-align: right;
}

.reviews-head h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rv-navy);
}

.reviews-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rv-muted);
}

/* ---- Rating overview ---- */
.reviews-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(11, 78, 162, 0.045);
}

.reviews-score {
  flex-shrink: 0;
  text-align: center;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--rv-line);
}

.reviews-score-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: var(--rv-navy);
}

.reviews-score-num strong {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.reviews-score-num span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rv-muted);
}

.reviews-score-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 6px 0 4px;
  color: var(--rv-gold);
}

.reviews-score p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--rv-muted);
}

.reviews-bars {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-bar-label {
  flex-shrink: 0;
  width: 3.6rem;
  font-size: 0.76rem;
  color: var(--rv-muted);
}

.reviews-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #EAF0F8;
  overflow: hidden;
}

.reviews-bar-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: var(--rv-blue);
}

.reviews-bar-count {
  flex-shrink: 0;
  min-width: 1.6rem;
  text-align: start;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rv-text);
}

.reviews-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--rv-muted);
  background: #fff;
  border: 1px dashed var(--rv-line);
  border-radius: 16px;
}

/* ---- Review cards ---- */
.reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(11, 78, 162, 0.04);
}

.review-card.is-hidden {
  display: none;
}

.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.review-avatar,
.review-staff-avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 800;
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: #E8F1FC;
  color: var(--rv-navy);
  font-size: 1rem;
}

.review-avatar.is-female {
  background: #FCE7F1;
  color: #DB2777;
}

.review-avatar img,
.review-staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-user-meta {
  min-width: 0;
}

.review-user-meta > strong {
  display: block;
  color: var(--rv-text);
  font-size: 0.95rem;
}

.review-user-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.review-user-title > strong {
  color: var(--rv-text);
  font-size: 0.95rem;
}

.review-user-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rv-line);
  background: #F4F8FE;
  color: var(--rv-blue);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.review-pending-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #E8D9B8;
  background: #F7F3EA;
  color: #8a5a12;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.review-card.is-pending {
  border-color: #E8D9B8;
  background: linear-gradient(180deg, #FFFCF7 0%, #fff 55%);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.1);
}

.review-card.is-pending .review-like[disabled] {
  opacity: 0.55;
  cursor: default;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  margin-top: 4px;
  color: var(--rv-gold);
}

.review-head > time,
.review-reply-head > time {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: var(--rv-muted);
  white-space: nowrap;
}

.reviews-section .icon-star.is-filled,
.reviews-section .icon-star.is-filled svg {
  fill: currentColor;
  stroke: currentColor;
  color: var(--rv-gold);
}

.reviews-section .icon-star.is-empty,
.reviews-section .icon-star.is-empty svg {
  fill: none;
  stroke: currentColor;
  color: var(--rv-gold);
}

.review-text,
.review-reply p {
  margin: 0;
  color: var(--rv-text);
  line-height: 1.9;
  font-size: 0.9rem;
}

/* ---- Card bottom: reply + like ---- */
.review-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.review-like {
  flex-shrink: 0;
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rv-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rv-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.review-like:hover {
  border-color: var(--rv-blue);
  color: var(--rv-blue);
}

.review-like.is-on {
  border-color: var(--rv-blue);
  background: var(--rv-bg);
  color: var(--rv-blue);
}

.review-like .icon {
  width: 16px;
  height: 16px;
}

.review-reply {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--rv-bg);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
}

.review-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-reply-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.review-staff-avatar {
  width: 38px;
  height: 38px;
  background: var(--rv-navy);
  color: #fff;
  font-size: 0.85rem;
}

.review-reply-who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.review-reply-who strong {
  color: var(--rv-text);
  font-size: 0.88rem;
}

.review-role {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #E4ECF7;
  color: var(--rv-text);
}

.review-role.is-dentist {
  background: var(--rv-blue);
  color: #fff;
}

/* ---- Load more ---- */
.reviews-more {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 0 4px;
}

.reviews-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 240px;
  padding: 10px 24px;
  border: 1px solid var(--rv-blue);
  border-radius: 12px;
  background: #fff;
  color: var(--rv-blue);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.reviews-more p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--rv-muted);
}

.reviews-more-btn:hover {
  background: var(--rv-bg);
}

/* ---- Submit form ---- */
.reviews-form {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(11, 78, 162, 0.05);
}

.reviews-form-head {
  text-align: center;
  margin-bottom: 16px;
}

.reviews-form-head h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rv-navy);
}

.reviews-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: var(--rv-muted);
}

.reviews-form .comment-stars-input {
  display: flex;
  flex-direction: row;
  justify-content: center;
  direction: ltr;
  gap: 0.25rem;
}

.reviews-form .comment-stars-input label {
  width: 34px;
  height: 34px;
  color: #d5deea;
}

.reviews-form .comment-stars-input label .icon-star,
.reviews-form .comment-stars-input label svg.icon-star,
.reviews-form .comment-stars-input label .icon-star path {
  fill: none !important;
  stroke: currentColor;
}

.reviews-form .comment-stars-input label:hover,
.reviews-form .comment-stars-input label:hover ~ label,
.reviews-form .comment-stars-input label:has(input:checked),
.reviews-form .comment-stars-input label:has(input:checked) ~ label {
  color: var(--rv-gold);
}

.reviews-form .comment-stars-input label:hover .icon-star,
.reviews-form .comment-stars-input label:hover svg.icon-star,
.reviews-form .comment-stars-input label:hover .icon-star path,
.reviews-form .comment-stars-input label:hover ~ label .icon-star,
.reviews-form .comment-stars-input label:hover ~ label svg.icon-star,
.reviews-form .comment-stars-input label:hover ~ label .icon-star path,
.reviews-form .comment-stars-input label:has(input:checked) .icon-star,
.reviews-form .comment-stars-input label:has(input:checked) svg.icon-star,
.reviews-form .comment-stars-input label:has(input:checked) .icon-star path,
.reviews-form .comment-stars-input label:has(input:checked) ~ label .icon-star,
.reviews-form .comment-stars-input label:has(input:checked) ~ label svg.icon-star,
.reviews-form .comment-stars-input label:has(input:checked) ~ label .icon-star path {
  fill: currentColor !important;
  stroke: currentColor;
}

.reviews-form .comment-stars-hint {
  display: block;
  margin: 8px 0 0;
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rv-gold);
}

.reviews-form .comment-stars-hint .is-idle {
  display: inline;
  color: var(--rv-muted);
  font-weight: 600;
}

.reviews-form .comment-stars-input:has(label:hover) ~ .comment-stars-hint .is-idle,
.reviews-form .comment-stars-input:has(input:checked) ~ .comment-stars-hint .is-idle {
  display: none;
}

.reviews-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.reviews-form-field > label,
.reviews-form-gender legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--rv-text);
}

.reviews-form-field input,
.reviews-form .comment-sheet-textarea textarea {
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--rv-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rv-text);
  font-family: inherit;
  font-size: 0.9rem;
}

.reviews-form-field input:focus,
.reviews-form .comment-sheet-textarea textarea:focus {
  outline: none;
  border-color: var(--rv-blue);
  box-shadow: 0 0 0 3px rgba(36, 120, 232, 0.12);
}

.reviews-form-field input::placeholder,
.reviews-form .comment-sheet-textarea textarea::placeholder {
  color: #9aafc6;
}

.reviews-form-lock {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--rv-muted);
}

.reviews-form-gender {
  border: 0;
  margin: 0 0 0.95rem;
  padding: 0;
  min-width: 0;
}

.reviews-form-gender legend {
  padding: 0;
  margin: 0 0 0.45rem;
}

.reviews-form .comment-gender-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.reviews-form .comment-gender-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--rv-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  color: var(--rv-text);
}

.comment-gender-glyph {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--rv-muted);
}

.reviews-form .comment-gender-cards label:has(input:checked) .comment-gender-card {
  border-color: var(--rv-blue);
  background: var(--rv-bg);
  color: var(--rv-navy);
}

.reviews-form .comment-gender-cards label:has(input:checked) .comment-gender-glyph {
  color: var(--rv-blue);
}

.reviews-form .comment-sheet-textarea textarea {
  min-height: 118px;
  padding-bottom: 1.7rem;
  resize: vertical;
  line-height: 1.8;
}

.reviews-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 12px;
  background: var(--rv-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.reviews-form-submit:hover:not(:disabled) {
  background: var(--rv-navy);
}

.reviews-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #94a3b8;
}

.reviews-form-submit-wrap {
  position: relative;
  margin-top: 1.35rem;
}

.reviews-field-error {
  margin: 0.4rem 0 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.6;
}

.reviews-form-submit-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 8;
  width: max-content;
  max-width: min(100%, 280px);
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #12233F;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.22);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.reviews-form-submit-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #12233F;
}

.reviews-form-submit-wrap.is-hint-open .reviews-form-submit-hint:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .reviews-form-submit-wrap:hover:has(.reviews-form-submit:disabled) .reviews-form-submit-hint:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.reviews-form-field.has-error input,
.reviews-form-field.has-error textarea,
.reviews-form-gender.has-error .comment-gender-card,
.reviews-form-head.has-error .comment-stars-input {
  border-color: #f5c6c6;
}

.reviews-form-field.has-error input,
.reviews-form-field.has-error textarea {
  box-shadow: 0 0 0 3px rgba(201, 79, 79, 0.1);
}

@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .reviews-form {
    position: static;
  }
}

@media (max-width: 560px) {
  .reviews-overview {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }
  .reviews-score {
    padding-inline-start: 0;
    border-inline-start: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rv-line);
  }
  .reviews-bar-label {
    width: 3.2rem;
  }
  .review-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .review-like {
    margin-inline-start: 0;
    align-self: flex-start;
  }
  .reviews-more-btn {
    width: 100%;
  }
}

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.comments-head h2 {
  margin: 0;
}

.comment-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.comment-card-main,
.comment-reply {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.comment-reply {
  margin-top: 0.95rem;
  margin-right: 2.4rem;
  padding: 0.9rem 1rem;
  background: #eef5fd;
  border: 1px solid #d5e6f8;
  border-radius: 14px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: #2669C0;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar.is-female { background: #db2777; }
.comment-avatar.is-admin { background: #1B4C93; }

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

.comment-card-body {
  min-width: 0;
  flex: 1;
}

.comment-card-body p {
  margin: 0;
  line-height: 1.85;
  color: var(--ink);
}

.comment-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.comment-card-who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.comment-chip,
.comment-tag,
.comment-reply-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.comment-chip {
  background: var(--teal-bg);
  color: var(--primary-dark);
  border: 1px solid var(--teal-border);
}

.comment-tag {
  background: #2669C0;
  color: #fff;
}

.comment-reply-label {
  background: #fff;
  color: #2669C0;
  border: 1px solid #c9dcf5;
}

.comment-stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--gold);
}

.comment-card-head time {
  color: var(--muted);
  font-size: 0.78rem;
  margin-right: auto;
}

.reviews-section .comment-sheet {
  margin-top: 32px;
}

.comment-sheet {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.comment-sheet-deco {
  position: absolute;
  top: -8px;
  left: -4px;
  width: 168px;
  color: #c5daf4;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.comment-sheet-deco svg {
  width: 100%;
  height: auto;
  display: block;
}

.comment-sheet-head,
.comment-sheet-rate,
.comment-sheet-grid,
.comment-sheet-gender,
.comment-sheet-field,
.comment-sheet-submit {
  position: relative;
  z-index: 1;
}

.comment-sheet-head {
  margin-bottom: 1.15rem;
}

.comment-sheet-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.comment-sheet-title-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.comment-sheet-title-icon svg {
  width: 26px;
  height: 26px;
}

.comment-sheet-head > p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.comment-sheet-privacy {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem !important;
  font-size: 0.75rem !important;
  color: var(--primary) !important;
}

.comment-sheet-privacy .icon {
  color: var(--primary);
  flex-shrink: 0;
}

.comment-sheet-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1.15rem;
}

.comment-sheet-label,
.comment-sheet-field > label,
.comment-sheet-gender legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.comment-stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.12rem;
  direction: ltr;
}

.comment-stars-input label {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  color: #d5deea;
}

.comment-stars-input input,
.comment-gender-cards input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

.comment-stars-input label:hover,
.comment-stars-input label:hover ~ label,
.comment-stars-input label:has(input:checked),
.comment-stars-input label:has(input:checked) ~ label {
  color: #e6b325;
}

.comment-stars-hint {
  margin: 0;
  margin-right: auto;
  min-width: 4.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e6b325;
}

.comment-stars-hint span {
  display: none;
}

.comment-stars-input:not(:has(label:hover)):has(input[value="1"]:checked) ~ .comment-stars-hint [data-for="1"],
.comment-stars-input:not(:has(label:hover)):has(input[value="2"]:checked) ~ .comment-stars-hint [data-for="2"],
.comment-stars-input:not(:has(label:hover)):has(input[value="3"]:checked) ~ .comment-stars-hint [data-for="3"],
.comment-stars-input:not(:has(label:hover)):has(input[value="4"]:checked) ~ .comment-stars-hint [data-for="4"],
.comment-stars-input:not(:has(label:hover)):has(input[value="5"]:checked) ~ .comment-stars-hint [data-for="5"],
.comment-stars-input:has(label:hover input[value="1"]) ~ .comment-stars-hint [data-for="1"],
.comment-stars-input:has(label:hover input[value="2"]) ~ .comment-stars-hint [data-for="2"],
.comment-stars-input:has(label:hover input[value="3"]) ~ .comment-stars-hint [data-for="3"],
.comment-stars-input:has(label:hover input[value="4"]) ~ .comment-stars-hint [data-for="4"],
.comment-stars-input:has(label:hover input[value="5"]) ~ .comment-stars-hint [data-for="5"] {
  display: inline;
}

.comment-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.comment-sheet-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.comment-sheet-field input,
.comment-sheet-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid #d7e3f1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

.comment-sheet-field input:focus,
.comment-sheet-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 105, 192, 0.12);
}

.comment-sheet-field input::placeholder,
.comment-sheet-field textarea::placeholder {
  color: #9aafc6;
}

.comment-sheet-lock {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.comment-sheet-gender {
  border: 0;
  margin: 0 0 0.95rem;
  padding: 0;
  min-width: 0;
}

.comment-sheet-gender legend {
  padding: 0;
  margin: 0 0 0.45rem;
}

.comment-gender-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.comment-gender-cards label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.comment-gender-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid #d7e3f1;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  color: var(--ink);
}

.comment-radio {
  width: 16px;
  height: 16px;
  border: 2px solid #c3d4e8;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.comment-gender-cards label:has(input:checked) .comment-gender-card {
  border-color: var(--primary);
  background: #eef5fd;
  color: var(--primary-dark);
}

.comment-gender-cards label:has(input:checked) .comment-radio {
  border-color: var(--primary);
}

.comment-gender-cards label:has(input:checked) .comment-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.comment-sheet-textarea {
  position: relative;
}

.comment-sheet-textarea textarea {
  min-height: 132px;
  padding-bottom: 1.7rem;
  resize: vertical;
  line-height: 1.8;
}

.comment-sheet-count {
  position: absolute;
  left: 0.85rem;
  bottom: 0.55rem;
  font-size: 0.72rem;
  color: #9aafc6;
  direction: ltr;
  pointer-events: none;
}

.comment-sheet-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.comment-sheet-submit:hover {
  background: var(--primary-dark);
}

.testimonial-avatar.is-female {
  background: linear-gradient(135deg, #db2777, #f472b6);
}

@media (max-width: 640px) {
  .comment-reply { margin-right: 0; }
  .comment-card-head time { margin-right: 0; width: 100%; }
  .comment-sheet-grid,
  .comment-gender-cards { grid-template-columns: 1fr; }
  .comment-sheet-submit { width: 100%; }
}

.comment-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--font-size-sm);
}

.comment-meta .score {
  color: var(--amber);
  font-weight: 700;
}

.comment-meta time {
  color: var(--muted);
  font-size: var(--font-size-xs);
}

.admin-answer {
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--teal-bg);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--primary);
}

.admin-answer strong {
  font-size: var(--font-size-xs);
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
}

.admin-answer p {
  font-size: var(--font-size-sm);
  margin: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: var(--font-size-sm);
}

.pagination a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 600;
  transition: background var(--duration) var(--ease);
}

.pagination a:hover {
  background: var(--teal-bg);
}

.pagination span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Page progress + quick contact + service callbar
   -------------------------------------------------------------------------- */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-progress.is-active {
  opacity: 1;
}

.page-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #1b4c93 0%, #328bf4 55%, #5aa4f7 100%);
  box-shadow: 0 0 10px rgba(50, 139, 244, 0.45);
  transition: transform 0.2s ease;
}

.page-progress.is-done .page-progress-bar {
  transition: transform 0.18s ease;
}

.quick-contact {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
  left: 1.5rem;
  z-index: 170;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.quick-contact-fab {
  width: auto;
  min-width: 3.6rem;
  height: 3.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #1b4c93 0%, #328bf4 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(27, 76, 147, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease, min-width 0.2s ease;
  position: relative;
}

.quick-contact-fab-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.quick-contact.is-open .quick-contact-fab {
  min-width: 3.6rem;
  width: 3.6rem;
  padding: 0;
  border-radius: 50%;
  background: #12325f;
}

.quick-contact-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(50, 139, 244, 0.35);
  opacity: 0.75;
  animation: quick-contact-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.quick-contact.is-open .quick-contact-fab::after {
  display: none;
}

@keyframes quick-contact-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.quick-contact-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(27, 76, 147, 0.8);
}

.quick-contact-fab-icon {
  display: inline-flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.quick-contact-fab-icon.is-close,
.quick-contact.is-open .quick-contact-fab-icon.is-open {
  opacity: 0;
  transform: scale(0.7) rotate(-20deg);
  pointer-events: none;
}

.quick-contact.is-open .quick-contact-fab-icon.is-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

.quick-contact-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 220px;
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 76, 147, 0.12);
  box-shadow: 0 18px 48px -24px rgba(18, 35, 63, 0.55);
  backdrop-filter: blur(10px);
}

.quick-contact-panel[hidden] {
  display: none !important;
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, transform 0.18s ease;
}

.quick-contact-item:hover {
  background: #f4f8fd;
  transform: translateX(-2px);
}

.quick-contact-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.quick-contact-item.is-call .quick-contact-ico {
  background: #1b4c93;
}

.quick-contact-item.is-booking .quick-contact-ico {
  background: #328bf4;
}

.quick-contact-item.is-wa .quick-contact-ico {
  background: #25d366;
}

.quick-contact-item.is-tg .quick-contact-ico {
  background: #2aabee;
}

.quick-contact-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.quick-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.quick-contact-copy strong {
  font-size: 0.9rem;
  color: var(--brand-5);
  line-height: 1.3;
}

.quick-contact-copy small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.service-callbar {
  display: none;
}

@media (max-width: 980px) {
  .quick-contact {
    display: none !important;
  }

  body.has-service-callbar .service-callbar {
    display: flex;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    z-index: 170;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0.65rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1b4c93 0%, #328bf4 100%);
    box-shadow: 0 14px 36px -16px rgba(27, 76, 147, 0.85);
  }

  body.has-service-callbar {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
  }

  .service-callbar-ico {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .service-callbar-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.25;
    text-align: right;
  }

  .service-callbar-text strong {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .service-callbar-text span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
}

/* --------------------------------------------------------------------------
   WhatsApp FAB (legacy removed — kept for print cleanup)
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive — 980px
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .app {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  .main,
  .main-content,
  .article-pro {
    max-width: 100%;
    min-width: 0;
  }

  .mobile-topbar {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 85vw);
    height: 100vh;
    max-width: 100%;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration-slow) var(--ease), visibility var(--duration-slow) var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 220;
  }

  .sidebar.is-open,
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .close-sidebar {
    display: flex;
  }

  .sidebar-reopen {
    display: none !important;
  }

  .app.is-sidebar-collapsed .sidebar {
    transform: translateX(100%);
  }

  .app.is-sidebar-collapsed .sidebar.is-open,
  .app.is-sidebar-collapsed .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.75;
    max-width: 34rem;
  }

  .hero-title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    margin-bottom: 0.75rem;
  }

  .title-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .hero-buttons {
    justify-content: center;
    margin-bottom: 1.35rem;
    gap: 0.6rem;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }

  .hero-stats {
    justify-content: center;
    gap: 0.25rem;
    padding: 0.85rem 0.75rem;
    width: 100%;
  }

  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 52%,
      rgba(255, 255, 255, 0.78) 100%
    );
  }

  .hero-section {
    min-height: auto;
    padding: 1.35rem 1rem 1.85rem;
  }

  .about-banner-content {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .about-banner-visual {
    max-width: 100%;
    margin-inline: auto;
  }

  .home-andisheh-inner {
    padding-inline: 1.25rem;
  }

  .home-andisheh-grid {
    grid-template-columns: 1fr;
  }

  .home-andisheh-why {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .about-slider {
    min-height: 240px;
  }

  .section-header-top {
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
  }

  .section-title-hr {
    order: 3;
    flex: 1 1 100%;
    min-width: 100%;
  }

  .section-header-link {
    margin-inline-start: auto;
  }

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

  .footer-nav-col {
    justify-content: center;
  }

  .footer-contact-col {
    align-items: center;
    text-align: center;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    grid-template-columns: 1fr 1fr;
  }

  .article-pro {
    padding-inline: 1rem;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .custom-cta-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .custom-cta-actions {
    justify-content: center;
  }

  .consult-cta {
    margin-inline: 1.5rem;
    padding-bottom: 2rem;
  }

  .consult-cta-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .consult-cta-actions {
    justify-content: center;
  }

  .categories-section,
  .testimonials-section {
    padding: 3rem 1.5rem;
  }

  .about-banner-section {
    padding: 2.25rem 0 3rem;
  }

  .about-banner {
    padding-inline: 1rem;
  }

  .custom-cta {
    margin: 0 1.5rem 3rem;
  }

  .page-shell {
    padding: 1.5rem;
  }

  .page-hero {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-stat-divider {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.7rem 0.5rem;
    align-items: stretch;
  }

  .hero-stat-item {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.2rem;
  }

  .hero-stat-icon {
    width: 28px;
    height: 28px;
  }

  .hero-stat-text strong {
    font-size: 0.92rem;
  }

  .hero-stat-text span {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 1.42rem;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    justify-content: center;
    padding-inline: 0.65rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .categories-grid-modern,
  .portfolio-grid,
  .products-grid,
  .testimonials-grid,
  .card-grid,
  .article-pro-related .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .hero-section.is-compact.contact-hero {
    min-height: 0;
    padding: 1.25rem 1.15rem 0.35rem;
  }

  .contact-hero .hero-content {
    padding: 0;
  }

  .contact-hero .hero-title {
    font-size: 1.22rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .contact-hero-desc {
    display: none;
  }

  .contact-quick-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.75rem 1.15rem 0.25rem;
  }

  .contact-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid transparent;
  }

  .contact-quick-btn.is-call {
    background: var(--primary);
    color: #fff;
  }

  .contact-quick-btn.is-wa {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
  }

  .contact-channels-section {
    padding: 1.35rem 1.15rem 0.5rem;
  }

  .contact-channels-section .section-header {
    margin-bottom: 0.85rem;
  }

  .contact-channels-section .section-header h2 {
    font-size: 1.15rem;
  }

  .contact-channels-sub {
    display: none;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .contact-channel {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    text-align: start;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 0.85rem 0.95rem;
    background: transparent;
  }

  .contact-channel:last-child {
    border-bottom: none;
  }

  .contact-channel-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
  }

  .contact-channel-body h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }

  .contact-channel-body p {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
  }

  .contact-channel-sep {
    display: inline-block;
  }

  .contact-form-section {
    padding: 1rem 1.15rem 2rem;
  }

  .contact-page-grid {
    gap: 0.85rem;
  }

  .contact-cta-card {
    display: none;
  }

  .contact-form.page-card {
    padding: 1rem 0.9rem 1.1rem;
    border-radius: var(--radius-lg);
  }

  .contact-form h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .contact-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .contact-form label {
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
  }

  .contact-form label span {
    margin-bottom: 0.2rem;
  }

  .contact-form input,
  .contact-form textarea {
    margin-top: 0;
    padding: 0.65rem 0.7rem;
    font-size: 0.95rem;
    border-radius: 10px;
    background: #f8fafc;
    border-color: var(--line-soft);
  }

  .contact-form textarea {
    min-height: 84px;
    resize: vertical;
  }

  .contact-form .btn-block {
    margin-top: 0.15rem;
    min-height: 46px;
    border-radius: 12px;
  }

  .map-wrap iframe {
    height: 200px;
  }

  .faq-item p {
    padding-right: 1.35rem;
  }

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

  .footer-bottom {
    padding: 0.75rem 1.5rem 1.1rem;
  }

  .flash {
    margin: 0.75rem 1rem 0;
  }

  .visual-card {
    width: 220px;
    height: 220px;
  }

  .hero-logo-box span {
    font-size: 2.25rem;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-page-card {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 1.25rem;
  }

  .map-wrap iframe {
    height: 200px;
  }
}

/* --------------------------------------------------------------------------
   Print & Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .sidebar,
  .mobile-topbar,
  .mobile-bottom-nav,
  .whatsapp-fab,
  .quick-contact,
  .service-callbar,
  .page-progress,
  .sidebar-overlay,
  .sidebar-reopen,
  .close-sidebar {
    display: none !important;
  }

  .app {
    display: block;
  }

  body {
    background: #fff;
  }
}

/* v2.0.1 layout polish */
body.sidebar-open {
  overflow: hidden;
}

.product-card-new .product-title {
  color: var(--ink);
}

.product-card-new .product-tagline,
.product-card-new .pricing-label {
  color: var(--muted);
}

.cat-modern-count {
  color: var(--muted);
  font-size: var(--font-size-xs);
}

.products-grid,
.categories-grid-modern,
.portfolio-grid,
.testimonials-grid {
  padding-inline: 0;
}

@media (max-width: 980px) {
  .hero-section,
  .categories-section,
  .testimonials-section,
  .page-shell,
  .breadcrumb {
    padding-inline: 1rem;
  }
}

.floating-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

/* Composite landing (ported from dentist777.com) */
.landing-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.landing-title::before,
.landing-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c4b5fd, transparent);
}

.landing-title h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  line-height: 1.7;
  color: var(--primary-dark);
  font-weight: 900;
}

.landing-hero,
.landing-figure {
  margin: 0 0 1.5rem;
}

.landing-hero img,
.landing-figure img {
  display: block;
  width: min(800px, 100%);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 0.5rem;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.landing-kicker::before,
.landing-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd6fe;
}

.landing-kicker span {
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.landing-close {
  text-align: center;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.9;
  margin: 0 0 2rem;
}

.work-gallery {
  margin: 0 0 1.75rem;
}

.work-gallery-hint {
  margin: -0.35rem 0 0.85rem;
  text-align: center;
  color: #6b7f99;
  font-size: 0.84rem;
  font-weight: 600;
}

.work-gallery-frame {
  position: relative;
}

.work-gallery-frame::before,
.work-gallery-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.25rem;
  z-index: 1;
  pointer-events: none;
}

.work-gallery-frame::before {
  right: 0;
  background: linear-gradient(270deg, #fff 10%, transparent);
}

.work-gallery-frame::after {
  left: 0;
  background: linear-gradient(90deg, #fff 10%, transparent);
}

.work-gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.35rem 2.75rem 0.55rem;
  scroll-behavior: smooth;
}

.work-gallery-track::-webkit-scrollbar {
  display: none;
}

.work-gallery-track figure {
  flex: 0 0 min(68%, 250px);
  margin: 0;
  scroll-snap-align: center;
}

.work-gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: zoom-in;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.work-gallery-thumb:focus-visible {
  outline: 2px solid var(--primary, #2669C0);
  outline-offset: 3px;
}

.work-gallery-track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.work-gallery-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

.work-gallery-zoom {
  position: absolute;
  inset: auto 0.65rem 0.65rem auto;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark, #1B4C93);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.work-gallery-thumb:hover .work-gallery-zoom,
.work-gallery-thumb:focus-visible .work-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.work-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 76, 147, 0.88);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(27, 76, 147, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-gallery-btn:hover {
  background: #1B4C93;
  transform: translateY(-50%) scale(1.04);
}

.work-gallery-btn.is-prev { right: 0.15rem; }
.work-gallery-btn.is-next { left: 0.15rem; }

.work-gallery-count {
  margin: 0.55rem 0 0;
  text-align: center;
  color: #6b7f99;
  font-size: 0.8rem;
  font-weight: 700;
}

.work-lightbox {
  padding: 0;
  border: 0;
  margin: auto;
  width: min(960px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  background: transparent;
  color: inherit;
  overflow: visible;
}

.work-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.is-work-lightbox-open {
  overflow: hidden;
}

.work-lightbox-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78dvh, 720px);
  padding: 2.5rem 3.25rem 2rem;
  -webkit-user-select: none;
  user-select: none;
}

.work-lightbox-stage {
  margin: 0;
  width: min(100%, 860px);
  text-align: center;
}

.work-lightbox-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72dvh, 680px);
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #0f172a;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.work-lightbox-caption {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.7;
}

.work-lightbox-counter {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}

.work-lightbox-close,
.work-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.work-lightbox-close:hover,
.work-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.work-lightbox-close {
  top: 0.35rem;
  left: 0.35rem;
  width: 44px;
  height: 44px;
}

.work-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.work-lightbox-nav.is-prev { right: 0.15rem; }
.work-lightbox-nav.is-next { left: 0.15rem; }

@media (max-width: 720px) {
  .work-lightbox-shell {
    padding: 3rem 0.75rem 1.25rem;
  }

  .work-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .work-lightbox-stage img {
    max-height: min(62dvh, 520px);
    border-radius: 0.5rem;
  }
}
#emi-wizard-777 {
  --pri-start: #2669C0;
  --pri-end: #1B4C93;
  --g: linear-gradient(45deg, var(--pri-start) 0%, var(--pri-end) 100%);
  --ring: rgba(38, 105, 192, .28);
  --bg: #E8F1FC;
  --panel: #FFFFFF;
  --bd: #C9DCF5;
  --txt: #12233F;
  --muted: #5A6F8A;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 18px;
  margin: 1.5rem 0;
}

#emi-wizard-777 h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--txt);
  scroll-margin-top: 5.5rem;
}

#emi-wizard-777 .lead { margin: 0 0 10px; color: var(--muted); }
#emi-wizard-777 .card {
  background: var(--panel);
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 14px;
  margin-bottom: 12px;
}
#emi-wizard-777 .card ul {
  margin: 6px 0 0;
  padding-inline-start: 20px;
  line-height: 1.9;
  color: var(--txt);
}
#emi-wizard-777 .pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F4EEFF;
  border: 1px solid var(--bd);
  color: var(--txt);
  padding: 8px 12px;
  border-radius: 0.5rem;
  font-size: .92rem;
  margin: 8px 0 0;
}
#emi-wizard-777 .wiz-steps {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
#emi-wizard-777 .wiz-steps .stepdot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}
#emi-wizard-777 .wiz-steps .bullet {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--bd);
  color: var(--muted);
  font-size: .9rem;
  background: #fff;
  flex-shrink: 0;
}
#emi-wizard-777 .wiz-steps .label { font-size: .9rem; color: var(--muted); white-space: nowrap; }
#emi-wizard-777 .wiz-steps .active .bullet,
#emi-wizard-777 .wiz-steps .done .bullet {
  border-color: transparent;
  background-image: var(--g);
  color: #fff;
}
#emi-wizard-777 .wiz-steps .active .bullet { box-shadow: 0 0 0 5px var(--ring); }
#emi-wizard-777 .brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#emi-wizard-777 .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}
#emi-wizard-777 .brand input { display: none; }
#emi-wizard-777 .brand.selected {
  box-shadow: 0 0 0 2px var(--ring);
  border-color: var(--pri-start);
}
#emi-wizard-777 .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
}
#emi-wizard-777 .unit { margin-inline-start: auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
#emi-wizard-777 .row { display: grid; gap: 10px; }
#emi-wizard-777 label { font-size: .95rem; color: var(--txt); }
#emi-wizard-777 input[type="number"],
#emi-wizard-777 select,
#emi-wizard-777 input[type="tel"],
#emi-wizard-777 input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
}
#emi-wizard-777 .months,
#emi-wizard-777 .yesno { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
#emi-wizard-777 .pill { position: relative; }
#emi-wizard-777 .pill input { position: absolute; inset: 0; opacity: 0; }
#emi-wizard-777 .pill .ui {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 0.5rem;
  border: 1px solid var(--bd);
  background: #fff;
  cursor: pointer;
}
#emi-wizard-777 .pill.active .ui {
  border-color: transparent;
  box-shadow: 0 0 0 4px var(--ring);
  background-image: var(--g);
  color: #fff;
}
#emi-wizard-777 .out {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}
#emi-wizard-777 .kv {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 12px;
}
#emi-wizard-777 .kv .k { color: #6B7F99; font-size: .88rem; }
#emi-wizard-777 .kv .v { font-weight: 800; margin-top: 4px; color: #12233F; }
#emi-wizard-777 .nav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bd);
  flex-wrap: wrap;
}
#emi-wizard-777 .nav[hidden],
#emi-wizard-777 .step[hidden],
#emi-wizard-777 #monthsWrap[hidden],
#emi-wizard-777 [hidden] {
  display: none !important;
}
#emi-wizard-777 .steps-stage {
  position: relative;
  overflow: hidden;
  min-height: 4rem;
  /* keep room so last-item borders/shadows are not clipped by overflow */
  padding: 2px 2px 10px;
  margin-bottom: 2px;
}
#emi-wizard-777 .steps-stage > .step {
  width: 100%;
  opacity: 1;
  transform: none;
  padding-bottom: 2px;
  transition:
    opacity .3s cubic-bezier(.22, 1, .36, 1),
    transform .34s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
#emi-wizard-777 .steps-stage > .step.is-switching {
  display: block !important;
}
#emi-wizard-777 .steps-stage > .step.is-leave {
  position: absolute;
  inset-inline: 0;
  top: 0;
  pointer-events: none;
  z-index: 1;
}
#emi-wizard-777 .steps-stage > .step.is-leave-forward {
  opacity: 0;
  transform: translateX(-18px);
}
#emi-wizard-777 .steps-stage > .step.is-leave-back {
  opacity: 0;
  transform: translateX(18px);
}
#emi-wizard-777 .steps-stage > .step.is-enter {
  position: relative;
  z-index: 2;
  opacity: 0;
}
#emi-wizard-777 .steps-stage > .step.is-enter-forward {
  transform: translateX(18px);
}
#emi-wizard-777 .steps-stage > .step.is-enter-back {
  transform: translateX(-18px);
}
#emi-wizard-777 .steps-stage > .step.is-enter-active {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #emi-wizard-777 .steps-stage > .step {
    transition: none !important;
  }
}
#emi-wizard-777 .nav-final-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#emi-wizard-777 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 0.5rem;
  border: 1px solid var(--bd);
  background: #fff;
  color: #12233F;
  min-width: 110px;
  cursor: pointer;
  font: inherit;
}
#emi-wizard-777 .btn.primary { border-color: transparent; background-image: var(--g); color: #fff; }
#emi-wizard-777 .btn.prev,
#emi-wizard-777 .btn.ghost { border-color: #C9B6F4; color: #3B1B74; }
#emi-wizard-777 .btn[disabled] { opacity: .5; pointer-events: none; }
#emi-wizard-777 .note { color: #6B7F99; font-size: .9rem; margin: 8px 0 12px; }
#emi-wizard-777 .err { color: #b91c1c; font-size: .88rem; margin-top: 6px; display: none; }

/* ---- Shared step header ---- */
#emi-wizard-777 .step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bd);
}
#emi-wizard-777 .step-head-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  color: var(--pri-start);
  background: #E8F1FC;
}
#emi-wizard-777 .step-head-title { font-weight: 800; color: var(--txt); font-size: 1.02rem; }
#emi-wizard-777 .step-head-sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* ---- Step 1: brands (compact horizontal rows) ---- */
#emi-wizard-777 .brands {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#emi-wizard-777 .brand {
  position: relative;
  flex-direction: row;
  align-items: center;
  text-align: start;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  min-height: 0;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
#emi-wizard-777 .brand:hover { border-color: var(--pri-start); background: #FAFCFF; }
#emi-wizard-777 .brand.selected {
  box-shadow: 0 0 0 2px var(--ring);
  border-color: var(--pri-start);
  background: #F3F8FF;
}
#emi-wizard-777 .brand-check {
  position: static;
  inset: auto;
  order: -1;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transform: none;
  color: transparent;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #C9DCF5;
  background-image: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
  pointer-events: none;
}
#emi-wizard-777 .brand.selected .brand-check {
  color: #fff;
  background-image: var(--g);
  box-shadow: none;
}
#emi-wizard-777 .brand-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  flex: 1 1 auto;
}
#emi-wizard-777 .brand-fa {
  font-weight: 800;
  color: var(--txt);
  font-size: .92rem;
  line-height: 1.3;
}
#emi-wizard-777 .brand-latin {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  direction: ltr;
}
#emi-wizard-777 .brand-flag-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: .74rem;
  width: 100%;
  margin: 0;
}
#emi-wizard-777 .brand-flag-row .flag { width: 16px; height: 11px; border-radius: 2px; }
#emi-wizard-777 .brand-cost {
  display: grid;
  justify-items: end;
  gap: 1px;
  margin-inline-start: auto;
  flex: 0 0 auto;
  text-align: end;
}
#emi-wizard-777 .brand-price {
  font-weight: 800;
  color: var(--pri-start);
  font-size: .95rem;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}
#emi-wizard-777 .brand-price-unit {
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}

/* ---- Step 2: units (minimal) ---- */
#emi-wizard-777 .units-panel {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
#emi-wizard-777 .units-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
#emi-wizard-777 .units-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bd);
  background: #fff;
  border-radius: 0.55rem;
  color: var(--pri-start);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}
#emi-wizard-777 .units-btn:hover { background: #E8F1FC; border-color: var(--pri-start); }
#emi-wizard-777 .units-btn:active { transform: translateY(1px); }
#emi-wizard-777 .units-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
  background: #F3F6FA;
  color: #8FA0B5;
}
#emi-wizard-777 .units-btn:disabled:hover { background: #F3F6FA; border-color: var(--bd); }
#emi-wizard-777 .units-value {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 88px;
  padding: 4px 10px;
  border: 1px solid var(--bd);
  border-radius: 0.55rem;
  background: #F7FAFF;
}
#emi-wizard-777 .units-control input[type="number"] {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--txt);
  padding: 2px 0 0;
  line-height: 1.2;
  caret-color: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
#emi-wizard-777 .units-control input[type="number"]:focus {
  outline: none;
  box-shadow: none;
}
#emi-wizard-777 .units-value:focus-within {
  border-color: var(--pri-start);
  box-shadow: 0 0 0 2px var(--ring);
}
#emi-wizard-777 .units-suffix {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 4px;
}
#emi-wizard-777 .units-control input[type="number"]::-webkit-outer-spin-button,
#emi-wizard-777 .units-control input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#emi-wizard-777 .units-control input[type="number"] { -moz-appearance: textfield; }
#emi-wizard-777 .units-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 6px;
  margin: 0;
}
#emi-wizard-777 .unit-quick {
  padding: 8px 4px;
  border-radius: 0.5rem;
  border: 1px solid var(--bd);
  background: #fff;
  color: var(--txt);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
#emi-wizard-777 .unit-quick b { font-weight: 800; }
#emi-wizard-777 .unit-quick:hover { border-color: var(--pri-start); background: #FAFCFF; }
#emi-wizard-777 .unit-quick.active {
  border-color: transparent;
  background-image: var(--g);
  color: #fff;
  box-shadow: 0 0 0 2px var(--ring);
}
#emi-wizard-777 .units-note { text-align: center; margin-top: 4px; }

/* ---- Step 3: payment (minimal) ---- */
#emi-wizard-777 .pay-panel {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
#emi-wizard-777 .yesno {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  flex-wrap: nowrap;
}
#emi-wizard-777 .yesno:has(.pay-opt:only-child) {
  grid-template-columns: 1fr;
}
#emi-wizard-777 .pay-opt { flex: none; margin: 0; }
#emi-wizard-777 .pay-opt .ui {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 0.55rem;
  border: 1px solid var(--bd);
  background: #fff;
  box-shadow: none;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#emi-wizard-777 .pay-opt:hover .ui { border-color: var(--pri-start); background: #FAFCFF; }
#emi-wizard-777 .pay-opt .pay-opt-check {
  margin: 0;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #C9DCF5;
  background-image: none;
  opacity: 1;
  transform: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
#emi-wizard-777 .pay-opt .pay-opt-body {
  display: grid;
  gap: 1px;
  text-align: start;
  min-width: 0;
  flex: 1 1 auto;
}
#emi-wizard-777 .pay-opt .pay-opt-body b {
  color: var(--txt);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
}
#emi-wizard-777 .pay-opt .pay-opt-body small {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
#emi-wizard-777 .pay-opt .pay-opt-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  color: var(--pri-start);
  background: #E8F1FC;
  margin-inline-start: auto;
}
#emi-wizard-777 .pay-opt.active .ui {
  border-color: var(--pri-start);
  background: #F3F8FF;
  box-shadow: 0 0 0 2px var(--ring);
  color: inherit;
  background-image: none;
}
#emi-wizard-777 .pay-opt.active .pay-opt-check {
  color: #fff;
  background-image: var(--g);
  box-shadow: none;
  opacity: 1;
  transform: none;
}

#emi-wizard-777 .pay-extra { display: grid; gap: 8px; }
#emi-wizard-777 .pay-extra-label {
  font-size: .86rem;
  font-weight: 700;
  color: var(--txt);
  text-align: center;
}
#emi-wizard-777 .months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  margin: 0;
  flex-wrap: nowrap;
}
#emi-wizard-777 .months .pill { margin: 0; }
#emi-wizard-777 .months .pill .ui {
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
#emi-wizard-777 .months .pill .ui b {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}
#emi-wizard-777 .months .pill .ui small {
  font-size: .68rem;
  font-weight: 600;
  opacity: .8;
}
#emi-wizard-777 .months .pill.active .ui {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--ring);
  background-image: var(--g);
  color: #fff;
}

#emi-wizard-777 .pay-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 0.5rem;
  border: 1px solid var(--bd);
  background: #F7FAFF;
  color: #2A4A73;
  font-size: .78rem;
  box-sizing: border-box;
}
#emi-wizard-777 .pay-note .icon { color: var(--pri-start); flex: 0 0 auto; }

#emi-wizard-777 .pay-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 2px;
}
#emi-wizard-777 .pay-value {
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #fff;
  padding: 8px 6px;
  text-align: center;
  display: grid;
  gap: 2px;
}
#emi-wizard-777 .pay-value-k {
  color: var(--muted);
  font-size: .72rem;
  margin: 0;
  font-weight: 600;
}
#emi-wizard-777 .pay-value-v {
  font-weight: 800;
  color: var(--pri-start);
  font-size: .88rem;
  line-height: 1.25;
  word-break: break-word;
}

/* ---- Stepper: check on done ---- */
#emi-wizard-777 .wiz-steps .done .bullet { font-size: 0; position: relative; }
#emi-wizard-777 .wiz-steps .done .bullet::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---- Result step (minimal) ---- */
#emi-wizard-777 .step-result { display: block; }
#emi-wizard-777 .result-panel {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding-bottom: 2px;
}
#emi-wizard-777 .result-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: start;
  margin: 0 0 2px;
}
#emi-wizard-777 .result-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-image: var(--g);
  color: #fff;
  box-shadow: none;
  flex: 0 0 auto;
}
#emi-wizard-777 .result-head-text { min-width: 0; }
#emi-wizard-777 .result-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--txt);
  font-weight: 800;
  line-height: 1.3;
}
#emi-wizard-777 .result-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
#emi-wizard-777 .result-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #F7FAFF;
  padding: 8px 10px;
  margin: 0;
  font-size: .84rem;
  color: var(--txt);
}
#emi-wizard-777 .result-contact .rc-info {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  font-weight: 700;
}
#emi-wizard-777 .result-contact .rc-sep { color: var(--muted); font-weight: 500; }
#emi-wizard-777 .result-contact .rc-lock { color: var(--muted); display: inline-flex; flex: 0 0 auto; }

#emi-wizard-777 .result-selection {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
}
#emi-wizard-777 .rs-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #fff;
}
#emi-wizard-777 .rs-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  color: var(--pri-start);
  background: #E8F1FC;
}
#emi-wizard-777 .rs-ico svg { width: 14px; height: 14px; }
#emi-wizard-777 .rs-body { min-width: 0; }
#emi-wizard-777 .rs-title {
  font-weight: 800;
  color: var(--txt);
  font-size: .84rem;
  line-height: 1.35;
  word-break: break-word;
}
#emi-wizard-777 .rs-sub {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.3;
}

#emi-wizard-777 .step-result .out {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
#emi-wizard-777 .step-result .kv {
  background: #F7FAFF;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 8px 6px;
  text-align: center;
}
#emi-wizard-777 .step-result .kv .k {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}
#emi-wizard-777 .step-result .kv .v {
  font-weight: 800;
  margin-top: 2px;
  color: var(--pri-start);
  font-size: .9rem;
  line-height: 1.3;
  word-break: break-word;
}

#emi-wizard-777 .result-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  background: #F7FAFF;
  border: 1px solid var(--bd);
  color: #2A4A73;
  border-radius: 0.5rem;
  padding: 7px 10px;
  font-size: .76rem;
  margin: 0;
}
#emi-wizard-777 .result-note .icon { color: var(--pri-start); flex: 0 0 auto; }

#emi-wizard-777 .result-actions {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
}
#emi-wizard-777 .result-actions .btn {
  gap: 6px;
  width: 100%;
  flex: none;
  min-width: 0;
  padding: 10px 12px;
  font-size: .9rem;
}
#emi-wizard-777 .result-actions .btn.primary {
  flex: none;
}
#emi-wizard-777 .result-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#emi-wizard-777 .result-summary {
  border: 1px solid var(--bd);
  border-radius: 0.75rem;
  background: #fff;
  padding: 16px;
  position: sticky;
  top: 1rem;
}
#emi-wizard-777 .rsum-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--txt);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bd);
}
#emi-wizard-777 .rsum-ico { color: var(--pri-start); display: inline-flex; }
#emi-wizard-777 .rsum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#emi-wizard-777 .rsum-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .92rem;
  position: relative;
  padding-inline-start: 14px;
}
#emi-wizard-777 .rsum-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pri-start);
}
#emi-wizard-777 .rsum-list li span { color: var(--muted); }
#emi-wizard-777 .rsum-list li b { color: var(--txt); font-weight: 700; }
#emi-wizard-777 .rsum-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bd);
  text-align: center;
}
#emi-wizard-777 .rsum-total-k { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
#emi-wizard-777 .rsum-total-v { color: var(--pri-start); font-weight: 800; font-size: 1.35rem; letter-spacing: .3px; }
#emi-wizard-777 .result-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 0.75rem;
  background: #fff;
}
#emi-wizard-777 .rc-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--txt); }
#emi-wizard-777 .rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F1F6FE;
  border: 1px solid var(--bd);
  color: #2A4A73;
  font-size: .86rem;
}
#emi-wizard-777 .rc-chip .icon { color: var(--pri-start); }
#emi-wizard-777 .rc-chip b { color: var(--txt); font-weight: 700; }

@media (max-width: 860px) {
  #emi-wizard-777 .result-selection { grid-template-columns: 1fr 1fr; }
  #emi-wizard-777 .step-result .out { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  #emi-wizard-777 .result-selection { grid-template-columns: 1fr 1fr; }
  #emi-wizard-777 .step-result .out { grid-template-columns: 1fr 1fr; }
  #emi-wizard-777 .result-actions .btn { flex: none; }
}

/* ---- Wizard hero header ---- */
#emi-wizard-777 .wiz-hero { text-align: center; margin: 6px 0 16px; }
#emi-wizard-777 .wiz-hero h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--txt); scroll-margin-top: 5.5rem; }
#emi-wizard-777 .wiz-hero-sub { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Centered step header ---- */
#emi-wizard-777 .step-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 0;
  gap: 8px;
}

/* ---- Step 2: live calc bar ---- */
#emi-wizard-777 .units-calc {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bd);
  border-radius: 0.55rem;
  background: #F7FAFF;
  padding: 8px 12px;
  margin: 0 0 2px;
  box-sizing: border-box;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
#emi-wizard-777 .units-calc-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1), filter .22s ease;
}
#emi-wizard-777 .units-calc-total {
  font-weight: 700;
  color: var(--muted);
  font-size: .82rem;
}
#emi-wizard-777 .units-calc-total b {
  color: var(--pri-start);
  font-weight: 800;
  font-size: .95rem;
  display: inline-block;
  transition: color .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
#emi-wizard-777 .units-calc-expr {
  color: var(--muted);
  font-size: .78rem;
}
#emi-wizard-777 .units-calc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, .55) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  pointer-events: none;
  opacity: 0;
}
#emi-wizard-777 .units-calc.is-updating {
  border-color: #9FC0EB;
  background: #EEF5FF;
  box-shadow: 0 0 0 3px rgba(50, 139, 244, .12);
}
#emi-wizard-777 .units-calc.is-updating::after {
  opacity: 1;
  animation: emiUnitsShimmer .7s ease-out;
}
#emi-wizard-777 .units-calc.is-updating .units-calc-body {
  opacity: .35;
  filter: blur(1.5px);
  transform: translateY(4px) scale(.985);
}
#emi-wizard-777 .units-calc.is-revealing .units-calc-body {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
}
#emi-wizard-777 .units-calc.is-revealing #unitsCalcTotal {
  animation: emiUnitsPop .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes emiUnitsShimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes emiUnitsPop {
  0% { transform: scale(.92); opacity: .6; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #emi-wizard-777 .units-calc::after,
  #emi-wizard-777 .units-calc.is-updating::after,
  #emi-wizard-777 .units-calc.is-revealing #unitsCalcTotal {
    animation: none !important;
  }
  #emi-wizard-777 .units-calc-body,
  #emi-wizard-777 .units-calc.is-updating .units-calc-body {
    filter: none;
    transform: none;
    transition: opacity .15s ease;
  }
}

/* ---- Step 3: months/pay values handled in pay-panel block above ---- */

/* ---- Step 4: contact (minimal) ---- */
#emi-wizard-777 .lead-panel {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
#emi-wizard-777 .lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: none;
  margin: 0;
}
#emi-wizard-777 .lead-field label {
  display: block;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 5px;
  font-size: .84rem;
}
#emi-wizard-777 .lead-input { position: relative; }
#emi-wizard-777 .lead-input input {
  width: 100%;
  padding: 9px 12px;
  padding-inline-start: 36px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#emi-wizard-777 .lead-input input:focus {
  outline: none;
  border-color: var(--pri-start);
  box-shadow: 0 0 0 2px var(--ring);
  background: #FAFCFF;
}
#emi-wizard-777 .lead-input input::placeholder { color: #9AA8BC; }
#emi-wizard-777 .lead-valid {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background-image: var(--g);
  color: #fff;
  pointer-events: none;
}
#emi-wizard-777 .lead-meta {
  display: grid;
  gap: 8px;
}
#emi-wizard-777 .lead-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .75rem;
  margin: 0;
  line-height: 1.4;
}
#emi-wizard-777 .lead-hint .icon { color: var(--pri-start); flex: 0 0 auto; }
#emi-wizard-777 .lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: var(--txt);
  font-size: .84rem;
  line-height: 1.45;
  padding: 8px 10px;
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  background: #F7FAFF;
}
#emi-wizard-777 .lead-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--pri-start);
}

/* ---- Nav buttons ---- */
#emi-wizard-777 .nav .btn { gap: 6px; }

@media (max-width: 860px) {
  #emi-wizard-777 .wiz-steps .label { font-size: .8rem; }
}
@media (max-width: 720px) {
  #emi-wizard-777 .brands { grid-template-columns: 1fr 1fr; }
  #emi-wizard-777 .result-contact { flex-wrap: wrap; }
}

/* ---- Mobile: minimal & touch friendly ---- */
@media (max-width: 640px) {
  #emi-wizard-777 { padding: 12px; margin: 1rem 0; }
  #emi-wizard-777 .wiz-hero { margin: 2px 0 12px; }
  #emi-wizard-777 .wiz-hero h2 { font-size: 1.12rem; line-height: 1.5; }
  #emi-wizard-777 .wiz-hero-sub { font-size: .82rem; }
  #emi-wizard-777 .card { padding: 12px; }

  /* Compact numbered stepper (labels hidden) */
  #emi-wizard-777 .wiz-steps {
    gap: 0;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 4px 0 14px;
  }
  #emi-wizard-777 .wiz-steps .stepdot { flex: 0 0 auto; gap: 0; }
  #emi-wizard-777 .wiz-steps .label { display: none; }
  #emi-wizard-777 .wiz-steps .bullet { width: 30px; height: 30px; font-size: .85rem; }
  #emi-wizard-777 .wiz-steps .active .bullet { box-shadow: 0 0 0 4px var(--ring); }
  #emi-wizard-777 .wiz-steps .stepdot:not(:last-child)::after {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--bd);
    margin: 0 3px;
    border-radius: 2px;
  }
  #emi-wizard-777 .wiz-steps .stepdot.done::after,
  #emi-wizard-777 .wiz-steps .stepdot.active::after { background: var(--pri-start); }

  /* Step header a touch smaller */
  #emi-wizard-777 .step-head { gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
  #emi-wizard-777 .step-head-ico { width: 38px; height: 38px; }
  #emi-wizard-777 .step-head-title { font-size: .96rem; }
  #emi-wizard-777 .step-head-sub { font-size: .8rem; }

  /* Brands: compact single-column rows */
  #emi-wizard-777 .brands { grid-template-columns: 1fr; gap: 6px; }
  #emi-wizard-777 .brand { padding: 10px 12px; gap: 8px; }
  #emi-wizard-777 .brand-fa { font-size: .9rem; }
  #emi-wizard-777 .brand-latin { font-size: .72rem; }
  #emi-wizard-777 .brand-flag-row { font-size: .72rem; }
  #emi-wizard-777 .brand-price { font-size: .9rem; }
  #emi-wizard-777 .brand-check { width: 18px; height: 18px; }

  /* Units */
  #emi-wizard-777 .units-panel { max-width: 100%; gap: 10px; }
  #emi-wizard-777 .units-btn { width: 38px; height: 38px; }
  #emi-wizard-777 .units-value { min-width: 80px; }
  #emi-wizard-777 .units-control input[type="number"] { font-size: 1.2rem; }
  #emi-wizard-777 .units-quick { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 5px; }
  #emi-wizard-777 .unit-quick { padding: 8px 2px; font-size: .85rem; }
  #emi-wizard-777 .units-calc { padding: 8px 10px; }

  /* Payment: keep compact 2-up options */
  #emi-wizard-777 .pay-panel { max-width: 100%; gap: 10px; }
  #emi-wizard-777 .yesno { grid-template-columns: 1fr 1fr; gap: 6px; }
  #emi-wizard-777 .pay-opt .ui { padding: 9px 10px; gap: 8px; }
  #emi-wizard-777 .pay-opt .pay-opt-ico { width: 28px; height: 28px; }
  #emi-wizard-777 .pay-opt .pay-opt-body b { font-size: .88rem; }
  #emi-wizard-777 .pay-opt .pay-opt-body small { font-size: .7rem; }
  #emi-wizard-777 .pay-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  #emi-wizard-777 .pay-value { padding: 7px 4px; }
  #emi-wizard-777 .pay-value-v { font-size: .8rem; }
  #emi-wizard-777 #payPerWrap { grid-column: auto; }

  /* Result */
  #emi-wizard-777 .result-panel { max-width: 100%; gap: 8px; }
  #emi-wizard-777 .result-head h3 { font-size: .96rem; }
  #emi-wizard-777 .result-contact { font-size: .8rem; padding: 7px 8px; }
  #emi-wizard-777 .result-selection { grid-template-columns: 1fr 1fr; gap: 6px; }
  #emi-wizard-777 .rs-item { padding: 7px; }
  #emi-wizard-777 .rs-title { font-size: .8rem; }
  #emi-wizard-777 .step-result .out { grid-template-columns: 1fr 1fr; gap: 6px; }
  #emi-wizard-777 .step-result .kv { padding: 8px 5px; }
  #emi-wizard-777 .step-result .kv .v { font-size: .84rem; }
  #emi-wizard-777 .result-note { margin: 0; font-size: .72rem; }
  #emi-wizard-777 .result-actions { gap: 6px; }
  #emi-wizard-777 .result-actions .btn,
  #emi-wizard-777 .result-actions .btn.primary {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 10px 12px;
    font-size: .88rem;
  }

  /* Nav buttons: comfortable tap targets */
  #emi-wizard-777 .nav { gap: 10px; }
  #emi-wizard-777 .nav .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; }

  /* Contact step */
  #emi-wizard-777 .lead-panel { max-width: 100%; gap: 10px; }
  #emi-wizard-777 .lead-fields { grid-template-columns: 1fr; gap: 8px; }
  #emi-wizard-777 .lead-consent { font-size: .8rem; padding: 8px; }
}

@media (max-width: 380px) {
  #emi-wizard-777 .wiz-steps .bullet { width: 26px; height: 26px; }
  #emi-wizard-777 .wiz-steps .stepdot:not(:last-child)::after { width: 10px; }
  #emi-wizard-777 .out { grid-template-columns: 1fr; }
}

#callDialog777 {
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  max-width: 560px;
  width: min(560px, 92vw);
}
#callDialog777::backdrop { background: rgba(18, 11, 40, .35); }
#callDialog777 .dialog-body { padding: 16px; background: #fff; }
#callDialog777 h3 { margin: 0 0 8px; }
#callDialog777 .field { margin: 10px 0; }
#callDialog777 .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
#callDialog777 .errline { color: #b91c1c; font-size: .86rem; display: none; margin-top: 4px; }

.comp-prices {
  margin: 1.75rem 0 2rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.comp-prices > h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.6;
  scroll-margin-top: 5.5rem;
}
.comp-prices > .article-pro-heading {
  margin-top: 0;
  margin-bottom: 0.55rem;
}
.comp-prices .lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.comp-prices .lead strong {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.comp-prices-updated {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}
.comp-prices-updated time {
  color: var(--ink);
  font-weight: 700;
}

.comp-prices-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

/* Override heavy article-pro table styles inside this block */
.article-pro-body .comp-prices table,
.comp-prices table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}
.article-pro-body .comp-prices thead th,
.comp-prices thead th {
  background: var(--bg-muted);
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
  padding: 0.7rem 1rem;
  text-align: start;
  border: 0 !important;
  white-space: nowrap;
  background-image: linear-gradient(#9BB8DB, #9BB8DB);
  background-size: 100% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
}
.article-pro-body .comp-prices td,
.comp-prices td {
  padding: 0.85rem 1rem;
  border: 0 !important;
  background-color: #fff !important;
  background-image: linear-gradient(#9BB8DB, #9BB8DB);
  background-size: 100% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  vertical-align: middle;
  font-size: .95rem;
  color: var(--ink);
  text-align: start;
}
.article-pro-body .comp-prices tbody tr:nth-child(odd) td,
.comp-prices tbody tr:nth-child(odd) td {
  background-color: #fff !important;
}
.article-pro-body .comp-prices tbody tr:last-child td,
.comp-prices tbody tr:last-child td {
  background-image: none;
}
.comp-prices .brand {
  font-weight: 700;
  width: 42%;
}
.comp-prices td.country {
  width: 28%;
}
.comp-prices .country-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}
.comp-prices .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
  display: block;
}
.comp-prices .price {
  white-space: nowrap;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
  text-align: start;
  width: 30%;
}
.comp-prices .price span {
  font-weight: 500;
  font-size: .78rem;
  color: var(--muted);
  margin-inline-start: 2px;
}
.article-pro-body .comp-prices tr.best td,
.comp-prices tr.best td {
  background-color: #f5f9ff !important;
}
.comp-prices .note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

.dentist-list {
  list-style: none;
  max-width: 640px;
  margin: 1.25rem auto 1.5rem;
  padding: 0.55rem 0.65rem;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
  border: 1px solid var(--line-soft);
  border-inline-start: 3px solid var(--ok);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.15rem;
  box-shadow: none;
}
.dentist-list li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1rem;
  padding-inline-start: 2.55rem;
  border-bottom: 1px solid rgba(201, 220, 245, 0.65);
  color: var(--text);
  line-height: 1.85;
  font-weight: 500;
}
.dentist-list li:last-child {
  border-bottom: none;
}
.dentist-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--ok) 14%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--ok) 45%, #fff);
}

.dentist-list li strong {
  color: var(--ink);
  font-weight: 800;
}

.consultation {
  background: #E8F1FC;
  padding: 50px 30px;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin: 2rem 0;
  color: #3D5270;
}
.consultation h2 {
  font-size: 1.7rem;
  color: #12233F;
  margin: 0 0 20px;
  scroll-margin-top: 5.5rem;
}
.consultation .intro { font-size: 1.05rem; line-height: 1.7; margin: 0 0 24px; }
.consultation .phone,
.consultation .consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px;
  padding: 12px 24px;
  border-radius: 0.5rem;
  font-weight: 800;
  text-decoration: none;
}
.consultation .phone { background: #fff; color: #2669C0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.consultation .consult-btn { background: #2669C0; color: #fff; }

.contact-777 {
  background: #f8fafc;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.contact-777 h2 { margin: 0 0 12px; font-size: 1.25rem; scroll-margin-top: 5.5rem; }
.contact-777 .grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 16px;
}
.contact-777 .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 14px;
}
.contact-777 .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.contact-777 .btns { display: flex; gap: 10px; margin-top: 10px; }
.contact-777 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}
.contact-777 .btn.primary { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.contact-777 .map {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.contact-777 .map::before { content: ""; display: block; aspect-ratio: 16/9; }
.contact-777 .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-777 .muted { color: #475569; font-size: .9rem; margin-top: 6px; }

.wp-comments { margin-top: 2rem; }
.wp-comments .comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.wp-comments .pacp-comment-body {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0.5rem;
  padding: 14px;
}
.wp-comments .pacp-comment-body.is-admin {
  margin: 8px 2.5rem 0 0;
  background: #E8F1FC;
  border-color: #C9DCF5;
}
.wp-comments .pacp-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: #64748b;
  flex-shrink: 0;
}
.wp-comments .pacp-comment-avatar.female { background: #db2777; }
.wp-comments .pacp-comment-avatar.admin { background: #2669C0; }
.wp-comments .pacp-comment-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.wp-comments .pacp-comment-header span { color: #64748b; font-size: .85rem; }
.wp-comments .pacp-admin-badge {
  background: #2669C0;
  color: #fff !important;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem !important;
}
.wp-comments p { margin: 0; line-height: 1.8; color: #3D5270; }

@media (max-width: 860px) {
  .contact-777 .grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  #emi-wizard-777 .brands { grid-template-columns: 1fr; }
  #emi-wizard-777 .out { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .article-pro-body .comp-prices thead th,
  .comp-prices thead th,
  .article-pro-body .comp-prices td,
  .comp-prices td {
    padding: 0.7rem 0.75rem;
    font-size: .88rem;
  }
  .comp-prices .country-inner span { display: none; }
  .comp-prices .price span { display: none; }
}

/* ==========================================================================
   Services — Bento redesign
   ========================================================================== */
.services-section {
  padding: 4.5rem 2.5rem;
  content-visibility: auto;
  contain-intrinsic-size: 1100px;
}

.svc-head {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
  min-height: 7.5rem;
}

.svc-head-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-5);
}

.svc-head-title .brand-name {
  color: var(--primary);
}

.svc-head-sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.9;
}

.svc-head-line {
  display: block;
  width: 72px;
  height: 4px;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.svc-bento {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
  min-height: 28rem;
}

.svc-card {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: 0 18px 40px -30px rgba(18, 35, 63, 0.4);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-4);
  box-shadow: 0 26px 50px -26px rgba(38, 105, 192, 0.5);
}

/* Featured (composite) = wide + elongated; bleaching = narrower */
.svc-card.is-featured {
  grid-column: span 8;
  flex-direction: row-reverse;
  align-items: stretch;
  min-height: 280px;
}

.svc-card.is-wide {
  grid-column: span 4;
  min-height: 280px;
}

.svc-card-photo {
  flex: 0 0 58%;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px 0 0 22px;
  background: #eef5fd;
}

/* Soft fade from photo into card (edge toward content) */
.svc-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to left,
    #fff 0%,
    rgba(255, 255, 255, 0.92) 12%,
    rgba(255, 255, 255, 0.55) 32%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 78%
  );
  z-index: 1;
}

.svc-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.svc-card.is-featured:hover .svc-card-photo img {
  transform: scale(1.04);
}

.svc-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.55rem;
}

.svc-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 0.35rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #EAF2FD 0%, #F4F8FE 100%);
  box-shadow: inset 0 0 0 1px rgba(38, 105, 192, 0.08);
}

.svc-card-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.svc-card-icon .icon,
.svc-card-icon svg {
  color: var(--primary);
}

.svc-card-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-5);
  line-height: 1.5;
}

.svc-card.is-featured .svc-card-name,
.svc-card.is-wide .svc-card-name {
  font-size: 1.35rem;
}

.svc-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card.is-featured .svc-card-desc,
.svc-card.is-wide .svc-card-desc {
  -webkit-line-clamp: 3;
  max-width: 34rem;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.svc-card-link .icon,
.svc-card-link svg {
  transition: transform 0.2s ease;
}

.svc-card:hover .svc-card-link {
  gap: 0.6rem;
}

.svc-card:hover .svc-card-link svg {
  transform: translateX(-4px);
}

.svc-foot {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.svc-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.svc-more-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(38, 105, 192, 0.7);
}

.svc-more-btn svg {
  transition: transform 0.25s ease;
}

.svc-more-btn.is-open svg {
  transform: rotate(180deg);
}

/* Extra cards: soft expand / collapse (desktop) */
.svc-card.is-extra {
  max-height: 0;
  min-height: 0 !important;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  margin: 0;
  padding: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  box-shadow: none;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s ease,
    border-width 0.2s ease,
    visibility 0s linear 0.4s;
}

.svc-bento.is-expanded .svc-card.is-extra {
  max-height: 480px;
  min-height: 0;
  opacity: 1;
  transform: none;
  margin: 0;
  padding: 0;
  border-width: 1px;
  overflow: hidden;
  pointer-events: auto;
  visibility: visible;
  box-shadow: 0 18px 40px -30px rgba(18, 35, 63, 0.4);
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.04s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-width 0.2s ease,
    visibility 0s linear 0s;
}

.svc-bento.is-expanded .svc-card.is-extra .svc-card-body {
  padding: 2rem 1.5rem;
  transition: padding 0.35s ease;
}

.svc-card.is-extra .svc-card-body {
  padding: 0;
  transition: padding 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .svc-card.is-extra,
  .svc-bento.is-expanded .svc-card.is-extra,
  .svc-card.is-extra .svc-card-body,
  .svc-bento.is-expanded .svc-card.is-extra .svc-card-body,
  .svc-more-btn svg {
    transition: none;
  }
}

.svc-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.25s ease;
}

.svc-all-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(38, 105, 192, 0.7);
}

.svc-all-btn svg {
  transition: transform 0.2s ease;
}

.svc-all-btn:hover svg {
  transform: translateX(-4px);
}

/* Tablet */
@media (max-width: 992px) {
  .svc-bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .svc-card {
    grid-column: span 3;
  }
  .svc-card.is-featured,
  .svc-card.is-wide {
    grid-column: span 6;
    min-height: 260px;
  }
}

/* Mobile — minimal & tap-friendly */
@media (max-width: 620px) {
  .services-section {
    padding: 2.25rem 0.9rem 2.5rem;
  }

  .svc-head {
    margin-bottom: 1.35rem;
  }

  .svc-head-badge {
    display: none;
  }

  .svc-head-title {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    line-height: 1.45;
  }

  .svc-head-sub {
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 20rem;
  }

  .svc-head-line {
    width: 44px;
    height: 3px;
    margin-top: 0.85rem;
  }

  .svc-bento {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  /* کامپوزیت (featured) باید بالای بلیچینگ باشد */
  .svc-card.is-featured {
    order: -1;
  }

  .svc-card {
    grid-column: span 1;
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px -20px rgba(18, 35, 63, 0.35);
  }

  .svc-card:hover,
  .svc-card:active {
    transform: none;
  }

  /* Featured composite: full width, compact photo strip */
  .svc-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: column;
    border-radius: 18px;
  }

  .svc-card.is-wide {
    grid-column: span 1;
  }

  .svc-card-photo {
    flex: none;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 18px 18px 0 0;
  }

  .svc-card-photo::after {
    background: linear-gradient(
      to top,
      #fff 0%,
      rgba(255, 255, 255, 0.8) 22%,
      rgba(255, 255, 255, 0.2) 55%,
      transparent 80%
    );
  }

  .svc-card.is-featured .svc-card-body {
    padding: 0.85rem 1rem 1.05rem;
    gap: 0.3rem;
  }

  .svc-card-body {
    padding: 0.95rem 0.7rem 1rem;
    gap: 0.25rem;
  }

  .svc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 0.15rem;
  }

  .svc-card-icon img {
    width: 28px;
    height: 28px;
  }

  .svc-card.is-featured .svc-card-icon {
    width: 52px;
    height: 52px;
  }

  .svc-card.is-featured .svc-card-icon img {
    width: 30px;
    height: 30px;
  }

  .svc-card-name,
  .svc-card.is-featured .svc-card-name,
  .svc-card.is-wide .svc-card-name {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .svc-card.is-featured .svc-card-name {
    font-size: 1.05rem;
  }

  .svc-card-desc {
    font-size: 0.75rem;
    line-height: 1.65;
    -webkit-line-clamp: 1;
  }

  .svc-card.is-featured .svc-card-desc {
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }

  /* Hide "view details" on compact cards — whole card is the CTA */
  .svc-card-link {
    display: none;
  }

  .svc-card.is-featured .svc-card-link {
    display: inline-flex;
    margin-top: 0.35rem;
    font-size: 0.8rem;
  }

  .svc-foot {
    margin-top: 1.35rem;
  }

  /* موبایل: همه خدمات نمایش داده شوند؛ دکمه نمایش بیشتر مخفی */
  .svc-card.is-extra,
  .svc-bento.is-expanded .svc-card.is-extra {
    max-height: none;
    min-height: 0;
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 0;
    border-width: 1px;
    overflow: hidden;
    pointer-events: auto;
    visibility: visible;
    box-shadow: 0 10px 24px -20px rgba(18, 35, 63, 0.35);
    transition: none;
  }

  .svc-card.is-extra .svc-card-body,
  .svc-bento.is-expanded .svc-card.is-extra .svc-card-body {
    padding: 0.95rem 0.7rem 1rem;
    transition: none;
  }

  .svc-foot:has([data-svc-more]) {
    display: none;
  }

  .svc-all-btn,
  .svc-more-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 14px;
  }
}

/* ==========================================================================
   Magazine / Latest articles — home
   ========================================================================== */
.mag-section {
  position: relative;
  padding: 4.5rem 2.5rem;
  overflow: hidden;
  background: #fff;
}

.mag-section::before,
.mag-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.mag-section::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(168, 207, 251, 0.35) 0%, transparent 70%);
}

.mag-section::after {
  width: 360px;
  height: 360px;
  top: -40px;
  left: 8%;
  background: radial-gradient(circle, rgba(232, 241, 252, 0.9) 0%, transparent 72%);
}

.mag-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
}

.mag-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mag-head-copy {
  max-width: 36rem;
  text-align: right;
}

.mag-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--brand-5);
  line-height: 1.3;
}

.mag-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.mag-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.75rem 1.35rem;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mag-all-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(38, 105, 192, 0.65);
}

.mag-all-btn svg {
  transition: transform 0.2s ease;
}

.mag-all-btn:hover svg {
  transform: translateX(-3px);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.mag-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 36px -28px rgba(18, 35, 63, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mag-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-4);
  box-shadow: 0 22px 44px -24px rgba(38, 105, 192, 0.4);
}

.mag-card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}

.mag-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mag-card:hover .mag-card-photo img {
  transform: scale(1.04);
}

.mag-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1 1 auto;
}

.mag-card-cat {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.mag-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-5);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.mag-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mag-card-meta .icon,
.mag-card-meta svg {
  color: var(--primary);
  flex: 0 0 auto;
}

.mag-card-meta-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
  padding: 0 !important;
}

.mag-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.55rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.mag-card-more svg {
  transition: transform 0.2s ease;
}

.mag-card:hover .mag-card-more svg {
  transform: translateX(-3px);
}

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

@media (max-width: 720px) {
  .mag-section {
    padding: 2.25rem 0.9rem 2.5rem;
  }

  .mag-section::before,
  .mag-section::after {
    display: none;
  }

  .mag-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
  }

  .mag-head-copy {
    max-width: none;
    text-align: center;
  }

  .mag-title {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
  }

  .mag-sub {
    font-size: 0.8rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mag-all-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
    border-radius: 12px;
  }

  .mag-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  /* Compact horizontal article rows */
  .mag-card {
    flex-direction: row-reverse;
    align-items: stretch;
    border-radius: 14px;
    min-height: 0;
  }

  .mag-card:hover {
    transform: none;
  }

  .mag-card-photo {
    flex: 0 0 38%;
    width: 38%;
    aspect-ratio: auto;
    min-height: 108px;
    align-self: stretch;
  }

  .mag-card:hover .mag-card-photo img {
    transform: none;
  }

  .mag-card-body {
    flex: 1 1 auto;
    padding: 0.75rem 0.8rem;
    gap: 0.3rem;
    justify-content: center;
    min-width: 0;
  }

  .mag-card-cat {
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
  }

  .mag-card-title {
    font-size: 0.88rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .mag-card-excerpt,
  .mag-card-more {
    display: none;
  }

  .mag-card-meta {
    margin-top: 0.2rem;
    padding-top: 0.45rem;
    gap: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }

  .mag-card-meta-sep {
    height: 11px;
  }
}

/* ==========================================================================
   Reviews / Testimonials redesign
   ========================================================================== */
.rev-section {
  position: relative;
  padding: 4.5rem 2.5rem;
  overflow: hidden;
  background:
    linear-gradient(165deg, #F7FAFE 0%, var(--bg-muted) 48%, var(--bg-section) 100%);
}

.rev-section::before,
.rev-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.rev-section::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(168, 207, 251, 0.4) 0%, transparent 70%);
}

.rev-section::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(200, 224, 250, 0.45) 0%, transparent 72%);
}

.rev-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
}

.rev-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.rev-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--brand-5);
  line-height: 1.3;
}

.rev-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.rev-line {
  display: block;
  width: 64px;
  height: 4px;
  margin: 1.15rem auto 0;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.rev-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.rev-stats-item strong {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.rev-stats-sep {
  width: 1px;
  height: 42px;
  background: var(--line);
}

.rev-stats-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rev-stats-rating-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.rev-stats-score {
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.rev-stats-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #F5A524;
}

.rev-stats-stars .icon,
.rev-stats-stars svg,
.rev-stats-stars path {
  color: #F5A524;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.rev-card-stars {
  display: inline-flex;
  gap: 0.12rem;
  margin-top: 0.2rem;
  color: #F5A524;
}

.rev-card-stars .is-filled,
.rev-card-stars .icon.is-filled,
.rev-card-stars [data-icon-filled="1"] {
  color: #F5A524;
}

.rev-card-stars .is-filled svg,
.rev-card-stars .is-filled path,
.rev-card-stars .icon.is-filled svg,
.rev-card-stars .icon.is-filled path,
.rev-card-stars [data-icon-filled="1"] svg,
.rev-card-stars [data-icon-filled="1"] path,
.rev-card-stars svg.is-filled,
.rev-card-stars svg[data-icon-filled="1"] {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.rev-card-stars .is-empty,
.rev-card-stars .icon.is-empty {
  color: #D6DEE8;
  opacity: 1;
}

.rev-card-stars .is-empty svg,
.rev-card-stars .is-empty path,
.rev-card-stars .icon.is-empty svg,
.rev-card-stars .icon.is-empty path,
.rev-card-stars svg.is-empty {
  fill: none !important;
  stroke: currentColor !important;
}

.rev-stats-stars .is-empty,
.rev-stats-stars .icon.is-empty {
  color: #D6DEE8;
  opacity: 1;
}

.rev-stats-stars .is-empty svg,
.rev-stats-stars .is-empty path,
.rev-stats-stars .icon.is-empty svg,
.rev-stats-stars svg.is-empty {
  fill: none !important;
  stroke: currentColor !important;
}

.rev-stats-caption {
  display: none;
}

.rev-carousel {
  margin-bottom: 1.75rem;
}

.rev-viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  container-name: rev;
}

.rev-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.rev-card {
  flex: 0 0 calc((100cqi - 2.5rem) / 3);
  width: calc((100cqi - 2.5rem) / 3);
  max-width: calc((100cqi - 2.5rem) / 3);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 18px 40px -30px rgba(18, 35, 63, 0.35);
}

.rev-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.rev-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient-soft);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.rev-card-who {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rev-card-name {
  color: var(--brand-5);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.rev-card-when {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.rev-card-score {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.rev-card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding-top: 0.25rem;
  text-align: right;
}

.rev-quote {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(50, 139, 244, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  margin: 0.1rem 0 0;
  order: -1; /* سمت راست در RTL */
}

.rev-card-body p {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rev-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rev-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.rev-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.rev-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  min-height: 44px;
}

.rev-dot {
  width: 10px;
  height: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.rev-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--line);
  transition: width 0.2s ease, background 0.2s ease;
}

.rev-dot.is-active::before {
  width: 18px;
  background: var(--primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .rev-track {
    transition: none;
  }
}

@media (max-width: 992px) {
  .rev-card {
    flex: 0 0 calc((100cqi - 1.25rem) / 2);
    width: calc((100cqi - 1.25rem) / 2);
    max-width: calc((100cqi - 1.25rem) / 2);
  }
}

@media (max-width: 720px) {
  .rev-section {
    padding: 2.5rem 1rem;
  }

  .rev-title {
    font-size: 1.35rem;
    margin: 0 0 0.45rem;
  }

  .rev-sub {
    font-size: 0.84rem;
  }

  .rev-stats {
    gap: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
  }

  .rev-stats-sep {
    display: none;
  }

  .rev-stats-item strong,
  .rev-stats-score {
    font-size: 1.05rem;
  }

  .rev-card {
    flex: 0 0 100cqi;
    width: 100cqi;
    max-width: 100cqi;
    border-radius: 16px;
    padding: 1.1rem 1rem 1.15rem;
  }

  .rev-avatar {
    width: 48px;
    height: 48px;
  }

  .rev-card-body p {
    -webkit-line-clamp: 4;
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   Instagram promo banner
   ========================================================================== */
.ig-promo-section {
  padding: 0 2.5rem 3.5rem;
  margin-top: 20px;
}

.ig-promo-inner {
  max-width: var(--container);
  margin-inline: auto;
}

.ig-promo-link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px -28px rgba(27, 76, 147, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ig-promo-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -26px rgba(27, 76, 147, 0.65);
}

.ig-promo-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .ig-promo-section {
    padding: 0 1rem 2.25rem;
  }

  .ig-promo-link {
    border-radius: 14px;
  }

  .ig-promo-link:hover {
    transform: none;
  }
}
