﻿/*
Theme Name: Мед Портал
Theme URI: https://example.com/med-portal
Author: Med Portal Team
Author URI: https://example.com
Description: Профессиональная тема медицинского центра с полной настройкой через WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: med-portal
*/

:root {
  --primary-color: #0f6ba8;
  --accent-color: #20c997;
  --text-color: #1f2937;
  --background-color: #f8fbff;
  --button-bg-color: #0f6ba8;
  --button-text-color: #ffffff;
  --link-color: #0b84d8;
  --heading-font: "Poppins", sans-serif;
  --body-font: "Open Sans", sans-serif;
  --ui-radius: 12px;
  --ui-border-width: 1px;
  --ui-shadow-intensity: 18;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

a:not(.btn):not(.wp-block-button__link):hover,
a:not(.btn):not(.wp-block-button__link):focus-visible {
  color: #075d98;
  filter: saturate(1.12);
  opacity: 0.95;
  text-decoration: none;
}

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

.container,
.container-full {
  width: 100%;
  max-width: 1440px;
  padding-inline: 20px;
  margin-inline: auto;
}

.site-header {
  background: #fff;
  border-bottom: var(--ui-border-width) solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
}

.topbar {
  background: var(--primary-color);
  color: #fff;
  font-size: 0.875rem;
}

.topbar .container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-block: 0.5rem;
}

.topbar a {
  color: #fff;
}

.topbar-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-main {
  padding-block: 0.85rem;
}

.header-main .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-logo img {
  max-height: 54px;
  width: auto;
}

.site-title {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.site-description {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  overflow-wrap: anywhere;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(15, 107, 168, 0.14);
  background: linear-gradient(135deg, #ffffff, #eef7fd);
  color: #0b3653;
  border-radius: calc(var(--ui-radius) + 4px);
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 107, 168, 0.12);
}

.nav-toggle__icon {
  width: 20px;
  display: inline-grid;
  gap: 4px;
}

.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__label {
  font-weight: 700;
}

.front-nav {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  position: relative;
}

.front-nav.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.front-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.front-nav > ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.front-nav li {
  margin: 0;
  position: relative;
}

.front-nav > ul > li > a,
.front-nav .sub-menu a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #0b3653;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(15, 107, 168, 0.05);
  border: 1px solid rgba(15, 107, 168, 0.08);
  overflow-wrap: anywhere;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.front-nav > ul > li > a:hover,
.front-nav > ul > li > a:focus,
.front-nav .sub-menu a:hover,
.front-nav .sub-menu a:focus {
  text-decoration: none;
  background: rgba(15, 107, 168, 0.1);
  border-color: rgba(15, 107, 168, 0.18);
  transform: translateX(2px);
}

.front-nav .sub-menu {
  display: none;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.front-nav .menu-item-has-children.is-submenu-open > .submenu-toggle .submenu-toggle__icon {
  transform: rotate(-135deg);
}

.front-nav .menu-item-has-children.is-submenu-open > .sub-menu {
  display: grid;
}

.submenu-toggle {
  border: 1px solid rgba(15, 107, 168, 0.16);
  background: rgba(15, 107, 168, 0.04);
  color: #0b3653;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: none;
  margin-left: 0.45rem;
  padding: 0;
  flex-shrink: 0;
}

.submenu-toggle::before {
  display: none;
}

.submenu-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.submenu-toggle__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.front-nav .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.front-nav .menu-item-has-children > a {
  flex: 1 1 calc(100% - 46px);
}

.front-nav .menu-item-has-children > .sub-menu {
  width: 100%;
}

.front-nav .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 0.45rem;
  font-size: 0.72rem;
  opacity: 0.72;
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 107, 168, 0.12);
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(180deg, #1a87d1, #0f6ba8);
  color: var(--button-text-color);
  padding: 0.78rem 1.08rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 107, 168, 0.14);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn::before,
button::before,
input[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 1;
  pointer-events: none;
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 107, 168, 0.2);
  filter: saturate(1.04);
  text-decoration: none;
}

.btn--outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.98));
  border-color: rgba(15, 107, 168, 0.18);
  color: var(--primary-color);
  box-shadow: 0 8px 18px rgba(15, 107, 168, 0.08);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: rgba(15, 107, 168, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(233, 245, 255, 1));
}

.entry-content blockquote,
.wp-block-quote,
.content-quote {
  position: relative;
  margin: 1.6rem 0;
  padding: 1.3rem 1.4rem 1.3rem 1.8rem;
  border-left: 4px solid var(--accent-color);
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.06), rgba(32, 201, 151, 0.08));
  box-shadow: 0 14px 28px rgba(15, 107, 168, 0.08);
  font-size: 1.04rem;
}

.entry-content blockquote::before,
.wp-block-quote::before,
.content-quote::before {
  content: "“";
  position: absolute;
  top: -0.25rem;
  left: 0.8rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(15, 107, 168, 0.24);
}

.entry-content blockquote cite,
.wp-block-quote cite,
.content-quote cite {
  display: block;
  margin-top: 0.8rem;
  color: rgba(31, 41, 55, 0.72);
  font-style: normal;
  font-size: 0.92rem;
}

.entry-content sup,
.entry-content .footnote-ref {
  font-size: 0.78em;
  vertical-align: super;
}

.entry-content sup a,
.entry-content .footnote-ref a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.content-footnote,
.entry-content .footnotes,
.lab-interpreter__notice {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 107, 168, 0.12);
  border-radius: calc(var(--ui-radius) + 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(15, 107, 168, 0.04));
  color: rgba(31, 41, 55, 0.84);
  font-size: 0.95rem;
}

.content-footnote strong {
  color: #0b3653;
}

.feedback-hero,
.feedback-layout {
  display: grid;
  gap: 1.25rem;
}

.feedback-hero {
  margin-bottom: 1.5rem;
}

.feedback-hero__eyebrow,
.feedback-meta-card__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-hero__lead {
  max-width: 60ch;
  font-size: 1.02rem;
}

.feedback-hero__meta {
  display: grid;
  gap: 0.9rem;
}

.feedback-meta-card,
.feedback-form-card {
  padding: 1rem;
  border: 1px solid rgba(15, 107, 168, 0.12);
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(15, 107, 168, 0.05));
  box-shadow: 0 16px 30px rgba(15, 107, 168, 0.08);
}

.feedback-form-card__header h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.feedback-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ui-radius);
  font-size: 0.9rem;
}

.feedback-alert--success {
  background: rgba(32, 201, 151, 0.14);
  border: 1px solid rgba(32, 201, 151, 0.3);
  color: #116149;
}

.feedback-alert--error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.22);
  color: #8a2130;
}

.feedback-alert p {
  margin: 0;
}

.feedback-alert p + p {
  margin-top: 0.45rem;
}

.feedback-form {
  display: grid;
  gap: 0.7rem;
}

.feedback-form--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.feedback-form__field {
  margin: 0;
}

.feedback-form__field--full,
.feedback-form__actions {
  grid-column: 1 / -1;
}

.feedback-form__field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #0b3653;
  font-size: 0.94rem;
}

.feedback-form__field input,
.feedback-form__field textarea {
  width: 100%;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(15, 107, 168, 0.18);
  border-radius: calc(var(--ui-radius) + 2px);
  background: #fff;
  color: var(--text-color);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 168, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 107, 168, 0.08);
}

.feedback-form__field--hidden {
  position: absolute;
  left: -9999px;
}

.home-feedback-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem;
  border: 1px solid rgba(15, 107, 168, 0.14);
  border-radius: calc(var(--ui-radius) + 6px);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.08), rgba(32, 201, 151, 0.12));
  box-shadow: 0 18px 34px rgba(15, 107, 168, 0.1);
}

.home-feedback-card__intro,
.home-feedback-card__form-wrap {
  min-width: 0;
}

.home-feedback-card__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feedback-card__content p:last-child {
  margin-bottom: 0;
}

