/*
Theme Name: Vek Guten Theme
Theme URI: https://detskiyvrach21vek.ru
Description: Детский Врач 21 век — Elementor-based theme
Author: Детский Врач 21 век
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 8.1
License: Proprietary
*/

/* =========================================================
   CSS CUSTOM PROPERTIES — Design Tokens
   ========================================================= */
:root {
  /* Navy palette */
  --navy-50: #eef3ff;
  --navy-100: #dce6ff;
  --navy-200: #b9ceff;
  --navy-300: #86a8f8;
  --navy-400: #5a82f0;
  --navy-500: #3d60a5;
  --navy-600: #3457a0;
  --navy-700: #2d4d92;
  --navy-800: #223a76;
  --navy-900: #1a2d5e;
  --navy-950: #0f1c3d;

  /* Brand orange */
  --brand-orange: #ed7117;
  --brand-orange-light: #f5923a;
  --brand-orange-dark: #c85c0a;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(61, 96, 165, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(61, 96, 165, 0.15);
  --shadow-header: 0 2px 12px rgba(61, 96, 165, 0.08);

  /* Font */
  --font-sans:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   BASE RESET & GLOBAL STYLES
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: #1f2937;
  background: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
  margin-top: 0;
}

a {
  transition: color 0.2s;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */

/* Container */
.container-site {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-site {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-site {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Grid utilities */
.grid {
  display: grid;
}
.grid-1 {
  grid-template-columns: 1fr;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-12 {
  gap: 3rem;
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .sm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .lg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}

/* Spacing */
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Text alignment */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Display */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}

/* Position */
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Width/Height */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-auto {
  height: auto;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-xs {
  max-width: 20rem;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Aspect ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Whitespace */
.whitespace-pre-line {
  white-space: pre-line;
}
.whitespace-nowrap {
  white-space: nowrap;
}

/* Not italic */
address.not-italic {
  font-style: normal;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

.leading-tight {
  line-height: 1.25;
}
.leading-snug {
  line-height: 1.375;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}

.uppercase {
  text-transform: uppercase;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}

.line-through {
  text-decoration: line-through;
}

/* =========================================================
   COLOR UTILITIES
   ========================================================= */

/* Backgrounds */
.bg-white {
  background-color: #ffffff;
}
.bg-navy-50 {
  background-color: var(--navy-50);
}
.bg-navy-100 {
  background-color: var(--navy-100);
}
.bg-navy-900 {
  background-color: var(--navy-900);
}
.bg-navy-950 {
  background-color: var(--navy-950);
}
.bg-orange-50 {
  background-color: #fff7ed;
}
.bg-orange-100 {
  background-color: #ffedd5;
}
.bg-brand-orange {
  background-color: var(--brand-orange);
}
.bg-040d24 {
  background-color: #040d24;
}

/* Text colors */
.text-white {
  color: #ffffff;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-500 {
  color: #6b7280;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-700 {
  color: #374151;
}
.text-navy-200 {
  color: var(--navy-200);
}
.text-navy-300 {
  color: var(--navy-300);
}
.text-navy-400 {
  color: var(--navy-400);
}
.text-navy-600 {
  color: var(--navy-600);
}
.text-navy-700 {
  color: var(--navy-700);
}
.text-navy-900 {
  color: var(--navy-900);
}
.text-brand-orange {
  color: var(--brand-orange);
}
.text-brand-orange-dark {
  color: var(--brand-orange-dark);
}
.text-orange-100 {
  color: #ffedd5;
}
.text-orange-200 {
  color: #fed7aa;
}

/* Hover colors */
.hover\:text-white:hover {
  color: #ffffff;
}
.hover\:text-brand-orange:hover {
  color: var(--brand-orange);
}
.hover\:text-navy-900:hover {
  color: var(--navy-900);
}
.hover\:text-brand-orange-dark:hover {
  color: var(--brand-orange-dark);
}

/* =========================================================
   COMPONENT: BUTTONS
   ========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.btn-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 113, 23, 0.3);
  color: #ffffff;
}
.btn-primary:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-secondary:hover {
  background: #ffffff;
  color: var(--navy-900);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--navy-900);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--navy-900);
  color: #ffffff;
}

.btn-outline-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--brand-orange);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--brand-orange);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline-orange:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

/* =========================================================
   COMPONENT: SECTION HEADINGS
   ========================================================= */

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

/* =========================================================
   COMPONENT: CARDS
   ========================================================= */

.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.doctor-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.blog-card:hover h3 {
  color: var(--brand-orange);
}

/* Doctor card image hover zoom */
.doctor-card .card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.doctor-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.doctor-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Blog card image hover zoom */
.blog-card .card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* =========================================================
   COMPONENT: BADGES
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--navy-100);
  color: var(--navy-700);
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  display: inline-block;
}

.badge-orange {
  background: #fff3e8;
  color: var(--brand-orange-dark);
}

/* =========================================================
   COMPONENT: NAV LINKS
   ========================================================= */

.nav-link {
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--navy-900);
}

.nav-link-active {
  color: var(--navy-900);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 0.125rem;
  white-space: nowrap;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: var(--shadow-header);
}

.header-top-bar {
  border-bottom: 1px solid #f3f4f6;
}

.header-top-inner {
  display: flex;
  align-items: center;
  height: 6rem;
  gap: 2rem;
}

.header-logo img {
  height: 4.5rem;
  width: auto;
  display: block;
}

.header-nav {
  display: none;
  align-items: center;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav ul li {
  position: relative;
}

/* Dropdown arrow via SVG in walker */
.nav-has-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s;
}
.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.header-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  z-index: 60;
  min-width: 210px;
}

.header-nav .dropdown-menu ul {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #f3f4f6;
  padding: 0.375rem 0;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
}

.header-nav .dropdown-menu ul li {
  width: 100%;
}

.header-nav .dropdown-menu ul li a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #374151;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.header-nav .dropdown-menu ul li a:hover {
  color: var(--navy-900);
  background: var(--navy-50);
}

.header-nav li.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile phone in header */
.header-mobile-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
@media (min-width: 1024px) {
  .header-mobile-phone {
    display: none;
  }
}

.header-mobile-phone a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.header-mobile-phone a:hover {
  color: var(--brand-orange);
}

/* Burger button */
.header-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy-900);
  transition: background 0.2s;
}
.header-burger:hover {
  background: var(--navy-50);
}
@media (min-width: 1024px) {
  .header-burger {
    display: none;
  }
}

