/* ══════════════════════════════════════════════════════════
   Салон красоты «Рим» — Самара
   Тёплый камень и розовый из логотипа; арки — отсылка
   к Колизею на их же вывеске
   ══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Prata';
  src: url('assets/fonts/prata-cyrillic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  src: url('assets/fonts/prata-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-cyrillic.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --paper: #FAF6F1;        /* тёплый кремовый — основной фон */
  --paper-tint: #F3EBE3;   /* подложка чередующихся секций */
  --card: #FFFFFF;

  --ink: #2A2422;          /* 14,2:1 к фону */
  --ink-2: #6B615C;        /* 5,6:1 */
  --ink-3: #8A7E77;        /* только для крупного и декоративного */

  --rose: #B84C77;         /* акцент: кнопки и ссылки, 4,5:1 к фону */
  --rose-deep: #A63F68;    /* текст акцентом, 5,5:1 */
  --rose-soft: #F58CB6;    /* фирменный розовый салона — декор, не текст */
  --rose-wash: #FBEEF3;

  --line: #E4D9CE;
  --line-soft: #EFE7DE;

  --shell: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --sec-pad: clamp(60px, 8vw, 112px);
  --header-h: 78px;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow:
    0 1px 1px rgba(74, 54, 44, 0.05),
    0 6px 16px rgba(74, 54, 44, 0.06),
    0 20px 44px rgba(74, 54, 44, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Якорь уводит верх секции под шапку, иначе в щели видно край предыдущей */
[id] { scroll-margin-top: var(--header-h); }
.section[id] { scroll-margin-top: calc(var(--header-h) - var(--sec-pad) * 0.5); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

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

a { color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--rose); color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 3px; }

/* ─────────── кнопки ─────────── */

.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 500;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 180ms; transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }

.btn-primary {
  background: var(--rose); color: #fff;
  box-shadow: 0 1px 1px rgba(120, 40, 70, 0.16), 0 8px 20px rgba(184, 76, 119, 0.22);
}
.btn-primary:hover { background: var(--rose-deep); box-shadow: 0 1px 1px rgba(120,40,70,.2), 0 12px 26px rgba(184,76,119,.3); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px #d8c9bb; }

.btn-sm { --btn-h: 44px; padding: 0 20px; font-size: 15px; }

/* ─────────── шапка ─────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  box-shadow: inset 0 -1px 0 var(--line-soft);
  transition: box-shadow 240ms var(--ease);
}
.site-header.is-stuck { box-shadow: inset 0 -1px 0 var(--line), 0 10px 30px rgba(74, 54, 44, 0.07); }

.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.brand { flex-shrink: 0; display: grid; text-decoration: none; line-height: 1; }
.brand-name {
  font-family: 'Prata', serif; font-size: 27px; letter-spacing: 0.14em;
}
.brand-sub {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 5px;
}

.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 10px 0;
  font-size: 15.5px; color: var(--ink-2); text-decoration: none;
  transition: color 160ms var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--rose); transition: right 220ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }

.phone {
  font-size: 16.5px; font-weight: 500; text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 160ms var(--ease);
}
.phone:hover { color: var(--rose-deep); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 220ms var(--ease), opacity 160ms var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav { display: grid; padding: 4px var(--pad) 20px; box-shadow: inset 0 1px 0 var(--line-soft); }
.mobile-nav a { padding: 14px 0; font-size: 17px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--line-soft); }

/* ─────────── арка ─────────── */

.arch {
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--paper-tint);
  box-shadow: var(--shadow);
}
.arch img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px;
}
.arch-sm img { aspect-ratio: 4 / 5; }

/* ─────────── hero ─────────── */

.hero { padding: clamp(36px, 6vw, 72px) 0 var(--sec-pad); position: relative; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 68px); align-items: center;
}

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rose-deep);
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin-bottom: 22px; }
.hero-lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; }
.hero-stats dt { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.hero-stats dd { margin: 0; display: flex; align-items: baseline; gap: 9px; }
.hero-stats dd b { font-family: 'Prata', serif; font-size: 32px; font-weight: 400; line-height: 1; }
.hero-stats dd span { font-size: 13.5px; color: var(--ink-3); }

.hero-media { margin: 0; }
.hero-media figcaption { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ─────────── секции ─────────── */

.section { padding: var(--sec-pad) 0; }
.section-tint { background: var(--paper-tint); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); }
.section-lead { margin-top: 18px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

.note { margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }
.note a { color: var(--rose-deep); text-underline-offset: 3px; }

/* ─────────── услуги ─────────── */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.service {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}
.service:hover { translate: 0 -3px; box-shadow: 0 2px 4px rgba(74,54,44,.06), 0 14px 34px rgba(74,54,44,.10); }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service-price {
  margin-top: auto; padding-top: 18px;
  font-size: 14.5px; color: var(--ink-3);
  box-shadow: inset 0 1px 0 var(--line-soft);
}
.service-price b { font-family: 'Prata', serif; font-size: 19px; color: var(--ink); margin-left: 4px; }
.service-note { background: var(--rose-wash); }

/* ─────────── мастера ─────────── */

.masters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.master {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.master h3 { font-size: 25px; }
.master-role { margin: 6px 0 16px; min-height: 2.6em; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rose-deep); }
.master blockquote {
  margin: 0; padding-left: 18px;
  border-left: 2px solid var(--rose-soft);
  color: var(--ink-2); font-size: 15.5px;
}
.master-src { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ─────────── галерея ─────────── */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg);
  outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px;
  box-shadow: var(--shadow);
}

/* ─────────── сплит-блоки ─────────── */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { margin: 0; }
.split-copy h2 { font-size: clamp(25px, 3.1vw, 37px); margin-bottom: 20px; }
.split-copy > p { color: var(--ink-2); margin-bottom: 18px; }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose-soft);
}

