/* ================= Барбершоп «Кедр» ================= */

:root {
  --bark: #1c120c;
  --wood-dark: #2b1b11;
  --wood: #5a3a22;
  --wood-light: #8a5d38;
  --birch: #f1e7d6;
  --birch-2: #e5d6bd;
  --ink: #2a1a10;
  --brass: #c9a26b;
  --brass-light: #e3c592;
  --needle: #2f4a35;
  --needle-dark: #0f1c14;
  --gold-text: #b9976a;
  --forest: #0d1a12;
  --forest-2: #12241a;
  --black: #090a08;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  /* боковой отступ: контент растянут на всю ширину экрана, по краям — поле от 16 до 80px */
  --gutter: clamp(16px, 5vw, 80px);

  /* Древесные волокна: шум, растянутый по горизонтали */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='800'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.11' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.04 0 0 0 0 0.02 1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='800'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.12' numOctaves='4' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.15 1.2 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--birch);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 64px); }
h3 { font-size: 26px; }

.container { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }

/* Тёмное дерево */
.wood {
  background-color: #1d120a;
  background-image: var(--grain), linear-gradient(180deg, #23160c 0%, #160d07 100%);
  color: var(--birch);
}

/* Тёмно-зелёная хвоя */
.section--forest {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(63,106,74,.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(47,74,53,.25), transparent 60%),
    linear-gradient(180deg, var(--forest-2) 0%, var(--forest) 100%);
}

/* Чёрный */
.section--black {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,107,.07), transparent 60%),
    var(--black);
}

/* Доска из тёмного дерева */
.plank {
  background-color: #1f140b;
  background-image: var(--grain), linear-gradient(180deg, #2a1b10, #1a1009);
  border: 1px solid rgba(201, 162, 107, .22);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(227,197,146,.08) inset, 0 24px 50px -24px rgba(0, 0, 0, .9);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ================= Кнопки ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  font: 600 15px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bark);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  border: 0; border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(201,162,107,.8);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--birch); box-shadow: inset 0 0 0 1px rgba(241,231,214,.45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass-light); }
.btn--small { padding: 11px 18px; font-size: 13px; }

/* ================= Шапка ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  color: var(--birch);
  transition: background-color .35s, padding .35s, box-shadow .35s;
}
.header.scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(9,12,9,.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px #000;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__tree { width: 30px; height: 36px; color: var(--brass); }
.logo__text { font: 900 23px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.logo__text small { display: block; font: 600 10px/1.6 var(--sans); letter-spacing: .35em; color: var(--brass); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--brass); transition: right .3s; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }
.burger { display: none; width: 40px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--birch); transition: transform .3s; }

/* ================= Герой ================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
  background: linear-gradient(180deg, #030504 0%, #060d09 40%, #0b1811 72%, #0a150f 100%);
}
/* мягкий переход в следующий раздел */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  background: linear-gradient(180deg, rgba(9,10,8,0), #090a08);
  pointer-events: none;
}

