/* ==========================================================================
   Компоненты — часть 2: работы, отзывы, сертификаты, прайс, магазин, запись
   ========================================================================== */

/* ---------- Работы (галерея) ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(24px, 4vw, 40px); }
.fbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: var(--t-sm);
  transition: all var(--t-fast) var(--ease); text-decoration: none;
}
.fbtn:hover { border-color: var(--gold-3); }
.fbtn.is-active { background: var(--emerald); color: #f6efdf; border-color: var(--emerald); box-shadow: 0 6px 16px rgba(12, 59, 46, .25); }
.fbtn .n { opacity: .65; font-size: .78em; margin-left: 4px; }

.works-grid { columns: 3; column-gap: 18px; }
@media (max-width: 980px) { .works-grid { columns: 2; } }
@media (max-width: 560px) { .works-grid { columns: 1; } }
.work { break-inside: avoid; margin-bottom: 18px; position: relative; }
.work a { display: block; position: relative; overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.work img { width: 100%; transition: transform .9s var(--ease); }
.work a::after {
  content: "⤢"; position: absolute; inset: auto 12px 10px auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8, 40, 30, .55); color: var(--gold-2); backdrop-filter: blur(4px);
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; transform: translateY(6px); transition: all var(--t-mid) var(--ease);
}
.work:hover img { transform: scale(1.04); }
.work:hover a::after { opacity: 1; transform: translateY(0); }
.work .album-tag { position: absolute; left: 10px; top: 10px; z-index: 2; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(6, 22, 17, .94); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; place-items: center; }
.lightbox__stage { position: relative; max-width: min(1100px, 92vw); max-height: 86vh; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-frame); }
.lightbox__btn {
  position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(224, 198, 142, .4);
  color: var(--gold-2); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: background var(--t-fast);
}
.lightbox__btn:hover { background: rgba(224, 198, 142, .2); }
.lightbox__close { top: -66px; right: 0; }
.lightbox__prev { left: -74px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -74px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: -40px; left: 0; color: rgba(243, 236, 220, .7); font-size: var(--t-sm); letter-spacing: .1em; }
body.lb-lock { overflow: hidden; }

/* ---------- Отзывы ---------- */
.reviews-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 4vw, 40px); }
.rev-score { display: flex; align-items: center; gap: 16px; }
.rev-score__num { font-family: var(--font-serif); font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: 1; color: var(--emerald-3); font-weight: 700; }
.rev-score__meta { display: flex; flex-direction: column; gap: 4px; }
.rev-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.15rem; }
.rev-score__meta b { font-size: var(--t-md); }
.rev-score__meta span { font-size: var(--t-xs); color: var(--ink-soft); }
.rev-source { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--ink-soft); }
.rev-source svg { width: 20px; height: 20px; }

.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .reviews-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-list { grid-template-columns: 1fr; } }
.rev-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; }
.rev-card__top { display: flex; align-items: center; gap: 12px; }
.rev-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-gold); }
.rev-card__avatar--ph { background: linear-gradient(135deg, var(--emerald), var(--sage)); color: var(--gold-2); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; }
.rev-card__who b { display: block; font-size: var(--t-md); }
.rev-card__who span { font-size: var(--t-xs); color: var(--ink-soft); }
.rev-card .rev-stars { margin-left: auto; }
.rev-card__text { font-size: var(--t-sm); color: var(--ink); flex: 1; }
.rev-card__text::before { content: "«"; font-family: var(--font-serif); font-size: 1.6em; color: var(--gold); line-height: 0; }
.rev-card__text::after { content: "»"; font-family: var(--font-serif); font-size: 1.6em; color: var(--gold); line-height: 0; }
.rev-card__foot { display: flex; gap: 10px; align-items: center; font-size: var(--t-xs); color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; }
.rev-card__photo { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }

/* ---------- Сертификаты и Честный знак ---------- */
.certs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: clamp(20px, 3vw, 34px); justify-content: center; }
.cert { text-align: center; }
.cert .frame { width: 100%; cursor: zoom-in; }
.cert figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-soft); }
.chestny { display: flex; gap: clamp(18px, 3vw, 30px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-1); }
.chestny__logo { flex: none; width: 96px; height: 96px; display: grid; place-items: center; background: var(--emerald); border-radius: 14px; color: var(--gold-2); }
.chestny__logo svg { width: 58px; height: 58px; }
.chestny h3 { font-size: 1.4rem; color: var(--emerald-3); margin-bottom: 6px; }
.chestny p { font-size: var(--t-sm); color: var(--ink-soft); }
@media (max-width: 720px) { .certs-grid { grid-template-columns: 1fr; } }

