/*
Theme Name: Центр Ортопедии Смоленск
Theme URI: https://www.cop-smolensk.ru/
Author: Центр Ортопедии Смоленск
Description: Доступная и лёгкая тема для сайта центра протезирования.
Version: 0.3.27
Text Domain: centr-ortho
*/

:root {
  --color-primary: #0b5f93;
  --color-primary-dark: #123b55;
  --color-brand-light: #74b9f2;
  --color-accent: #08735b;
  --color-text: #172b38;
  --color-text-muted: #526875;
  --color-background: #ffffff;
  --color-surface: #f3f8fb;
  --color-border: #c9d9e3;
  --color-focus: #ffbf47;
  --container: 1180px;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(18, 59, 85, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 1001;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  background: var(--color-primary-dark);
  color: #fff;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-160%);
  background: var(--color-primary-dark);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand toggle" "phone phone" "nav nav";
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.site-brand,
.custom-logo-link {
  grid-area: brand;
  min-width: 0;
  justify-self: start;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary-dark);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.site-brand img,
.custom-logo {
  width: auto;
  max-height: 66px;
}

.site-brand img {
  flex-shrink: 0;
}

.site-brand-text {
  max-width: 190px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-toggle {
  display: none;
  grid-area: toggle;
  min-width: 48px;
  min-height: 48px;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary-dark);
}

.js .menu-toggle {
  display: inline-flex;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--color-surface);
}

.menu-toggle svg {
  width: 25px;
  height: 25px;
}

.site-nav {
  grid-area: nav;
  min-width: 0;
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
}

.js .site-nav:not(.is-open) {
  display: none;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.site-nav .sub-menu {
  margin-left: 18px;
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--color-surface);
  color: var(--color-primary);
}

.header-phone {
  grid-area: phone;
  justify-self: stretch;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  background: #065c49;
  color: #fff;
}

.button-secondary {
  border-color: var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.button-secondary:hover {
  border-color: var(--color-primary-dark);
  background: var(--color-surface);
  color: var(--color-primary-dark);
}

.hero {
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(116, 185, 242, 0.28), transparent 34%),
    linear-gradient(145deg, #f7fbfe 0%, #eef7fc 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy,
.hero-figure {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  overflow-wrap: anywhere;
}

.hero-figure {
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.hero-figure figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.hero-lead,
.section-lead {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-surface {
  background: var(--color-surface);
}

.section-heading {
  margin-bottom: 34px;
}

.cards {
  display: grid;
  gap: 18px;
}

.card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

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

.card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 750;
}

.steps {
  counter-reset: process;
}

.step {
  position: relative;
  padding-top: 70px;
}

.step::before {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  content: counter(process);
  counter-increment: process;
  font-weight: 800;
  line-height: 38px;
  text-align: center;
}

.split {
  display: grid;
  align-items: center;
  gap: 32px;
}

.feature-panel {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-panel h2,
.feature-panel a {
  color: #fff;
}

.feature-panel .button-secondary {
  color: var(--color-primary-dark);
}

.page-header {
  padding: 50px 0 30px;
  background: var(--color-surface);
}

.content-area {
  padding: 48px 0 80px;
}

.entry-content > * {
  max-width: 780px;
}

.entry-content > .alignwide {
  max-width: var(--container);
}

.entry-content li + li {
  margin-top: 8px;
}

.entry-content > .service-page {
  max-width: var(--container);
}

.service-page {
  --service-gap: clamp(18px, 3vw, 28px);
}

.service-lead,
.is-style-centr-ortho-lead {
  max-width: 800px;
  margin: 0 0 clamp(32px, 6vw, 56px);
  color: var(--color-text-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.service-jump {
  display: flex;
  margin: 0 0 clamp(52px, 8vw, 88px);
  flex-wrap: wrap;
  gap: 10px;
}

.service-jump a {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 16px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 750;
  text-decoration: none;
}

.service-jump a:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.service-section,
.is-style-centr-ortho-section {
  margin: 0 0 clamp(64px, 9vw, 104px);
  scroll-margin-top: 120px;
}

.service-section > h2,
.service-section > .section-lead {
  max-width: 800px;
}

.service-card-grid,
.service-product-grid,
.service-fact-grid,
.service-video-grid {
  display: grid;
  gap: var(--service-gap);
}

.service-direction-card,
.service-product-card,
.service-fact-grid > div {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.service-direction-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-direction-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  object-fit: contain;
}

.service-direction-card > div,
.service-product-body,
.service-fact-grid > div {
  padding: clamp(20px, 4vw, 28px);
}

.service-direction-card p:last-child,
.service-product-body p:last-child,
.service-fact-grid p:last-child {
  margin-bottom: 0;
}

.service-direction-card--text {
  justify-content: center;
  background: var(--color-surface);
}

.service-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.service-panel,
.is-style-centr-ortho-panel {
  margin: 0 0 clamp(64px, 9vw, 104px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
}

.is-style-centr-ortho-card {
  overflow: hidden;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.service-fact-grid > .is-style-centr-ortho-card {
  margin-block-start: 0;
}

.service-check-list {
  max-width: 780px;
  padding-left: 1.3em;
}

.service-check-list li::marker {
  color: var(--color-accent);
}

.entry-content > .brochure-page {
  max-width: 980px;
}

.brochure-section {
  max-width: 860px;
  margin: 0 0 clamp(52px, 8vw, 88px);
}

.brochure-section h2 {
  margin-top: 0;
}

.brochure-section h3,
.brochure-section h4 {
  margin-top: 32px;
}

.brochure-columns,
.brochure-figure-grid {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
}

.brochure-columns > div {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.brochure-columns h3 {
  margin-top: 0;
}

.brochure-numbered-list p,
.brochure-dash-list p {
  margin: 0 0 10px;
}

.brochure-figure {
  width: fit-content;
  max-width: 100%;
  margin: 28px 0 36px;
}

.brochure-figure--wide {
  width: 100%;
}

.brochure-figure img {
  width: auto;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.brochure-figure--wide img {
  width: 100%;
}

.brochure-figure figcaption {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 650;
}

.service-note {
  max-width: 900px;
  margin: 0 0 clamp(56px, 8vw, 88px);
  padding: 20px 22px;
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  background: var(--color-surface);
}

.service-note p {
  margin: 6px 0 0;
}

.preparation-alert {
  display: grid;
  max-width: 980px;
  margin: 0 0 clamp(64px, 9vw, 104px);
  padding: clamp(24px, 5vw, 42px);
  gap: 18px 32px;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  background: #f2faf7;
}

.preparation-alert h2,
.preparation-alert p {
  margin-bottom: 0;
}

.preparation-alert ul {
  margin: 0;
  padding-left: 1.3em;
}

.preparation-alert li::marker {
  color: var(--color-accent);
}

.service-fact-grid > div {
  border-color: rgba(11, 95, 147, 0.16);
}

.service-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-product-media {
  display: grid;
  min-height: 240px;
  padding: 18px;
  place-items: center;
  background: var(--color-surface);
}

.service-product-media img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.service-product-body {
  flex: 1;
}

.service-video-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.service-video-frame {
  aspect-ratio: 16 / 9;
  background: var(--color-primary-dark);
}

.service-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-video-body {
  padding: clamp(20px, 4vw, 28px);
}

.service-video-body h3 {
  margin-bottom: 10px;
}

.service-video-body p:last-child {
  margin-bottom: 0;
}

.staff-card .service-product-media {
  min-height: 180px;
}

.staff-card .service-product-media img {
  width: auto;
  max-width: 120px;
  max-height: 130px;
}

.history-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.history-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.history-figure figcaption {
  padding: 12px 16px;
  color: var(--color-text-muted);
}

.history-figure--map {
  max-width: 780px;
  margin-top: 28px;
}

.service-faq {
  display: grid;
  max-width: 900px;
  gap: 14px;
}

.service-faq details {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.service-faq summary {
  padding: 20px 56px 20px 22px;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 750;
}

.service-faq details > div {
  padding: 0 22px 22px;
}

.service-faq details > div p:last-child {
  margin-bottom: 0;
}

.review-stories,
.review-list {
  display: grid;
  max-width: 920px;
  gap: 18px;
}

.review-story {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, #fff 0%, var(--color-surface) 100%);
  box-shadow: var(--shadow);
}

.review-story h3 {
  position: relative;
  margin: 0 0 22px;
  padding-right: 40px;
  color: var(--color-primary-dark);
  font-size: clamp(1.18rem, 2.4vw, 1.45rem);
}

.review-mark {
  position: absolute;
  top: 8px;
  right: 22px;
  color: rgba(11, 95, 147, 0.12);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
}

.review-story__text,
.review-entry__text {
  max-width: 780px;
}

.review-story__text p,
.review-entry__text p {
  margin: 0 0 1em;
}

.review-story__text p:last-child,
.review-entry__text p:last-child {
  margin-bottom: 0;
}

.review-story__text {
  font-size: 1.03rem;
}

.review-entry {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.review-entry summary {
  display: flex;
  min-height: 64px;
  padding: 16px 22px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-weight: 750;
  list-style-position: outside;
}

.review-entry[open] summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.review-entry__action {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 650;
}

.review-entry[open] .review-entry__action {
  font-size: 0;
}

.review-entry[open] .review-entry__action::after {
  content: "Свернуть";
  font-size: 0.92rem;
}

.review-entry__text {
  padding: 22px;
}

.contact-overview {
  display: grid;
  margin: 0 0 clamp(64px, 9vw, 104px);
  gap: var(--service-gap);
}

.contact-primary,
.contact-details {
  padding: clamp(26px, 5vw, 44px);
  border-radius: 24px;
}

.contact-primary {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.92);
}

.contact-primary h2,
.contact-primary .eyebrow {
  color: #fff;
}

.contact-primary .button-secondary {
  border-color: #fff;
}

.contact-phone {
  display: inline-flex;
  min-height: 48px;
  margin: 4px 0 18px;
  align-items: center;
  color: #fff;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  text-decoration-thickness: 0.06em;
}

.contact-phone:hover {
  color: #fff;
}

.contact-details {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.contact-details dl {
  margin: 0;
}

.contact-details dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.contact-details dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-details dl > div:last-child {
  padding-bottom: 0;
}

.contact-details dt {
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.contact-details dd a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.contact-map {
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  margin: 28px 0 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  aspect-ratio: 4 / 3;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.service-product-body a {
  display: inline-block;
  min-height: 44px;
  padding-top: 6px;
  font-weight: 750;
}

.stay-gallery {
  display: grid;
  gap: var(--service-gap);
}

.stay-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.stay-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.stay-gallery figcaption {
  padding: 12px 16px;
  color: var(--color-primary-dark);
  font-weight: 750;
}

.service-steps {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  counter-reset: service-step;
  gap: 14px;
  list-style: none;
}

.service-steps li {
  position: relative;
  min-height: 64px;
  margin: 0;
  padding: 18px 20px 18px 72px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  counter-increment: service-step;
}

.service-steps li::before {
  position: absolute;
  top: 14px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  content: counter(service-step);
  font-weight: 800;
  place-items: center;
}

.service-callout {
  display: grid;
  padding: clamp(28px, 6vw, 52px);
  align-items: center;
  gap: 28px;
  border-radius: 24px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.is-style-centr-ortho-callout {
  display: grid;
  padding: clamp(28px, 6vw, 52px);
  align-items: center;
  gap: 28px;
  border-radius: 24px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.service-callout h2,
.service-callout .eyebrow,
.is-style-centr-ortho-callout h2,
.is-style-centr-ortho-callout .eyebrow {
  color: #fff;
}

.service-callout p:last-child {
  margin-bottom: 0;
}

.is-style-centr-ortho-callout p:last-child {
  margin-bottom: 0;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-callout .button-secondary {
  border-color: #fff;
  color: var(--color-primary-dark);
}

.service-actions .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.service-actions .wp-block-button__link:hover {
  background: #065c49;
  color: #fff;
}

.service-actions .button-secondary .wp-block-button__link {
  border-color: #fff;
  background: #fff;
  color: var(--color-primary-dark);
}

.post-list {
  display: grid;
  gap: 20px;
}

.site-footer {
  padding: 48px 0 100px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a,
.site-footer h2 {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

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

.footer-nav li + li {
  margin-top: 7px;
}

.mobile-call {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  left: 16px;
  box-shadow: 0 8px 30px rgba(8, 115, 91, 0.28);
}

@media (min-width: 700px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand toggle phone" "nav nav nav";
  }

  .header-phone {
    justify-self: end;
  }

  body {
    font-size: 18px;
  }

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

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

  .service-card-grid,
  .service-product-grid,
  .service-fact-grid,
  .service-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .review-entry summary {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }

  .contact-overview {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .contact-map {
    aspect-ratio: 16 / 9;
  }

}

/* The complete menu needs its own row and at least 1100px of viewport width. */
@media (min-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand phone" "nav nav";
    gap: 8px 24px;
    padding-bottom: 8px;
  }

  .js .menu-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav:not(.is-open) {
    display: block;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav > ul > li > a,
  .site-nav > .menu > ul > li > a {
    white-space: nowrap;
  }

  .site-nav .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .site-nav li {
    position: relative;
  }

  .site-nav .sub-menu {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    display: none;
    width: max-content;
    min-width: 250px;
    max-width: 320px;
    margin: 0;
    padding: 8px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu {
    display: flex;
  }

}

@media (min-width: 980px) {
  .mobile-call {
    display: none;
  }

  .site-footer {
    padding-bottom: 48px;
  }

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

  .service-callout,
  .is-style-centr-ortho-callout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  }

  .preparation-alert {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .contact-page .service-fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
