*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #13294b;
  --navy-soft: #1a2b4b;
  --green: #36a379;
  --green-dark: #2d8a66;
  --green-hover: #318f6e;
  --green-light: #e6f4ef;
  --green-pale: #f2f9f6;
  --teal: #70c1b3;
  --text: #3d4f66;
  --text-muted: #5a6b82;
  --paper: #ffffff;
  --line: #dce8e3;
  --shadow: 0 8px 32px rgba(19, 41, 75, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-btn: 10px;
  --content-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --icon-lg: 48px;
  --icon-xl: 56px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--content-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 1.85rem + 3.2vw, 4.125rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.section__title {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__title--left {
  text-align: left;
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(54, 163, 121, 0.28);
}

.btn--primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 4px 12px rgba(54, 163, 121, 0.32);
}

.btn--outline {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn--outline:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: #a8cfc0;
}

.btn--ghost:hover {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--navy);
}

.btn--wide {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
}

.btn--full {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 88px;
  padding-block: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo__mark {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.logo--header .logo__mark {
  width: clamp(48px, 5vw, 56px);
  height: clamp(48px, 5vw, 56px);
}

.logo--header .logo__name {
  font-size: clamp(1.4rem, 1.15rem + 0.65vw, 1.75rem);
}

.logo--header .logo__tag {
  font-size: clamp(0.68rem, 0.62rem + 0.14vw, 0.78rem);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.15rem;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.logo__tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-inline: auto;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-soft);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--green);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 700;
  color: var(--navy);
}

.header__phone svg {
  width: 20px;
  height: 20px;
}

.header__hours {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: auto;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  --section-bg: var(--paper);
  --hero-text-width: min(560px, 48%);
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 58vh, 680px);
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4.5vw, 3.5rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 24%,
    rgba(255, 255, 255, 0.98) 32%,
    rgba(255, 255, 255, 0.82) 40%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 56%
  );
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg .hero__photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  border-radius: clamp(16px, 2vw, 24px) 0 0 clamp(16px, 2vw, 24px);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero__content h1 {
  font-size: clamp(2.875rem, 2rem + 3.4vw, 4.375rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.35em;
  max-width: none;
  text-wrap: pretty;
}

.hero__lead {
  font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 1.5rem 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-soft);
  line-height: 1.45;
}

.hero__features li > span:last-child {
  padding-top: 0.65rem;
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.hero__features .icon-png {
  width: 60px;
  height: 60px;
  object-position: center center;
}

.hero__features li:first-child .icon-png {
  object-position: 50% 42%;
}

.icon-png {
  display: block;
  width: var(--icon-lg);
  height: var(--icon-lg);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.08);
}

.hero__card {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  right: max(var(--gutter), calc((100% - var(--content-max)) / 2 + 24px));
  bottom: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: min(310px, 90%);
}

.hero__card strong {
  display: block;
  color: #c0392b;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.3;
}