.callout {
  padding: 16px 18px;
  background: var(--rose-wash); border-radius: var(--r-md);
  color: var(--ink); font-size: 15.5px;
}
.section-tint .callout { background: var(--card); }

/* ─────────── цены ─────────── */

.prices { display: grid; gap: 10px; }
.price-group {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.price-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 44px;
  cursor: pointer; list-style: none;
  font-family: 'Prata', serif; font-size: clamp(18px, 2vw, 21px);
}
.price-group summary::-webkit-details-marker { display: none; }
.price-count {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Jost', sans-serif; font-size: 13.5px; color: var(--ink-3);
  white-space: nowrap;
}
.price-count::after {
  content: ''; width: 9px; height: 9px;
  border-right: 1.5px solid var(--rose); border-bottom: 1.5px solid var(--rose);
  rotate: 45deg; translate: 0 -2px;
  transition: rotate 220ms var(--ease), translate 220ms var(--ease);
}
.price-group[open] .price-count::after { rotate: 225deg; translate: 0 2px; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 11px 24px; font-size: 15.5px; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--line-soft); }
.price-table td:last-child { text-align: right; white-space: nowrap; color: var(--ink); font-weight: 500; }
.price-table tr:hover td { background: var(--rose-wash); }

/* ─────────── отзывы ─────────── */

.reviews { columns: 3 300px; column-gap: 16px; }
.review {
  break-inside: avoid; margin: 0 0 16px;
  padding: 24px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.review::before {
  content: '«'; display: block;
  font-family: 'Prata', serif; font-size: 44px; line-height: 0.6;
  color: var(--rose-soft); margin-bottom: 12px;
}
.review p { color: var(--ink-2); font-size: 15.5px; }
.review footer { margin-top: 16px; padding-top: 13px; box-shadow: inset 0 1px 0 var(--line-soft); display: grid; gap: 2px; }
.review footer b { font-weight: 500; font-size: 15px; }
.review footer span { font-size: 13px; color: var(--ink-3); }

/* ─────────── контакты ─────────── */

.contacts-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }

.contact-block h3 {
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin: 32px 0 14px;
}
.contact-block h3:first-child { margin-top: 0; }
.contact-lead { color: var(--ink-2); margin-bottom: 20px; }

.contact-phone { font-size: 22px; font-family: 'Prata', serif; line-height: 1.3; }
.contact-phone a { text-decoration: none; transition: color 160ms var(--ease); }
.contact-phone a:hover { color: var(--rose-deep); }
.contact-phone span { display: block; font-family: 'Jost', sans-serif; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.contact-phone + .contact-phone { margin-top: 14px; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow); font-size: 15.5px;
}
.hours b { font-size: 16px; }

.contact-note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 520px; }
.map iframe { display: block; border: 0; width: 100%; height: 100%; min-height: 520px; }

/* ─────────── подвал ─────────── */

.site-footer { background: var(--ink); color: #E9E1DB; padding: clamp(44px, 6vw, 72px) 0 26px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand-name {
  display: block; margin-bottom: 14px;
  font-family: 'Prata', serif; font-size: 32px; letter-spacing: 0.16em; color: #F6EFE9;
}
.footer-brand p { color: #A99C94; font-size: 15px; max-width: 34ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 {
  margin: 0 0 4px; font-family: 'Jost', sans-serif; font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: #8A7C74;
}
.footer-col a, .footer-col span { font-size: 15px; color: #E9E1DB; text-decoration: none; }
.footer-col a:hover { color: var(--rose-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px; color: #8A7C74;
}

/* ─────────── мобильная панель ─────────── */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(74, 54, 44, 0.08);
}
.mobile-bar .btn { flex: 1; }

/* ─────────── появление ─────────── */

.reveal { opacity: 0; translate: 0 14px; }
.reveal.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity 640ms var(--ease), translate 640ms var(--ease);
  transition-delay: calc((var(--i, 1) - 1) * 85ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .reveal.is-in { transition: none; }
}

/* ─────────── адаптив ─────────── */

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav + .header-actions { margin-inline-start: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; }
  .contacts-grid, .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-bar { display: flex; }
  .reviews { columns: 1; }
  .hero-stats { gap: 22px; }
  .price-table td { padding: 11px 16px; }
  .price-group summary { padding: 18px 16px; }
  .site-footer { padding-bottom: 30px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 760px) {
  body.is-menu-open { overflow: hidden; }
}

/* ══════════════════════════════════════════════════════════
   Атмосфера: текстура, орнамент, движение
   ══════════════════════════════════════════════════════════ */

/* Фон: едва различимый ряд арок — та же форма, что у фотографий.
   Не декор ради декора: страница перестаёт быть плоским листом. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='140' viewBox='0 0 120 140'%3E%3Cg fill='none' stroke='%23B84C77' stroke-width='1' opacity='0.055'%3E%3Cpath d='M20 140V60a40 40 0 0 1 80 0v80'/%3E%3Cpath d='M40 140V62a20 20 0 0 1 40 0v78'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 340px 400px;
  /* затухает книзу: вверху даёт фактуру, ниже не мешает читать */
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,0.25) 55%, transparent);
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,0.25) 55%, transparent);
  opacity: 0.55;
}

