/* =========================================================
   Студия Виктории Рассохиной — стили
   Шрифты лежат в /fonts (самохостинг, без Google Fonts)
   ========================================================= */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; 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: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500; 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: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  font-weight: 600; 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: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Токены ---------- */
:root {
  /* цвет */
  --bg: #FBF8F6;
  --bg-warm: #F5EFEA;
  --surface: #FFFFFF;
  --ink: #2A2626;            /* основной текст и тёмные кнопки */
  --ink-2: #4B4545;          /* вторичный текст, 8.9:1 */
  --muted: #6B6262;          /* подписи, 5.6:1 */
  --line: #E8E2DB;
  --rose: #E6B8B8;           /* декоративный, НЕ для текста */
  --rose-soft: #F9EEEE;
  --rose-mid: #F1D3D3;
  --rose-ink: #9A4F5B;       /* розовый для текста, 5.4:1 на фоне */
  --rose-glow: rgba(214, 159, 159, 0.28);
  --wa: #25D366;
  --wa-hover: #1DA85C;
  --max: #6B4DB0;
  --max-hover: #58409A;
  --ok: #107C41;

  /* шрифты */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* шкала отступов (8-кратная) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* радиусы: внешний = внутренний + отступ */
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* тени: слоями, вместо рамок для глубины */
  --shadow-1: 0 1px 2px rgba(42, 38, 38, .04), 0 2px 8px rgba(42, 38, 38, .05);
  --shadow-2: 0 1px 2px rgba(42, 38, 38, .04), 0 8px 24px -4px rgba(42, 38, 38, .08), 0 16px 40px -8px rgba(154, 79, 91, .08);
  --shadow-3: 0 2px 4px rgba(42, 38, 38, .05), 0 16px 40px -8px rgba(154, 79, 91, .22);

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- База ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s5); }

/* Видимый фокус (WCAG 2.4.7): две полосы, читается на светлом и тёмном */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
  border-radius: var(--r-sm);
}
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--ink); }

/* Ссылка «Перейти к содержимому» */
.skip-link {
  position: fixed; top: var(--s3); left: var(--s3); z-index: 1000;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r-pill);
  font-weight: 600; transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Появление при прокрутке (только если JS жив) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.visible {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-size: .95rem; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
  transition-property: background-color, color, border-color, box-shadow, scale;
  transition-duration: .15s; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { scale: .96; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #10261A; }
.btn-max { background: var(--max); color: #fff; }
.btn-phone { background: var(--rose); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 var(--s5); font-size: .875rem; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--rose-ink); box-shadow: var(--shadow-3); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .btn-wa:hover { background: var(--wa-hover); }
  .btn-max:hover { background: var(--max-hover); }
  .btn-phone:hover { background: var(--rose-mid); }
}

/* ---------- Навигация ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(251, 248, 246, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(232, 226, 219, .8);
  transition: box-shadow .3s var(--ease-out);
}
.navbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -8px rgba(42, 38, 38, .08); }
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.nav-logo { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.logo-mark {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--surface); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .08), var(--shadow-1);
}
.logo-mark img { width: 80%; height: 80%; object-fit: contain; }
.nav-logo-text { min-width: 0; line-height: 1.25; }
.nav-logo-text strong { display: block; font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logo-text small { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: var(--s1); }
.nav-links a:not(.btn) {
  padding: var(--s2) var(--s4); border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition-property: background-color, color; transition-duration: .15s; transition-timing-function: ease-out;
}
.nav-links .btn { margin-inline-start: var(--s3); }
@media (hover: hover) { .nav-links a:not(.btn):hover { background: var(--rose-soft); color: var(--ink); } }

.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font-size: 1.25rem; place-items: center; flex-shrink: 0;
}

/* Мобильное меню */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(42, 38, 38, .4);
  opacity: 0; visibility: hidden; transition: opacity .25s ease-out, visibility .25s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease-out, visibility 0s; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 201;
  width: 320px; max-width: 88vw; background: var(--surface);
  display: flex; flex-direction: column; padding: var(--s5);
  padding-top: max(var(--s5), env(safe-area-inset-top, 0px));
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease-out), visibility .3s;
  overscroll-behavior: contain; overflow-y: auto;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s var(--ease-out), visibility 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); }