.home-feedback-card__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.home-feedback-card__form-wrap {
  padding: 0.9rem;
  border-radius: calc(var(--ui-radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 107, 168, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.feedback-form--compact {
  gap: 0.6rem;
}

.feedback-form__hint {
  display: block;
  margin-top: 0.28rem;
  color: rgba(31, 41, 55, 0.66);
  font-size: 0.8rem;
}

.section {
  padding: 1.75rem 0;
}

.section-title {
  font-family: var(--heading-font);
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.7rem;
}

.section + .section {
  padding-top: 0.5rem;
}

.widget-title {
  font-family: var(--heading-font);
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.7rem;
}

.hero {
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.15), rgba(32, 201, 151, 0.1));
}

.hero-slider {
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.2), rgba(32, 201, 151, 0.2));
  position: relative;
}

.slides {
  position: relative;
  min-height: 320px;
}

.slide {
  display: none;
  min-height: 320px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.slide.is-active {
  display: block;
}

.slide-content {
  padding-block: 4.2rem;
}

.slide h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
}

.slide p {
  margin-bottom: 1rem;
  max-width: 760px;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #0b1f31;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 3;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.site-menu-row {
  background: #fff;
  border-bottom: var(--ui-border-width) solid rgba(0, 0, 0, 0.08);
}

.site-menu-row .container {
  padding-block: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-menu-row {
  position: relative;
}

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

.meta {
  font-size: 0.85rem;
  opacity: 0.75;
}

.doctor-card-full img {
  border-radius: var(--ui-radius);
  margin-bottom: 0.75rem;
}

.doctor-card-full {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.doctor-card-full .card-thumb {
  margin-bottom: 0;
}

.doctor-card-full h2,
.doctor-card-full h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.doctor-card-full p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.doctor-card-full--archive,
.service-card--archive {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.doctor-card-full__body,
.service-card--archive__body {
  display: grid;
  gap: 0.7rem;
}

.doctor-card-full__eyebrow,
.service-card--archive__eyebrow,
.archive-hero__eyebrow {
  margin: 0;
  color: #0f6ba8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-card-full__meta {
  display: grid;
  gap: 0.45rem;
}

.doctor-card-full--featured,
.doctor-card-full--archive,
.service-card--archive {
  padding: 0.9rem;
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.99));
  border: 1px solid rgba(11, 54, 83, 0.08);
  box-shadow: 0 16px 34px rgba(11, 54, 83, 0.06);
}

.doctor-card-full--featured {
  gap: 0.85rem;
}

.doctor-card-full--featured .card-thumb {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--ui-radius) + 2px);
}

.doctor-card-full--archive .card-thumb,
.section-hub-stream__item--doctor .section-hub-stream__thumb {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.doctor-card-full--featured .doctor-card-full__body {
  gap: 0.6rem;
}

.doctor-card-full--featured .card-action,
.doctor-card-full--archive .card-action,
.service-card--archive .card-action {
  width: 100%;
  justify-content: center;
  align-self: stretch;
}

.service-card--archive__excerpt {
  display: -webkit-box;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.doctor-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #b7791f;
  font-size: 0.92rem;
  font-weight: 700;
}

.doctor-rating-stars {
  letter-spacing: 0.06em;
}

.doctor-rating--interactive .doctor-rating-stars {
  display: inline-flex;
  gap: 0.1rem;
  letter-spacing: 0;
}

.doctor-star {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #c9ced6;
  font-size: 1.2rem;
  line-height: 1;
}

.doctor-star.is-active {
  color: #d39c2c;
}

.home-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.home-main,
.home-sidebar,
.page-main,
.site-sidebar {
  min-width: 0;
}

.page-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.home-main .section {
  padding-block: 1.5rem;
}

.home-sidebar,
.site-sidebar {
  padding-block: 1.5rem;
}

.sidebar-inner {
  position: static;
  top: auto;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.sidebar-search {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--ui-radius) + 4px);
  border: 1px solid rgba(15, 107, 168, 0.12);
  background: linear-gradient(145deg, rgba(15, 107, 168, 0.06), rgba(255, 255, 255, 0.98));
}

.site-sidebar .widget {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid rgba(15, 107, 168, 0.12);
  border-radius: calc(var(--ui-radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
  box-shadow:
    0 14px 30px rgba(11, 54, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.site-sidebar .widget + .widget {
  margin-top: 0;
}

.site-sidebar .widget-title {
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(15, 107, 168, 0.14);
  color: #0b3653;
  font-size: 1.05rem;
  line-height: 1.35;
}

.site-sidebar .widget p,
.site-sidebar .widget li,
.site-sidebar .widget label,
.site-sidebar .widget caption,
.site-sidebar .widget .textwidget {
  color: rgba(31, 41, 55, 0.9);
  font-size: 0.96rem;
  line-height: 1.65;
}

.site-sidebar .widget ul,
.site-sidebar .widget ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
}

.site-sidebar .widget ul.wp-block-latest-posts,
.site-sidebar .widget ul.wp-block-categories-list,
.site-sidebar .widget ul.wp-block-archives-list,
.site-sidebar .widget ul.menu {
  padding-left: 0;
  list-style: none;
}

.site-sidebar .widget a:not(.btn):not(.wp-block-button__link) {
  color: #0b5e94;
  font-weight: 600;
}

.site-sidebar .widget .wp-block-group,
.site-sidebar .widget .wp-block-latest-posts,
.site-sidebar .widget .wp-block-page-list,
.site-sidebar .widget .wp-block-categories-list,
.site-sidebar .widget .wp-block-archives-list,
.site-sidebar .widget .wp-block-search,
.site-sidebar .widget .wp-block-tag-cloud,
.site-sidebar .widget .wp-block-calendar {
  margin: 0;
}

.site-sidebar .widget .wp-block-latest-posts li,
.site-sidebar .widget .wp-block-page-list li,
.site-sidebar .widget .wp-block-categories-list li,
.site-sidebar .widget .wp-block-archives-list li,
.site-sidebar .widget .menu li {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) - 2px);
  background: rgba(255, 255, 255, 0.82);
}

.site-sidebar .widget .wp-block-search__inside-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.site-sidebar .widget input[type="search"],
.site-sidebar .widget input[type="text"],
.site-sidebar .widget input[type="email"],
.site-sidebar .widget input[type="url"],
.site-sidebar .widget input[type="password"],
.site-sidebar .widget select,
.site-sidebar .widget textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(15, 107, 168, 0.18);
  border-radius: calc(var(--ui-radius) + 1px);
  background: #fff;
  color: var(--text-color);
}

.site-sidebar .widget input:focus,
.site-sidebar .widget select:focus,
.site-sidebar .widget textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 168, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 107, 168, 0.12);
}

.site-sidebar .widget table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: calc(var(--ui-radius) - 2px);
}

.site-sidebar .widget th,
.site-sidebar .widget td {
  padding: 0.55rem;
  border: 1px solid rgba(15, 107, 168, 0.12);
  text-align: center;
}

.site-sidebar .widget .wp-calendar-table caption,
.site-sidebar .widget .wp-block-calendar caption {
  margin-bottom: 0.5rem;
  color: #0b3653;
  font-weight: 700;
}

.site-sidebar .widget .tag-cloud-link,
.site-sidebar .widget .wp-block-tag-cloud a {
  display: inline-flex;
  align-items: center;
  margin: 0 0.45rem 0.45rem 0;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 168, 0.14);
  background: rgba(15, 107, 168, 0.07);
  font-size: 0.84rem !important;
}

.site-sidebar .widget .wp-block-button {
  margin: 0;
}

.site-sidebar .widget .wp-block-button__link {
  width: 100%;
}

.site-sidebar .widget button,
.site-sidebar .widget input[type="submit"],
.site-sidebar .widget .search-submit {
  width: 100%;
}