.hero__card span {
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__card-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.hero__card-icon svg {
  display: block;
}

/* Services */
.services {
  background: var(--paper);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(19, 41, 75, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-light);
}

.service-card__icon .icon-png {
  width: var(--icon-xl);
  height: var(--icon-xl);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

/* Split: doctors + prices */
.split {
  background: var(--green-pale);
}

.split__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.doctor-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(19, 41, 75, 0.04);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  object-position: center top;
}

.doctor-card__body {
  padding: 1rem;
}

.doctor-card__body p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.doctor-card__exp {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.split__col--prices {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  color: var(--navy-soft);
}

.price-list__dots {
  flex: 1;
  border-bottom: 2px dotted #c5d5ce;
  min-width: 1rem;
  margin-bottom: 0.2rem;
}

.price-list strong {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

/* Reviews */
.reviews__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(19, 41, 75, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  border-color: #b8d4cb;
  box-shadow: 0 4px 20px rgba(54, 163, 121, 0.14);
}

.review-card__stars {
  color: #e8a317;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.review-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-soft);
  margin: 0 0 1.25rem;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card footer span {
  font-weight: 600;
  color: var(--navy);
}

.reviews__cta {
  margin-top: 0.25rem;
}

/* FAQ + Booking */
.faq-booking {
  background: var(--paper);
}

.faq-booking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion__item[open] {
  background: var(--green-pale);
  border-color: #c5e0d4;
}

.accordion__item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__item[open] summary {
  color: var(--green-dark);
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "⌄";
  font-size: 1.1rem;
  color: var(--green);
  transition: transform 0.2s;
}

.accordion__item[open] summary::after {
  transform: rotate(180deg);
}

.accordion__item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.booking-panel {
  position: relative;
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid #d4ebe2;
  overflow: hidden;
}

.booking-panel__head .section__title {
  margin-bottom: 0.5rem;
}

.booking-panel__lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
}

.booking-panel__layout {
  position: relative;
  z-index: 1;
}

.booking-form {
  position: relative;
  min-width: 0;
}

@media (min-width: 769px) {
  .booking-form {
    padding-right: clamp(7rem, 28%, 11rem);
  }
}

.booking-panel__puppy-wrap {
  position: absolute;
  right: clamp(0.25rem, 1.25vw, 0.75rem);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: clamp(200px, 34%, 260px);
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}

.booking-form label {
  display: block;
  margin-bottom: 1rem;
}

.booking-form label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 0.35rem;
}

.booking-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.booking-form__row--selects {
  grid-template-columns: 1fr;
}

.booking-form__row label {
  min-width: 0;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  min-height: 48px;
}

.booking-form select {
  padding-right: 2.25rem;
  min-width: 0;
}

.booking-form textarea {
  min-height: 96px;
  resize: vertical;
}

.booking-form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.75rem 0 0;
}

.booking-form__note a {
  color: var(--green);
  text-decoration: underline;
}

.booking-panel__puppy {
  width: 100%;
  height: auto;
  max-height: clamp(220px, 36vw, 300px);
  object-fit: contain;
  object-position: bottom center;
}

/* Contacts */
.contacts {
  background: var(--green-pale);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.contacts__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contacts__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contacts__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy-soft);
}

.contacts__list-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--green);
}

.contacts__list a:hover {
  color: var(--green);
}

.contacts__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contacts__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.contacts__social .social-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.contacts__social a:hover {
  color: var(--green-dark);
  transform: translateY(-2px);
}

.contacts__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: var(--green-pale);
  z-index: 0;
}

.contacts__map .leaflet-container {
  width: 100%;
  min-height: 320px;
  height: 100%;
  font-family: var(--font-body);
  border-radius: inherit;
}

.contacts__map .leaflet-control-zoom a {
  color: var(--navy);
  border-color: var(--line);
}

.contacts__map .leaflet-control-zoom a:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.contacts-map-marker {
  background: none !important;
  border: none !important;
}

.map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.map-marker__label {
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  white-space: nowrap;
  font-family: var(--font-body);
}

.map-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(19, 41, 75, 0.28);
}

/* CTA bar */
.cta-bar {
  background: var(--green-light);
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
}

.cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-bar__text {
  flex: 1;
  min-width: min(100%, 28rem);
}

.cta-bar__text strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.375rem);
  line-height: 1.3;
  font-weight: 700;
}