.burger-open {
  display: none;
}
.burger-close {
  display: none;
}
.header-burger.is-closed .burger-open {
  display: block;
}
.header-burger.is-open .burger-close {
  display: block;
}
.header-burger.is-closed .burger-close {
  display: none;
}
.header-burger.is-open .burger-open {
  display: none;
}

/* Contact bar (desktop only) */
.header-contact-bar {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}
@media (min-width: 1024px) {
  .header-contact-bar {
    display: block;
  }
}

.header-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
  gap: 1.5rem;
}

.header-contact-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-contact-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: color 0.2s;
}
.header-phone-link:hover {
  color: var(--brand-orange);
}
.header-phone-link span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
}
.header-phone-link .phone2 {
  font-size: 0.9rem;
  color: var(--navy-700);
}

.header-hours {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--navy-700);
  font-size: 0.875rem;
}

.messenger-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--brand-orange);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.messenger-link:hover {
  color: var(--brand-orange-dark);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}
.mobile-menu.is-open {
  display: block;
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }
}

.mobile-menu nav {
  padding: 1rem 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.mobile-menu ul li a:hover,
.mobile-nav-link:hover,
.mobile-nav-sub-link:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}

/* Mobile nav top-level links */
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

/* Mobile nav sub-items (indented) */
.mobile-nav-sub {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-sub-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #6b7280;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.mobile-nav-sub-link::before {
  content: "›";
  margin-right: 0.375rem;
  color: #9ca3af;
}

