@import url("fonts-local.css");

:root {
  --bg: #fbf7ee;
  --paper: #ffffff;
  --soft: #f4eee2;
  --soft-2: #faf5ec;
  --ink: #25211d;
  --muted: #6f665b;
  --line: #e8decf;
  --blue-dark: #4a4036;
  --teal: #9a4c39;
  --teal-soft: #f6e9e4;
  --sand: #ead8bd;
  --gold: #ae8b66;
  --gold-dark: #876845;
  --heading: #977959;
  --heading-dark: #584021;
  --shadow: 0 18px 45px rgba(62, 46, 26, 0.1);
  --card-shadow: 0 18px 45px rgba(74, 58, 35, 0.11);
  --card-shadow-hover: 0 28px 75px rgba(80, 60, 34, 0.18);
  --radius: 8px;
  --radius-lg: 18px;
  --header-h: 88px;
  --ease: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vh 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 0 18%,
      rgba(185, 144, 89, 0.1) 18% 30%,
      transparent 30% 58%,
      rgba(185, 144, 89, 0.08) 58% 70%,
      transparent 70% 100%
    ),
    linear-gradient(180deg, #fffaf1 0%, #f7efe1 48%, #fbf7ee 100%);
  background-size: 100% 118vh, 100% 100%;
  background-attachment: fixed;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 16px;
  color: var(--muted);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--heading);
  line-height: 1.15;
  font-weight: 300;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--heading-dark);
}

h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

h3 {
  font-size: 21px;
}

strong,
b {
  font-weight: 400;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--heading-dark);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(174, 139, 102, 0.12);
  box-shadow:
    0 18px 42px rgba(74, 58, 35, 0.08),
    0 6px 18px rgba(174, 139, 102, 0.08);
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 8px;
  right: clamp(12px, 8vw, 120px);
  width: min(18vw, 200px);
  height: 72%;
  pointer-events: none;
  opacity: 0.55;
  background: url("../assets/generated/header-sand-scatter.svg") right center / contain no-repeat;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: min(240px, 42vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 12px;
  color: var(--blue-dark);
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
  background: rgba(174, 139, 102, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-actions .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.phone-link {
  color: var(--heading-dark);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--gold);
}

.round-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(174, 139, 102, 0.28);
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
}

.nav-backdrop {
  display: none;
}

/* —— Buttons —— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 300;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(185, 144, 89, 0.34);
  outline-offset: 3px;
}

.button-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 12px 24px rgba(113, 83, 47, 0.18);
}

.button-primary:hover {
  background: #987553;
}

.button-secondary {
  background: var(--paper);
  color: var(--blue-dark);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: rgba(113, 83, 47, 0.2);
}

.button-on-dark {
  background: #fff;
  color: var(--heading-dark);
}

.button-on-dark:hover {
  background: var(--soft-2);
}

.button-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rehab-extras {
  margin-top: 48px;
}

/* —— Sections —— */
.section {
  padding: 82px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered h2,
.section-heading.centered p,
.section-heading.centered .eyebrow {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: #6f5f4a;
}

.accent-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 249, 238, 0.96) 0%,
      rgba(255, 249, 238, 0.78) 46%,
      rgba(255, 249, 238, 0.28) 100%
    ),
    url("../assets/generated/blog-hero-bg-wide.jpg") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.compass-card {
  width: min(380px, 80vw);
  max-width: 380px;
  aspect-ratio: 1;
  filter: drop-shadow(0 28px 45px rgba(113, 83, 47, 0.12));
}

.compass-image {
  width: 100%;
  height: auto;
  max-height: 380px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.compass-hint {
  margin: 12px 0 0;
  color: var(--gold);
  text-align: center;
  font-size: 14px;
}

/* —— Cards / grids —— */
.mission-grid,
.offer-list,
.cases-grid,
.situations-grid,
.work-grid,
.extra-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--card-shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--heading-dark);
  font-size: 18px;
}

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

/* —— Split layouts —— */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.offer-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.offer-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.closing-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue-dark);
}

/* —— Crisis band —— */
.crisis-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(95, 91, 102, 0.86), rgba(124, 106, 85, 0.72)),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
}

.crisis-band h2,
.crisis-band p,
.crisis-band .eyebrow {
  color: #fff;
}

.crisis-band p {
  max-width: 720px;
}

/* —— Situation cards —— */
.situation-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.situation-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c6a27a 0%, #ae8b66 54%, #876845 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.situation-card .situation-body {
  color: var(--muted);
}

.situation-card .situation-answer {
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue-dark);
  border-top: 1px solid var(--line);
}

/* —— Privacy —— */
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}

.privacy-list li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.privacy-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(113, 83, 47, 0.96), rgba(174, 139, 102, 0.92));
  color: #fff;
  box-shadow: var(--card-shadow);
}

.privacy-aside h3,
.privacy-aside p {
  color: #fff;
}

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