.site-sidebar .widget .calendar_wrap,
.site-sidebar .widget .wp-block-calendar {
  overflow-x: auto;
}

.sidebar-search__title {
  margin: 0;
  font-size: 1.25rem;
}

.sidebar-search__form {
  display: grid;
  gap: 0.55rem;
}

.sidebar-search__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(11, 54, 83, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-search__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.sidebar-search__input {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  border-radius: calc(var(--ui-radius) + 2px);
  border: 1px solid rgba(15, 107, 168, 0.24);
  background: #fff;
  color: var(--text-color);
  font-size: 0.95rem;
}

.sidebar-search__input:focus {
  outline: none;
  border-color: rgba(15, 107, 168, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 107, 168, 0.14);
}

.sidebar-search__submit {
  min-height: 46px;
  padding-inline: 1rem;
  white-space: nowrap;
  border-radius: calc(var(--ui-radius) + 2px);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--button-bg-color), var(--primary-color));
  color: var(--button-text-color);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 107, 168, 0.16);
}

.sidebar-search__results {
  display: grid;
  gap: 0.6rem;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 35;
  padding: 0.75rem;
  max-height: 360px;
  overflow: auto;
  border-radius: calc(var(--ui-radius) + 8px);
  border: 1px solid rgba(15, 107, 168, 0.14);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 38px rgba(11, 54, 83, 0.16);
}

.sidebar-search__results[hidden] {
  display: none !important;
}

.sidebar-search__status {
  font-size: 0.84rem;
  color: rgba(11, 54, 83, 0.78);
  font-weight: 700;
}

.sidebar-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sidebar-search__item {
  margin: 0;
}

.sidebar-search__item-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.65rem;
  border-radius: calc(var(--ui-radius) + 1px);
  border: 1px solid rgba(15, 107, 168, 0.1);
  background: rgba(248, 252, 255, 0.96);
}

.sidebar-search__item-link:hover,
.sidebar-search__item-link:focus-visible {
  border-color: rgba(15, 107, 168, 0.28);
  background: rgba(15, 107, 168, 0.08);
}

.sidebar-search__item-title {
  font-weight: 700;
  color: #0b3653;
}

.sidebar-search__item-meta {
  font-size: 0.78rem;
  color: rgba(31, 41, 55, 0.64);
}

.sidebar-search__item-excerpt {
  font-size: 0.88rem;
  color: rgba(31, 41, 55, 0.78);
}

.sidebar-search__item--empty {
  padding: 0.62rem 0.68rem;
  border-radius: calc(var(--ui-radius) + 1px);
  background: rgba(15, 107, 168, 0.05);
  color: rgba(31, 41, 55, 0.7);
  font-size: 0.9rem;
}

.sidebar-search__all-results {
  width: 100%;
  margin-top: 0.15rem;
}

.sidebar-search.is-loading .sidebar-search__status {
  color: var(--primary-color);
}

.load-more {
  margin-top: 1rem;
  margin-inline: auto;
  display: block;
  min-width: 220px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: #fff;
  border: var(--ui-border-width) solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ui-radius);
  padding: 1rem;
  box-shadow: 0 4px calc(var(--ui-shadow-intensity) * 1px) rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.content-main {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.content-main > * {
  max-width: 72ch;
}

.content-main h1,
.content-main h2,
.content-main h3,
.content-main h4,
.content-main h5,
.content-main h6,
.content-main p,
.content-main ul,
.content-main ol {
  margin-inline: 0;
}

.content-main,
.card p,
.card li {
  font-size: 1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.news-card .meta,
.news-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.home-card__meta-row .meta,
.home-card__meta-row .card-stats {
  margin: 0;
}

.home-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.entry-files {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.entry-files__top h2,
.entry-files__top p {
  margin: 0;
}

.entry-files__top {
    display: grid;
    gap: 0.45rem;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
}

.entry-files__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    background: rgba(15, 107, 168, 0.08);
    color: #0b5e94;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.entry-files__grid {
    display: grid;
    gap: 0.55rem;
}

.entry-file-card {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(15, 107, 168, 0.12);
    border-radius: calc(var(--ui-radius) + 2px);
    background:
      radial-gradient(circle at top right, rgba(32, 201, 151, 0.12), transparent 36%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
    box-shadow:
      0 8px 16px rgba(11, 54, 83, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.entry-file-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f6ba8, #20c997);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 14px rgba(15, 107, 168, 0.16);
}

.entry-file-card__meta {
    display: grid;
    gap: 0.24rem;
}

.entry-file-card__meta h3 {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.entry-file-card__details {
    display: flex;
    gap: 0.38rem;
    flex-wrap: wrap;
    margin: 0;
    color: #5b6875;
    font-size: 0.7rem;
}

.entry-file-card__details span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.entry-file-card__details span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(15, 107, 168, 0.4);
}

.entry-file-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: rgba(15, 107, 168, 0.1);
    color: #0b5e94;
    font-size: 0.6rem;
    font-weight: 700;
  letter-spacing: 0.04em;
}

.entry-file-card__actions {
    display: flex;
    gap: 0.34rem;
    flex-wrap: wrap;
    grid-column: 2;
}

.entry-file-card__actions .btn {
    min-width: 98px;
    min-height: 30px;
    padding: 0.36rem 0.56rem;
    font-size: 0.72rem;
}

.entry-file-card__download {
    box-shadow: 0 6px 12px rgba(15, 107, 168, 0.08);
}

.has-file-preview-modal {
  overflow: hidden;
}

.file-preview-modal[hidden] {
  display: none !important;
}

.file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.file-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 43, 0.66);
  backdrop-filter: blur(4px);
}

.file-preview-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 8px);
  background: #fff;
  box-shadow: 0 30px 70px rgba(11, 54, 83, 0.24);
}

.file-preview-modal__header,
.file-preview-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.file-preview-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.file-preview-modal__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.file-preview-modal__body {
  min-height: 240px;
  max-height: calc(100vh - 12rem);
  overflow: auto;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(240, 248, 255, 0.62);
}

.file-preview-modal__frame {
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.file-preview-modal__image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 700px) {
    .entry-files__top {
        grid-template-columns: 1fr;
    }

    .entry-file-card {
        grid-template-columns: 1fr;
    }

    .entry-file-card__icon,
    .entry-file-card__actions {
        grid-column: auto;
    }

    .entry-file-card__actions .btn {
        width: 100%;
    }
}

.card-action {
  align-self: flex-end;
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: auto;
  box-shadow: none;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #526274;
  white-space: normal;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-stat-button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.card-stat-button.is-active .card-stat-icon {
  color: #cf3348;
}

.card-stat-icon {
  color: #d1495b;
  font-size: 0.95rem;
  line-height: 1;
}

.entry-header .card-stats {
  margin-top: 0;
}

.entry-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.entry-meta-row .meta {
  margin: 0;
}

.entry-share-row {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 107, 168, 0.14);
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.05), rgba(255, 255, 255, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.entry-share-row .share-box {
  margin: 0;
  flex: 0 0 auto;
}

.entry-share-row .entry-meta-row {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: nowrap;
  flex: 1 1 auto;
}

.entry-share-row .entry-meta-row .card-stats {
  margin: 0;
}

.share-box {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

.share-box__button {
  text-decoration: none;
}

.share-box__button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(24, 119, 242, 0.3);
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 54, 83, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.share-box__button--icon:hover,
.share-box__button--icon:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(24, 119, 242, 0.55);
  box-shadow: 0 10px 22px rgba(11, 54, 83, 0.18);
}

.share-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

.news-card .wp-block-post-excerpt__excerpt,
.news-card .wp-block-post-date {
  margin: 0;
}

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

.inline-action-form,
.doctor-rating-form {
  margin: 0;
}

.card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--ui-radius) - 2px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.16), rgba(32, 201, 151, 0.14));
}