.mobile-menu-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: 1rem;
}

.mobile-menu-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-700);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.mobile-menu-messengers {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--navy-950);
  color: #ffffff;
}

.footer-main {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo img {
  width: 9rem;
  height: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--navy-200);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link.primary {
  color: #ffffff;
}
.footer-contact-link.secondary {
  color: var(--navy-200);
}
.footer-contact-link:hover {
  color: var(--brand-orange);
}

.footer-col-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  margin: 0;
}

.footer-nav-list li a {
  color: var(--navy-200);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list li a:hover {
  color: #ffffff;
}
.footer-nav-list li a.highlight {
  color: var(--brand-orange);
  font-weight: 500;
}
.footer-nav-list li a.highlight:hover {
  color: var(--brand-orange-light);
}

.footer-address {
  color: var(--navy-300);
  font-size: 0.75rem;
  line-height: 1.625;
  margin-top: 1.5rem;
}

/* Footer bar */
.footer-bar {
  background: #040d24;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.footer-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--navy-400);
}
.footer-bar-inner p {
  max-width: 100% !important;
  width: 100%;
}
@media (min-width: 640px) {
  .footer-bar-inner {
    flex-direction: row;
  }
}

/* =========================================================
   COMPONENT: SECTION HERO BANNERS (inner pages)
   ========================================================= */

.page-hero {
  background: var(--navy-900);
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: #ffffff;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-300);
  margin-bottom: 1rem;
}
.page-hero-breadcrumb a {
  color: var(--navy-300);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero-breadcrumb a:hover {
  color: #ffffff;
}
.page-hero-breadcrumb span.sep {
  color: var(--navy-600);
}
.page-hero-breadcrumb span.current {
  color: #ffffff;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.25rem;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

.page-hero-sub {
  color: var(--navy-200);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

/* Stats in hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--navy-300);
  margin-top: 0.125rem;
}

.hero-stat-divider {
  width: 1px;
  background: var(--navy-700);
  align-self: stretch;
  display: none;
}
@media (min-width: 640px) {
  .hero-stat-divider {
    display: block;
  }
}

/* =========================================================
   SERVICES GRID (shortcode rendered)
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.service-card.color-blue {
  background: var(--navy-50);
}
.service-card.color-blue:hover {
  background: var(--navy-100);
}
.service-card.color-blue .service-icon {
  color: var(--navy-700);
}
.service-card.color-blue .service-price {
  color: var(--navy-700);
}

.service-card.color-orange {
  background: #fff7ed;
}
.service-card.color-orange:hover {
  background: #ffedd5;
}
.service-card.color-orange .service-icon {
  color: var(--brand-orange);
}
.service-card.color-orange .service-price {
  color: var(--brand-orange);
}

.service-card .service-icon {
  margin-bottom: 0.75rem;
}
.service-card .service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-card h3 {
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.375;
  margin-bottom: 0.5rem;
}

.service-card .service-desc {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.service-card .service-price {
  font-size: 0.75rem;
  font-weight: 600;
}

/* =========================================================
   DOCTORS GRID (shortcode rendered)
   ========================================================= */

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   BLOG GRID (shortcode rendered)
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   PROMO BANNER (shortcode rendered)
   ========================================================= */

.promo-section {
  background: var(--brand-orange);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.promo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .promo-inner {
    flex-direction: row;
  }
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.promo-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .promo-title {
    font-size: 2.25rem;
  }
}

.promo-desc {
  color: #ffedd5;
  font-size: 1rem;
  line-height: 1.625;
}

.promo-price-old {
  color: #fed7aa;
  text-decoration: line-through;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.promo-price-new {
  color: #ffffff;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.promo-btn:hover {
  background: #fff7ed;
  color: var(--brand-orange);
}

/* =========================================================
   CTA SECTION (shortcode rendered)
   ========================================================= */

.cta-section {
  background: var(--navy-900);
  padding-top: 5rem;
  padding-bottom: 5rem;
  color: #ffffff;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 2.25rem;
  }
}

.cta-section .cta-address {
  color: var(--navy-200);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cta-section .cta-hours {
  color: var(--navy-300);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* =========================================================
   RESPONSIVE TWO-COLUMN GRID (about page patients/approach)
   ========================================================= */

/* grid-template-columns:1fr 1fr collapses to single on mobile */
@media (max-width: 767px) {
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   HERO SECTION LAYOUT
   ========================================================= */

.hero-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 960px) {
  .hero-flex {
    flex-direction: row;
    align-items: center;
  }
  .hero-flex .hero-content {
    flex: 1;
    min-width: 0;
    order: 0;
  }
  .hero-flex .hero-image {
    flex-shrink: 0;
    order: 1;
    width: 480px;
  }
}

/* =========================================================
   NEW-PROGRAMS INLINE PROMO CARD (responsive)
   ========================================================= */

/* The inline orange promo card on new-programs page */
.new-programs-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .new-programs-promo-grid {
    grid-template-columns: 1fr auto;
  }
}

/* =========================================================
   PRICING TABLES (shortcode rendered)
   ========================================================= */

.price-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.price-anchor-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--navy-50);
  color: var(--navy-900) !important;
  text-decoration: none;
  transition: background 0.2s;
}
.price-anchor-btn:visited {
  color: var(--navy-900) !important;
}
.price-anchor-btn:hover {
  background: var(--navy-100);
  color: var(--navy-900) !important;
}

.price-section {
  margin-bottom: 3rem;
}

.price-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.price-table-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.price-table thead tr {
  background: var(--navy-50);
}

.price-table thead th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  color: var(--navy-700);
  font-weight: 600;
}

.price-table thead th.col-price {
  text-align: right;
  width: 9rem;
}

.price-table tbody tr {
  border-top: 1px solid #f3f4f6;
}

.price-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
.price-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.price-table td {
  padding: 0.75rem 1.25rem;
  color: #374151;
}

.price-table td.col-price {
  text-align: right;
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}

.price-note {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* =========================================================
   CONTACTS PAGE
   ========================================================= */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  color: var(--navy-700);
}

.contact-form-wrap {
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 2rem;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #374151;
}

.about-check-list li svg {
  color: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.standards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.standards-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.standards-list li svg {
  color: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 1.5rem;
}

.result-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-orange);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   CERTIFICATES PAGE
   ========================================================= */

.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   PARTNERS PAGE
   ========================================================= */

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   SINGLE DOCTOR / SERVICE
   ========================================================= */

.doctor-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .doctor-single-layout {
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}
.doctor-single-sidebar {
  position: static;
}
@media (min-width: 768px) {
  .doctor-single-sidebar {
    position: sticky;
    top: 100px;
  }
}

.doctor-profile {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .doctor-profile {
    flex-direction: row;
  }
}

.doctor-sidebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 20rem;
}

.doctor-sidebar img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.doctor-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctor-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.doctor-meta-label {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 0.875rem;
  width: 8rem;
  flex-shrink: 0;
}

.doctor-meta-value {
  color: #374151;
  font-size: 0.875rem;
}

.doctor-content {
  flex: 1;
}

.doctor-section {
  margin-bottom: 2rem;
}

.doctor-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

/* Service single sidebar */
.service-sidebar {
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 1024px) {
  .service-sidebar {
    max-width: 20rem;
  }
}

.service-cta-box {
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

/* =========================================================
   BLOG TEMPLATES
   ========================================================= */

.blog-archive {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: #ffffff;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-post-content {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.blog-post-body {
  max-width: 48rem;
}

/* Prose styles for post content */
.prose-content {
  color: #374151;
  line-height: 1.75;
}
.prose-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-content p {
  margin-bottom: 1rem;
}
.prose-content ul,
.prose-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-content li {
  margin-bottom: 0.375rem;
}
.prose-content a {
  color: var(--brand-orange);
}
.prose-content a:hover {
  text-decoration: underline;
}
.prose-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}
.prose-content blockquote {
  border-left: 4px solid var(--brand-orange);
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 1.5rem 0;
}

/* =========================================================
   404 PAGE
   ========================================================= */

.page-404 {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-404-number {
  font-size: 8rem;
  font-weight: 800;
  color: var(--navy-50);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =========================================================
   ELEMENTOR OVERRIDES
   ========================================================= */

/* Ensure Elementor sections inherit our font */
.elementor-section,
.elementor-widget-wrap,
.elementor-widget {
  font-family: var(--font-sans);
}

/* Remove e-con-inner max-width constraint so sections span full width */
.e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
.e-con {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Override Elementor default button styles when using our classes */
.elementor-widget-button .elementor-button.btn-primary,
.elementor-widget-button .elementor-button.btn-outline {
  border-radius: 9999px;
}

/* Make shortcode output fill Elementor widgets */
.elementor-widget-shortcode {
  width: 100%;
}

/* ReviewLab inside Elementor */
.elementor-widget-html review-lab {
  width: 100% !important;
}
.elementor-widget-html .review {
  border-radius: 1rem !important;
  box-shadow: 0 2px 16px 0 rgba(61, 96, 165, 0.1) !important;
  border: 1px solid var(--navy-50) !important;
  background: #fff !important;
  overflow: hidden !important;
}

/* =========================================================
   RESPONSIVE UTILITIES
   ========================================================= */

@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
  .text-4xl {
    font-size: 2rem;
  }
  .text-5xl {
    font-size: 2.5rem;
  }
  .text-6xl {
    font-size: 3rem;
  }
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Hero stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* CTA bar (orange rounded section) */
.cta-bar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}
.cta-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.cta-bar-phones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cta-phone-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}
.cta-phone-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
}
.cta-bar-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.cta-bar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}
.cta-bar-messengers {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cta-messenger-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.cta-bar-btn {
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--brand-orange);
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.cta-bar-btn:hover {
  background: var(--navy-50);
}
@media (max-width: 767px) {
  .cta-bar-divider {
    display: none;
  }
  .cta-bar-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-bar-btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile-only header size reduction */
@media (max-width: 1023px) {
  .header-top-inner {
    height: 4rem !important;
  }
  .header-logo img {
    height: 3rem !important;
  }
  .header-mobile-phone {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 640px) {
  .hide-sm-up {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =========================================================
   MISC HELPER CLASSES
   ========================================================= */

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.shadow-card {
  box-shadow: var(--shadow-card);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

.w-px {
  width: 1px;
}
.self-stretch {
  align-self: stretch;
}

/* Orange-50/100 bg for service cards */
.bg-orange-50 {
  background-color: #fff7ed;
}
.bg-orange-50:hover,
.hover\:bg-orange-100:hover {
  background-color: #ffedd5;
}
.bg-navy-50:hover,
.hover\:bg-navy-100:hover {
  background-color: var(--navy-100);
}

/* =========================================================
   BREADCRUMB (used in CPT singles/archives)
   ========================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-300);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--navy-300);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #ffffff;
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   DOCTOR PROFILE PAGE (single-vrachi.php)
   ========================================================= */

.doctor-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .doctor-profile-layout {
    flex-direction: row;
  }
}

.doctor-profile-sidebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 24rem;
}

.doctor-profile-photo {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.doctor-profile-content {
  flex: 1;
}

.doctor-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.doctor-info-label {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 0.875rem;
  width: 8rem;
  flex-shrink: 0;
}
.doctor-info-value {
  color: #374151;
  font-size: 0.875rem;
}

/* =========================================================
   SERVICE DETAIL PAGE (single-uslugi.php)
   ========================================================= */

.service-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .service-detail-layout {
    flex-direction: row;
  }
}

.service-detail-content {
  flex: 1;
}

.service-detail-sidebar {
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 1024px) {
  .service-detail-sidebar {
    max-width: 20rem;
  }
}

.service-sidebar-card {
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

/* =========================================================
   DOCTORS GRID (archive-vrachi.php)
   ========================================================= */

.doctor-card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.doctor-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.doctor-card:hover .doctor-card-img {
  transform: scale(1.05);
}

/* =========================================================
   SERVICES 4-COL GRID (archive-uslugi.php)
   ========================================================= */

.services-grid-4col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .services-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid-4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card-blue {
  background: var(--navy-50);
}
.service-card-blue:hover {
  background: var(--navy-100);
}
.service-card-orange {
  background: #fff7ed;
}
.service-card-orange:hover {
  background: #ffedd5;
}

.service-card-icon {
  margin-bottom: 0.75rem;
}
.service-card-icon svg {
  width: 2rem;
  height: 2rem;
}
.service-card-title {
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.375;
  margin-bottom: 0.5rem;
}
.service-card-desc {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}
.service-card-price {
  font-size: 0.75rem;
  font-weight: 600;
}

/* =========================================================
   BLOG CARD COMPONENTS
   ========================================================= */

.blog-card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-featured-img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

/* =========================================================
   CONTACT FORM 7 STYLES
   ========================================================= */

.cf7-field-wrap {
  margin-bottom: 0.6rem;
}
.cf7-field-wrap label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}
.cf7-field-wrap label abbr {
  text-decoration: none;
  color: var(--brand-orange);
  margin-left: 2px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-900);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--navy-500, #6b7280);
}
.wpcf7-form textarea {
  resize: vertical;
  min-height: 60px !important;
}
.wpcf7-form p {
  margin-bottom: 0.5rem !important;
}
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}
.wpcf7 form .wpcf7-acceptance {
  margin-bottom: 0.25rem;
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
  font-family: inherit;
}
.wpcf7-form input[type="submit"]:hover {
  opacity: 0.88;
}
.wpcf7-spinner {
  margin-left: 0.5rem;
}
.wpcf7-response-output {
  margin-top: 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.875rem;
  border-width: 1px !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* =========================================================
   FLEX LAYOUT CLASSES (bypass WP kses stripping display:flex)
   ========================================================= */

/* Partners: hospitalization steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 639px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-item p {
  color: #4b5563;
  font-size: 0.875rem;
  margin: 0;
}

/* About: results cards */
.result-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.result-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 1.5rem;
}
.result-card p {
  margin: 0;
}
.result-icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  background: var(--brand-orange);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* About: standards list */
.standards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.standard-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Homepage contact form grid */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contacts-layout {
    grid-template-columns: minmax(260px, 380px) minmax(0, 540px);
    gap: 3rem;
    justify-content: space-between;
  }
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact info items (icon circle + text) */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  background: var(--brand-orange);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: #fff;
}
.contact-info-text p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 0.25rem;
}
.contact-info-messengers {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.contact-info-messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy-50);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}
.contact-info-messenger:hover {
  background: var(--navy-100);
}

