:root {
  --lavender-500: #9b86bd;
  --lavender-400: #b3a3cc;
  --lavender-300: #c9bdd9;
  --lavender-100: #efe9f7;
  --lavender-50: #f7f4fb;
  --text: #2d2a32;
  --text-muted: #6b6574;
  --paper: #ffffff;
  --border: #e8e4ef;
  --shadow: 0 8px 32px rgba(45, 42, 50, 0.06);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 32px;
  --container: min(1180px, calc(100% - 48px));
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.text-lavender {
  color: var(--lavender-500);
}

.star {
  color: var(--lavender-500);
  font-size: 0.75em;
  vertical-align: super;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo__star {
  margin-left: 4px;
  color: var(--lavender-500);
  font-size: 0.85em;
}

.logo__tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--lavender-500);
}

.header__contacts {
  text-align: right;
}

.header__phone {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.header__phone:hover {
  color: var(--lavender-500);
}

.header__hours {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--lavender-500);
  color: #fff;
  border-color: var(--lavender-500);
}

.btn--primary:hover {
  background: #8a76ad;
  border-color: #8a76ad;
}

.btn--outline {
  background: transparent;
  color: var(--lavender-500);
  border-color: var(--lavender-500);
}

.btn--outline:hover {
  background: var(--lavender-50);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn.full {
  width: 100%;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--lavender-500);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.inline-link {
  border: none;
  background: none;
  color: var(--lavender-500);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.footer-link {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-link:hover {
  color: var(--lavender-500);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(32px, 4vw, 48px);
  background:
    radial-gradient(
      ellipse 88% 110% at 72% 42%,
      rgba(243, 237, 250, 0.95) 0%,
      rgba(239, 233, 247, 0.5) 44%,
      rgba(247, 244, 251, 0.12) 62%,
      transparent 78%
    ),
    var(--paper);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero__content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.08;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
}

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

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: min(640px, 54vw);
  min-height: clamp(380px, 40vw, 520px);
  margin-right: clamp(-28px, -3vw, -10px);
  background: transparent;
  overflow: visible;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% 0 8% 14%;
  background: radial-gradient(
    ellipse 76% 72% at 56% 46%,
    rgba(214, 198, 230, 0.38) 0%,
    rgba(239, 233, 247, 0.16) 48%,
    transparent 76%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.hero__photo {
  position: absolute;
  inset: -6% -8% -4% -4%;
  width: 112%;
  height: 110%;
  object-fit: cover;
  object-position: 50% 34%;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.03);
  -webkit-mask-image: radial-gradient(
    ellipse 102% 96% at 58% 40%,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.42) 82%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 102% 96% at 58% 40%,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.42) 82%,
    transparent 100%
  );
}

/* Features */
.features {
  padding: 24px 0 48px;
}

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

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.feature strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-foot {
  text-align: center;
  margin-top: 32px;
}

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

.works__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--lavender-50);
}

.works__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.service-card {
  text-align: center;
  padding: 28px 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--lavender-50);
  border-radius: 50%;
}

.service-card__icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.8em;
}

.service-card__price {
  display: inline-block;
  padding: 8px 20px;
  background: var(--lavender-500);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Promo */
.promo {
  padding: 24px 0 56px;
}

.promo__card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: clamp(32px, 3.6vw, 44px) clamp(32px, 4vw, 52px);
  min-height: clamp(196px, 21vw, 248px);
  background-color: #e7daf6;
  background-image: url("assets/promo-bg.png?v=20260606ac");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 32px rgba(142, 120, 172, 0.08);
  overflow: hidden;
}

.promo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(231, 218, 246, 0.58) 0%,
    rgba(231, 218, 246, 0.18) 42%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

.promo__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 248, 253, 0.28) 0%,
    transparent 48%
  );
  pointer-events: none;
  z-index: 1;
}

.promo__text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(62%, 720px);
}

.promo__headline {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0.4em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 3.55vw, 3.15rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
}

.promo__title {
  flex-shrink: 0;
  font-weight: 500;
  color: #3f3b45;
}

.promo__accent {
  color: #6f6384;
  font-weight: 500;
}

.promo__script-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 0.1em;
  margin-left: 0.08em;
  transform: translateY(0.02em);
}

.promo__script {
  font-family: "Caveat", cursive;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--lavender-400);
  line-height: 1;
  letter-spacing: 0.012em;
}

.promo__heart {
  font-family: "Caveat", cursive;
  font-size: 0.78em;
  font-weight: 400;
  line-height: 1;
  color: var(--lavender-300);
  transform: rotate(6deg) translateY(-0.03em);
}

.promo__note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.45vw, 1.32rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  letter-spacing: 0.008em;
}

/* Stats */
.stats {
  padding: 40px 0 56px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}