/* Лес — фотография с туманом */
.forest { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.forest__photo {
  position: absolute; inset: -4%;
  background: #0b140e url("../images/forest.webp") center 35% / cover no-repeat;
  filter: saturate(.95) brightness(.98) contrast(1.05);
}
.forest::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,4,.8) 0%, rgba(3,6,4,.5) 38%, rgba(3,6,4,.05) 72%, rgba(3,6,4,.15) 100%),
    linear-gradient(180deg, rgba(3,6,4,.55) 0%, rgba(3,6,4,0) 30%);
}
/* Реалистичный туман: рисуется шейдером на canvas (js/main.js) */
.forest__fog { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.forest.has-fog .forest__mist { display: none; }

/* Запасной туман для браузеров без WebGL: слои дымки плывут в разные стороны */
.forest__mist {
  position: absolute; left: -50%; z-index: 1;
  width: 200%; height: 60%;
  background:
    radial-gradient(ellipse 14% 38% at 10% 50%, rgba(200,214,204,.34), transparent 70%),
    radial-gradient(ellipse 18% 30% at 30% 40%, rgba(185,202,190,.28), transparent 70%),
    radial-gradient(ellipse 13% 42% at 52% 58%, rgba(210,222,212,.32), transparent 70%),
    radial-gradient(ellipse 17% 34% at 72% 45%, rgba(190,205,195,.27), transparent 70%),
    radial-gradient(ellipse 15% 36% at 92% 52%, rgba(200,214,204,.3), transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: mistDrift 18s ease-in-out infinite alternate, mistShimmer 6s ease-in-out infinite alternate;
}
.forest__mist--1 { top: -12%; }
.forest__mist--2 { top: 22%; height: 55%; opacity: .8; animation-name: mistDriftBack, mistShimmer; animation-duration: 24s, 8s; animation-delay: -6s, -3s; }
.forest__mist--3 { bottom: -15%; height: 55%; animation-duration: 21s, 5s; animation-delay: -12s, -2s; }
.forest__mist--4 { top: 5%; height: 90%; opacity: .6; filter: blur(50px); animation-name: mistDriftBack, mistShimmer; animation-duration: 30s, 10s; animation-delay: -15s, -5s; }
@keyframes mistDrift {
  0%   { transform: translate3d(-16%, 2%, 0) scale(1); }
  35%  { transform: translate3d(-4%, -4%, 0) scale(1.1); }
  70%  { transform: translate3d(8%, 3%, 0) scale(1.04); }
  100% { transform: translate3d(16%, -2%, 0) scale(1.12); }
}
@keyframes mistDriftBack {
  0%   { transform: translate3d(15%, -2%, 0) scale(1.08); }
  40%  { transform: translate3d(3%, 4%, 0) scale(1); }
  75%  { transform: translate3d(-9%, -3%, 0) scale(1.12); }
  100% { transform: translate3d(-16%, 2%, 0) scale(1.03); }
}
@keyframes mistShimmer {
  0%   { opacity: .3; }
  40%  { opacity: .95; }
  70%  { opacity: .5; }
  100% { opacity: 1; }
}
/* Контент */
.hero__inner {
  position: relative; z-index: 2;
  width: calc(100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
}
.hero__copy { position: relative; }

/* Заголовок: прописной Playfair + золотой курсив, слова появляются целиком */
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 80px);
  line-height: 1.12;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: #efe3cc;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.hero__title .line { display: block; }
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.22em;
  line-height: .9;
  text-transform: none;
  letter-spacing: 0;
  padding-right: .06em;
  color: transparent;
  background: linear-gradient(180deg, #ffe7b8 0%, #e2b56f 55%, #b07a3c 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
}
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  filter: blur(10px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter .9s ease;
}
.hero__title .w.in { opacity: 1; transform: none; filter: blur(0); }

/* Линия-лезвие под заголовком */
.hero__blade {
  position: relative; display: block;
  width: min(520px, 85%); height: 1px;
  margin: 34px 0 26px;
  background: linear-gradient(90deg, var(--brass-light), rgba(201,162,107,0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.7,0,.2,1);
}
.hero__blade::after {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 60px; height: 5px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,240,210,.9), transparent 70%);
  opacity: 0;
}
.hero.carved .hero__blade { transform: scaleX(1); }
.hero.carved .hero__blade::after { animation: glint 1.4s ease .3s; }
@keyframes glint { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: 90%; opacity: 0; } }

