/* BLADE — короткая версия: чёрный, зелёный, белый */

:root {
  --black: #0a0a0a;
  --ink: #121412;
  --card: #161917;
  --white: #f1f0ea;
  --muted: rgba(241, 240, 234, .6);
  --line: rgba(241, 240, 234, .12);
  --green-deep: #0c3b2b;
  --green: #17603f;
  --accent: #c6f45a;
  --error: #ff6b4a;

  --f-display: "Unbounded", "Inter Tight", system-ui, sans-serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 16px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 18px; font-weight: 500; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--f-sans);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--black); }
.btn--accent:hover { background: #d6ff72; }
.btn--ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font: 700 22px var(--f-display); letter-spacing: .04em; }
.logo::after { content: "."; color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--white); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.tag {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border-radius: 999px; background: var(--green-deep); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 68px); }
.hero h1 span { display: block; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 480px; font-size: 18px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; }
.facts b { font: 700 24px var(--f-display); }
.facts span { font-size: 14px; color: var(--muted); }
.hero__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--ink); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section__head p { color: var(--muted); max-width: 360px; }

/* Cards: базовая анимация — карточка увеличивается при наведении */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: scale(1.03);
  border-color: rgba(198, 244, 90, .45);
  box-shadow: 0 18px 40px -20px rgba(23, 96, 63, .8);
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.service p { color: var(--muted); font-size: 15px; }
.service__foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
.service__foot span { color: var(--muted); font-size: 14px; }
.service__foot b { font: 700 22px var(--f-display); color: var(--accent); }
.service--hit { background: var(--green-deep); border-color: var(--green); }
.badge {
  align-self: start; padding: 4px 10px; margin-bottom: 2px;
  border-radius: 999px; background: var(--accent); color: var(--black);
  font-size: 12px; font-weight: 700;
}

/* Barbers */
.barbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.barber { overflow: hidden; }
.barber__img { aspect-ratio: 4 / 5; overflow: hidden; }
.barber__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .6s var(--ease); }
.barber:hover .barber__img img { filter: grayscale(0); transform: scale(1.06); }
.barber__body { display: grid; gap: 6px; justify-items: start; padding: 22px 24px 26px; }
.barber__role { color: var(--accent); font-size: 14px; font-weight: 600; }
.barber__body p:not(.barber__role) { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

/* Works */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.08); }
.work figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px;
  border-radius: 999px; background: rgba(10, 10, 10, .75); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600;
}

/* Booking */
.booking { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start; }
.booking__form-wrap { padding: 36px; }
.booking__form-wrap:hover { transform: none; box-shadow: none; border-color: var(--line); }
.booking__form-wrap > .muted { margin-top: 8px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 8px; font-size: 14px; }
.field > span { color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.field input, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--black); color: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  font: 16px var(--f-sans);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field.is-invalid input { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; align-items: center; }
.chip {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--black); color: var(--white);
  font: 500 14px var(--f-sans); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--black); }
.chip small { display: block; font-size: 11px; opacity: .7; }
.form__error { min-height: 1em; color: var(--error); font-size: 14px; }
.success { display: grid; gap: 12px; justify-items: start; margin-top: 28px; }
.success__icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--accent); color: var(--black); font-size: 28px; font-weight: 700;
}
.success p { color: var(--muted); }

.contacts { padding: 8px 0; display: grid; gap: 28px; }
.contacts dl { display: grid; gap: 20px; }
.contacts dt { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.contacts dd { font-size: 17px; }
.contacts dd a:hover { color: var(--accent); }
.contacts__links { display: flex; gap: 10px; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__order { color: var(--accent); font-weight: 600; }
.footer__order:hover { text-decoration: underline; }

/* Мягкое появление при скролле — один простой эффект */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible.card:hover { transform: scale(1.03); }

@media (max-width: 900px) {
  .nav { display: none; }
  .header__inner .btn { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero__inner, .booking { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 11; order: -1; }
  .services, .barbers { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .section__head { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  .services, .barbers, .form { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .facts { gap: 22px; }
  .facts b { font-size: 20px; }
  .booking__form-wrap { padding: 24px 18px; }
  .card:hover, .reveal.is-visible.card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