.card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb--placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #0b3653;
  font-family: var(--heading-font);
  font-weight: 600;
  text-align: center;
}

.entry-layout {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.entry-hero {
  margin-bottom: 1.5rem;
  border-radius: calc(var(--ui-radius) + 2px);
  overflow: hidden;
}

.entry-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.entry-header {
  max-width: 760px;
  margin-bottom: 1rem;
}

.entry-content {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
}

.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
  max-width: 100%;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
  width: 100%;
}

.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content pre,
.entry-content code,
.entry-content a,
.entry-content p,
.entry-content li,
.doctor-card-full p,
.news-card p {
  overflow-wrap: anywhere;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1rem;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.section-hub-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.section-hub-stream {
  display: grid;
  gap: 1rem;
}

.section-hub-stream__item {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  grid-template-columns: 240px minmax(0, 1fr);
}

.section-hub-stream__item--doctor,
.section-hub-stream__item--service {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: calc(var(--ui-radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.99));
  border: 1px solid rgba(11, 54, 83, 0.08);
  box-shadow: 0 16px 34px rgba(11, 54, 83, 0.06);
}

.section-hub-stream__item--doctor .section-hub-stream__thumb {
  flex: 0 0 220px;
  width: 220px;
}

.section-hub-stream__item--service .section-hub-stream__thumb {
  flex: 0 0 220px;
  width: 220px;
  min-height: 180px;
}

.section-hub-stream__item--doctor .section-hub-stream__body,
.section-hub-stream__item--service .section-hub-stream__body {
  gap: 0.7rem;
}

.section-hub-stream__item--doctor .section-hub-stream__body {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-hub-stream__item--service .section-hub-stream__body {
  flex: 1 1 auto;
  min-width: 0;
}

.section-hub-stream__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.section-hub-stream__item--doctor .card-action,
.section-hub-stream__item--service .card-action {
  width: fit-content;
  min-width: 180px;
  justify-content: center;
}

.section-hub-stream__thumb {
  display: block;
  overflow: hidden;
  min-height: 130px;
  height: 100%;
  align-self: stretch;
  border-radius: var(--ui-radius);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.14), rgba(32, 201, 151, 0.08));
  color: #0b3653;
  text-decoration: none;
}

.section-hub-stream__thumb .card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-hub-stream__thumb span {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.section-hub-stream__body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.section-hub-stream__body h2,
.section-hub-stream__body p {
  margin: 0;
}

.section-hub-stream__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.section-hub-stream__body h2 {
  font-size: 1.18rem;
  line-height: 1.35;
}

.section-hub-stream__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-hub-stream__meta-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-hub-stream__meta-row .meta,
.section-hub-stream__meta-row .card-stats {
  margin: 0;
}

.section-hub-stream__meta-row .card-stats {
  justify-content: flex-start;
}

.section-hub-stream__body .card-stats {
  margin: 0;
}

.section-hub-stream__item .card-action {
  margin-top: 0;
  white-space: nowrap;
}

.related-posts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-posts h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.related-posts-grid {
  grid-template-columns: 1fr;
}

.doctor-profile-grid {
  display: grid;
  gap: 1.5rem;
}

.doctor-profile--enhanced,
.service-page {
  display: grid;
  gap: 1.5rem;
}

.doctor-profile-hero,
.service-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
}

.service-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.doctor-profile-media img {
  width: 100%;
  border-radius: calc(var(--ui-radius) + 2px);
  object-fit: cover;
}

.doctor-profile-media__placeholder,
.service-hero__placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.14), rgba(32, 201, 151, 0.1));
  color: #0b3653;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.doctor-profile-main {
  min-width: 0;
}

.doctor-profile__eyebrow,
.service-hero__eyebrow {
  margin: 0 0 0.45rem;
  color: #0f6ba8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-profile__lead,
.service-hero__lead {
  margin: 0;
  max-width: 60ch;
  color: #4e6274;
  font-size: 1.03rem;
  line-height: 1.7;
}

.doctor-profile-highlights {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.doctor-highlight,
.doctor-side-card,
.service-side-card {
  padding: 1rem 1.05rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 54, 83, 0.08);
  box-shadow: 0 12px 26px rgba(11, 54, 83, 0.05);
}

.doctor-highlight__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #607284;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doctor-highlight strong {
  color: #0b3653;
}

.doctor-profile-actions,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.doctor-profile-content,
.service-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.doctor-profile-aside,
.service-layout__aside {
  display: grid;
  gap: 1rem;
}

.doctor-side-card h2,
.service-side-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
}

.doctor-side-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
}

.doctor-side-list li,
.service-summary p {
  margin: 0;
}

.service-hero__media img {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  border-radius: calc(var(--ui-radius) + 4px);
  object-fit: cover;
}

.service-summary {
  display: grid;
  gap: 0.7rem;
}

.doctor-meta-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.doctor-meta-list p {
  margin: 0;
}

.map-wrap iframe,
.map-static img {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--ui-radius);
}

.contacts-page {
  display: grid;
  gap: 1.5rem;
}

.contacts-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: calc(var(--ui-radius) + 6px);
  background:
    radial-gradient(circle at top left, rgba(32, 201, 151, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(15, 107, 168, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 107, 168, 0.12);
}

.contacts-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f6ba8;
}

.contacts-hero__lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4e6274;
}

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

.contacts-highlight {
  display: grid;
  gap: 0.85rem;
}

.contacts-highlight__item,
.contacts-card,
.contacts-map-card {
  padding: 1rem 1.05rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 54, 83, 0.08);
  box-shadow: 0 12px 26px rgba(11, 54, 83, 0.05);
}

.contacts-highlight__item a,
.contacts-card__link {
  color: #0f6ba8;
  font-weight: 700;
  text-decoration: none;
}

.contacts-highlight__item strong,
.contacts-card strong {
  color: #0b3653;
}

.contacts-highlight__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #607284;
}

.contacts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
}

.contacts-info,
.contacts-cards {
  display: grid;
  gap: 1rem;
}

.contacts-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contacts-card h2,
.contacts-map-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contacts-card p,
.contacts-map-card p {
  margin: 0;
  color: #4e6274;
}

.contacts-content {
  padding: 1.1rem 1.15rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
  border: 1px solid rgba(11, 54, 83, 0.08);
}

.contacts-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contacts-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.08);
  color: #0f6ba8;
  text-decoration: none;
  font-weight: 700;
}

.contacts-map-card {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.contacts-map-card__header {
  display: grid;
  gap: 0.4rem;
}

.contacts-map-card__header h2,
.contacts-map-card__header p {
  margin: 0;
}

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

.search-header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.search-header__eyebrow {
  margin: 0;
  color: rgba(15, 107, 168, 0.82);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.search-header__hint {
  margin: 0;
  color: rgba(31, 41, 55, 0.72);
}

.search-card {
  display: grid;
  gap: 0.6rem;
}

.search-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(31, 41, 55, 0.62);
}

.search-list {
  display: grid;
  gap: 0.8rem;
}

.search-list__item {
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 4px);
  border-color: rgba(15, 107, 168, 0.12);
  box-shadow: 0 8px 24px rgba(11, 54, 83, 0.06);
}

