:root {
  --bg: #fff5fa;
  --bg-strong: #ffe1ed;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #3b243d;
  --muted: #7f617f;
  --line: rgba(122, 66, 104, 0.18);
  --berry: #c71569;
  --berry-dark: #8d0d51;
  --rose: #ff7eb8;
  --peach: #ffb09c;
  --mint: #a8e3d0;
  --shadow: 0 24px 70px rgba(161, 55, 106, 0.18);
  --radius: 8px;
  --flower-scale: 1;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 126, 184, 0.28), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(168, 227, 208, 0.3), transparent 28%),
    linear-gradient(180deg, #fff8fb 0%, #ffe5f0 46%, #fff7fb 100%);
  font-family: Manrope, Arial, sans-serif;
  cursor: none;
  overflow-x: hidden;
}
a,
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--berry);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(199, 21, 105, 0.42);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
}
.cursor-ring.is-active {
  width: 50px;
  height: 50px;
  border-color: rgba(199, 21, 105, 0.75);
}
.intro {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(rgba(36, 17, 39, 0.22), rgba(72, 17, 54, 0.52)),
    radial-gradient(circle at 50% 35%, #ff9ec8, #c71569 52%, #3a1b39 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.intro__grain {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.12) 25%, transparent 25%);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}
.intro__line {
  position: absolute;
  max-width: min(760px, 88vw);
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  text-align: center;
  text-wrap: balance;
  animation: introFirst 2.9s ease forwards;
}
.intro__line--second {
  font-size: clamp(2rem, 7vw, 6.4rem);
  opacity: 0;
  animation: introSecond 2.9s 1.2s ease forwards;
}
.intro__skip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  padding: 12px 18px;
  color: white;
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}
@keyframes introFirst {
  0% { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(16px); }
  28%, 58% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-24px) scale(1.03); filter: blur(18px); }
}
@keyframes introSecond {
  0% { opacity: 0; transform: translateY(24px); filter: blur(18px); }
  32%, 72% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-18px); filter: blur(16px); }
}
.site-header {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 46px rgba(113, 47, 88, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand,
.nav,
.header-cta {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  padding: 4px 10px;
  font-weight: 800;
}
.brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 999px 999px 999px 2px;
  background: linear-gradient(135deg, var(--berry), var(--rose));
  box-shadow: 0 0 0 5px rgba(255, 126, 184, 0.16);
  transform: rotate(-35deg);
}
.nav {
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.nav a,
.header-cta,
.button,
.service-choice,
.slot-button,
.work-card,
.price-row {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav a:hover,
.header-cta:hover,
.button:hover,
.service-choice:hover,
.slot-button:hover,
.work-card:hover,
.price-row:hover {
  transform: translateY(-2px) scale(1.02);
}
.header-cta {
  justify-content: center;
  padding: 12px 20px;
  color: white;
  border-radius: 999px;
  background: var(--berry);
  font-size: 0.9rem;
  font-weight: 800;
}
.section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}
.hero {
  display: grid;
  align-content: center;
  row-gap: clamp(18px, 3vh, 34px);
  min-height: 94svh;
  width: 100%;
  padding: clamp(96px, 9vh, 128px) clamp(16px, 5vw, 72px) clamp(72px, 10vh, 118px);
  place-items: center;
}
.heading {
  position: absolute;
  top: clamp(112px, 13svh, 154px);
  left: 50%;
  width: min(calc(82vw * var(--flower-scale)), calc(980px * var(--flower-scale)));
  aspect-ratio: 1.42 / 1;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
}
.heading canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, 92vw);
  margin-top: 42px;
  text-align: center;
}
.hero__script,
.section__script {
  margin: 0 0 12px;
  color: var(--berry);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}
