/* ===== Smooth — публичная часть. Цвета и шрифты задаются из админки через CSS-переменные ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.mb { margin-bottom: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ----- Кнопки ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.8em; border-radius: 999px; border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font: 600 1rem var(--font-body); cursor: pointer;
  box-shadow: 0 10px 25px -10px var(--primary); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--primary); }
.btn-sm { padding: .5em 1.2em; font-size: .9rem; }
.btn-lg { padding: 1em 2.2em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--primary-dark); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-light:hover { color: var(--primary-dark); }

/* ----- Шапка ----- */
.admin-bar { background: #2b2027; color: #fff; font-size: .8rem; display: flex; gap: 1.2rem; padding: 6px 20px; position: relative; z-index: 60; }
.admin-bar a { color: #fff; opacity: .85; }
.admin-bar span { margin-left: auto; color: #ffc4d2; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.logo img { max-height: 54px; width: auto; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.logo-text { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .25s; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }
.nav-phone { font-weight: 700 !important; }
.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* ----- Секции ----- */
.section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.bg-soft { background: var(--soft); }
.bg-accent { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.bg-accent h2, .bg-accent h3, .bg-accent .muted, .bg-accent .section-head p { color: #fff; }
.bg-dark { background: #2b2027; color: #f5e9ec; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .muted, .bg-dark .section-head p { color: #c9b6bd; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2::after { content: '✿'; display: block; font-size: 1rem; color: var(--primary); margin-top: .5rem; }
.bg-accent .section-head h2::after { color: #fff; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.with-decor .bg-soft::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 8% 15%, color-mix(in srgb, var(--primary) 18%, transparent) 0 120px, transparent 121px),
              radial-gradient(circle at 95% 85%, color-mix(in srgb, var(--accent) 22%, transparent) 0 160px, transparent 161px);
}
.with-decor .bg-soft > * { position: relative; }

/* ----- Сетки и карточки ----- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 2px 4px rgba(120, 60, 80, .04), 0 18px 40px -18px rgba(120, 60, 80, .18);
  transition: transform .3s, box-shadow .3s; color: var(--text);
}
a.card:hover, .master-card:hover, .promo-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -20px rgba(120, 60, 80, .3); color: var(--text); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card-img img { transform: scale(1.06); }
.card-img.rounded { border-radius: var(--radius); }
.card-body { padding: 24px; }
.card-cat { color: var(--primary); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: .3rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed color-mix(in srgb, var(--primary) 25%, transparent); }
.price { font-weight: 700; font-size: 1.15rem; color: var(--primary-dark); }
.price s, .pr-price s, .big-price s { color: var(--muted); font-weight: 400; font-size: .85em; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.adv-card { padding: 32px 26px; text-align: center; }
.adv-icon { font-size: 2.2rem; width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }

.master-photo { aspect-ratio: 5 / 6; overflow: hidden; background: var(--soft); }
.master-photo img { width: 100%; height: 100%; object-fit: cover; }
.master-card { text-align: center; }
.master-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; }

.promo-card .promo-badge { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--primary-dark); font-weight: 800; font-size: 1.1rem; padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }

.review-card { padding: 28px; display: flex; flex-direction: column; }
.review-card p { font-style: italic; flex: 1; }
.stars { color: #f2b544; letter-spacing: 2px; }
.stars span { color: #e8dfe2; }
.review-author { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.review-author .muted { margin-left: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.review-reply { margin-top: 1rem; padding: 12px 16px; background: var(--soft); border-radius: calc(var(--radius) / 2); font-size: .9rem; }

/* ----- Главный экран ----- */
.hero { padding: clamp(50px, 7vw, 100px) 0; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-block; color: var(--primary-dark); background: #fff; padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; box-shadow: 0 6px 20px -10px var(--primary); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: .92rem; }
.hero-badges li { color: var(--text); }
.hero-rating { font-size: .95rem; }
.hero-media { position: relative; }
.hero-media img { position: relative; width: 100%; max-width: 560px; margin: 0 auto; animation: float 6s ease-in-out infinite; }
.hero-blob { position: absolute; inset: 8%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .25; filter: blur(30px); animation: morph 10s ease-in-out infinite; }
.hero-cover { background-image: linear-gradient(90deg, var(--bg) 30%, transparent), var(--hero-bg); background-size: cover; background-position: center; min-height: 80vh; display: flex; align-items: center; }
.hero-cover .hero-inner { grid-template-columns: minmax(0, 640px); }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes morph { 50% { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; transform: rotate(10deg) scale(1.05); } }

/* ----- Цифры ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat b { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
.stat span { opacity: .85; }

/* ----- Прайс ----- */
.tab-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; }
.tab-buttons button { border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); background: transparent; color: var(--text); padding: .55em 1.3em; border-radius: 999px; font: 500 .95rem var(--font-body); cursor: pointer; transition: .2s; }
.tab-buttons button.active, .tab-buttons button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.price-list { display: none; padding: 14px 30px; max-width: 860px; margin: 0 auto; }
.price-list.active { display: block; animation: fade .4s; }
.price-row { display: flex; align-items: baseline; gap: .6rem; padding: 14px 0; color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { color: var(--primary-dark); }
.pr-dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-4px); }
.pr-price { font-weight: 700; white-space: nowrap; color: var(--primary-dark); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ----- Галерея ----- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(60, 20, 35, .6)); opacity: 0; transition: .3s; }
.gallery-item:hover span { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(30, 15, 22, .9); display: grid; place-items: center; z-index: 100; padding: 30px; cursor: zoom-out; animation: fade .3s; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }

/* ----- Формы ----- */
.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; padding: 13px 18px; font: 1rem var(--font-body); color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--primary) 20%, #eee); border-radius: calc(var(--radius) / 1.6); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: #e8dfe2; cursor: pointer; transition: .15s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f2b544; }
.booking-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.booking-points { list-style: none; padding: 0; }
.booking-points li { padding: 6px 0 6px 32px; position: relative; }
.booking-points li::before { content: '✿'; position: absolute; left: 0; color: var(--primary); }
.booking-img { border-radius: var(--radius); margin-top: 1.5rem; }
.notice { padding: 30px; text-align: center; }
.reviews-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.reviews-layout aside { position: sticky; top: 100px; }

/* ----- FAQ ----- */
.faq-item { background: #fff; border-radius: calc(var(--radius) / 1.4); margin-bottom: 12px; box-shadow: 0 10px 30px -18px rgba(120, 60, 80, .25); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 1.2rem; transition: .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--primary); color: #fff; }
.faq-item div { padding: 0 24px 22px; color: var(--muted); }

/* ----- Текст, CTA ----- */
.text-block.with-image { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.text-block.img-left .text-image { order: -1; }
.text-image img { border-radius: var(--radius); }
.rich img { border-radius: calc(var(--radius) / 2); margin: 1em 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(30px, 5vw, 60px); border-radius: calc(var(--radius) * 1.4); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: .5em 0 0; opacity: .9; }

/* ----- Контакты ----- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.contacts-card { padding: 32px; display: grid; gap: 20px; align-content: start; }
.contact-item { display: flex; gap: 14px; }
.contact-item p { margin: 0; }
.ci-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--soft); }
.map-box iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-placeholder { height: 100%; min-height: 360px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.map-placeholder span { font-size: 3rem; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); transition: transform .2s; }
.socials a:hover { transform: translateY(-3px) rotate(-6deg); color: #fff; }

/* ----- Внутренние страницы ----- */
.page-head { padding: 60px 0 50px; text-align: center; position: relative; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.cat-title { font-size: 2rem; margin: 0 0 1.4rem; }
.service-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.big-price { font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); font-family: var(--font-heading); }
.mini-masters { display: flex; flex-wrap: wrap; gap: 14px; }
.mini-master { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 18px 8px 8px; border-radius: 999px; box-shadow: 0 8px 20px -12px rgba(120,60,80,.3); color: var(--text); }
.mini-master img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.mini-master span { display: flex; flex-direction: column; line-height: 1.3; }
.mini-master small { color: var(--muted); }
.page-cover { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.message-page { min-height: 55vh; }
.message-flower { font-size: 4rem; color: var(--primary); animation: float 4s ease-in-out infinite; }
.message-code { font-family: var(--font-heading); font-size: 1.2rem; color: var(--muted); }

/* ----- Подвал ----- */
.site-footer { background: #2b2027; color: #d8c6cc; padding: 70px 0 0; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #d8c6cc; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a8949b; }
.logo-footer .logo-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ----- Плавающая кнопка, уведомления ----- */
.fab-booking { position: fixed; right: 22px; bottom: 22px; z-index: 40; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 14px 30px -10px var(--primary); animation: pulse 2.5s infinite; }
.fab-booking:hover { color: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
.toasts { position: fixed; top: 90px; right: 20px; z-index: 90; display: grid; gap: 10px; max-width: 380px; }
.toast { background: #fff; padding: 16px 44px 16px 20px; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); border-left: 5px solid var(--primary); position: relative; animation: fade .4s; }
.toast-error { border-left-color: #d9534f; }
.toast-success { border-left-color: #4caf7d; }
.toast button { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted); }

/* ----- Анимация появления ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ----- Адаптив ----- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 1rem; }
  .nav-phone { display: none; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 20px; gap: 0; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); transform: translateY(-120%); transition: transform .35s; }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--soft); }
  .main-nav .btn { margin-top: 12px; }
  .nav-phone { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner, .booking-wrap, .text-block.with-image, .contacts-grid, .service-detail, .reviews-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .reviews-layout aside { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .fab-booking span { display: none; }
  .fab-booking { padding: 16px 18px; }
  .price-list { padding: 8px 18px; }
}
