:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --text: #26302b;
  --muted: #6f7a72;
  --line: #e1e4da;
  --accent: #2f6b5e;
  --accent-dark: #234f45;
  --soft: #ebeee3;
  --wa: #25d366;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 60, 50, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent-dark);
}

nav.main a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.main a:hover,
nav.main a[aria-current="page"] { color: var(--text); }

.contacts {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  padding: 10px 20px;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(47, 107, 94, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: scale(1.08);
  background: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(47, 107, 94, 0.35);
}

.btn:active { transform: scale(0.98); }

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--soft);
  box-shadow: var(--shadow);
}

.btn.wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.btn.wa:hover {
  background: #1fb857;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

section { padding: 72px 0; }

/* Разделитель между блоками: две переплетённые ветви с листьями */
section + section::before {
  content: "";
  display: block;
  height: 60px;
  margin-bottom: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'><path d='M0 30 C100 0 200 0 300 30 S500 60 600 30 S800 0 900 30 S1100 60 1200 30' fill='none' stroke='%232f6b5e' stroke-width='2' stroke-linecap='round' stroke-dasharray='1400' stroke-dashoffset='1400'><animate attributeName='stroke-dashoffset' from='1400' to='0' dur='2.5s' fill='freeze'/></path><path d='M0 30 C100 60 200 60 300 30 S500 0 600 30 S800 60 900 30 S1100 0 1200 30' fill='none' stroke='%233f8a78' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='1400' stroke-dashoffset='1400' opacity='0.7'><animate attributeName='stroke-dashoffset' from='1400' to='0' dur='2.5s' begin='0.3s' fill='freeze'/></path><ellipse cx='150' cy='14' rx='12' ry='5' fill='%23bfe3d0'><animateTransform attributeName='transform' type='rotate' values='-14 150 14;14 150 14;-14 150 14' dur='6s' repeatCount='indefinite'/></ellipse><ellipse cx='450' cy='46' rx='12' ry='5' fill='%23f2d27a'><animateTransform attributeName='transform' type='rotate' values='14 450 46;-14 450 46;14 450 46' dur='7s' repeatCount='indefinite'/></ellipse><ellipse cx='750' cy='14' rx='12' ry='5' fill='%23bfe3d0'><animateTransform attributeName='transform' type='rotate' values='-12 750 14;12 750 14;-12 750 14' dur='5.5s' repeatCount='indefinite'/></ellipse><ellipse cx='1050' cy='46' rx='12' ry='5' fill='%23f2d27a'><animateTransform attributeName='transform' type='rotate' values='12 1050 46;-12 1050 46;12 1050 46' dur='6.5s' repeatCount='indefinite'/></ellipse></svg>") center / 100% 60px no-repeat;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 18px;
}

.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #e4ecdf 0%, var(--bg) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery button {
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery button:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(20, 60, 50, 0.18);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery button:hover img { transform: scale(1.06); }

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
}

dialog.lightbox::backdrop { background: rgba(20, 40, 35, 0.8); }

dialog.lightbox img {
  width: 96vw;
  height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

dialog.lightbox .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.25s ease;
}

dialog.lightbox .close:hover { transform: scale(1.08); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-4px); }

.card .who {
  font-weight: 700;
  margin-bottom: 8px;
}

.card .date {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

form.stack {
  display: grid;
  gap: 16px;
  max-width: 520px;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

form.stack label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

form.stack input,
form.stack textarea {
  font: inherit;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.stack input:focus,
form.stack textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 94, 0.15);
}

form.stack textarea { min-height: 120px; resize: vertical; }

form.stack .btn { justify-self: start; }

.status { min-height: 24px; color: var(--muted); }

dialog.callback {
  width: min(420px, 92vw);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(20, 60, 50, 0.25);
}

dialog.callback::backdrop { background: rgba(20, 40, 35, 0.35); }

.callback-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.callback-form h3 { margin: 0; font-size: 22px; }

.callback-form p { margin: 0; }

.callback-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.callback-form input {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
}

.callback-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 94, 0.2);
}