h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.4vw, 5.7rem);
  line-height: 0.94;
  text-wrap: balance;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.94;
  text-wrap: balance;
}
.hero__content > p:not(.hero__script),
.booking__copy > p,
.section__note,
.route__text > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}
.hero__actions,
.form-actions,
.admin-actions,
.route__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__actions {
  justify-content: center;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--berry), #ee4d99);
  box-shadow: 0 18px 38px rgba(199, 21, 105, 0.24);
}
.button--ghost {
  color: var(--berry-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.66);
}
.hero__contacts {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 92vw);
}
.contact-pill {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--berry-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 240, 248, 0.6)),
    radial-gradient(circle at 18% 20%, rgba(229, 28, 118, 0.12), transparent 46%);
  box-shadow: 0 18px 46px rgba(122, 66, 104, 0.1);
  backdrop-filter: blur(18px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.contact-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 19, 111, 0.3);
  box-shadow: 0 22px 54px rgba(199, 21, 105, 0.14);
}
.contact-pill span {
  color: rgba(97, 63, 90, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
}
.contact-pill strong {
  color: var(--berry-dark);
  font-size: 0.92rem;
}
.section__title {
  width: min(820px, 100%);
  margin-bottom: 24px;
}
.section__title--split {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: 34px;
  width: 100%;
  align-items: end;
}
.work-stage {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,230,241,0.72)),
    radial-gradient(circle at 100% 0%, rgba(255,126,184,0.18), transparent 34%);
  box-shadow: var(--shadow);
}
.work-deck {
  position: relative;
  min-height: clamp(430px, 48vw, 560px);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 126, 184, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.44);
}
.deck-card {
  position: absolute;
  left: 50%;
  top: 47%;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 0.72;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  background: #f8d5e3;
  box-shadow: 0 24px 58px rgba(84, 32, 63, calc(0.2 - min(var(--abs), 6) * 0.018));
  opacity: calc(1 - min(var(--abs), 6) * 0.08);
  pointer-events: auto;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--rel) * 82px))
    translateY(calc(min(var(--abs), 6) * 14px))
    rotate(calc(var(--rel) * 3.2deg))
    scale(calc(1.04 - min(var(--abs), 6) * 0.045));
  transition:
    transform 0.72s cubic-bezier(.22, 1, .36, 1),
    opacity 0.48s ease,
    border-color 0.34s ease,
    box-shadow 0.42s ease;
  will-change: transform, opacity;
}
.deck-card[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}
.deck-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.62s ease;
}
.deck-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--berry-dark);
  background: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.deck-card.is-active {
  border-color: var(--berry);
  box-shadow: 0 34px 74px rgba(199, 21, 105, 0.26);
  transform: translate(-50%, -50%) translateY(-4px) rotate(0deg) scale(1.14);
}
.deck-card.is-active img,
.deck-card:hover img {
  transform: scale(1.045);
}
.work-deck__nav {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.deck-nav {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 28px rgba(122, 66, 104, 0.12);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
}
.deck-progress {
  display: grid;
  grid-template-columns: auto minmax(110px, 150px) auto;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
}
.deck-progress strong,
.deck-progress em {
  color: var(--berry-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}
.deck-progress span {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122, 66, 104, 0.16);
}
.deck-progress span::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--berry);
}
.work-stage__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 40px);
}
.work-stage__copy span {
  color: var(--berry);
  font-weight: 900;
}
.work-stage__copy h3 {
  margin: 0;
  max-width: 520px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 0.98;
}
.work-stage__copy p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}
.price-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 19px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(122, 66, 104, 0.1);
}
.price-row strong {
  color: var(--berry-dark);
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}
input:focus {
  border-color: rgba(199, 21, 105, 0.55);
  box-shadow: 0 0 0 4px rgba(199, 21, 105, 0.1);
}
.route {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
  align-items: stretch;
}
.route__text,
.map-frame {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}
.route__text {
  padding: clamp(22px, 4vw, 40px);
}
.route__badge {
  display: inline-flex;
  margin: 8px 0 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--peach));
  font-weight: 900;
}
@keyframes card-rise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.schedule-editor,
.service-editor,
.admin-gallery {
  display: grid;
  gap: 10px;
}
.toggle,
.schedule-row .toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.toggle input[type="checkbox"],
.schedule-row input[type="checkbox"] {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--berry);
  flex: 0 0 auto;
}
@media (min-width: 921px) and (max-width: 1280px) {
  .site-header {
    width: min(980px, calc(100% - 28px));
  }
  .hero {
    min-height: 92svh;
    padding-top: 104px;
    padding-bottom: 76px;
  }
  .heading {
    top: 110px;
    width: min(calc(88vw * var(--flower-scale)), calc(820px * var(--flower-scale)));
    aspect-ratio: 1.38 / 1;
    opacity: 0.88;
  }
  .hero__content {
    width: min(720px, 86vw);
    margin-top: 22px;
  }
  h1 {
    font-size: clamp(3rem, 6.2vw, 4.8rem);
    line-height: 0.96;
  }
  .hero__contacts {
    right: auto;
    bottom: auto;
    width: min(720px, 86vw);
  }
  .work-stage {
    grid-template-columns: minmax(430px, 1fr) minmax(260px, 0.75fr);
  }
  .work-deck {
    min-height: clamp(430px, 44vw, 520px);
  }
}
@media (max-width: 920px) {
  body {
    cursor: auto;
  }
  button,
  a {
    cursor: pointer;
  }
  .cursor-dot,
  .cursor-ring,
  .nav {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 106px;
    padding-bottom: 54px;
  }
  .heading {
    top: 178px;
    width: min(calc(96vw * var(--flower-scale)), calc(560px * var(--flower-scale)));
    aspect-ratio: 1.36 / 1;
    opacity: 0.82;
  }
  .hero__content {
    width: min(350px, 92vw);
    margin-top: 0;
  }
  .hero__script,
  .section__script {
    font-size: 1.25rem;
  }
  h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
    line-height: 0.96;
  }
  .hero__content > p:not(.hero__script),
  .booking__copy > p,
  .section__note,
  .route__text > p {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .hero__actions {
    flex-direction: column;
    margin-top: 22px;
  }
  .hero__actions .button {
    width: min(260px, 100%);
  }
  .hero__contacts {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: min(340px, 100%);
    margin-top: 32px;
  }
  .gallery,
  .price-table,
  .service-picker,
  .booking-canvas,
  .booking__copy,
  .form-grid,
  .booking__panel,
  .route,
  .section__title--split,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 54px 0;
  }
  .work-stage {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .work-stage__media {
    min-height: 300px;
  }
  .work-stage__copy {
    padding: 14px 6px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- визитка: контактная карточка, блок связи и подвал --- */
.contact-pill--static {
  cursor: default;
}

.route__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 3);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.route__card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--berry-dark);
  letter-spacing: -0.02em;
}