.drawer-head span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.drawer-close {
  width: 48px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 1.15rem;
}
.drawer nav a {
  display: flex; align-items: center; gap: var(--s3); min-height: 56px;
  font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line);
}
.drawer nav a i { color: var(--rose-ink); width: 20px; text-align: center; }
.drawer .btn { margin-top: auto; width: 100%; }
.drawer-foot { margin-top: auto; padding-top: var(--s5); padding-bottom: max(0px, var(--safe-bottom)); display: grid; gap: var(--s3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s8) 0 calc(var(--s9) + var(--s5));
  background:
    radial-gradient(60% 50% at 85% 10%, var(--rose-glow), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(232, 226, 219, .8), transparent 70%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg-warm) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s8); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 6px var(--s4) 6px var(--s3); margin-bottom: var(--s5);
  background: var(--surface); border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .06), var(--shadow-1);
}
.hero-badge .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1E9E57; }
.hero-badge .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1E9E57; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: var(--s5);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--rose-ink); display: block; }
.hero-sub { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 34em; margin-bottom: var(--s6); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--s4); }
.hero-stats { display: flex; gap: var(--s7); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(42, 38, 38, .1); }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: var(--s2); font-size: .8125rem; color: var(--muted); }

.hero-photo { justify-self: center; width: 100%; max-width: 420px; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 24px -20px -20px 24px; z-index: 0;
  border-radius: var(--r-xl); background: var(--rose-mid);
}
.photo-card {
  position: relative; z-index: 1; padding: var(--s3);
  background: var(--surface); border-radius: var(--r-xl); /* 32 = 20 внутренний + 12 отступ */
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .06), var(--shadow-2);
}
.photo-frame { aspect-ratio: 4 / 5.4; border-radius: 20px; overflow: hidden; background: #F4F4F4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.photo-card figcaption {
  padding: var(--s4) var(--s2) var(--s2); text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-ink);
}

/* Первое появление hero (один раз, без зависимости от скролла) */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero h1, .hero-sub, .hero-buttons, .hero-stats, .hero-photo { animation: fadeUp .7s var(--ease-out) both; }
  .hero h1 { animation-delay: .08s; } .hero-sub { animation-delay: .16s; } .hero-buttons { animation-delay: .24s; }
  .hero-stats { animation-delay: .32s; } .hero-photo { animation-delay: .2s; }
  .hero-badge .dot::after { animation: pulseRing 2s ease-out infinite; }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--s9); }
.section-head { text-align: center; margin-bottom: var(--s7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3);
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ink);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -.01em; }
.section-desc { max-width: 34em; margin: var(--s4) auto 0; font-size: 1.0625rem; color: var(--muted); }