.search-list__main {
  min-width: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

.search-list__thumb-link {
  display: block;
  border-radius: calc(var(--ui-radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(15, 107, 168, 0.16);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.14), rgba(32, 201, 151, 0.14));
  box-shadow: 0 10px 22px rgba(11, 54, 83, 0.12);
  height: 100%;
  min-height: 142px;
}

.search-list__thumb-link > .card-thumb {
  margin: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.search-list__thumb-link .card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.search-list__item:hover .search-list__thumb-link .card-thumb-image,
.search-list__item:focus-within .search-list__thumb-link .card-thumb-image {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.03);
}

.search-list__content {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.search-list__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.search-list__title a {
  color: #0b84d8;
}

.search-list__title a:hover,
.search-list__title a:focus-visible {
  color: #0868aa;
}

.search-list__excerpt p {
  margin: 0;
  color: rgba(31, 41, 55, 0.9);
}

.search-list__excerpt p:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.search-list__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.1rem;
}

.search-list__stats {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #556476;
  font-size: 0.96rem;
  font-weight: 600;
}

.search-list__date {
  color: #6c7b8a;
}

.search-list__stat--likes {
  color: #cf3348;
}

.search-list__stat--views {
  color: #4f6378;
}

.search-list__action {
  flex-shrink: 0;
  min-width: 166px;
}

.error-404-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.7rem);
  border-radius: calc(var(--ui-radius) + 8px);
  background:
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 250, 255, 0.98));
  border: 1px solid rgba(15, 107, 168, 0.12);
}

.error-404-card__code {
  margin: 0;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-404-card__title {
  margin: 0;
}

.error-404-card__text {
  margin: 0;
  color: rgba(31, 41, 55, 0.78);
}

.error-404-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.error-404-card__image-wrap {
  border-radius: calc(var(--ui-radius) + 8px);
  overflow: hidden;
  border: 1px solid rgba(15, 107, 168, 0.12);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.16), rgba(32, 201, 151, 0.16));
}

.error-404-card__image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.archive-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.55rem);
  border-radius: calc(var(--ui-radius) + 6px);
  border: 1px solid rgba(15, 107, 168, 0.12);
  background:
    radial-gradient(circle at top left, rgba(32, 201, 151, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(15, 107, 168, 0.08), rgba(255, 255, 255, 0.98));
}

.archive-hero__content,
.archive-hero__facts {
  display: grid;
  gap: 0.95rem;
}

.archive-hero__lead {
  margin: 0;
  max-width: 60ch;
  color: #4e6274;
  font-size: 1.03rem;
  line-height: 1.7;
}

.archive-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.archive-fact {
  padding: 1rem 1.05rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 54, 83, 0.08);
  box-shadow: 0 12px 26px rgba(11, 54, 83, 0.05);
}

.archive-fact__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #607284;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-fact strong {
  color: #0b3653;
}

.pagination,
.posts-navigation,
.post-navigation {
  margin-top: 1.4rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.page-numbers,
.nav-links .prev,
.nav-links .next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 168, 0.16);
  background: #fff;
  color: #0f6ba8;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 54, 83, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.page-numbers.current {
  border-color: rgba(15, 107, 168, 0.34);
  background: rgba(15, 107, 168, 0.1);
  color: #0b3653;
}

.page-numbers:hover,
.page-numbers:focus,
.nav-links .prev:hover,
.nav-links .prev:focus,
.nav-links .next:hover,
.nav-links .next:focus {
  transform: translateY(-1px);
  border-color: rgba(15, 107, 168, 0.3);
  background: rgba(15, 107, 168, 0.06);
}

.quick-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 4.9rem;
  z-index: 109;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f6ba8, #159a77);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 54, 83, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-1px);
}

.site-footer {
  background: #0b1f31;
  color: #d8e4f0;
  padding-block: 2rem;
}

.site-footer a {
  color: #bde6ff;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.lab-interpreter {
  display: grid;
  gap: 1.5rem;
}

.lab-interpreter__hero,
.lab-card,
.lab-highlights,
.lab-alerts {
  display: grid;
  gap: 0.9rem;
}

.lab-interpreter__lead {
  margin: 0;
  font-size: 1rem;
}

.bmi-advisor {
  display: grid;
  gap: 1rem;
}

.bmi-advisor__hero {
  display: grid;
  gap: 0.45rem;
}

.bmi-advisor__lead {
  margin: 0;
  color: rgba(31, 41, 55, 0.8);
}

.bmi-card {
  display: grid;
  gap: 0.9rem;
}

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

.bmi-form__actions {
  grid-column: 1 / -1;
  display: flex;
}

.bmi-result {
  display: grid;
  gap: 0.42rem;
  padding: 0.8rem 0.9rem;
  border-radius: calc(var(--ui-radius) + 2px);
  border: 1px solid rgba(15, 107, 168, 0.16);
  background: linear-gradient(135deg, rgba(15, 107, 168, 0.08), rgba(32, 201, 151, 0.08));
}

.bmi-result__index,
.bmi-result__category,
.bmi-result__advice {
  margin: 0;
}

.bmi-result__index strong {
  color: var(--primary-color);
}

.lab-steps {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(15, 107, 168, 0.05);
  border: 1px solid rgba(15, 107, 168, 0.1);
}

.lab-step strong,
.lab-analysis-card h3,
.lab-report-metric__value {
  color: #0b3653;
}

.lab-step p,
.lab-analysis-card p,
.lab-analysis-card__meta,
.lab-form__intro p,
.lab-form__actions p,
.lab-report-metric__label {
  margin: 0;
  color: #607284;
}

.lab-step__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f6ba8;
  color: #fff;
  font-weight: 700;
}

.lab-interpreter__notice {
  padding: 1rem 1.1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(15, 107, 168, 0.08);
  border: 1px solid rgba(15, 107, 168, 0.12);
}

.lab-card--soft {
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.lab-card--form {
  gap: 1.1rem;
}

.lab-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.lab-analysis-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  border-radius: calc(var(--ui-radius) + 4px);
  border: 1px solid rgba(11, 54, 83, 0.1);
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lab-analysis-card:hover,
.lab-analysis-card:focus {
  transform: translateY(-1px);
  border-color: rgba(15, 107, 168, 0.3);
  box-shadow: 0 14px 28px rgba(11, 54, 83, 0.08);
}

.lab-analysis-card.is-active {
  border-color: rgba(15, 107, 168, 0.34);
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.lab-analysis-card__eyebrow,
.lab-form__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.1);
  color: #0f6ba8;
  font-size: 0.78rem;
  font-weight: 700;
}

.lab-analysis-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.lab-card {
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: calc(var(--ui-radius) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
}

.lab-card__header p,
.lab-highlights p,
.lab-alerts p,
.lab-guidelines,
.lab-sources {
  margin: 0;
}

.lab-form {
  display: grid;
  gap: 1rem;
}

.lab-form__intro {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(15, 107, 168, 0.04);
  border: 1px dashed rgba(15, 107, 168, 0.2);
}

.lab-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

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

.lab-field {
  display: grid;
  gap: 0.45rem;
}

.lab-field__label {
  font-weight: 700;
  color: #0b3653;
}

.lab-field input,
.lab-field select,
.lab-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border-radius: calc(var(--ui-radius) - 2px);
  border: 1px solid rgba(11, 54, 83, 0.16);
  background: #fff;
  color: var(--text-color);
  font: inherit;
}

.lab-field__meta {
  font-size: 0.84rem;
  color: #607284;
}

.lab-result-list {
  display: grid;
  gap: 1rem;
}

.lab-report-overview {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-report-metric {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: #fff;
  border: 1px solid rgba(11, 54, 83, 0.08);
}

.lab-report-metric--alert {
  border-color: rgba(185, 90, 20, 0.2);
  background: rgba(255, 184, 107, 0.09);
}

.lab-report-metric__value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.lab-result-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.lab-result-card--normal {
  border-color: rgba(26, 123, 87, 0.2);
  background: rgba(32, 201, 151, 0.06);
}

.lab-result-card--low,
.lab-result-card--high,
.lab-result-card--attention {
  border-color: rgba(185, 90, 20, 0.22);
  background: rgba(255, 184, 107, 0.09);
}

.lab-result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.lab-result-card__top h3,
.lab-highlights h3,
.lab-alerts h3 {
  margin: 0;
}

.lab-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: center;
}

.lab-status--normal {
  color: #0f6b4f;
  background: rgba(32, 201, 151, 0.14);
}

.lab-status--low,
.lab-status--high,
.lab-status--attention {
  color: #8a4d11;
  background: rgba(255, 184, 107, 0.18);
}