.route__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.route__card .button {
  align-self: flex-start;
}

.contacts .hero__contacts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(860px, 100%);
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 44px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: var(--berry-dark);
  font-weight: 800;
}

@media (max-width: 920px) {
  .route {
    grid-template-columns: 1fr;
  }

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

/* --- читаемость: подпись сверху, значение целой строкой без рваных переносов --- */
.contact-pill {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 16px 22px;
  border-radius: 26px;
  text-align: left;
}

.contact-pill span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-pill strong {
  font-size: 1.02rem;
  line-height: 1.25;
  white-space: nowrap;
}

.contact-pill--address strong {
  white-space: normal;
}

.price-row strong,
.route__card strong,
.site-footer a,
.button,
.header-cta {
  white-space: nowrap;
}

.price-row span {
  hyphens: none;
  overflow-wrap: break-word;
}

@media (max-width: 520px) {
  .button {
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   Доводка вёрстки: мягче формы, спокойнее ритм, без рваных строк
   ============================================================ */

:root {
  --radius: 16px;
  --radius-lg: 30px;
}

/* якоря не уезжают под плавающую шапку */
#top, #works, #prices, #contacts, #route {
  scroll-margin-top: 104px;
}

::selection {
  color: white;
  background: var(--berry);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- цветок в шапке: свой SVG, ничего не грузится извне ---------- */
.heading {
  top: clamp(96px, 12svh, 150px);
  width: min(72vw, 560px);
  aspect-ratio: 1;
  opacity: 0.9;
  transform: translateX(-50%) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bloom {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 60px rgba(199, 21, 105, 0.16));
}

.bloom__ring {
  transform-origin: center;
  animation: bloom-spin 140s linear infinite;
}

.bloom__layer {
  transform-origin: center;
}

.bloom__layer--back {
  opacity: 0.5;
  animation: bloom-breathe 11s ease-in-out infinite;
}

.bloom__layer--front {
  opacity: 0.78;
  animation: bloom-breathe 8s ease-in-out infinite reverse;
}

.bloom__core {
  transform-origin: center;
  animation: bloom-core 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(255, 186, 132, 0.6));
}

@keyframes bloom-spin {
  to { transform: rotate(360deg); }
}

@keyframes bloom-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes bloom-core {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ---------- работы: подпись только у активной карточки ---------- */
.work-deck,
.work-stage,
.price-row,
.route__text {
  border-radius: var(--radius-lg);
}

.deck-card {
  border-radius: 22px;
}

.deck-card img {
  object-position: center 38%;
}

.deck-card span {
  left: 50%;
  bottom: 14px;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deck-card.is-active span {
  opacity: 1;
}

.deck-progress {
  grid-template-columns: minmax(0, 1fr) minmax(90px, 130px) auto;
  padding: 10px 16px;
}

.deck-progress strong {
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.86rem;
}

.deck-progress em {
  opacity: 0.7;
}

.work-deck__nav {
  bottom: 22px;
}

/* ---------- прайс: ровные строки, читаемая цена ---------- */
.price-table {
  gap: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(122, 66, 104, 0.08);
}

.price-row span {
  line-height: 1.35;
}

.price-row strong {
  font-size: 1.02rem;
}

/* ---------- контакты и подвал ---------- */
.contacts .section__note {
  max-width: 760px;
  margin-top: 6px;
}

.route__text {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 44px rgba(122, 66, 104, 0.08);
}

.site-footer {
  justify-content: space-between;
  text-align: left;
}

/* ---------- мобильные ---------- */
@media (max-width: 920px) {
  .heading {
    width: min(88vw, 420px);
    opacity: 0.75;
  }

  .price-row {
    min-height: 56px;
    padding: 14px 18px;
  }

  .deck-progress strong {
    max-width: 120px;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bloom__ring,
  .bloom__layer,
  .bloom__core {
    animation: none;
  }

  .heading {
    transition: none;
  }
}

/* цветок - фоновый акцент, а не помеха тексту */
.heading {
  z-index: 0;
  width: min(52vw, 430px);
  opacity: 0.6;
  overflow: visible;
}

.hero__content,
.hero__contacts {
  position: relative;
  z-index: 2;
}

@media (max-width: 920px) {
  .heading {
    width: min(76vw, 340px);
    opacity: 0.45;
  }
}

/* цветок как мягкая вуаль позади заголовка */
.heading {
  top: clamp(74px, 9svh, 128px);
  opacity: 0.52;
}

.bloom {
  filter: blur(3px) drop-shadow(0 24px 54px rgba(199, 21, 105, 0.14));
}

.bloom__core {
  opacity: 0.32;
  filter: none;
}

/* заголовки переносятся по смыслу, а не по слогам */
h1, h2, h3,
.section__title h2,
.work-stage__copy h3 {
  text-wrap: balance;
}

p, .section__note, .price-row span {
  text-wrap: pretty;
}

.work-stage__copy h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

/* подпись работы в панели листания видна целиком */
.deck-progress {
  grid-template-columns: minmax(96px, max-content) minmax(70px, 110px) auto;
  gap: 12px;
}

.deck-progress strong {
  max-width: 220px;
}

@media (max-width: 920px) {
  .deck-progress {
    grid-template-columns: minmax(80px, 1fr) minmax(50px, 80px) auto;
  }

  .deck-progress strong {
    max-width: 140px;
  }
}

/* панель листания: подпись целиком, полоса тянется по остатку */
.work-deck__nav {
  width: min(94%, 470px);
  justify-content: space-between;
}

.deck-progress {
  flex: 1;
  grid-template-columns: max-content minmax(50px, 1fr) max-content;
}

.deck-progress strong {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 620px) {
  .deck-progress em {
    display: none;
  }

  .deck-progress {
    grid-template-columns: max-content minmax(40px, 1fr);
  }
}

/* ---------- как приехать: текст слева шире, карточка справа наполнена ---------- */
.route {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.route h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
}

.route__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.route__text > p {
  margin: 0;
}

.route__card {
  gap: 14px;
}

.route__facts {
  display: grid;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}

.route__facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.route__facts span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.route__facts strong {
  color: var(--berry-dark);
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.98rem;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .route {
    grid-template-columns: 1fr;
  }

  .route__card .button {
    align-self: stretch;
  }
}

/* ---------- мобильная шапка: навигация не пропадает ---------- */
@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    padding: 10px 14px;
    border-radius: 24px;
  }

  .brand {
    grid-column: 1;
  }

  .header-cta {
    grid-column: 2;
  }

  .nav {
    display: flex;
    grid-column: 1 / -1;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.82rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }

  #top, #works, #prices, #contacts, #route {
    scroll-margin-top: 130px;
  }
}

/* ---------- телефон в кнопке не рвётся по дефису ---------- */
.nowrap {
  white-space: nowrap;
}

/* ---------- мобильные: шапка в две строки, заголовок соразмерный ---------- */
@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
  }

  .brand { grid-area: brand; }
  .header-cta { grid-area: cta; }
  .nav { grid-area: nav; }

  .hero {
    padding-top: 168px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.1rem, 8.2vw, 3.4rem);
    line-height: 1.02;
  }

  .hero__content {
    margin-top: 8px;
  }

  .hero__actions .button {
    width: 100%;
  }
}

/* в кнопке-флексе пробел между словом и номером схлопывается - возвращаем зазор */
.button,
.header-cta {
  gap: 0.36em;
}

/* шапка плотнее: текст секций не просвечивает сквозь неё при прокрутке */
.site-header {
  background: rgba(255, 250, 252, 0.82);
  backdrop-filter: blur(22px) saturate(1.1);
}