/* ---------- Прайс ---------- */
.price-wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.price-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 8px; }
.price-nav a { text-decoration: none; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: var(--t-sm); transition: all var(--t-fast); display: flex; justify-content: space-between; gap: 8px; }
.price-nav a:hover { border-color: var(--gold-3); }
.price-nav a.is-active { background: var(--emerald); color: #f6efdf; border-color: var(--emerald); }
.price-nav a .n { opacity: .6; font-size: .8em; }
.price-search { margin-bottom: 26px; position: relative; max-width: 560px; }
.price-search input { padding-left: 44px; }
.price-search::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border: 2px solid var(--ink-soft); border-radius: 50%; }
.price-search::after { content: ""; position: absolute; left: 29px; top: calc(50% + 7px); width: 7px; height: 2px; background: var(--ink-soft); transform: rotate(45deg); }
.price-cat { scroll-margin-top: 120px; margin-bottom: clamp(30px, 5vw, 48px); }
.price-cat__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.price-cat__head h2 { font-size: var(--display-2); color: var(--emerald-3); }
.price-cat__head .cat-note { font-size: var(--t-xs); color: var(--gold-3); font-weight: 700; }
.price-list { list-style: none; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding-block: 13px; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .dots { flex: 1; border-bottom: 2px dotted rgba(12, 59, 46, .22); transform: translateY(-4px); min-width: 22px; }
.price-list .name { font-weight: 600; max-width: 62ch; }
.price-list .val { font-weight: 800; color: var(--emerald-3); white-space: nowrap; font-size: 1.04rem; }
.price-empty { display: none; text-align: center; padding: 40px; color: var(--ink-soft); }
.price-wrap.is-filtering .price-cat:not(.is-match) { display: none; }
.price-foot { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-soft); display: flex; gap: 18px; flex-wrap: wrap; }
.price-foot .mark { color: var(--gold-3); font-weight: 700; }

/* ---------- Магазин ---------- */
.shop-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 1080px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .prod-grid { grid-template-columns: 1fr; } }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); position: relative; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.prod.is-picked { border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(194, 161, 94, .25); }
.prod__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 14px; }
.prod__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod__pick {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center;
  transition: all var(--t-fast); z-index: 2; font-size: 1.1rem; color: transparent;
}
.prod__pick svg { width: 20px; height: 20px; color: transparent; transition: color var(--t-fast); }
.prod.is-picked .prod__pick { background: var(--gold); border-color: var(--gold); }
.prod.is-picked .prod__pick svg { color: var(--emerald-3); }
.prod__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod__cat { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); font-weight: 800; }
.prod h3 { font-family: var(--font-sans); font-size: var(--t-md); font-weight: 700; line-height: 1.35; color: var(--emerald-3); flex: 1; }
.prod h3 small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .86rem; }
.prod__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prod__price { font-weight: 800; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.prod__unit { font-size: var(--t-xs); color: var(--ink-soft); }

.quotebar { position: sticky; bottom: 14px; z-index: 40; margin-top: 26px; }
.quotebar__in { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--emerald-3); color: #f3ecdc; border: 1px solid rgba(224, 198, 142, .4); border-radius: var(--r-lg); padding: 14px 20px; box-shadow: var(--shadow-frame); }
.quotebar__in b { color: var(--gold-2); }
.quotebar .n-picked { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--emerald-3); font-weight: 800; padding-inline: 6px; }

/* Форма заявки на счёт (модал-панель) */
.quote-panel { display: none; margin-top: 22px; }
.quote-panel.is-open { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.quote-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.quote-summary ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 7px; }
.quote-summary li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.quote-summary li b { white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 800; line-height: 1; }
.qty .v { min-width: 24px; text-align: center; font-weight: 800; }

/* ---------- Запись / контакты ---------- */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 38px); box-shadow: var(--shadow-2); }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.daychip { flex: none; width: 74px; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--paper); transition: all var(--t-fast); }
.daychip:hover { border-color: var(--gold-3); }
.daychip.is-active { background: var(--emerald); border-color: var(--emerald); color: #f6efdf; box-shadow: 0 8px 18px rgba(12, 59, 46, .3); }
.daychip b { display: block; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.05; }
.daychip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.daychip small { display: block; font-size: .66rem; opacity: .7; margin-top: 3px; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-chip { text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 700; font-size: var(--t-sm); transition: all var(--t-fast); }
.time-chip:hover { border-color: var(--gold-3); }
.time-chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--emerald-3); }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-tile { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-1); text-decoration: none; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.contact-tile__ico { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--emerald); color: var(--gold-2); display: grid; place-items: center; }
.contact-tile__ico svg { width: 22px; height: 22px; }
.contact-tile b { display: block; font-size: var(--t-md); color: var(--emerald-3); }
.contact-tile span { font-size: var(--t-sm); color: var(--ink-soft); }
.map-frame { border: 0; width: 100%; min-height: 320px; border-radius: var(--r-lg); box-shadow: var(--shadow-1); display: block; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; }
}

/* ---------- Страницы контента ---------- */
.prose { max-width: 780px; }
.prose h2 { color: var(--emerald-3); font-size: 1.9rem; margin: 34px 0 12px; }
.prose h3 { color: var(--emerald-3); font-size: 1.35rem; margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 4px; list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.prose ul li { padding-left: 30px; position: relative; }
.prose ul li::before { content: "◆"; position: absolute; left: 4px; top: 0; color: var(--gold-3); font-size: .66rem; }
.big-photo { margin: 6px 0 22px; }

/* О салоне: факты */
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-block: 26px; }
.about-fact { border-left: 3px solid var(--gold); background: var(--card); padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow-1); }
.about-fact b { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--emerald-3); line-height: 1.1; }
.about-fact span { font-size: var(--t-sm); color: var(--ink-soft); }

/* Мастера */
.masters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: clamp(24px, 4vw, 60px); justify-content: center; }
.master { text-align: center; }
.master .frame { max-width: 400px; }
.master h3 { font-size: 1.9rem; color: var(--emerald-3); margin-top: 20px; }
.master .role { color: var(--gold-3); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: var(--t-xs); margin-top: 4px; }
.master p.bio { color: var(--ink-soft); font-size: var(--t-sm); margin-top: 10px; }