.lab-result-card p,
.lab-highlights li,
.lab-alerts li,
.lab-guidelines li {
  margin: 0;
}

.lab-result-card__advice {
  color: #4e6274;
}

.lab-highlights ul,
.lab-alerts ul,
.lab-guidelines {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.15rem;
}

@media (max-width: 1023.98px) {
  .sidebar-inner {
    position: static;
    top: auto;
  }
}

@media (min-width: 768px) {
  .topbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-main .container {
    grid-template-columns: 1fr auto;
  }

  .front-nav {
    display: block;
    opacity: 1;
    transform: none;
  }

  .site-menu-row .nav-toggle {
    display: none;
  }

  .front-nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
  }

  .front-nav li {
    position: relative;
  }

  .front-nav > ul > li > a {
    padding: 0.55rem 0.8rem;
    background: transparent;
    border: 0;
    border-radius: var(--ui-radius);
  }

  .front-nav > ul > li > a:hover,
  .front-nav > ul > li > a:focus {
    background: rgba(15, 107, 168, 0.08);
    transform: none;
  }

  .submenu-toggle {
    display: none;
  }

  .front-nav .menu-item-has-children {
    align-items: stretch;
  }

  .front-nav .menu-item-has-children > a {
    flex: none;
  }

  .front-nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    min-width: 260px;
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
    border-radius: calc(var(--ui-radius) + 6px);
    border: 1px solid rgba(15, 107, 168, 0.14);
    background: linear-gradient(180deg, #ffffff, #f3f9fe);
    box-shadow: 0 18px 34px rgba(11, 54, 83, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 80;
    width: max-content;
    max-width: min(92vw, 360px);
  }

  .front-nav .sub-menu .sub-menu {
    top: -0.5rem;
    left: calc(100% + 0.45rem);
    transform: translateX(6px);
  }

  .front-nav .sub-menu a {
    padding: 0.65rem 0.78rem;
    background: rgba(15, 107, 168, 0.04);
    border: 1px solid rgba(15, 107, 168, 0.08);
    border-radius: calc(var(--ui-radius) + 1px);
  }

  .front-nav .menu-item-has-children:hover > .sub-menu,
  .front-nav .menu-item-has-children:focus-within > .sub-menu,
  .front-nav .menu-item-has-children.is-submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .front-nav .sub-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 2.75rem;
  }

  .front-nav .sub-menu .menu-item-has-children > a::after {
    content: "▸";
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .front-nav .sub-menu .menu-item-has-children:hover > .sub-menu,
  .front-nav .sub-menu .menu-item-has-children:focus-within > .sub-menu,
  .front-nav .sub-menu .menu-item-has-children.is-submenu-open > .sub-menu {
    transform: translateX(0);
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .contacts-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: start;
  }

  .home-feedback-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .lab-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-analysis-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-report-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-call {
    display: none;
  }
}

@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-columns {
    grid-template-columns: minmax(0, 1.35fr) 340px;
    gap: 1.5rem;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1.35fr) 340px;
    gap: 1.5rem;
  }

  .sidebar-inner {
    position: sticky;
    top: 90px;
  }

  .doctor-profile-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }

  .doctor-profile-content,
  .service-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .feedback-layout--full {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-full {
    padding-inline: 14px;
  }

  .section {
    padding: 1.25rem 0;
  }

  .section + .section {
    padding-top: 0.25rem;
  }

  .section-title,
  .widget-title {
    font-size: 1.4rem;
  }

  .topbar .container {
    align-items: flex-start;
  }

  .header-main .container {
    grid-template-columns: 1fr;
  }

  .site-branding {
    align-items: flex-start;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .btn {
    width: 100%;
  }

  .site-menu-row .container {
    align-items: stretch;
  }

  .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: calc(var(--ui-radius) + 10px);
    border-color: rgba(15, 107, 168, 0.16);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 252, 0.98)),
      linear-gradient(135deg, rgba(15, 107, 168, 0.08), rgba(15, 107, 168, 0));
    box-shadow: 0 16px 28px rgba(11, 54, 83, 0.08);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle__label {
    letter-spacing: 0.02em;
  }

  .front-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.98)),
      radial-gradient(circle at top right, rgba(15, 107, 168, 0.1), transparent 42%);
    border: 1px solid rgba(15, 107, 168, 0.12);
    border-radius: calc(var(--ui-radius) + 8px);
    box-shadow: 0 18px 40px rgba(11, 54, 83, 0.12);
    opacity: 0;
    transform: translateY(-10px);
    transition:
      max-height 0.32s ease,
      opacity 0.24s ease,
      transform 0.24s ease,
      padding 0.24s ease,
      margin-top 0.24s ease;
  }

  .front-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 0.45rem;
    margin-top: 0.55rem;
    opacity: 1;
    transform: translateY(0);
  }

  .front-nav > ul {
    display: grid;
    gap: 0.45rem;
  }

  .front-nav li {
    margin: 0;
  }

  .front-nav > ul > li {
    border: 1px solid rgba(15, 107, 168, 0.08);
    border-radius: calc(var(--ui-radius) + 6px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .front-nav > ul > li > a,
  .front-nav .sub-menu a {
    padding: 0.9rem 1rem;
    border-radius: calc(var(--ui-radius) + 4px);
    background: transparent;
    border: 0;
    transform: none;
  }

  .front-nav > ul > li > a {
    font-size: 0.98rem;
  }

  .front-nav .menu-item-has-children > a::after {
    display: none;
  }

  .front-nav .menu-item-has-children {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .front-nav .menu-item-has-children > a {
    flex: 1 1 100%;
    padding-right: 3.25rem;
  }

  .front-nav .menu-item-has-children > .sub-menu {
    width: 100%;
    padding: 0.15rem 0 0.15rem 0.8rem;
    margin: 0 0.5rem 0.55rem;
    border-left: 1px solid rgba(15, 107, 168, 0.18);
    gap: 0.35rem;
  }

  .front-nav .sub-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    background: rgba(15, 107, 168, 0.045);
    border: 1px solid rgba(15, 107, 168, 0.08);
    border-style: solid;
    color: #174868;
  }

  .front-nav .sub-menu .menu-item-has-children > .sub-menu {
    margin-right: 0;
    padding-left: 0.7rem;
    border-left-color: rgba(15, 107, 168, 0.12);
  }

  .front-nav .menu-item-has-children.is-submenu-open > a {
    color: #0f6ba8;
    background: rgba(15, 107, 168, 0.06);
  }

  .front-nav .menu-item-has-children.is-submenu-open > .submenu-toggle {
    color: #0f6ba8;
  }

  .submenu-toggle {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(11, 54, 83, 0.72);
    box-shadow: none;
  }

  .submenu-toggle__icon {
    width: 8px;
    height: 8px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus {
    background: rgba(15, 107, 168, 0.08);
    color: #0f6ba8;
  }

  .front-nav a:hover,
  .front-nav a:focus,
  .front-nav .sub-menu a:hover,
  .front-nav .sub-menu a:focus {
    transform: none;
    text-decoration: none;
  }

  .front-nav > ul > li > a:hover,
  .front-nav > ul > li > a:focus {
    background: rgba(15, 107, 168, 0.05);
  }

  .slide-content {
    padding-block: 3rem;
  }

  .card,
  .entry-layout {
    padding: 0.9rem;
  }

  .card-action,
  .load-more {
    width: 100%;
    align-self: stretch;
  }

  .entry-meta-row,
  .card-stats {
    gap: 0.6rem;
  }

  .section-hub-stream__item {
    grid-template-columns: 1fr;
  }

  .section-hub-stream__item--doctor,
  .section-hub-stream__item--service {
    display: grid;
  }

  .section-hub-stream__item--doctor .section-hub-stream__thumb,
  .section-hub-stream__item--service .section-hub-stream__thumb {
    width: 100%;
    flex-basis: auto;
  }

  .contacts-hero,
  .archive-hero,
  .contacts-grid,
  .contacts-cards,
  .doctor-profile-hero,
  .service-hero,
  .doctor-profile-content,
  .service-layout,
  .doctor-profile-highlights {
    grid-template-columns: 1fr;
  }

  .contacts-map-card {
    position: static;
    top: auto;
  }

  .contacts-actions .btn {
    width: 100%;
  }

  .doctor-profile-actions .btn,
  .service-actions .btn {
    width: 100%;
  }

  .section-hub-stream__thumb {
    min-height: 200px;
  }

  .section-hub-stream__thumb span {
    min-height: 200px;
  }

  .quick-call {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 4.5rem;
  }

  .slider-control {
    width: 36px;
    height: 36px;
  }

  .lab-grid,
  .lab-steps,
  .bmi-form,
  .lab-analysis-choice,
  .lab-report-overview,
  .lab-result-card__top {
    grid-template-columns: 1fr;
  }

  .lab-result-card__top {
    display: grid;
  }

  .lab-form__actions .btn {
    width: 100%;
  }

  .bmi-form__actions .btn {
    width: 100%;
  }

  .site-header.is-sticky-mobile {
    position: sticky;
    top: 0;
    box-shadow: 0 8px calc(var(--ui-shadow-intensity) * 1px) rgba(0, 0, 0, 0.08);
  }
}

.ambulatories-page {
  gap: 1.5rem;
}

.ambulatories-hero,
.ambulatories-map-section,
.ambulatories-list-section {
  display: grid;
  gap: 1rem;
}

.ambulatories-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: start;
}

.ambulatories-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ambulatories-map-section__header,
.ambulatories-list-section__header {
  max-width: 760px;
}

.ambulatories-map {
  min-height: 420px;
  border: 1px solid rgba(15, 107, 168, 0.14);
  border-radius: calc(var(--ui-radius) + 10px);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 54, 83, 0.12);
}

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