.callback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

header.site {
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:first-child .wrap > * {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:first-child .wrap > *:nth-child(1) { animation-delay: 0.1s; }
main > section:first-child .wrap > *:nth-child(2) { animation-delay: 0.22s; }
main > section:first-child .wrap > *:nth-child(3) { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }

  header.site,
  main > section:first-child .wrap > * {
    animation: none;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site .map-links {
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

footer.site .map-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

footer.site .map-links img {
  height: 24px;
  width: auto;
}

footer.site .map-links a:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(242, 210, 122, 0.7), 0 0 40px rgba(191, 227, 208, 0.5);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; border-radius: 0 0 var(--radius) var(--radius); }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }

  .topbar { padding: 12px 0; gap: 10px; justify-content: center; }
  .brand img { height: 36px; }
  nav.main { width: 100%; display: flex; justify-content: center; gap: 4px; }
  nav.main a { margin-left: 0; padding: 6px 10px; font-size: 14px; }
  .contacts { display: none; }

  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { text-align: center; }

  .btn { padding: 13px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery button { border-radius: 14px; }

  .cards { grid-template-columns: 1fr; }
  form.stack { padding: 22px; max-width: 100%; }
  form.stack .btn { width: 100%; justify-self: stretch; text-align: center; }

  footer.site .wrap { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .gallery { grid-template-columns: 1fr; }
}

.gallery-add {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-add:hover {
  background: var(--soft);
  transform: scale(1.02);
}
.gallery-user img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
footer.site .footer-wa {
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
  margin-top: 14px;
}

footer.site .footer-wa .btn.wa {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: none;
}
.stars {
  color: #d4a853;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 8px;
}

.star-picker {
  display: flex;
  gap: 6px;
  margin: 4px 0 8px;
}

.star-picker button {
  font-size: 30px;
  line-height: 1;
  background: none;
  border: 0;
  color: #d6d6d6;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.star-picker button:hover { transform: scale(1.15); }

.star-picker button.on { color: #d4a853; }


/* ===== Усовершенствованная версия: мягкие анимации ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #d4a853);
  z-index: 60;
}

header.site { transition: box-shadow 0.3s ease; }
header.site.scrolled { box-shadow: 0 8px 24px rgba(20, 60, 50, 0.08); }
header.site .topbar { transition: padding 0.3s ease; }
header.site.scrolled .topbar { padding: 8px 0; }
.brand img { transition: height 0.3s ease, transform 0.4s ease; }
header.site.scrolled .brand img { height: 36px; }
.brand:hover img { transform: rotate(-2deg) scale(1.04); }

nav.main a { position: relative; }
nav.main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
nav.main a:hover::after,
nav.main a[aria-current="page"]::after { transform: scaleX(1); }

section h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a853);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.reveal.in-view h2::after { width: 64px; }

.leaf-float {
  position: absolute;
  top: -30px;
  width: var(--s);
  height: calc(var(--s) * 0.45);
  border-radius: 50%;
  background: var(--c);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: leafFall var(--t) linear infinite;
  animation-delay: var(--dl);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 72%) var(--my, 30%), rgba(212, 168, 83, 0.16), transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn 0.8s ease both; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

  .hero {
    background: linear-gradient(115deg, #e4ecdf 0%, var(--bg) 38%, #f3ecd3 68%, #e4ecdf 100%);
    background-size: 300% 300%;
    animation: heroShift 18s ease-in-out infinite;
  }
  @keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  @keyframes leafFall {
    0% { transform: translate3d(0, -30px, 0) rotate(0deg); }
    50% { transform: translate3d(34px, 260px, 0) rotate(170deg); }
    100% { transform: translate3d(-12px, 540px, 0) rotate(330deg); }
  }

  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
  }
  .btn:hover::after { animation: shimmer 0.9s ease; }
  @keyframes shimmer { to { left: 150%; } }

  .name-tiles span { animation: tileBob 5s ease-in-out infinite; }
  .name-tiles .t2 { animation-delay: 0.4s; }
  .name-tiles .t3 { animation-delay: 0.8s; }
  .name-tiles .t4 { animation-delay: 1.2s; }
  .name-tiles .t5 { animation-delay: 1.6s; }
  @keyframes tileBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
  }

  .fx-item:not(.fx-in) { opacity: 0; }
  .fx-item.fx-in {
    animation: fxUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes fxUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaf-float, .hero::after { display: none; }
}

/* Мобильная адаптация подвала */
@media (max-width: 720px) {
  footer.site .map-links { gap: 10px; }
  footer.site .map-links > span { flex-basis: 100%; }
  footer.site .map-links a {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
    font-size: 13px;
  }
  footer.site .map-links img { height: 22px; }
  footer.site .footer-wa { justify-content: stretch; }
  footer.site .footer-wa .btn.wa { flex: 1; text-align: center; }
}
/* Мобильные кнопки поменьше */
@media (max-width: 720px) {
  footer.site .map-links { flex-direction: row; flex-wrap: wrap; }
  footer.site .map-links a {
    padding: 8px 4px;
    font-size: 12px;
    border-radius: 12px;
    gap: 4px;
  }
  footer.site .map-links img { height: 18px; }
  footer.site .footer-wa .btn.wa { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; }
}
/* WhatsApp в подвале по размеру текста */
@media (max-width: 720px) {
  footer.site .footer-wa { justify-content: center; }
  footer.site .footer-wa .btn.wa { width: auto; flex: 0 0 auto; }
}
/* Подвал: WhatsApp по центру, не растягиваем */
@media (max-width: 720px) {
  footer.site .footer-wa { flex-direction: row; align-items: center; justify-content: center; }
  footer.site .footer-wa .btn.wa { align-self: center; }
}:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --text: #26302b;
  --muted: #6f7a72;
  --line: #e1e4da;
  --accent: #2f6b5e;
  --accent-dark: #234f45;
  --soft: #ebeee3;
  --wa: #25d366;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 60, 50, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent-dark);
}

nav.main a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.main a:hover,
nav.main a[aria-current="page"] { color: var(--text); }

.contacts {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  padding: 10px 20px;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(47, 107, 94, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: scale(1.08);
  background: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(47, 107, 94, 0.35);
}

.btn:active { transform: scale(0.98); }

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--soft);
  box-shadow: var(--shadow);
}

.btn.wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.btn.wa:hover {
  background: #1fb857;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

section { padding: 72px 0; }

/* Разделитель между блоками: две переплетённые ветви с листьями */
section + section::before {
  content: "";
  display: block;
  height: 60px;
  margin-bottom: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'><path d='M0 30 C100 0 200 0 300 30 S500 60 600 30 S800 0 900 30 S1100 60 1200 30' fill='none' stroke='%232f6b5e' stroke-width='2' stroke-linecap='round' stroke-dasharray='1400' stroke-dashoffset='1400'><animate attributeName='stroke-dashoffset' from='1400' to='0' dur='2.5s' fill='freeze'/></path><path d='M0 30 C100 60 200 60 300 30 S500 0 600 30 S800 60 900 30 S1100 0 1200 30' fill='none' stroke='%233f8a78' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='1400' stroke-dashoffset='1400' opacity='0.7'><animate attributeName='stroke-dashoffset' from='1400' to='0' dur='2.5s' begin='0.3s' fill='freeze'/></path><ellipse cx='150' cy='14' rx='12' ry='5' fill='%23bfe3d0'><animateTransform attributeName='transform' type='rotate' values='-14 150 14;14 150 14;-14 150 14' dur='6s' repeatCount='indefinite'/></ellipse><ellipse cx='450' cy='46' rx='12' ry='5' fill='%23f2d27a'><animateTransform attributeName='transform' type='rotate' values='14 450 46;-14 450 46;14 450 46' dur='7s' repeatCount='indefinite'/></ellipse><ellipse cx='750' cy='14' rx='12' ry='5' fill='%23bfe3d0'><animateTransform attributeName='transform' type='rotate' values='-12 750 14;12 750 14;-12 750 14' dur='5.5s' repeatCount='indefinite'/></ellipse><ellipse cx='1050' cy='46' rx='12' ry='5' fill='%23f2d27a'><animateTransform attributeName='transform' type='rotate' values='12 1050 46;-12 1050 46;12 1050 46' dur='6.5s' repeatCount='indefinite'/></ellipse></svg>") center / 100% 60px no-repeat;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 18px;
}

.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #e4ecdf 0%, var(--bg) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery button {
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery button:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(20, 60, 50, 0.18);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery button:hover img { transform: scale(1.06); }

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
}

dialog.lightbox::backdrop { background: rgba(20, 40, 35, 0.8); }

dialog.lightbox img {
  width: 96vw;
  height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

dialog.lightbox .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.25s ease;
}

dialog.lightbox .close:hover { transform: scale(1.08); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-4px); }

.card .who {
  font-weight: 700;
  margin-bottom: 8px;
}

.card .date {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

form.stack {
  display: grid;
  gap: 16px;
  max-width: 520px;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

form.stack label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

form.stack input,
form.stack textarea {
  font: inherit;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.stack input:focus,
form.stack textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 94, 0.15);
}

form.stack textarea { min-height: 120px; resize: vertical; }

form.stack .btn { justify-self: start; }

.status { min-height: 24px; color: var(--muted); }

dialog.callback {
  width: min(420px, 92vw);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(20, 60, 50, 0.25);
}

dialog.callback::backdrop { background: rgba(20, 40, 35, 0.35); }

.callback-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.callback-form h3 { margin: 0; font-size: 22px; }

.callback-form p { margin: 0; }

.callback-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.callback-form input {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
}

.callback-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 94, 0.2);
}

.callback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

header.site {
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:first-child .wrap > * {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:first-child .wrap > *:nth-child(1) { animation-delay: 0.1s; }
main > section:first-child .wrap > *:nth-child(2) { animation-delay: 0.22s; }
main > section:first-child .wrap > *:nth-child(3) { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }

  header.site,
  main > section:first-child .wrap > * {
    animation: none;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site .map-links {
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

footer.site .map-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

footer.site .map-links img {
  height: 24px;
  width: auto;
}

footer.site .map-links a:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(242, 210, 122, 0.7), 0 0 40px rgba(191, 227, 208, 0.5);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; border-radius: 0 0 var(--radius) var(--radius); }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }

  .topbar { padding: 12px 0; gap: 10px; justify-content: center; }
  .brand img { height: 36px; }
  nav.main { width: 100%; display: flex; justify-content: center; gap: 4px; }
  nav.main a { margin-left: 0; padding: 6px 10px; font-size: 14px; }
  .contacts { display: none; }

  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { text-align: center; }

  .btn { padding: 13px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery button { border-radius: 14px; }

  .cards { grid-template-columns: 1fr; }
  form.stack { padding: 22px; max-width: 100%; }
  form.stack .btn { width: 100%; justify-self: stretch; text-align: center; }

  footer.site .wrap { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .gallery { grid-template-columns: 1fr; }
}

.gallery-add {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-add:hover {
  background: var(--soft);
  transform: scale(1.02);
}
.gallery-user img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
footer.site .footer-wa {
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
  margin-top: 14px;
}

footer.site .footer-wa .btn.wa {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: none;
}
.stars {
  color: #d4a853;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 8px;
}

.star-picker {
  display: flex;
  gap: 6px;
  margin: 4px 0 8px;
}

.star-picker button {
  font-size: 30px;
  line-height: 1;
  background: none;
  border: 0;
  color: #d6d6d6;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.star-picker button:hover { transform: scale(1.15); }

.star-picker button.on { color: #d4a853; }


/* ===== Усовершенствованная версия: мягкие анимации ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #d4a853);
  z-index: 60;
}

header.site { transition: box-shadow 0.3s ease; }
header.site.scrolled { box-shadow: 0 8px 24px rgba(20, 60, 50, 0.08); }
header.site .topbar { transition: padding 0.3s ease; }
header.site.scrolled .topbar { padding: 8px 0; }
.brand img { transition: height 0.3s ease, transform 0.4s ease; }
header.site.scrolled .brand img { height: 36px; }
.brand:hover img { transform: rotate(-2deg) scale(1.04); }

nav.main a { position: relative; }
nav.main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
nav.main a:hover::after,
nav.main a[aria-current="page"]::after { transform: scaleX(1); }

section h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a853);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.reveal.in-view h2::after { width: 64px; }

.leaf-float {
  position: absolute;
  top: -30px;
  width: var(--s);
  height: calc(var(--s) * 0.45);
  border-radius: 50%;
  background: var(--c);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: leafFall var(--t) linear infinite;
  animation-delay: var(--dl);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 72%) var(--my, 30%), rgba(212, 168, 83, 0.16), transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn 0.8s ease both; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

  .hero {
    background: linear-gradient(115deg, #e4ecdf 0%, var(--bg) 38%, #f3ecd3 68%, #e4ecdf 100%);
    background-size: 300% 300%;
    animation: heroShift 18s ease-in-out infinite;
  }
  @keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  @keyframes leafFall {
    0% { transform: translate3d(0, -30px, 0) rotate(0deg); }
    50% { transform: translate3d(34px, 260px, 0) rotate(170deg); }
    100% { transform: translate3d(-12px, 540px, 0) rotate(330deg); }
  }

  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
  }
  .btn:hover::after { animation: shimmer 0.9s ease; }
  @keyframes shimmer { to { left: 150%; } }

  .name-tiles span { animation: tileBob 5s ease-in-out infinite; }
  .name-tiles .t2 { animation-delay: 0.4s; }
  .name-tiles .t3 { animation-delay: 0.8s; }
  .name-tiles .t4 { animation-delay: 1.2s; }
  .name-tiles .t5 { animation-delay: 1.6s; }
  @keyframes tileBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
  }

  .fx-item:not(.fx-in) { opacity: 0; }
  .fx-item.fx-in {
    animation: fxUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes fxUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaf-float, .hero::after { display: none; }
}

/* Мобильная адаптация подвала */
@media (max-width: 720px) {
  footer.site .map-links { gap: 10px; }
  footer.site .map-links > span { flex-basis: 100%; }
  footer.site .map-links a {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
    font-size: 13px;
  }
  footer.site .map-links img { height: 22px; }
  footer.site .footer-wa { justify-content: stretch; }
  footer.site .footer-wa .btn.wa { flex: 1; text-align: center; }
}
/* Мобильные кнопки поменьше */
@media (max-width: 720px) {
  footer.site .map-links { flex-direction: row; flex-wrap: wrap; }
  footer.site .map-links a {
    padding: 8px 4px;
    font-size: 12px;
    border-radius: 12px;
    gap: 4px;
  }
  footer.site .map-links img { height: 18px; }
  footer.site .footer-wa .btn.wa { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; }
}
/* WhatsApp в подвале по размеру текста */
@media (max-width: 720px) {
  footer.site .footer-wa { justify-content: center; }
  footer.site .footer-wa .btn.wa { width: auto; flex: 0 0 auto; }
}
/* Подвал: WhatsApp по центру, не растягиваем */
@media (max-width: 720px) {
  footer.site .footer-wa { flex-direction: row; align-items: center; justify-content: center; }
  footer.site .footer-wa .btn.wa { align-self: center; }
}