.stat__icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 16px;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reviews */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.review-card__avatar--1 {
  background: linear-gradient(135deg, var(--lavender-500), var(--lavender-300));
}

.review-card__avatar--2 {
  background: linear-gradient(135deg, #c4a8d8, var(--lavender-500));
}

.review-card__avatar--3 {
  background: linear-gradient(135deg, #a890c4, #d4c4e4);
}

.review-card__head strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.stars {
  color: var(--lavender-500);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.review-card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.review-card time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Masters */
.masters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.master-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.master-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--border);
}

.master-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.master-card__role {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--lavender-500);
  font-weight: 600;
}

.master-card p:last-child {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Booking */
.booking__card {
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 4vw, 48px);
  background: var(--lavender-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.booking__card::before {
  content: "";
  position: absolute;
  inset: -6% 0 -6% 48%;
  background: radial-gradient(
    ellipse 84% 96% at 80% 50%,
    rgba(186, 168, 210, 0.22) 0%,
    rgba(214, 200, 230, 0.09) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.booking__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--lavender-100) 0%,
    var(--lavender-100) 48%,
    rgba(239, 233, 247, 0.14) 54%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
}

.booking__form-wrap {
  position: relative;
  z-index: 3;
  max-width: min(58%, 660px);
}

.booking__form-wrap h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.booking-form {
  --booking-icon-inset: 16px;
  --booking-calendar-inset: 13px;
  --booking-icon-size: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-form input,
.booking-form select,
.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
}

.booking-form input[type="date"] {
  padding-right: 40px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232d2a32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: var(--booking-icon-size) var(--booking-icon-size);
  background-position: right var(--booking-calendar-inset) center;
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: var(--booking-icon-size) var(--booking-icon-size);
  background-position: right var(--booking-icon-inset) center;
  cursor: pointer;
}

.booking-form .full,
.lead-form .full {
  grid-column: 1 / -1;
}

.booking__note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.booking__bloom {
  position: absolute;
  top: 50%;
  right: clamp(-4px, 0.8vw, 14px);
  width: min(44%, 420px);
  height: 90%;
  transform: translateY(-50%);
  background: url("assets/booking-polish.png") right center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  -webkit-mask-image:
    radial-gradient(
      ellipse 100% 94% at 82% 50%,
      #000 0%,
      #000 56%,
      rgba(0, 0, 0, 0.72) 68%,
      rgba(0, 0, 0, 0.28) 80%,
      transparent 92%
    ),
    linear-gradient(90deg, transparent 0%, transparent 22%, #000 36%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(
      ellipse 100% 94% at 82% 50%,
      #000 0%,
      #000 56%,
      rgba(0, 0, 0, 0.72) 68%,
      rgba(0, 0, 0, 0.28) 80%,
      transparent 92%
    ),
    linear-gradient(90deg, transparent 0%, transparent 22%, #000 36%);
  mask-composite: intersect;
}

/* Lead form */
.lead__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 48px;
  background: var(--lavender-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lead__card::before {
  content: "";
  position: absolute;
  inset: -6% 52% -6% 0;
  background: radial-gradient(
    ellipse 84% 96% at 22% 62%,
    rgba(186, 168, 210, 0.22) 0%,
    rgba(214, 200, 230, 0.09) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.lead__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 36%,
    var(--lavender-100) 52%,
    var(--lavender-100) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.lead__info {
  position: relative;
  z-index: 3;
  align-self: start;
  max-width: 100%;
  padding: 6px 20px 0 clamp(112px, 10.5vw, 136px);
  box-sizing: border-box;
}

.lead__info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.92rem, 2.85vw, 2.58rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lead__info > p {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.06rem, 1.28vw, 1.18rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.lead__bloom {
  position: absolute;
  bottom: clamp(-4%, -12px, 0px);
  left: clamp(-12%, -48px, -8px);
  width: min(56%, 480px);
  height: 88%;
  background: url("assets/lead-lavender.png") -6% bottom / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.lead-form {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
}

.lead-form textarea {
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

.lead-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.lead-form__privacy input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  padding: 48px 0 0;
  background: var(--lavender-50);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer__brand p {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.footer h4 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
}

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

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

.footer li a:hover,
.footer__contact-line:hover {
  color: var(--lavender-500);
}

.footer__contact-line {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__bottom p {
  margin: 0;
}

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 42, 50, 0.5);
}

.modal-card {
  position: relative;
  width: min(820px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.modal-card--wide {
  width: min(1120px, calc(100vw - 40px));
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--lavender-50);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--lavender-100);
}

.modal-card h2 {
  margin: 0 32px 16px 0;
  font-size: 1.5rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.price-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--lavender-500);
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reviews-modal-list {
  display: grid;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}

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

.master-modal-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.master-modal-card__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--border);
}

.master-modal-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.master-modal-card__role {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--lavender-500);
  font-weight: 600;
}

.master-modal-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 500;
  max-width: min(360px, calc(100vw - 48px));
}

.toast[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__contacts {
    display: none;
  }

  .burger {
    display: flex;
    grid-column: 2;
    justify-self: end;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero {
    background:
      radial-gradient(
        ellipse 92% 68% at 50% 18%,
        rgba(243, 237, 250, 0.88) 0%,
        rgba(239, 233, 247, 0.3) 42%,
        transparent 72%
      ),
      var(--paper);
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: min(100%, 440px);
    min-height: clamp(300px, 72vw, 380px);
    margin-right: 0;
  }

  .hero__photo {
    inset: -4% -6% -2% -6%;
    object-position: 50% 36%;
    -webkit-mask-image: radial-gradient(
      ellipse 96% 92% at 50% 44%,
      #000 0%,
      #000 64%,
      rgba(0, 0, 0, 0.5) 82%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 96% 92% at 50% 44%,
      #000 0%,
      #000 64%,
      rgba(0, 0, 0, 0.5) 82%,
      transparent 100%
    );
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature {
    justify-content: center;
    text-align: left;
  }

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

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

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

  .reviews__grid,
  .masters__grid {
    grid-template-columns: 1fr;
  }

  .promo__card {
    text-align: left;
    padding: 28px 22px 30px;
    min-height: clamp(168px, 38vw, 212px);
    background-color: #e7daf6;
    background-image: url("assets/promo-bg.png?v=20260606ac");
    background-position: right center;
    background-size: auto 100%;
  }

  .promo__card::before {
    background: linear-gradient(
      180deg,
      rgba(231, 218, 246, 0.78) 0%,
      rgba(231, 218, 246, 0.42) 52%,
      transparent 100%
    );
  }

  .promo__card::after {
    background: linear-gradient(
      180deg,
      rgba(250, 248, 253, 0.38) 0%,
      transparent 58%
    );
  }

  .promo__text {
    max-width: 100%;
    gap: 12px;
  }

  .promo__headline {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    font-size: clamp(1.85rem, 6.8vw, 2.45rem);
    column-gap: 0.36em;
  }

  .promo__note {
    font-size: 1.05rem;
  }

  .booking__card {
    padding: 32px 24px;
  }

  .booking__card::before {
    inset: auto -10% -20% -10%;
    height: 54%;
    background: radial-gradient(
      ellipse 92% 90% at 72% 72%,
      rgba(186, 168, 210, 0.2) 0%,
      transparent 74%
    );
  }

  .booking__card::after {
    background: linear-gradient(
      180deg,
      var(--lavender-100) 0%,
      rgba(239, 233, 247, 0.94) 38%,
      rgba(239, 233, 247, 0.32) 60%,
      transparent 84%
    );
  }

  .booking__form-wrap {
    max-width: 100%;
  }

  .booking__bloom {
    top: auto;
    right: 0;
    bottom: -4%;
    width: 72%;
    height: 42%;
    transform: none;
    opacity: 0.82;
    background-position: 94% 100%;
    -webkit-mask-image: radial-gradient(
      ellipse 96% 88% at 78% 80%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.62) 62%,
      transparent 84%
    );
    mask-image: radial-gradient(
      ellipse 96% 88% at 78% 80%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.62) 62%,
      transparent 84%
    );
  }

  .lead__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .lead__info {
    padding: 0 0 clamp(128px, 30vw, 168px);
  }

  .lead__info h2 {
    font-size: clamp(1.62rem, 5.2vw, 2rem);
    line-height: 1.14;
    margin-bottom: 10px;
  }

  .lead__info > p {
    font-size: clamp(1rem, 3.7vw, 1.1rem);
  }

  .lead__card::before {
    inset: auto -8% -18% -8%;
    height: 46%;
    background: radial-gradient(
      ellipse 90% 88% at 28% 72%,
      rgba(186, 168, 210, 0.2) 0%,
      transparent 74%
    );
  }

  .lead__card::after {
    background: linear-gradient(
      180deg,
      var(--lavender-100) 0%,
      rgba(239, 233, 247, 0.94) 40%,
      rgba(239, 233, 247, 0.72) 68%,
      rgba(239, 233, 247, 0.5) 100%
    );
  }

  .lead__bloom {
    top: auto;
    left: clamp(-4%, -12px, 0px);
    bottom: -10%;
    width: 64%;
    height: 42%;
    transform: none;
    opacity: 0.9;
    background-position: left bottom;
  }

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

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

@media (max-width: 640px) {
  :root {
    --container: min(100%, calc(100% - 32px));
  }

  .hero {
    padding-top: 32px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .services__grid,
  .works__grid {
    grid-template-columns: 1fr;
  }

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

  .booking-form {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .masters-modal-grid {
    grid-template-columns: 1fr;
  }
}