.ambulatory-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) + 8px);
  box-shadow: 0 14px 32px rgba(11, 54, 83, 0.08);
}

.ambulatory-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
}

.ambulatory-card__top h3,
.ambulatory-empty h3 {
  margin: 0;
}

.ambulatory-card__address {
  margin: 0.35rem 0 0;
  color: rgba(31, 41, 55, 0.78);
}

.ambulatory-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.95rem;
  color: rgba(31, 41, 55, 0.85);
}

.ambulatory-card__summary {
  margin: 0;
}

.ambulatory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.ambulatory-gallery__item {
  margin: 0;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  border-radius: calc(var(--ui-radius) - 2px);
  background: rgba(15, 107, 168, 0.08);
}

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

.ambulatory-empty {
  padding: 1.2rem;
}

.ambulatory-page {
  gap: 1.5rem;
}

.ambulatory-hero,
.ambulatory-layout {
  display: grid;
  gap: 1.25rem;
}

.ambulatory-hero {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.ambulatory-hero__media,
.ambulatory-hero__placeholder {
  min-height: 360px;
  border-radius: calc(var(--ui-radius) + 10px);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 107, 168, 0.12), rgba(32, 201, 151, 0.18));
}

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

.ambulatory-hero__placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.ambulatory-hero__content {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.ambulatory-hero__eyebrow {
  margin: 0;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ambulatory-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(31, 41, 55, 0.82);
}

.ambulatory-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ambulatory-highlight,
.ambulatory-side-card {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) + 4px);
  box-shadow: 0 14px 30px rgba(11, 54, 83, 0.08);
}

.ambulatory-highlight {
  display: grid;
  gap: 0.4rem;
}

.ambulatory-highlight__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 107, 168, 0.78);
}

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

.ambulatory-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.ambulatory-layout__main,
.ambulatory-layout__aside {
  display: grid;
  gap: 1rem;
}

.ambulatory-side-card h2 {
  margin-top: 0;
}

.ambulatory-meta-list p {
  margin: 0 0 0.75rem;
}

.ambulatory-meta-list p:last-child {
  margin-bottom: 0;
}

.ambulatory-gallery-section {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
}

.ambulatory-video-section {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
}

.ambulatory-gallery-section__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ambulatory-gallery-section__top h2 {
  margin: 0;
}

.ambulatory-carousel {
  overflow: hidden;
  border-radius: calc(var(--ui-radius) + 6px);
  background: rgba(15, 107, 168, 0.06);
}

.ambulatory-carousel__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.ambulatory-carousel__slide {
  min-width: 100%;
  margin: 0;
  aspect-ratio: 1 / 0.62;
}

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

.ambulatory-carousel__controls {
  display: flex;
  gap: 0.5rem;
}

.ambulatory-carousel__button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 107, 168, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-color);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 54, 83, 0.1);
}

.ambulatory-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.ambulatory-carousel__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: calc(var(--ui-radius) - 2px);
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 107, 168, 0.08);
}

.ambulatory-carousel__thumb.is-active {
  border-color: var(--accent-color);
  box-shadow: 0 10px 24px rgba(32, 201, 151, 0.18);
}

.ambulatory-carousel__thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.ambulatory-video-embed {
  overflow: hidden;
  border-radius: calc(var(--ui-radius) + 6px);
  background: rgba(15, 107, 168, 0.06);
}

.ambulatory-video-embed iframe,
.ambulatory-video-embed video,
.ambulatory-video-embed .wp-video {
  width: 100% !important;
  max-width: 100%;
  display: block;
}

.ambulatory-related-card {
  display: grid;
  gap: 0.85rem;
}

.schedules-page,
.schedule-empty,
.doctor-schedule-section {
  display: grid;
  gap: 1.25rem;
}

.schedules-page.entry-layout {
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.schedules-page__header .section-title {
  margin: 0;
}

.schedules-page .entry-content,
.schedules-page .schedules-hero__content,
.schedules-page .schedules-grid,
.schedules-page .schedules-toolbar,
.schedules-page .schedule-card,
.schedules-page .schedule-slots,
.schedules-page .schedule-overview {
  max-width: none;
  width: 100%;
}

.doctor-profile-content__main,
.doctor-schedule-section,
.doctor-schedule-section .schedule-card,
.doctor-schedule-section .schedule-slots,
.doctor-schedule-section .schedule-overview {
  max-width: none;
  width: 100%;
}

.doctor-profile-content__main > .entry-content,
.doctor-profile-content__main > .content-footnote,
.doctor-profile-content__main > .content-quote {
  max-width: none;
}

.doctor-schedule-section--full {
  width: 100%;
  margin-top: 0.25rem;
}

.doctor-schedule-section {
  margin-inline: 0;
}

.page-shell--wide {
  grid-template-columns: 1fr;
}

.page-shell--wide .container {
  max-width: 1360px;
}

.schedules-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.schedules-hero__eyebrow,
.schedule-card__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedules-toolbar,
.doctor-schedule-section__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.schedule-filter {
  border: 1px solid rgba(15, 107, 168, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.72rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 54, 83, 0.08);
}

.schedule-filter.is-active {
  background: var(--button-bg-color);
  color: var(--button-text-color);
  border-color: transparent;
}

.schedules-grid {
  display: grid;
  gap: 1rem;
}

.schedule-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 255, 0.98));
  border: 1px solid rgba(15, 107, 168, 0.1);
  border-radius: calc(var(--ui-radius) + 10px);
  box-shadow: 0 20px 40px rgba(11, 54, 83, 0.09);
  width: 100%;
}

.schedule-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.schedule-overview__item {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 107, 168, 0.08);
}

.schedule-overview__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 107, 168, 0.74);
  font-weight: 700;
}

.schedule-overview__item strong {
  font-size: 1rem;
  color: var(--text-color);
}

.schedule-card--compact {
  padding: 1rem;
}

