:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-warm: #f5eee6;
  --ink: #181513;
  --muted: #6e625b;
  --line: #e5d6c7;
  --accent: #b87935;
  --accent-dark: #8c5829;
  --rose: #ead3cb;
  --sage: #7e8b7a;
  --shadow: 0 18px 55px rgba(54, 35, 21, 0.1);
  color-scheme: light;
  font-family: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(20px, 4.8vw, 64px);
  border-bottom: 1px solid rgba(130, 92, 62, 0.18);
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 152px;
  letter-spacing: 0.04em;
}

.brand span {
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: #241d18;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a,
.section-head a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.section-head a:hover {
  color: var(--accent-dark);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  min-height: clamp(520px, 46vw, 640px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 40%, rgba(234, 211, 203, 0.42), transparent 34%),
    linear-gradient(90deg, #fffdfa 0%, #f6efe9 52%, #eadbd1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(30px, 7vw, 110px) 0 auto;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  border: 5px solid rgba(184, 121, 53, 0.36);
  border-radius: 50% 50% 0 0;
  transform: translateY(22%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: clamp(56px, 8vw, 98px) 0 clamp(48px, 7vw, 80px) clamp(22px, 5vw, 66px);
}

.eyebrow {
  position: relative;
  margin: 0 0 18px;
  padding-left: 42px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(62px, 9vw, 118px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 3.7vw, 48px);
}

h3 {
  margin: 0;
  color: #211a16;
  font-size: 17px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 520px;
  margin-top: 20px;
  color: #2d2722;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
}

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

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ce9454);
  color: #fff;
  box-shadow: 0 14px 28px rgba(184, 121, 53, 0.24);
}

.button-ghost {
  border-color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 18px;
  max-width: 560px;
  margin-top: 42px;
}

.hero-features span {
  min-height: 46px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: #4e433c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section,
.contact-band {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.section {
  padding-top: 44px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.section-head a::after {
  content: " ->";
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.specialist-card,
.price-card,
.package-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.service-card {
  min-height: 240px;
  box-shadow: 0 8px 24px rgba(71, 48, 32, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.service-card div {
  padding: 14px 14px 16px;
}

.service-card p {
  min-height: 42px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.service-card strong,
.price-card strong,
.package-card strong {
  display: block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-size: 17px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
  gap: 42px;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.split-section .section {
  width: 100%;
}

.align-start {
  align-items: start;
}

.specialists-grid,
.before-grid,
.certificates-grid,
.price-grid {
  display: grid;
  gap: 14px;
}

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

.specialist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 196px;
  padding: 20px 12px 18px;
  text-align: center;
}

.specialist-card img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  margin-bottom: 12px;
  border: 4px solid #f2e6da;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: 0 10px 22px rgba(76, 48, 32, 0.12);
}

.specialist-card h3 {
  font-size: 14px;
}

.specialist-card p,
.specialist-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

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

.before-grid article {
  min-width: 0;
}

.comparison {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(229, 214, 199, 0.74);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(61, 42, 30, 0.1);
  overflow: hidden;
  isolation: isolate;
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.comparison-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.comparison-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #3f352e;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(38, 25, 17, 0.1);
  backdrop-filter: blur(8px);
}

.comparison-label-before {
  left: 12px;
}

.comparison-label-after {
  right: 12px;
}

.comparison-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(34, 24, 18, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(45, 30, 20, 0.28);
  transform: translate(-50%, -50%);
}

.comparison-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.comparison:focus-within {
  outline: 3px solid rgba(184, 121, 53, 0.42);
  outline-offset: 3px;
}

.before-grid h3 {
  margin-top: 10px;
  font-size: 13px;
}

.contraindications h2 {
  margin-bottom: 16px;
}

.accordion {
  display: grid;
  gap: 8px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.accordion button {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 18px;
  border: 0;
  background: transparent;
  color: #3f352e;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion button::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  color: var(--accent-dark);
  transform: translateY(-50%);
}

.accordion button.active {
  background: #fff;
}

.accordion button.active::after {
  content: "-";
}

.accordion-content {
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.certificates-grid img {
  width: 100%;
  aspect-ratio: 1.32;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(66, 45, 30, 0.08);
}

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

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 215px;
  padding: 18px 16px;
}

.price-card h3 {
  min-height: 45px;
  font-size: 15px;
}

.price-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-card strong {
  margin-top: auto;
  font-size: 22px;
}

.price-card span {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(210px, 0.9fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.calendar-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  font-size: 24px;
  cursor: pointer;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.weekdays {
  color: var(--muted);
  font-size: 11px;
}

.days {
  margin-top: 8px;
  font-size: 12px;
}

.days button {
  display: grid;
  place-items: center;
  min-height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3c312a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.days button:hover,
.days button:focus-visible {
  background: #fff7ef;
  color: var(--accent-dark);
  outline: none;
  transform: translateY(-1px);
}

.days .active {
  background: var(--accent-dark);
  color: #fff;
}

.days .calendar-empty {
  min-height: 36px;
}

.days button:disabled {
  color: #b9afa7;
  cursor: not-allowed;
}

.days button:disabled:hover {
  background: transparent;
  color: #b9afa7;
  transform: none;
}

.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.times button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #3c312a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.times button.selected {
  border-color: var(--accent);
  background: #fff7ef;
  color: var(--accent-dark);
}

.booking-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form > label:last-of-type,
.booking-form .form-note,
.booking-form .form-status {
  grid-column: 1 / -1;
}

.booking-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--accent);
}

.booking-form .button {
  width: 100%;
  min-height: 42px;
  align-self: end;
}

.form-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.form-note button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.form-status {
  min-height: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.packages {
  padding-bottom: 44px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42%;
  min-height: 172px;
  background: linear-gradient(135deg, #fff9f3, var(--surface-warm));
}

.package-card div {
  position: relative;
  z-index: 1;
  padding: 18px 14px 16px 18px;
}

.package-card h3 {
  font-size: 15px;
}

.package-card ul {
  margin: 10px 0 0 16px;
  padding: 0;
  color: #4e4138;
  font-size: 12px;
  line-height: 1.5;
}

.package-card p {
  margin-top: 10px;
}

.package-card del {
  margin-left: 8px;
  color: #9d9188;
  font-size: 12px;
}

.package-card img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mini-button {
  min-height: 36px;
  margin-top: 10px;
  padding: 0 18px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 21, 18, 0.78), rgba(25, 21, 18, 0.2)),
    url("assets/reference-full.webp") center 38% / cover;
  color: #fff;
  overflow: hidden;
}

.contact-band .eyebrow {
  color: #f3d9bd;
}

.contact-band h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 66px);
}

.contact-band p:last-child {
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.55;
}

.contact-band .button-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto 1.55fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 32px clamp(20px, 4.8vw, 64px);
  border-top: 1px solid rgba(229, 214, 199, 0.72);
  background: rgba(255, 252, 248, 0.94);
  color: var(--muted);
  font-size: 14px;
}

.footer-contact,
.footer-phone,
.footer-legal {
  display: grid;
  gap: 6px;
}

.footer-contact p,
.footer-phone a,
.footer-legal p {
  margin: 0;
  color: #47403b;
  font-weight: 800;
}

.footer-contact span,
.footer-phone span,
.footer-legal a {
  color: #6f6661;
  font-size: 13px;
  font-weight: 700;
}

.footer-phone {
  position: relative;
  padding-left: 34px;
}

.footer-phone::before {
  content: "☎";
  position: absolute;
  left: 0;
  top: 1px;
  color: #c77992;
  font-size: 22px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6f6661;
  font-size: 21px;
  font-weight: 900;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9748e, #c4879a);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(201, 116, 142, 0.22);
}

.footer-legal {
  justify-items: start;
}

.footer-legal div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
}

.footer-legal button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6661;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.legal-dialog {
  width: min(100% - 32px, 620px);
  max-height: min(80vh, 680px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(24, 21, 19, 0.54);
  backdrop-filter: blur(4px);
}

.legal-dialog .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.legal-dialog h2 {
  font-size: 34px;
}

.legal-dialog p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-dialog [data-dialog-close] {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
    order: 3;
    justify-self: end;
  }

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

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 248, 244, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .main-nav a {
    min-height: 46px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(229, 214, 199, 0.68);
  }

  body.menu-open .main-nav {
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: 1fr 0.92fr;
  }

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

  .split-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-panel {
    grid-template-columns: minmax(230px, 1fr) minmax(210px, 0.9fr);
  }

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

@media (max-width: 1120px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 14px;
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 132px;
  }

  .brand small {
    font-size: 9px;
  }

  .phone-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0;
  }

  .phone-link::before {
    content: "Позвонить";
    font-size: 12px;
  }

  .main-nav {
    top: 68px;
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    padding: 50px 20px 32px;
  }

  .hero-media {
    min-height: 360px;
    order: -1;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

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

  .section,
  .split-section,
  .contact-band {
    width: min(100% - 28px, 1200px);
  }

  .section {
    padding-top: 36px;
  }

  .service-card {
    min-height: 220px;
  }

  .service-card img {
    height: auto;
    aspect-ratio: 1.7;
  }

  .service-card p {
    min-height: auto;
  }

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

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

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

  .booking-panel {
    gap: 18px;
  }

  .package-card {
    grid-template-columns: 1fr 38%;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-head {
    align-items: baseline;
    flex-direction: row;
    gap: 12px;
  }

  .service-card,
  .package-card,
  .booking-panel,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: auto;
    aspect-ratio: 1.8;
  }

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

  .services-grid,
  .before-grid,
  .certificates-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .booking-form > label:last-of-type,
  .booking-form .form-note,
  .booking-form .form-status {
    grid-column: auto;
  }

  .package-card img {
    height: 210px;
    order: -1;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-legal div,
  .footer-socials {
    gap: 14px;
  }
}