@media (max-width: 767px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Accessibility toolbar ────────────────────────────────────────────────── */
.a11y-toolbar {
  background: transparent !important;
  box-shadow: none !important;
  position: fixed !important;
  bottom: 11rem !important;
  right: 1.5rem !important;
  left: auto !important;
  top: auto !important;
}
.a11y-toolbar-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.a11y-toolbar-list-item {
  padding: 0 !important;
  margin: 0 !important;
}
.a11y-toggle {
  position: relative !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  background: var(--navy-700) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  padding: 0 !important;
  box-shadow: var(--shadow-card) !important;
}
.a11y-toggle:hover {
  background: var(--brand-orange) !important;
}
.a11y-toggle[aria-pressed="true"] {
  background: var(--brand-orange) !important;
}
.aticon {
  font-size: 1rem !important;
  color: #fff !important;
}
/* Tooltip */
.a11y-toggle .offscreen {
  position: fixed !important;
  width: max-content !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  background: var(--navy-900) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.15s !important;
  right: 4rem !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 99999 !important;
}
.a11y-toggle .offscreen::after {
  content: "" !important;
  position: absolute !important;
  left: 100% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: 5px solid transparent !important;
  border-left-color: var(--navy-900) !important;
}
.a11y-toggle:hover .offscreen {
  opacity: 1 !important;
}

/* =========================================================
   EXTRA CLASSES — used in vek-guten-theme templates
   (reference site used inline styles for these)
   ========================================================= */

/* About page two-column layout */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* New programs page */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.checkup-box {
  background: var(--brand-orange);
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.checkup-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.checkup-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
}
@media (max-width: 768px) {
  .checkup-box {
    flex-direction: column;
  }
}

/* Blog cards */
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.blog-card-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.blog-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
}
.blog-read-more:hover {
  text-decoration: underline;
}

