:root {
  --bg: #fefefe;
  --card: #ffffff;
  --text: #121212;
  --muted: #4c4c4c;
  --primary: #e43949;
  --primary-dark: #cf000f;
  --line: rgba(18, 18, 18, 0.12);
  --shadow: 0 16px 38px rgba(228, 57, 73, 0.14);
  --header-offset: 94px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-offset);
}

.clinic-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  isolation: isolate;
  overflow: visible;
  padding: 0.58rem 0 0.62rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(228, 57, 73, 0.12);
  transition: transform 0.28s ease, box-shadow 0.22s ease;
}

.clinic-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(16, 33, 44, 0.08);
}

.clinic-header.is-hidden {
  transform: translateY(calc(-100% - 6px));
}

.container {
  width: min(1060px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.decor {
  display: none;
}

.decor-left {
  width: 170px;
  height: 170px;
  background: #ffc3ca;
  top: -56px;
  left: -60px;
  opacity: 0.42;
}

.decor-right {
  width: 210px;
  height: 210px;
  background: #ffd7dc;
  right: -70px;
  top: 55px;
  opacity: 0.38;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.logo {
  width: 63px;
  height: 63px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-title {
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

.brand-subtitle {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.16;
  text-transform: none;
}

.header-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  margin-left: auto;
  flex-wrap: nowrap;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(228, 57, 73, 0.34);
  background: #fff7f8;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.52rem 0.72rem;
  white-space: nowrap;
}

.hotline {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(130deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
  margin-left: 0;
}

.burger-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid rgba(228, 57, 73, 0.35);
  background: #fff7f8;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.burger-btn span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary-dark);
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.menu-open .burger-btn {
  border-color: rgba(207, 0, 15, 0.45);
  background: #fff1f3;
}

.menu-open .burger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .burger-btn span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  margin-top: 0.68rem;
  border: 1px solid rgba(228, 57, 73, 0.24);
  border-radius: 16px;
  background: linear-gradient(175deg, #fff 0%, #fff6f7 100%);
  box-shadow: 0 14px 30px rgba(228, 57, 73, 0.12);
  padding: 0.52rem;
  display: grid;
  gap: 0.34rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(228, 57, 73, 0.2);
  background: #fff;
  color: #2f3942;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
}

body.menu-lock {
  overflow: hidden;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0;
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0.55rem 0 0.6rem;
  font-size: clamp(1.55rem, 5.9vw, 2.7rem);
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.45s ease both;
}

.info-card:nth-child(2) {
  animation-delay: 0.05s;
}

.info-card:nth-child(3) {
  animation-delay: 0.1s;
}

.info-card:nth-child(4) {
  animation-delay: 0.15s;
}

.info-card:nth-child(5) {
  animation-delay: 0.2s;
}

.info-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.2;
}

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

.info-card p + p {
  margin-top: 0.28rem;
}

.map-links {
  margin-top: 0.62rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 57, 73, 0.35);
  background: #fff7f8;
  color: #7d2430;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.map-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.route-link {
  display: inline-block;
  margin-top: 0.56rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.accent {
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
}

.accent h2,
.accent p,
.accent .phone-link {
  color: #fff;
}

.phone-link {
  display: inline-flex;
  margin-top: 0.56rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contacts-section {
  padding: 0.35rem 0 1.5rem;
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

.parking-section {
  padding: 0 0 1.9rem;
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

.trauma-section {
  padding: 0 0 1.9rem;
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

.smp-section {
  padding: 0 0 2rem;
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

.contacts-shell {
  border: 1px solid rgba(228, 57, 73, 0.2);
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #fff4f6 100%);
  box-shadow: 0 18px 42px rgba(228, 57, 73, 0.14);
}

.contacts-top {
  margin-bottom: 0.95rem;
}

.section-label {
  margin: 0;
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.contacts-title {
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.34rem, 6vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
}

.contacts-intro {
  margin: 0;
  color: #373d41;
  font-size: 0.96rem;
  line-height: 1.46;
  max-width: 40rem;
}

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

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

.trauma-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
  align-items: stretch;
}

.smp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
  align-items: stretch;
}

.contacts-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.parking-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.parking-widget-panel {
  padding: 0.82rem;
}

.parking-widget-wrap {
  margin-top: 0.14rem;
  border: 1px solid #d7dde2;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f8fa;
}

.parking-widget-wrap > div {
  padding-top: 0;
}

.parking-widget-wrap iframe {
  display: block;
  width: 100% !important;
  height: 360px !important;
  border: 0;
}

.parking-widget-note {
  margin: 0.18rem 0 0;
  color: #47515a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.trauma-main {
  justify-content: space-between;
}

.trauma-main p {
  font-size: 1rem;
  line-height: 1.45;
}

.trauma-main .contact-actions {
  margin-top: 0.68rem;
}

.smp-main {
  gap: 0.62rem;
  justify-content: space-between;
}

.smp-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smp-features li {
  position: relative;
  padding-left: 1rem;
  color: #2f3942;
  font-size: 1rem;
  line-height: 1.45;
}

.smp-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.smp-features li + li {
  margin-top: 0.44rem;
}

.smp-phone {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(140deg, #ff4b5e 0%, #cf000f 100%);
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 0.22rem;
  padding: 0.48rem 0.92rem;
  box-shadow: 0 10px 24px rgba(207, 0, 15, 0.28);
}

.smp-side {
  gap: 0.56rem;
  justify-content: space-between;
}

.smp-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7dde2;
  background: #eef2f5;
}

.smp-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.smp-main .smp-photo-wrap {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.contact-panel-main .smp-features li {
  color: rgba(255, 255, 255, 0.95);
}

.contact-panel-main .smp-features li::before {
  background: rgba(255, 255, 255, 0.88);
}

.contact-panel-main .smp-phone {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(14, 15, 18, 0.22);
}

.smp-side-text {
  color: #35424c;
  font-size: 0.98rem;
  line-height: 1.45;
}

.emergency-cta {
  min-height: 56px;
  background: linear-gradient(140deg, #ff4b5e 0%, #cf000f 100%);
  border-color: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(207, 0, 15, 0.34);
  animation: ctaPulse 1.9s ease-in-out infinite;
}

.emergency-cta:hover {
  filter: brightness(1.02);
}

.emergency-cta:active {
  transform: translateY(1px);
}

.contact-panel {
  border: 1px solid rgba(18, 18, 18, 0.11);
  border-radius: 18px;
  background: #fff;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.contact-panel-main {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}

.contacts-side .contact-panel {
  border-color: #d7dde2;
  box-shadow: 0 8px 18px rgba(16, 33, 44, 0.05);
}

.contact-panel h3 {
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
  margin: 0;
  font-size: 1rem;
  line-height: 1.24;
  letter-spacing: 0.004em;
}

.contact-panel p {
  margin: 0;
  color: #2f3942;
  font-size: 0.98rem;
  line-height: 1.44;
}

.contact-panel-main p {
  color: rgba(255, 255, 255, 0.94);
}

.contact-map {
  margin-top: 0.05rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.2);
}

.contact-map > * {
  max-width: 100% !important;
}

.contact-map iframe {
  width: 100% !important;
  height: 330px !important;
}

.parking-map iframe {
  height: 350px !important;
}

.contact-panel p + p {
  margin-top: 0.1rem;
}

.contact-label {
  margin: 0.08rem 0 0.02rem;
  color: #616d78;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-actions {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
}

.contact-btn,
.contact-btn.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(140deg, #ff4b5e 0%, #cf000f 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 0.5rem 0.74rem;
  min-height: 44px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 18px rgba(207, 0, 15, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-btn:hover,
.contact-btn.ghost:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(207, 0, 15, 0.28);
}

.contact-btn:active,
.contact-btn.ghost:active {
  transform: translateY(1px);
}

.contact-panel-main .contact-btn,
.contact-panel-main .contact-btn.ghost {
  background: #fff;
  color: var(--primary-dark);
  border-color: rgba(207, 0, 15, 0.16);
  box-shadow: 0 8px 18px rgba(14, 15, 18, 0.2);
}

.contact-panel-main .contact-btn:hover,
.contact-panel-main .contact-btn.ghost:hover {
  filter: brightness(0.98);
  box-shadow: 0 10px 22px rgba(14, 15, 18, 0.24);
}

.contact-phone {
  display: inline-flex;
  margin: 0;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 800;
  line-height: 1.3;
}

.contact-phone.emergency {
  color: var(--primary);
}

.contact-phone.smp-phone,
.contact-phone.smp-phone:visited,
.contact-phone.smp-phone:hover,
.contact-phone.smp-phone:focus-visible {
  color: #fff;
}

.contact-panel-main .contact-phone.smp-phone,
.contact-panel-main .contact-phone.smp-phone:visited,
.contact-panel-main .contact-phone.smp-phone:hover,
.contact-panel-main .contact-phone.smp-phone:focus-visible {
  color: var(--primary-dark);
}

.contact-phone + .contact-label {
  margin-top: 0.42rem;
}

.contact-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #2f3942;
  font-size: 0.98rem;
  line-height: 1.46;
}

.contact-list li {
  position: relative;
  padding-left: 0.96rem;
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.item-key {
  display: block;
  color: #1e2830;
  font-weight: 700;
}

.item-value {
  display: block;
  margin-top: 0.06rem;
  color: #34414b;
  font-weight: 400;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.06rem;
  color: #34414b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(52, 65, 75, 0.35);
}

.contact-panel-wide .contact-btn {
  width: fit-content;
  min-width: 168px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 10px 24px rgba(207, 0, 15, 0.34), 0 0 0 0 rgba(207, 0, 15, 0.42);
  }
  70% {
    box-shadow: 0 10px 24px rgba(207, 0, 15, 0.28), 0 0 0 14px rgba(207, 0, 15, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(207, 0, 15, 0.34), 0 0 0 0 rgba(207, 0, 15, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .emergency-cta {
    animation: none;
  }
}

@media (min-width: 640px) {
  .clinic-header {
    padding-top: 0.64rem;
    padding-bottom: 0.68rem;
  }

  .brand-title {
    font-size: 1.46rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .hotline {
    font-size: 0.83rem;
    padding: 0.62rem 0.9rem;
  }

  .header-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.86rem;
  }

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

  .info-card {
    padding: 1.02rem;
  }

  .contacts-shell {
    padding: 1.06rem;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .parking-grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .trauma-grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .smp-grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

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

  .parking-side {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .contact-panel-wide {
    grid-column: span 2;
  }

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

  .contact-map iframe {
    height: 360px !important;
  }

  .parking-map iframe {
    height: 380px !important;
  }

  .parking-widget-wrap iframe {
    height: 390px !important;
  }

  .smp-photo {
    height: 250px;
  }
}

@media (min-width: 960px) {
  .clinic-header {
    padding: 0.72rem 0 0.74rem;
  }

  .hero-copy {
    margin-bottom: 0.25rem;
  }

  .brand-title {
    font-size: 1.7rem;
  }

  .brand-subtitle {
    font-size: 1.08rem;
  }

  .header-actions {
    display: flex;
  }

  .burger-btn,
  .mobile-menu {
    display: none;
  }

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

  .info-card:nth-child(1),
  .info-card:nth-child(2),
  .info-card:nth-child(5) {
    grid-column: span 2;
  }

  .info-card:nth-child(3),
  .info-card:nth-child(4) {
    grid-column: span 1;
  }

  .contacts-section {
    padding-bottom: 2.15rem;
  }

  .parking-section {
    padding-bottom: 2.2rem;
  }

  .trauma-section {
    padding-bottom: 2.2rem;
  }

  .smp-section {
    padding-bottom: 2.2rem;
  }

  .contacts-shell {
    padding: 1.2rem;
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.38fr);
    gap: 0.82rem;
  }

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

  .parking-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.42fr);
    gap: 0.82rem;
  }

  .trauma-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 0.82rem;
  }

  .smp-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    gap: 0.82rem;
  }

  .emergency-cta {
    min-height: 60px;
    font-size: 1.07rem;
  }

  .parking-side {
    grid-template-columns: 1fr;
    gap: 0.82rem;
  }

  .contact-panel-wide {
    grid-column: span 2;
  }

  .contact-map iframe {
    height: 365px !important;
  }

  .parking-map iframe {
    height: 395px !important;
  }

  .parking-widget-wrap iframe {
    height: 410px !important;
  }

  .smp-photo {
    height: 300px;
  }
}