.hero__text { max-width: 30em; margin: 0 0 34px; font-size: 18px; color: rgba(241,231,214,.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Карточка с часами работы */
.hero__card {
  display: grid; gap: 16px;
  min-width: 250px;
  padding: 24px 26px;
  background: rgba(8,14,10,.55);
  border: 1px solid rgba(201,162,107,.2);
  border-left: 2px solid var(--brass);
  backdrop-filter: blur(8px);
}
.hero__card span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.hero__card b { font-weight: 600; font-size: 16px; }
.hero__card a { text-decoration: none; }

/* Последовательность появления */
.hero__text, .hero__actions, .hero__card { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.hero.carved .hero__text { opacity: 1; transform: none; transition-delay: .35s; }
.hero.carved .hero__actions { opacity: 1; transform: none; transition-delay: .5s; }
.hero.carved .hero__card { opacity: 1; transform: none; transition-delay: .75s; }

/* ================= Секции ================= */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section--dark h2 { color: var(--birch); }

.section__lead { max-width: 34em; margin: 18px 0 0; color: rgba(241,231,214,.68); }

/* Услуги — карточки с латунными уголками */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 30px 26px;
  background: linear-gradient(160deg, rgba(14,26,19,.86), rgba(6,9,7,.92));
  border: 1px solid rgba(201,162,107,.14);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service::before, .service::after {
  content: ""; position: absolute;
  width: 22px; height: 22px;
  border: 0 solid var(--brass);
  transition: width .35s ease, height .35s ease;
}
.service::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.service::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.service:hover { transform: translateY(-5px); border-color: rgba(201,162,107,.35); box-shadow: 0 26px 50px -26px #000; }
.service:hover::before, .service:hover::after { width: 48px; height: 48px; }
.service h3 { margin-bottom: 12px; font-size: 29px; color: var(--birch); }
.service p { flex: 1; margin: 0; font-size: 15px; color: rgba(241,231,214,.62); }
.service footer {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(201,162,107,.16);
}
.service__time { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,231,214,.45); }
.service b { font: 700 32px/1 var(--serif); color: var(--brass-light); }
.service--accent {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(227,197,146,.22), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(47,90,51,.35), transparent 70%),
    linear-gradient(160deg, #10221a, #050806);
  border-color: rgba(201,162,107,.55);
  box-shadow: inset 0 0 0 1px rgba(227,197,146,.08), 0 0 50px -12px rgba(201,162,107,.35);
}
.service--accent h3 { color: var(--brass-light); }
.service__tag {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bark);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  border-radius: 20px;
}

/* Почему «Кедр» — тёмные деревянные рейки, зелёный свет, водяной знак */
.section--why {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at var(--glow-x, 50%) 45%, rgba(47,90,51,.30), transparent 70%),
    linear-gradient(180deg, rgba(9,10,8,.95) 0%, rgba(9,10,8,.25) 22%, rgba(9,10,8,.25) 78%, rgba(9,10,8,.95) 100%),
    repeating-linear-gradient(90deg, #120d08 0 44px, #1a120b 44px 46px, #060403 46px 50px),
    #0b0906;
}
.section--why + .section--why::before {
  content: ""; position: absolute; top: 0; left: 50%; z-index: 1;
  width: min(760px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(201,162,107,.45), transparent);
}
.section--why .container { position: relative; z-index: 1; }
.why__title {
  font: 800 clamp(32px, 5vw, 58px)/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.why__title em {
  font: italic 600 1.25em/1 var(--serif);
  text-transform: none;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(180deg, #ffe7b8 0%, #e2b56f 55%, #b07a3c 100%);
  -webkit-background-clip: text; background-clip: text;
  padding-right: .05em;
}
.why__lead { margin: 14px 0 0; font: italic 500 22px/1.4 var(--serif); color: rgba(241,231,214,.78); }
.section--why .feature h3 { margin-bottom: 14px; font: 700 14px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); }
.section--why .feature p { font-size: 16px; line-height: 1.7; color: rgba(241,231,214,.75); }

/* Преимущества — иконки в латунных медальонах */
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { position: relative; padding: 8px 28px; text-align: center; }
.feature + .feature::before {
  content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(transparent, rgba(201,162,107,.45), transparent);
}
/* Медальоны: матовый чёрный в гранёном золотом ободке, золотая иконка */
@property --rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.feature__icon {
  position: relative;
  display: grid; place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    radial-gradient(circle at 50% 50%, #12110f 0%, #0b0a09 60%, #050505 100%) padding-box,
    conic-gradient(from var(--rim), #5a3c16, #d9b878, #8a6128, #4a3112, #c9a061, #f0d9a4, #7a5626, #5a3c16) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.6),
    inset 0 -10px 18px rgba(0,0,0,.55),
    0 16px 30px -12px rgba(0,0,0,.9),
    0 0 34px -10px rgba(201,162,107,.35);
  animation: rim 12s linear infinite;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
@keyframes rim { to { --rim: 360deg; } }
/* медленно вращающаяся пунктирная орбита */
.feature__icon::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(227,197,146,.3);
  animation: orbit 40s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.feature__icon svg {
  position: relative; z-index: 1;
  width: 34px; height: 34px;
  fill: none; stroke: var(--brass-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(227,197,146,.45));
  transition: filter .4s ease, transform .5s ease;
}
.feature:hover .feature__icon {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.6),
    inset 0 -10px 18px rgba(0,0,0,.5),
    0 22px 36px -12px rgba(0,0,0,.9),
    0 0 50px -8px rgba(227,197,146,.55);
}
.feature:hover .feature__icon svg { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(240,215,160,.75)); }
.feature:hover .feature__icon::before { border-color: rgba(227,197,146,.65); }
.feature h3 { margin-bottom: 12px; color: var(--birch); }
.feature p { margin: 0; color: rgba(241,231,214,.7); font-size: 15px; }

/* Мастера — медальоны с инициалами */
.masters { display: grid; grid-template-columns: repeat(3, 1fr); }
.master { position: relative; padding: 8px 30px; text-align: center; }
.master + .master::before {
  content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(transparent, rgba(201,162,107,.45), transparent);
}
.master__medal {
  position: relative;
  display: grid; place-items: center;
  width: 150px; height: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    radial-gradient(circle at 50% 50%, #12110f 0%, #0b0a09 60%, #050505 100%) padding-box,
    conic-gradient(from var(--rim), #5a3c16, #d9b878, #8a6128, #4a3112, #c9a061, #f0d9a4, #7a5626, #5a3c16) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.6),
    inset 0 -16px 28px rgba(0,0,0,.55),
    0 30px 50px -24px rgba(0,0,0,.95),
    0 0 50px -14px rgba(201,162,107,.35);
  animation: rim 12s linear infinite;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
}
.master:nth-child(2) .master__medal { animation-delay: -4s; }
.master:nth-child(3) .master__medal { animation-delay: -8s; }
/* пунктирная орбита */
.master__medal::before {
  content: ""; position: absolute; inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(227,197,146,.3);
  animation: orbit 50s linear infinite;
}
.master__medal span {
  position: relative; z-index: 1;
  font: italic 600 78px/1 var(--serif);
  color: transparent;
  background: linear-gradient(180deg, #ffe7b8 0%, #e2b56f 55%, #b07a3c 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(227,197,146,.35));
  transition: filter .4s ease, transform .5s ease;
}
.master:hover .master__medal {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.6),
    inset 0 -16px 28px rgba(0,0,0,.5),
    0 40px 60px -24px rgba(0,0,0,.95),
    0 0 70px -12px rgba(227,197,146,.55);
}
.master:hover .master__medal span { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(240,215,160,.6)); }
.master:hover .master__medal::before { border-color: rgba(227,197,146,.65); }
.master h3 { margin-bottom: 12px; font: 800 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--birch); }
/* Рейтинг мастера: звёзды заполнены золотом ровно по оценке (--r из 5) */
.master__rating {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.master__rating .stars {
  font-size: 15px; letter-spacing: 2px; line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--brass-light) calc(var(--r) / 5 * 100%), rgba(201,162,107,.25) 0);
  -webkit-background-clip: text; background-clip: text;
}
.master__rating b { font: 700 18px/1 var(--serif); color: var(--brass-light); }
.master__reviews { font-size: 12px; color: rgba(241,231,214,.55); }
.master p:last-child { margin: 0; font-size: 15px; line-height: 1.7; color: var(--gold-text); }

/* Точки под каруселью мастеров (видны только на телефоне) */
.masters__dots { display: none; }
.masters__dots button {
  width: 8px; height: 8px; padding: 0;
  border: 1px solid var(--brass); border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.masters__dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--brass); }
.masters__dots button:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* Запись — форма на полупрозрачной панели */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px;
  max-width: 780px; margin-inline: auto;
  padding: 38px;
  background: rgba(8,12,9,.72);
  border: 1px solid rgba(201,162,107,.2);
  border-top: 2px solid var(--brass);
  backdrop-filter: blur(6px);
  box-shadow: 0 40px 80px -40px #000;
}
.form label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.form input, .form select {
  width: 100%; padding: 14px 16px;
  font: 500 16px var(--sans); color: var(--birch);
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(201,162,107,.22); border-radius: 2px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,162,107,.25); }
.form input::placeholder { color: rgba(241,231,214,.35); }
.form select option { background: #1a110a; color: var(--birch); }
.form__submit, .form__ok, .form__consent { grid-column: 1 / -1; }
/* Согласие на обработку данных: галочка обязательна и по умолчанию не стоит */
.form .form__consent {
  display: flex; align-items: flex-start; gap: 12px;
  font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none;
  color: rgba(241,231,214,.75);
  cursor: pointer;
}
.form__consent input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0;
  accent-color: var(--brass);
  cursor: pointer;
}
.form__consent a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.form__submit { margin-top: 8px; }
.form__ok { margin: 0; font-weight: 600; color: #9cc28a; text-align: center; }

/* Контакты */
.features--3 { grid-template-columns: repeat(3, 1fr); max-width: 940px; margin-inline: auto; }
.feature p a { text-decoration: none; border-bottom: 1px solid rgba(201,162,107,.5); }
.footer { background: var(--black); border-top: 1px solid rgba(201,162,107,.15); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding: 28px var(--gutter); font-size: 14px; color: rgba(241,231,214,.65); }

.footer__legal { display: grid; gap: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: rgba(241,231,214,.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,162,107,.5); }
.footer__links a:hover { color: var(--brass-light); }

/* Страницы документов: политика и согласие */
.doc-page { background: var(--black); }
.doc-header { width: min(760px, 100% - 32px); margin: 0 auto; padding-top: 32px; }
.doc-back { color: var(--brass-light); text-decoration: none; font-size: 15px; }
.doc-back:hover { text-decoration: underline; }
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: 28px 0 80px; color: rgba(241,231,214,.85); }
.doc h1 { font: 800 clamp(28px, 5vw, 42px)/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--birch); text-wrap: balance; }
.doc__date { margin: 10px 0 32px; color: var(--brass); font-size: 14px; }
.doc h2 { margin: 32px 0 10px; font: 700 22px/1.25 var(--serif); color: var(--brass-light); }
.doc p, .doc li { max-width: 68ch; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--brass-light); }