/* CTA bar */
.cta-bar-inner {
  background: var(--brand-orange);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 768px) {
  .cta-bar-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* Doctor photo placeholder */
.doctor-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}

/* Additional missing classes */
.site-main {
  flex: 1;
}
.blog-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}
.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-item:hover {
  color: var(--brand-orange);
}
.mobile-nav-item {
  border-bottom: 1px solid var(--navy-50);
}
.mobile-nav-sub-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* =========================================================
   TARGETED FIXES
   ========================================================= */

/* CF7 acceptance checkboxes: small text */
.wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7-acceptance label,
.wpcf7 .wpcf7-acceptance span {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}
.wpcf7-acceptance .wpcf7-list-item {
  margin-bottom: 0;
}
.wpcf7 .wpcf7-acceptance {
  margin-top: 0.2rem !important;
  margin-bottom: 0.2rem !important;
}

/* Blog post CTA inline card (used in single.php) */
.blog-cta-card {
  background: var(--navy-50);
  border-radius: 1rem;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0;
}
.blog-cta-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.2rem;
}
.blog-cta-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}
@media (max-width: 600px) {
  .blog-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

/* Читайте также cards — smaller, max-width container */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 370px));
  gap: 1.25rem;
}
.related-posts-grid .blog-card-img-wrap {
  aspect-ratio: 16/9;
}
@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Link colours: orange in body text only ─────────────────────────────── */
/* Apply orange only inside prose/body content areas */
.prose-content a,
.blog-card-excerpt a,
.entry-content a {
  color: var(--brand-orange);
}
.prose-content a:visited,
.blog-card-excerpt a:visited,
.entry-content a:visited {
  color: var(--navy-700);
}