/* ---------- Преимущества ---------- */
.advantages-wrap { margin-top: calc(var(--s9) * -.62); position: relative; z-index: 2; }
.advantages {
  background: var(--surface); border-radius: var(--r-xl); padding: var(--s6);
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-2);
}
.advantages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.adv-item { padding: var(--s5) var(--s4); border-radius: var(--r-lg); text-align: center; }
.adv-icon {
  width: 56px; height: 56px; margin: 0 auto var(--s4); border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.25rem; color: var(--rose-ink);
  background: linear-gradient(145deg, var(--rose-soft), var(--rose-mid));
}
.adv-title { font-size: 1rem; font-weight: 600; margin-bottom: var(--s2); }
.adv-item p { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ---------- О студии + галерея ---------- */
.about-text { max-width: 44rem; margin-inline: auto; text-align: center; font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.about-text p + p { margin-top: var(--s4); }
.about-text strong { color: var(--ink); font-weight: 600; }

.gallery { margin-top: var(--s7); position: relative; }
.gallery-track {
  display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: var(--s2) var(--s5) var(--s5); margin-inline: calc(var(--s5) * -1);
  scroll-padding-inline: var(--s5);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 clamp(240px, 27vw, 340px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: var(--r-lg); overflow: hidden; background: var(--rose-soft); box-shadow: var(--shadow-2);
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item::after { /* контур фото чистым чёрным 10% */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px;
}
.gallery-nav { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s2); }
.round-nav {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .95rem;
  transition-property: background-color, color, scale; transition-duration: .15s; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.round-nav:active:not(:disabled) { scale: .96; }
.round-nav:disabled { opacity: .4; cursor: default; }
@media (hover: hover) { .round-nav:hover:not(:disabled) { background: var(--ink); color: #fff; } }

/* ---------- Мастера ---------- */
.masters { background: linear-gradient(180deg, transparent, var(--rose-soft) 30%, var(--rose-soft) 70%, transparent); }
.masters-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); max-width: 1000px; margin-inline: auto; }
.master-card {
  background: var(--surface); border-radius: var(--r-xl); padding: var(--s3);
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-1);
  transition-property: box-shadow, translate; transition-duration: .25s; transition-timing-function: var(--ease-out);
}
@media (hover: hover) { .master-card:hover { translate: 0 -6px; box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-3); } }
.master-img { position: relative; aspect-ratio: 4 / 4.6; border-radius: 20px; overflow: hidden; background: linear-gradient(145deg, var(--rose-soft), var(--bg-warm)); display: grid; place-items: center; }
.master-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.master-img .placeholder { font-size: 3rem; color: var(--rose-ink); opacity: .55; }
.master-tag {
  position: absolute; top: var(--s3); left: var(--s3); padding: 6px var(--s3);
  background: var(--surface); border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; box-shadow: var(--shadow-1);
}
.master-tag i { color: #B7791F; margin-right: 4px; }
.master-info { padding: var(--s5) var(--s3) var(--s3); }
.master-info h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.master-role { margin: var(--s1) 0 var(--s3); font-size: .875rem; font-weight: 600; color: var(--rose-ink); }
.master-info p { font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- Прайс-лист ---------- */
.services-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-bottom: var(--s6); }
.tab-btn {
  min-height: 48px; padding: 0 var(--s5); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--surface); border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition-property: background-color, color, border-color, scale; transition-duration: .15s; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn i { font-size: .8rem; color: var(--rose-ink); }
.tab-btn:active { scale: .96; }
.tab-btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-btn[aria-selected="true"] i { color: var(--rose); }
@media (hover: hover) { .tab-btn[aria-selected="false"]:hover { background: var(--rose-soft); border-color: var(--rose); color: var(--ink); } }

.services-panel {
  max-width: 920px; margin-inline: auto; padding: var(--s6);
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-2);
}
.service-category { display: none; }
.service-category.active { display: flex; flex-direction: column; gap: var(--s3); animation: fadeIn .25s ease-out; }
.service-category:focus-visible { outline-offset: 6px; }

.price-item, .price-complex {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5); border-radius: var(--r-md);
  background: var(--bg); box-shadow: inset 0 0 0 1px rgba(42, 38, 38, .06);
  transition-property: background-color, box-shadow; transition-duration: .15s; transition-timing-function: ease-out;
}
.price-complex { background: linear-gradient(135deg, var(--rose-soft), var(--bg)); box-shadow: inset 0 0 0 1px rgba(154, 79, 91, .22); }
@media (hover: hover) { .price-item:hover, .price-complex:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rose), var(--shadow-1); } }
.price-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-size: 1rem; color: var(--rose-ink); background: var(--rose-soft);
}
.price-name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.price-desc { margin-top: var(--s1); font-size: .875rem; line-height: 1.55; color: var(--muted); }
.price-val {
  font-size: 1rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
  padding: var(--s2) var(--s4); border-radius: var(--r-pill); background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(42, 38, 38, .1);
}
.price-val.has-old { display: inline-flex; align-items: baseline; gap: var(--s2); background: var(--rose-soft); box-shadow: inset 0 0 0 1px rgba(154, 79, 91, .3); }
.price-old { font-size: .8125rem; font-weight: 500; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--rose-ink); }
.price-now { color: var(--rose-ink); }
.price-sub { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.price-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.price-sub:first-child { margin-top: 0; }
.gift-note {
  display: flex; align-items: center; gap: var(--s4); margin-top: var(--s2);
  padding: var(--s4) var(--s5); border-radius: var(--r-md);
  border: 1.5px dashed var(--rose-ink); background: var(--surface); font-size: .9375rem; color: var(--ink-2);
}
.gift-note i { color: var(--rose-ink); font-size: 1.25rem; flex-shrink: 0; }
.services-state { padding: var(--s7) var(--s4); text-align: center; color: var(--muted); }
.services-state a { color: var(--rose-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.services-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s4); text-align: center; color: var(--muted); }

/* Панель администратора (?admin=1) */
.admin-panel {
  display: none; max-width: 920px; margin: 0 auto var(--s6); padding: var(--s5); text-align: center;
  background: var(--surface); border-radius: var(--r-lg); border: 2px dashed var(--rose-ink);
}
.admin-panel.active { display: block; }
.admin-panel h3 { font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-bottom: var(--s2); }
.admin-panel p { font-size: .875rem; color: var(--ink-2); margin-bottom: var(--s4); max-width: 40rem; margin-inline: auto; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.btn-excel {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5);
  border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); cursor: pointer;
  font-size: .875rem; font-weight: 600;
}
.btn-excel:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-excel.primary { background: var(--ok); border-color: var(--ok); color: #fff; }
.admin-status { margin-top: var(--s4); font-size: .875rem; text-align: left; max-width: 40rem; margin-inline: auto; }
.admin-status:empty { display: none; }
.admin-status .ok { color: var(--ok); font-weight: 600; }
.admin-status .warn { margin-top: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: #FFF6E5; color: #6B4A00; }
.admin-status .warn ul { margin-top: var(--s1); padding-inline-start: var(--s4); list-style: disc; }

/* ---------- Карта и контакты ---------- */
.map-card { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-2); }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-attrib { position: relative; overflow: hidden; }
.map-attrib a { position: absolute; left: 0; font-size: 12px; color: #fff; opacity: .01; height: 1px; overflow: hidden; }
.map-info { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s7); padding: var(--s5) var(--s6); background: var(--bg); }
.map-info div { display: flex; align-items: center; gap: var(--s3); font-size: .9375rem; }
.map-info i { color: var(--rose-ink); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.contact-card { padding: var(--s6); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px rgba(42, 38, 38, .05), var(--shadow-1); }
.contact-card h3 { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.contact-card h3 i { color: var(--rose-ink); font-size: 1.1rem; }
.contact-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: 1rem; }
.contact-row i { width: 20px; text-align: center; color: var(--rose-ink); flex-shrink: 0; }
.contact-row a { text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; text-decoration-thickness: from-font; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-row a:hover { color: var(--rose-ink); } }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.note-box { margin-top: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--rose-soft); font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: var(--s7); padding: var(--s8) 0 var(--s5); background: var(--ink); color: #B5AEAE; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s7); margin-bottom: var(--s7); }
.footer-brand { display: flex; align-items: center; gap: var(--s3); }
.footer-brand strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; }
.footer-brand small { color: #B5AEAE; font-size: .75rem; }
.footer-about { margin-top: var(--s4); max-width: 26rem; font-size: .9375rem; line-height: 1.65; }
.footer-col h3 { margin-bottom: var(--s4); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; padding: var(--s2) 0; font-size: .9375rem; }
@media (hover: hover) { .footer-col a:hover { color: #fff; } }
.footer-bottom { padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .8125rem; line-height: 1.7; }

/* ---------- Плавающие элементы ---------- */
.sticky-buttons { position: fixed; right: var(--s5); bottom: calc(var(--s5) + var(--safe-bottom)); z-index: 99; display: flex; gap: var(--s3); transition: opacity .25s ease-out, visibility .25s; }
.sticky-buttons.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.float-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: 0 6px 20px rgba(42, 38, 38, .22);
  transition-property: scale, box-shadow; transition-duration: .15s; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.float-btn:active { scale: .96; }
.float-btn.wa { background: var(--wa); color: #10261A; }
.float-btn.max { background: var(--max); color: #fff; }
.float-btn.phone { background: var(--rose); color: var(--ink); }
.float-btn .tip {
  position: absolute; right: calc(100% + 10px); padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: .8125rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease-out;
}
@media (hover: hover) { .float-btn:hover { scale: 1.06; } .float-btn:hover .tip { opacity: 1; } }

.scroll-top {
  position: fixed; right: var(--s5); bottom: calc(var(--s5) + 52px + var(--s3) + var(--safe-bottom)); z-index: 98;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .9rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease-out, transform .25s var(--ease-out), visibility .25s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }

.cookie-banner {
  position: fixed; left: var(--s5); bottom: calc(var(--s5) + var(--safe-bottom)); z-index: 1000; max-width: 380px;
  padding: var(--s5); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 0 0 1px rgba(42, 38, 38, .06), 0 16px 48px rgba(42, 38, 38, .18);
  display: grid; gap: var(--s3); transform: translateY(160%); visibility: hidden;
  transition: transform .4s var(--ease-out), visibility .4s;
}
.cookie-banner.show { transform: none; visibility: visible; transition: transform .4s var(--ease-out), visibility 0s; }
.cookie-banner p { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.cookie-banner .btn { justify-self: start; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .logo-mark { width: 44px; height: 44px; }
  .hero { padding: var(--s7) 0 calc(var(--s8) + var(--s6)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-stats { gap: var(--s6); }
  .hero-photo { max-width: 320px; }
  .hero-photo::before { inset: 16px -12px -12px 16px; }
  .section { padding-block: var(--s8); }
  .section-head { margin-bottom: var(--s6); }
  .advantages-wrap { margin-top: calc(var(--s7) * -1); }
  .advantages { padding: var(--s4); border-radius: var(--r-lg); }
  .masters-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: var(--s5); border-radius: var(--r-lg); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .map-card { border-radius: var(--r-lg); }
  .map-card iframe { height: 300px; }
  .map-info { flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s5); }
  .services-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--s5) * -1); padding: 2px var(--s5) var(--s2); scroll-padding-inline: var(--s5); }
  .services-tabs::-webkit-scrollbar { display: none; }
  .services-panel { padding: var(--s3); border-radius: var(--r-lg); }
  .sticky-buttons { right: var(--s4); bottom: calc(var(--s4) + var(--safe-bottom)); gap: var(--s2); }
  .float-btn { width: 44px; height: 44px; font-size: 1.2rem; }
  .float-btn .tip { display: none; }
  .scroll-top { right: var(--s4); bottom: calc(var(--s4) + 44px + var(--s3) + var(--safe-bottom)); }
  .cookie-banner { left: var(--s4); right: var(--s4); bottom: calc(var(--s4) + 48px + var(--s3) + var(--safe-bottom)); max-width: none; }
}
@media (max-width: 560px) {
  .container { padding-inline: var(--s4); }
  .services-tabs { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
  .gallery-track { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { gap: var(--s5); }
  .stat-num { font-size: 2rem; }
  .advantages-grid { gap: var(--s2); }
  .adv-item { padding: var(--s4) var(--s2); }
  .adv-item p { font-size: .8125rem; }
  .price-item, .price-complex { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4); gap: var(--s3); }
  .price-item .price-val, .price-complex .price-val { grid-column: 2; justify-self: start; }
  .price-icon { width: 40px; height: 40px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .nav-logo-text small { display: none; }
  .nav-logo-text strong { white-space: normal; font-size: .875rem; line-height: 1.2; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { transform: none; }
}
@media (forced-colors: active) {
  .btn, .price-item, .price-complex, .photo-card, .master-card, .advantages, .services-panel, .contact-card, .map-card { border: 1px solid CanvasText; }
}