/* Анимация появления блоков */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ================= Адаптив ================= */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .feature:nth-child(odd)::before { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .features--3 { grid-template-columns: repeat(3, 1fr); }
  .features--3 .feature:nth-child(3)::before { display: block; }
  .master { padding: 8px 16px; }
}
@media (max-width: 760px) {
  .header { gap: 12px; }
  .header .btn--small { display: none; }
  .hero { padding: 110px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__card { min-width: 0; }
  .forest::after { background: linear-gradient(180deg, rgba(3,5,4,.75) 0%, rgba(3,5,4,.35) 60%, rgba(3,5,4,.1) 100%); }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; gap: 0;
    padding: 80px 16px 24px;
    background: rgba(9,12,9,.97);
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
    z-index: -1;
  }
  .nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid rgba(241,231,214,.1); }
  .header.menu-open .nav { transform: none; }
  .header.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .services, .masters, .features { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 26px 20px; }
  .feature::before, .features--3 .feature:nth-child(3)::before, .master::before { display: none; }

  /* Мастера на телефоне — карусель: листается пальцем, соседняя карточка выглядывает сбоку */
  .masters {
    display: flex; gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 24px var(--gutter) 8px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .masters::-webkit-scrollbar { display: none; }
  .master {
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 30px 20px 28px;
    background: rgba(8,12,9,.6);
    border: 1px solid rgba(201,162,107,.18);
    border-radius: 4px;
  }
  .masters__dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
  /* внутри ленты карточки не сдвигаются: ни анимацией появления, ни подъёмом при касании */
  .masters .master.reveal { opacity: 1; transform: none; }
  .master:hover .master__medal { transform: none; }

  /* Услуги на телефоне — прайс: название, время и цена в строку, под ними описание */
  .services {
    gap: 0;
    background: rgba(8,12,9,.6);
    border: 1px solid rgba(201,162,107,.18);
    border-radius: 4px;
  }
  .service {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "name time price" "desc desc desc";
    align-items: baseline;
    column-gap: 12px;
    padding: 14px 16px;
    background: none;
    border: 0;
    transform: none;
  }
  .service + .service { border-top: 1px solid rgba(201,162,107,.14); }
  .service::before, .service::after { display: none; }
  .service:hover { transform: none; box-shadow: none; }
  .service h3 { grid-area: name; margin: 0; font-size: 19px; line-height: 1.2; }
  .service footer { display: contents; }
  .service__time { grid-area: time; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .service b { grid-area: price; font-size: 21px; white-space: nowrap; }
  .service p { grid-area: desc; margin-top: 8px; font-size: 14px; line-height: 1.5; }
  .service__tag { position: absolute; top: -9px; right: 12px; padding: 2px 8px; font-size: 9px; }
  .service--accent {
    position: relative;
    background: linear-gradient(90deg, rgba(201,162,107,.12), rgba(201,162,107,0) 70%);
    box-shadow: inset 2px 0 0 var(--brass);
  }

  /* Контакты на телефоне — одна карточка-список: медальон слева, подпись и значение справа */
  .features--3 {
    row-gap: 0;
    background: rgba(8,12,9,.6);
    border: 1px solid rgba(201,162,107,.18);
    border-radius: 4px;
  }
  .features--3 .feature {
    display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: center;
    padding: 18px 18px;
    text-align: left;
  }
  .features--3 .feature + .feature { border-top: 1px solid rgba(201,162,107,.14); }
  .features--3 .feature__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; border-width: 2px; }
  .features--3 .feature__icon::before { display: none; }
  .features--3 .feature__icon svg { width: 22px; height: 22px; }
  .section--why .features--3 .feature h3 { margin: 0 0 2px; font-size: 11px; align-self: end; }
  .features--3 .feature p { align-self: start; font-size: 16px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  .forest__mist, .feature__icon, .feature__icon::before, .master__medal, .master__medal::before { animation: none; }
  html { scroll-behavior: auto; }
}