/* ── All orange (brand) buttons: always white text ──────────────────────── */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.vek-cookie-btn-accept {
  color: #fff !important;
}

/* ── promo-btn: white pill on orange bg → orange text ───────────────────── */
.promo-btn,
.promo-btn:link,
.promo-btn:visited {
  color: var(--brand-orange) !important;
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  color: #fff !important;
}

/* ── btn-secondary: always white text (transparent+white-border on dark/orange bg) */
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: #fff !important;
}

/* ── cta-bar-btn: white pill on orange bg → orange text ─────────────────── */
.cta-bar-btn,
.cta-bar-btn:link,
.cta-bar-btn:visited {
  color: var(--brand-orange) !important;
}

/* Privacy policy & generic page: full container width prose */
.prose-content {
  max-width: none;
}

/* ─── Cookie notice ──────────────────────────────────────────────────────── */
.vek-cookie-notice {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(26, 45, 94, 0.14);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 99999;
  flex-wrap: wrap;
}
.vek-cookie-hidden {
  display: none !important;
}
.vek-cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
  min-width: 200px;
}
.vek-cookie-text a {
  color: var(--brand-orange) !important;
  text-decoration: underline;
}
.vek-cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.vek-cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}
.vek-cookie-btn-accept {
  background: var(--brand-orange);
  color: #fff;
}
.vek-cookie-btn-accept:hover {
  background: var(--brand-orange-dark);
}
.vek-cookie-btn-decline {
  background: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
}
.vek-cookie-btn-decline:hover {
  border-color: var(--navy-300);
  color: var(--navy-700);
}
@media (max-width: 540px) {
  .vek-cookie-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .vek-cookie-actions {
    width: 100%;
  }
}