/* —— Process steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--card-shadow);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 400;
}

.step h3 {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--heading-dark);
}

.process-note {
  margin: 28px 0 0;
  text-align: center;
  color: var(--blue-dark);
}

/* —— Extra services —— */
.extra-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.extra-card img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.extra-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--heading-dark);
}

.extra-card p {
  margin: 0;
  font-size: 14px;
}

.family-note {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft-2);
}

/* —— Doctors —— */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.doctor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--card-shadow);
}

.doctor-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: 50% 18%;
}

.doctor-card-body {
  padding: 20px 22px 24px;
}

.doctor-card h3 {
  margin-bottom: 6px;
  color: var(--heading-dark);
}

.doctor-role {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 14px;
}

/* —— CTA / contacts —— */
.cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(113, 83, 47, 0.94), rgba(174, 139, 102, 0.88)),
    url("../assets/images/azimut-consultation-room.jpg") center / cover;
}

.cta h2,
.cta .eyebrow,
.cta p {
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.contact-form .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.contact-form .checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.contact-form button[type="submit"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 12px 24px rgba(113, 83, 47, 0.18);
}

.contact-form button[type="submit"]:hover:not(:disabled) {
  background: #987553;
  border-color: #987553;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

/* Beat `.cta p { color: #fff }` — status sits on the cream form card */
.contact-form .form-status {
  display: none;
  margin: 0;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.45;
}

.contact-form .form-status.is-visible {
  display: block;
}

.contact-form .form-status.is-error {
  color: #9a4c39;
}

.contact-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-phones a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contacts-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.contacts-bar article {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.contacts-bar h3,
.contacts-bar p,
.contacts-bar a {
  color: #fff;
  margin-bottom: 0;
}

.contacts-bar h3 {
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.emergency {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82) !important;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  padding: 58px 0 46px;
  background:
    linear-gradient(
      180deg,
      rgba(251, 247, 238, 0.98) 0%,
      rgba(246, 236, 220, 0.72) 100%
    ),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
  color: #51483f;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(280px, 1.4fr) minmax(200px, 1fr);
  align-items: start;
  gap: 28px;
}

.footer-brand-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
}

.footer-logo-watermark {
  display: block;
  width: 120px;
  height: auto;
  max-width: 120px;
  max-height: 124px;
  object-fit: contain;
  object-position: center top;
  opacity: 0.72;
}

.footer-brand-line {
  width: 44px;
  height: 1px;
  margin: 18px auto 12px;
  background: rgba(174, 139, 102, 0.56);
}

.footer-brand-stack p {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
}

.footer-info,
.footer-column {
  padding-left: 22px;
  border-left: 1px solid rgba(174, 139, 102, 0.28);
}

.footer-info h3,
.footer-column h3 {
  margin-bottom: 16px;
  font-size: 19px;
}

.footer-info h3::after,
.footer-column h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 10px;
  background: rgba(174, 139, 102, 0.62);
}

.footer-contact-link {
  display: block;
  margin-bottom: 8px;
  color: var(--heading-dark);
}

.footer-contact-link:hover,
.footer-column a:hover {
  color: var(--gold);
}

.footer-legal {
  margin-top: 18px;
  font-size: 13px;
  color: #7c6a55;
}

.footer-legal p {
  margin-bottom: 10px;
  font-size: 13px;
  color: #7c6a55;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: #5e5a55;
  font-size: 15px;
}

.footer-note {
  margin-top: 18px;
  font-size: 12px;
  color: #7c6a55;
}

/* —— Responsive —— */
@media (max-width: 1600px) {
  :root {
    --header-h: 72px;
  }

  .site-header::before {
    display: none;
  }

  .header-inner {
    width: min(1180px, calc(100% - 28px));
    gap: 12px;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand-logo {
    width: min(210px, 72vw);
    max-height: 52px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  body.nav-open .main-nav,
  body.nav-open .header-actions {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 880;
    border: 0;
    background: rgba(36, 30, 24, 0.42);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  body.nav-open .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    z-index: 890;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--card-shadow-hover);
  }

  body.nav-open .nav-link {
    padding: 12px 14px;
    font-size: 16px;
  }

  body.nav-open .header-actions {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 890;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--card-shadow-hover);
  }

  body.nav-open .header-actions .button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .mission-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split.reverse,
  .privacy-grid,
  .cta-grid,
  .doctors-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .compass-card {
    width: min(260px, 70vw);
  }

  .compass-image {
    max-height: 260px;
  }

  .contacts-bar {
    grid-template-columns: 1fr;
  }

  .footer-info,
  .footer-column {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .section {
    padding: 56px 0;
  }

  .mission-grid,
  .work-grid,
  .cases-grid,
  .situations-grid,
  .extra-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-actions,
  .contact-phones {
    flex-direction: column;
    align-items: stretch;
  }

  .split-media img {
    min-height: 220px;
  }
}