.schedule-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.schedule-card__header h2,
.schedule-card__header h3,
.schedule-empty h2 {
  margin: 0;
}

.schedule-card__accent {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 107, 168, 0.16), rgba(32, 201, 151, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.schedule-card__accent-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-card__role,
.schedule-card__lead,
.schedule-card__period span {
  margin: 0.35rem 0 0;
  color: rgba(31, 41, 55, 0.78);
}

.schedule-card__period {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  text-align: right;
}

.schedule-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.92rem;
}

.schedule-chip--soft {
  background: rgba(32, 201, 151, 0.12);
  color: #17795f;
}

.schedule-board-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(15, 107, 168, 0.08);
  border-radius: calc(var(--ui-radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.schedule-board {
  display: grid;
  min-width: 1080px;
}

.schedule-board--compact {
  min-width: 980px;
}

.schedule-board__header,
.schedule-board__row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) repeat(7, minmax(120px, 1fr));
}

.schedule-board__header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-board__head,
.schedule-board__doctor,
.schedule-board__cell {
  min-width: 0;
  border-right: 1px solid rgba(15, 107, 168, 0.08);
  border-bottom: 1px solid rgba(15, 107, 168, 0.08);
}

.schedule-board__head:last-child,
.schedule-board__cell:last-child {
  border-right: 0;
}

.schedule-board__head {
  padding: 0.95rem 0.85rem;
  background: linear-gradient(180deg, rgba(15, 107, 168, 0.1), rgba(255, 255, 255, 0.96));
  color: #0b3653;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.schedule-board__head--doctor {
  text-align: left;
}

.schedule-board__head--today {
  background: linear-gradient(180deg, rgba(32, 201, 151, 0.24), rgba(255, 255, 255, 0.96));
  color: #0b5f47;
}

.schedule-board__doctor {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(15, 107, 168, 0.06), rgba(255, 255, 255, 0.98));
}

.schedule-board__doctor strong {
  color: #0b3653;
  font-size: 1rem;
}

.schedule-board__doctor span {
  color: rgba(31, 41, 55, 0.74);
  font-size: 0.92rem;
}

.schedule-board__cell {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

.schedule-board__cell--today {
  background:
    linear-gradient(180deg, rgba(32, 201, 151, 0.08), rgba(255, 255, 255, 0.92));
}

.schedule-board__slot {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: linear-gradient(180deg, rgba(15, 107, 168, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 107, 168, 0.08);
  box-shadow: 0 10px 20px rgba(11, 54, 83, 0.05);
}

.schedule-board__time {
  color: var(--primary-color);
  font-size: 0.96rem;
  font-weight: 800;
}

.schedule-board__meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.1);
  color: #0b5f95;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-board__note {
  margin: 0;
  color: rgba(31, 41, 55, 0.74);
  font-size: 0.9rem;
  line-height: 1.55;
}

.schedule-board__empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0.9rem 0.7rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(15, 107, 168, 0.04);
  color: rgba(31, 41, 55, 0.56);
  font-weight: 700;
}

.schedules-page--table {
  gap: 1.25rem;
}

.schedules-page__intro {
  margin: 0.6rem 0 0;
  color: rgba(31, 41, 55, 0.72);
  max-width: 720px;
}

.schedule-board-wrap--master {
  border-radius: calc(var(--ui-radius) + 10px);
  box-shadow: 0 22px 44px rgba(11, 54, 83, 0.08);
}

.schedule-board--master {
  min-width: 1180px;
}

.schedule-board__row--master + .schedule-board__row--master .schedule-board__doctor,
.schedule-board__row--master + .schedule-board__row--master .schedule-board__cell {
  border-top: 1px solid rgba(15, 107, 168, 0.06);
}

.schedule-board__doctor--master {
  gap: 0.22rem;
  padding: 0.85rem 0.9rem;
}

.schedule-board__doctor-meta {
  color: rgba(11, 54, 83, 0.64);
  font-size: 0.82rem;
}

.schedule-board__cell--master {
  gap: 0.45rem;
  padding: 0.55rem;
}

.schedule-board__slot--compact {
  gap: 0.32rem;
  padding: 0.55rem;
  border-radius: calc(var(--ui-radius) - 2px);
  box-shadow: 0 8px 18px rgba(11, 54, 83, 0.04);
}

.schedule-board__meta--soft {
  background: rgba(32, 201, 151, 0.1);
  color: #17795f;
}

.schedule-board__empty--compact {
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  font-size: 0.84rem;
}

.schedule-slots {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

.schedule-slots--compact {
  gap: 0.7rem;
}

.schedule-slot {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--ui-radius) + 2px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 107, 168, 0.08);
  width: 100%;
  align-items: start;
}

.schedule-slot__time {
  display: grid;
  gap: 0.18rem;
  align-content: start;
  min-width: 0;
}

.schedule-slot__time-value {
  color: var(--primary-color);
  font-size: 1.02rem;
  font-weight: 700;
}

.schedule-slot__date {
  color: rgba(31, 41, 55, 0.72);
  font-size: 0.92rem;
}

.schedule-slot__body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.schedule-slot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.schedule-slot__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 107, 168, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.schedule-slot__tag--soft {
  background: rgba(11, 84, 216, 0.08);
  color: #0b6ba8;
}

.schedule-slot__note {
  margin: 0;
  color: rgba(31, 41, 55, 0.76);
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 107, 168, 0.08);
  border-radius: calc(var(--ui-radius) + 2px);
  background: #fff;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.schedule-table th,
.schedule-table td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid rgba(15, 107, 168, 0.08);
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 107, 168, 0.82);
  background: rgba(15, 107, 168, 0.04);
}

.schedule-status {
  display: inline-flex;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(32, 201, 151, 0.12);
  color: #17795f;
  font-weight: 600;
}

.med-schedule-row {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d7e3ed;
  border-radius: 10px;
  background: #f8fbff;
}

.med-schedule-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.med-schedule-row__grid input {
  width: 100%;
}

@media (max-width: 1023.98px) {
  .ambulatories-hero,
  .ambulatories-grid,
  .ambulatory-hero,
  .ambulatory-layout,
  .ambulatory-highlights,
  .schedules-hero,
  .med-schedule-row__grid,
  .schedule-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ambulatories-map {
    min-height: 320px;
  }

  .ambulatory-card__top {
    flex-direction: column;
  }

  .ambulatory-card__link {
    width: 100%;
  }

  .ambulatory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ambulatory-actions .btn,
  .ambulatory-gallery-section__top,
  .ambulatory-carousel__thumbs {
    width: 100%;
  }

  .ambulatory-gallery-section__top {
    display: grid;
  }

  .ambulatory-carousel__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedules-toolbar,
  .doctor-schedule-section__top,
  .schedule-card__header {
    display: grid;
    justify-content: stretch;
  }

  .schedule-card__period {
    justify-items: start;
    text-align: left;
  }

  .schedule-card__chips {
    width: 100%;
  }

  .schedule-filter {
    width: 100%;
  }

  .schedule-slot {
    grid-template-columns: 1fr;
  }

  .schedule-board,
  .schedule-board--compact {
    min-width: 860px;
  }

  .sidebar-search__controls {
    grid-template-columns: 1fr;
  }

  .sidebar-search__submit {
    width: 100%;
  }

  .error-404-card__actions .btn {
    width: 100%;
  }

  .share-box {
    justify-content: flex-end;
  }

  .share-box__button {
    width: auto;
    justify-content: center;
  }

  .search-list__main {
    grid-template-columns: 1fr;
  }

  .entry-share-row {
    padding: 0.72rem 0.78rem;
    gap: 0.65rem;
  }

  .entry-share-row .entry-meta-row {
    gap: 0.55rem;
  }

  .search-list__thumb-link {
    min-height: 180px;
  }

  .search-list__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .search-list__stats {
    width: 100%;
  }

  .search-list__action {
    width: 100%;
    min-width: 0;
  }
}
