/* Бур Бон — прейскурант салона. Направление: «печатная форма прейскуранта»:
   костяная бумага, чёрная краска, золото только как акцент. */

:root {
  --bg: #EDECE7;          /* костяная бумага, почти ахроматичная */
  --surface: #E2E0D8;     /* вложенный тон, −5% светлоты */
  --fg: #15140F;          /* чёрная краска, тёплый нейтральный */
  --muted: #6C6960;       /* вторичный текст, 4.8:1 к фону */
  --border: #CFCCC2;      /* разделители, исчезают на расстоянии вытянутой руки */
  --accent: #A17C2E;      /* бронзовое золото, полоса 42° */
  --accent-on: #121110;   /* текст на золоте, 4.9:1 */
  --ink: #15140F;         /* чёрные плашки-печати */
  --ink-fg: #F1EEE5;
  --font-display: "Piazzolla", Georgia, serif;
  --font-body: "Onest", "Helvetica Neue", sans-serif;
  --radius: 0px;
  --space-section: 104px;
  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* мелкая бумажная зернистость — один слой, без «свечения» */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.num { font-variant-numeric: tabular-nums; }

/* ─────────────────────────── шапка ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 236, 231, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-size: 22px; letter-spacing: .01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14.5px; text-decoration: none; color: var(--fg);
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-links a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.nav-tel { font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-tel:hover { color: var(--accent); }
.tel-ico { display: none; width: 19px; height: 19px; }

@media (max-width: 760px) {
  .nav-in {
    height: auto; padding: 10px 16px 0; gap: 10px 16px; flex-wrap: wrap;
  }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 9px; margin-top: 3px; letter-spacing: .14em; }
  .nav-tel { font-size: 13.5px; }
  .nav-tel .tel-text { display: none; }
  .nav-tel .tel-ico { display: block; }
  .nav-in > .btn { padding: 8px 13px; font-size: 13px; }
  .nav-in { gap: 10px 12px; }
  .nav-links {
    order: 3; width: 100%; gap: 22px; overflow-x: auto;
    margin: 0 -16px; padding: 9px 16px 11px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 13px 22px; border: 1px solid var(--fg); border-radius: var(--radius);
  background: var(--fg); color: var(--ink-fg); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--ink-fg); border-color: var(--fg); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn-gold:hover { background: var(--fg); border-color: var(--fg); color: var(--ink-fg); }
.btn-light { background: var(--ink-fg); border-color: var(--ink-fg); color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }

.nav-burger { display: none; }

/* ─────────────────────────── герой ─────────────────────────── */
.hero { display: grid; grid-template-columns: 5fr 7fr; border-bottom: 1px solid var(--border); }
.plate { background: var(--ink); color: var(--ink-fg); padding: 64px 56px 56px; display: flex; flex-direction: column; }
.plate img.plate-logo { width: min(340px, 100%); height: auto; margin-bottom: 46px; }
.plate h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 400; }
.plate h1 em { font-style: italic; color: var(--accent); }
.plate-lead { margin: 20px 0 0; font-size: 16px; color: #CFCABB; max-width: 42ch; }
.plate-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.plate-facts {
  margin-top: auto; padding-top: 40px;
  display: flex; gap: 30px; flex-wrap: wrap;
  border-top: 1px solid #34322B;
}
.fact-n { font-family: var(--font-display); font-size: 27px; line-height: 1; color: var(--ink-fg); }
.fact-l { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8E8A7E; margin-top: 7px; }
.hero-photo { position: relative; min-height: 560px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 14px 20px; font-size: 12px; letter-spacing: .05em; color: #E8E4D9;
  background: linear-gradient(to top, rgba(10,10,8,.78), rgba(10,10,8,0));
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .plate { padding: 44px 24px 40px; }
  .hero-photo { min-height: 340px; }
}

/* ─────────────────────────── секции ─────────────────────────── */
.section { padding: var(--space-section) 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.sec-head { display: grid; grid-template-columns: 3fr 7fr; gap: 32px; align-items: end; margin-bottom: 56px; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }
.sec-num {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; color: var(--accent);
  display: block; margin-bottom: 14px;
}
.sec-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; font-weight: 400; }
.sec-title em { font-style: italic; }
.sec-note { color: var(--muted); font-size: 16px; max-width: 56ch; margin: 0; }
.sec-note strong { color: var(--fg); font-weight: 500; }

.ink-band { background: var(--ink); color: var(--ink-fg); }
.ink-band .sec-num { color: var(--accent); }
.ink-band .sec-note { color: #BDB8AB; }
.ink-band .sec-note strong { color: var(--ink-fg); }
.ink-band a { color: var(--ink-fg); }
.ink-band a.btn-light { color: var(--ink); }
.ink-band a.btn-gold { color: var(--accent-on); }

/* ─────────────────────────── указатель направлений ─────────────────────────── */
.idx { border-top: 1px solid var(--border); }
.idx-row {
  display: grid; grid-template-columns: 64px 1fr 190px 120px;
  gap: 24px; align-items: baseline;
  padding: 26px 12px; border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.idx-row:hover { background: var(--ink); color: var(--ink-fg); }
.idx-row:hover .idx-note { color: #BDB8AB; }
.idx-row:hover .idx-from { color: var(--accent); }
.idx-n { font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; color: var(--accent); }
.idx-name { font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.1; }
.idx-note { color: var(--muted); font-size: 15px; }
.idx-from { text-align: right; font-size: 15px; white-space: nowrap; }
.idx-from b { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
@media (max-width: 800px) {
  .idx-row { grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 20px 4px; }
  .idx-note { grid-column: 2; }
  .idx-from { grid-column: 2; text-align: left; }
}

/* ─────────────────────────── прейскурант ─────────────────────────── */
.book { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.book > * { min-width: 0; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; gap: 30px; } }

.filters { position: sticky; top: 96px; }
@media (max-width: 960px) { .filters { position: static; } }
.search {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg);
}
.search::placeholder { color: #9A968C; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) { .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } }
.chip {
  font-family: var(--font-body); font-size: 13.5px; padding: 8px 13px;
  border: 1px solid var(--border); background: transparent; color: var(--fg);
  border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--ink-fg); }
.count-line { margin-top: 16px; font-size: 13px; color: var(--muted); }

.pgroup { margin-bottom: 62px; }
.pgroup[hidden] { display: none; }
.pgroup-title {
  font-size: clamp(26px, 3vw, 38px); line-height: 1.05; font-weight: 400;
  padding-bottom: 14px; border-bottom: 2px solid var(--fg); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.pgroup-title small { font-family: var(--font-body); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.pblock { margin-top: 30px; }
.pblock-title {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px; font-weight: 500;
}
.pcols { columns: 2; column-gap: 46px; }
@media (max-width: 760px) { .pcols { columns: 1; } }
.prow {
  display: flex; align-items: baseline; gap: 8px;
  break-inside: avoid; padding: 7px 0;
  border-bottom: 1px solid #E4E1D8;
}
.prow[hidden] { display: none; }
.pname { font-size: 15.5px; flex: 0 1 auto; min-width: 0; overflow-wrap: break-word; }
.plead { flex: 1 1 auto; border-bottom: 1px dotted var(--border); transform: translateY(-.3em); min-width: 14px; }
.pprice { font-size: 15.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.ptime { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 58px; text-align: right; flex: none; }
@media (max-width: 520px) { .ptime { min-width: 0; font-size: 11.5px; } .plead { min-width: 8px; } }

.pgroup-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ─────────────────────────── работы ─────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.g-item { margin: 0; position: relative; overflow: hidden; background: var(--surface); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 12px;
  font-size: 12.5px; letter-spacing: .06em; color: #F2EFE6;
  background: linear-gradient(to top, rgba(10,10,8,.8), rgba(10,10,8,0));
}
.g-s3 { grid-column: span 3; aspect-ratio: 1/1; }
.g-s4 { grid-column: span 4; aspect-ratio: 1/1; }
.g-s4.g-tall { aspect-ratio: 3/4; }
.g-s5 { grid-column: span 5; aspect-ratio: 4/3; }
.g-s6 { grid-column: span 6; aspect-ratio: 1/1; }
.g-s7 { grid-column: span 7; aspect-ratio: 4/3; }
@media (max-width: 980px) {
  .g-s7, .g-s5, .g-s6 { grid-column: span 12; aspect-ratio: 4/3; }
  .g-s4, .g-s3 { grid-column: span 6; aspect-ratio: 1/1; }
}
@media (max-width: 520px) {
  .g-item { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* ─────────────────────────── мастера и отзывы ─────────────────────────── */
.masters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 760px) { .masters { grid-template-columns: 1fr; } }
.master { background: var(--bg); padding: 32px 28px 30px; }
.master-initial {
  font-family: var(--font-display); font-size: 44px; line-height: 1;
  color: var(--accent); margin-bottom: 14px;
}
.master-name { font-family: var(--font-display); font-size: 23px; }
.master-role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 7px 0 14px; }
.master-quote { font-size: 15px; color: #45423B; margin: 0; }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 60px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; gap: 30px; } }
.review { border-top: 1px solid var(--border); padding-top: 20px; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.review-name { font-family: var(--font-display); font-size: 19px; }
.review-date { font-size: 12.5px; color: var(--muted); }
.review-stars { color: var(--accent); letter-spacing: .12em; font-size: 14px; }
.review p { margin: 0; font-size: 15.5px; color: #3E3B34; }
.ink-band .review { border-color: #34322B; }
.ink-band .review p { color: #C9C5B8; }
.ink-band .review-date { color: #8E8A7E; }
.ink-band .review-name { color: var(--ink-fg); }

.rating-big { font-family: var(--font-display); font-size: 76px; line-height: .9; }
.rating-src { font-size: 14px; color: var(--muted); margin-top: 10px; }
.rating-links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.ink-band .rating-src { color: #8E8A7E; }

/* ─────────────────────────── визит ─────────────────────────── */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; gap: 36px; } }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr:last-child td { border-bottom: none; }
.addr-block { font-size: 19px; line-height: 1.45; }
.addr-note { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.map-photo { border: 1px solid var(--border); }
.map-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ─────────────────────────── запись ─────────────────────────── */
.book-form { display: grid; gap: 18px; max-width: 520px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: #9A968C; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; padding: 13px 14px;
  background: #1D1C17; border: 1px solid #3A382F; border-radius: var(--radius); color: var(--ink-fg);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E6A5F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: 12.5px; color: #8E8A7E; }
.form-note a { color: var(--ink-fg); }
.form-ok { font-family: var(--font-display); font-size: 22px; color: var(--accent); }

.booking-side { display: grid; gap: 22px; align-content: start; }
.qa { border-top: 1px solid #34322B; padding-top: 18px; }
.qa h3 { font-size: 19px; margin-bottom: 8px; }
.qa p { margin: 0 0 14px; font-size: 14.5px; color: #BDB8AB; }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; gap: 40px; } }

/* ─────────────────────────── подвал ─────────────────────────── */
.footer { background: var(--ink); color: var(--ink-fg); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer img { width: 108px; margin-bottom: 18px; }
.footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8E8A7E; margin-bottom: 14px; font-weight: 500; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; font-size: 15px; color: #D6D2C6; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid #34322B;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: #7E7A6F;
}
.footer-bottom a { color: #7E7A6F; font-size: 12.5px; }
.footer-bottom a:hover { color: var(--accent); }

/* ─────────────────────────── страница политики ─────────────────────────── */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: #3E3B34; }
.legal ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--accent); }

/* ─────────── частые вопросы ─────────── */
.faq { max-width: 940px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0; font-family: var(--font-display); font-size: 20px; line-height: 1.35;
  transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item .fq { flex: 1; }
.faq-item .fa { position: relative; width: 16px; height: 16px; margin-top: 7px; flex: none; }
.faq-item .fa::before, .faq-item .fa::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .2s ease;
}
.faq-item .fa::before { left: 0; top: 7px; width: 16px; height: 1.5px; }
.faq-item .fa::after  { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq-item[open] .fa::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--accent); }
.faq-item .fa-body { padding: 0 40px 24px 0; color: var(--muted); font-size: 16.5px; max-width: 74ch; }
.faq-item .fa-body strong { color: var(--fg); font-weight: 500; }

@media (max-width: 640px) {
  .faq-item summary { font-size: 18px; gap: 14px; }
  .faq-item .fa-body { padding-right: 0; font-size: 15.5px; }
}

/* WebP-обёртка: <picture> должен занимать место картинки */
picture { display: block; }
.hero-photo picture, .g-item picture, .map-photo picture { width: 100%; height: 100%; }