.cta-bar__text span {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #fafcfb;
  border-top: 1px solid var(--line);
  padding-block: 3rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col strong {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer__col a,
.footer__col span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__col a:hover {
  color: var(--green);
}

.footer__copy {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin: 0;
}

.logo--footer .logo__mark {
  width: clamp(44px, 4vw, 50px);
  height: clamp(44px, 4vw, 50px);
}

.logo--footer .logo__name {
  font-size: clamp(1.15rem, 1rem + 0.35vw, 1.35rem);
}

.logo--footer .logo__tag {
  font-size: 0.6rem;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 41, 75, 0.45);
}

.modal__dialog {
  position: relative;
  width: min(820px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(19, 41, 75, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__dialog.is-gallery {
  width: min(1120px, calc(100vw - 40px));
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
}

.modal__content {
  padding: 2rem;
  overflow-y: auto;
}

.modal__content h2 {
  margin-bottom: 1rem;
}

.modal__content p {
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-form {
  display: grid;
  gap: 1rem;
}

.modal-form .booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-form label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 50px;
}

.modal-prices {
  display: grid;
  gap: 0.5rem;
}

.modal-prices li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.modal-prices strong {
  color: var(--green);
}

.modal-doctors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.modal-doctors article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-doctors img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.modal-doctors div {
  padding: 0.75rem;
}

.modal-reviews {
  display: grid;
  gap: 1rem;
}

.modal-success {
  text-align: center;
  padding: 2rem 1rem;
}

.modal-success strong {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1180px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo--header .logo__mark {
    width: clamp(42px, 7vw, 50px);
    height: clamp(42px, 7vw, 50px);
  }

  .nav {
    display: none;
  }

  .header__contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

@media (min-width: 1100px) {
  .hero {
    --hero-shell-left: max(var(--gutter), calc((100% - var(--content-max)) / 2));
    --hero-shell-right: max(var(--gutter), calc((100% - var(--content-max)) / 2));
    --hero-shell-width: min(var(--content-max), calc(100% - var(--gutter) * 2));
    --hero-text-width: min(560px, 46%);
    --hero-media-left: calc(var(--hero-shell-left) + var(--hero-text-width) + 28px);
    --hero-media-max: min(720px, calc(var(--content-max) - var(--hero-text-width) - 28px));
  }

  .hero .container.hero__grid {
    width: var(--hero-shell-width);
    max-width: var(--hero-shell-width);
    margin-left: var(--hero-shell-left);
    margin-right: auto;
  }

  .hero__bg {
    left: var(--hero-media-left);
    right: var(--hero-shell-right);
    width: auto;
    max-width: var(--hero-media-max);
  }

  .hero__bg .hero__photo {
    object-position: 62% 40%;
    border-radius: clamp(18px, 2vw, 28px) 0 0 clamp(18px, 2vw, 28px);
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      #fff 0%,
      #fff 22%,
      rgba(255, 255, 255, 0.98) 30%,
      rgba(255, 255, 255, 0.82) 38%,
      rgba(255, 255, 255, 0.35) 46%,
      transparent 54%
    );
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .hero__bg {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    height: clamp(300px, 52vw, 400px);
    margin-bottom: 1.5rem;
  }

  .hero__bg .hero__photo {
    border-radius: var(--radius-lg);
    object-position: 72% 40%;
  }

  .hero__card {
    right: var(--gutter);
    bottom: auto;
    top: calc(clamp(300px, 52vw, 400px) - 3.5rem);
  }

  .split__grid {
    grid-template-columns: 1fr;
  }

  .faq-booking__grid {
    grid-template-columns: 1fr;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors__grid {
    grid-template-columns: 1fr;
  }

  .reviews__track {
    grid-template-columns: 1fr;
  }

  .booking-form__row,
  .modal-form .booking-form__row {
    grid-template-columns: 1fr;
  }

  .booking-form {
    padding-right: 0;
  }

  .booking-panel__puppy-wrap {
    position: static;
    justify-content: center;
    width: auto;
    max-width: 200px;
    margin: 0.75rem auto 0;
  }

  .booking-panel__puppy {
    max-height: 180px;
    object-position: bottom center;
  }

  .cta-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-bar__text {
    min-width: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .logo--header .logo__mark {
    width: 42px;
    height: 42px;
  }

  .logo--header .logo__name {
    font-size: 1.2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__features {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero__features li {
    flex: none;
    width: 100%;
  }
}