/* Индикатор прочитанного */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress i {
  display: block; height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--rose-soft), var(--rose));
  transition: width 90ms linear;
}

/* Меандр — греческий орнамент между секциями */
.meander {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cpath d='M2 24V6h20v12H10v-6h6' fill='none' stroke='%23B84C77' stroke-width='2' opacity='0.34'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.section + .meander, .meander + .section { margin-top: 0; }

/* Hero: арка едет медленнее страницы */
.hero-media .arch { will-change: transform; }

/* Заголовок появляется построчно */
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  translate: 0 100%;
  transition: translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero h1.is-in .line > span { translate: 0 0; }
.hero h1 .line:nth-child(2) > span { transition-delay: 110ms; }

/* Услуги: линия-подчёркивание растёт при наведении */
.service { position: relative; overflow: hidden; }
.service::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px;
  background: var(--rose-soft);
  scale: 0 1; transform-origin: left;
  transition: scale 340ms var(--ease);
}
.service:hover::after { scale: 1 1; }

/* Галерея: вкладки и живой ховер */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button {
  min-height: 42px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 15px; cursor: pointer;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 200ms; transition-timing-function: var(--ease);
}
.tabs button:hover { color: var(--ink); background: var(--card); }
.tabs button:active { scale: 0.96; }
.tabs button[aria-selected="true"] {
  background: var(--rose); color: #fff; box-shadow: none;
}

.gallery figure {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.gallery figure[hidden] { display: none; }
.gallery img {
  box-shadow: none;
  transition: scale 700ms var(--ease), filter 400ms var(--ease);
}
.gallery figure:hover img { scale: 1.06; filter: saturate(1.06); }
.gallery figure::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(42, 36, 34, 0.28));
  opacity: 0; transition: opacity 340ms var(--ease);
}
.gallery figure:hover::after { opacity: 1; }
.gallery.is-switching figure { opacity: 0; translate: 0 8px; }
.gallery figure { transition: opacity 320ms var(--ease), translate 320ms var(--ease); }

/* Прайс: раскрытие без рывка */
.price-group .price-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.price-group[open] .price-body { grid-template-rows: 1fr; }
.price-group .price-body > div { overflow: hidden; }
.price-group summary:hover { background: var(--rose-wash); }
.price-group summary { transition: background-color 200ms var(--ease); }

/* Карточки мастеров: тонкая арка проступает при наведении */
.master { position: relative; overflow: hidden; }
.master::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 130px; height: 160px;
  border: 1.5px solid var(--rose-soft);
  border-radius: 999px 999px 0 0;
  opacity: 0; translate: 0 10px;
  transition: opacity 420ms var(--ease), translate 420ms var(--ease);
}
.master:hover::before { opacity: 0.5; translate: 0 0; }

/* Контакты: крупный номер как главная кнопка блока */
.contact-main {
  display: grid; gap: 4px;
  margin: 22px 0 14px; padding: 18px 22px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}
.contact-main:hover { translate: 0 -2px; box-shadow: 0 2px 4px rgba(74,54,44,.07), 0 14px 32px rgba(74,54,44,.10); }
.contact-main:active { scale: 0.99; }
.contact-main-label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contact-main-value { font-family: 'Prata', serif; font-size: clamp(24px, 2.6vw, 31px); }

.contact-extra { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }
.contact-extra a { color: var(--rose-deep); text-underline-offset: 3px; }

.facts { display: grid; gap: 1px; margin: 0 0 26px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts > div { background: var(--paper-tint); padding: 14px 18px; }
.section-tint .facts > div { background: var(--card); }
.facts dt { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.facts dd b { color: var(--ink); }

/* Появление: чуть заметный масштаб вместо простого сдвига */
.reveal { opacity: 0; translate: 0 16px; scale: 0.995; }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; transition-property: opacity, translate, scale; }

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .hero h1 .line > span { translate: 0 0; }
  .gallery img, .master::before, .service::after { transition: none; }
}
