/* ---------- Fonts (self-hosted, RODO-friendly) ---------- */
@font-face {
  font-family: "Oswald"; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url("fonts/oswald-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url("fonts/oswald-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #121110;
  --bg-2: #1b1917;
  --bg-3: #24211e;
  --text: #ede6da;
  --muted: #a39b8f;
  --accent: #c8a165;
  --accent-2: #e2c08a;
  --red: #a8322d;
  --line: rgba(237, 230, 218, 0.12);
  --radius: 4px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.section__title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 48px; }
.eyebrow {
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  background: var(--accent);
  color: #15120e;
  font: 600 15px/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #15120e; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--small { padding: 11px 18px; font-size: 13px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(18, 17, 16, 0.92); backdrop-filter: blur(10px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 24px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; }
.logo:hover { color: var(--text); }
.logo__icon { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--text); font-size: 15px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px;
  background:
    linear-gradient(90deg, var(--bg) 25%, rgba(18, 17, 16, 0.75) 55%, rgba(18, 17, 16, 0.35)),
    linear-gradient(0deg, var(--bg), transparent 30%),
    url("img/hero.jpg") right center / cover no-repeat,
    var(--bg);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(46px, 8.5vw, 110px); font-weight: 700; margin-bottom: 28px; }
.hero__title span { color: var(--accent); font-weight: 300; }
.hero__lead { max-width: 520px; font-size: 19px; color: var(--muted); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 70px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 48px; }
.hero__facts li { display: flex; align-items: center; gap: 14px; }
.hero__facts strong { font: 600 40px/1 var(--font-head); color: var(--text); }
.hero__facts span { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; }
.about__grid .section__title { margin-bottom: 0; }
.about__text { color: var(--muted); font-size: 18px; }
.about__photo { width: 100%; height: auto; margin-top: 40px; border-radius: var(--radius); filter: saturate(.85); }
.features { grid-column: 1 / -1; list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { background: var(--bg-2); padding: 38px 32px; }
.features__num { font: 300 15px/1 var(--font-head); color: var(--accent); letter-spacing: .1em; }
.features h3 { font-size: 22px; margin: 20px 0 12px; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.price-group { padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.price-group--accent { border-color: rgba(200,161,101,.5); background: linear-gradient(160deg, rgba(200,161,101,.10), var(--bg-2) 60%); }
.price-group__title { font-size: 24px; color: var(--accent); margin-bottom: 26px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list__name { font-weight: 500; }
.price-list__name small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-list__dots { flex: 1; border-bottom: 1px dotted rgba(237,230,218,.25); transform: translateY(-6px); min-width: 12px; }
.price-list__price { font: 500 20px/1 var(--font-head); color: var(--text); white-space: nowrap; }
.services__note { margin-top: 32px; color: var(--muted); font-size: 15px; }

/* ---------- Team ---------- */
.team { background: var(--bg-2); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.barber__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 24px;
  filter: grayscale(.35) contrast(1.05);
  transition: filter .4s;
}
.barber:hover .barber__photo { filter: none; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery__grid img { width: 100%; height: 320px; object-fit: cover; filter: saturate(.8); transition: filter .4s; }
.gallery__grid img:hover { filter: none; }
.barber h3 { font-size: 26px; }
.barber__role { color: var(--accent); font-size: 14px; margin: 6px 0 14px; }
.barber p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review { margin: 0; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.review::before { content: "\201D"; position: absolute; top: 4px; right: 26px; font: 700 110px/1 Georgia, serif; color: rgba(200,161,101,.15); }
.review__stars { color: var(--accent); letter-spacing: 4px; margin-bottom: 18px; }
.review blockquote { margin: 0 0 22px; font-size: 17px; }
.review figcaption { color: var(--muted); font-size: 14px; }
.review figcaption::before { content: "— "; }

/* ---------- Booking ---------- */
.booking { background: var(--bg-2); }
.booking__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.booking__intro .section__title { margin-bottom: 24px; }
.booking__intro p { color: var(--muted); }
.booking__phone { font: 500 32px/1 var(--font-head); color: var(--text); letter-spacing: .03em; }
.form { display: grid; gap: 18px; padding: 40px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  font: 400 16px/1.4 var(--font-body); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  text-transform: none; letter-spacing: normal;
  transition: border-color .2s;
  color-scheme: dark;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .is-invalid { border-color: #d0574f; }
.form textarea { resize: vertical; }
.form__consent { display: flex !important; align-items: flex-start; gap: 12px; text-transform: none !important; letter-spacing: normal !important; font-size: 14px !important; line-height: 1.5; }
.form__consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.form__consent.is-invalid span { color: #e0857e; }
.form__status { margin: 0; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: #8fc99a; }
.form__status.is-error { color: #e0857e; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__address { font-style: normal; font-size: 20px; line-height: 1.8; margin-bottom: 32px; }
.contact__address a { color: var(--text); }
.contact__address a:hover { color: var(--accent); }
.contact__hours-title { font-size: 24px; margin: 50px 0 24px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--font-head); font-size: 19px; }
.contact__open { margin-top: 20px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.contact__open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, transparent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Privacy page ---------- */
.legal { padding: 140px 20px 90px; max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 14px; color: var(--accent); }
.legal p, .legal li { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .price-grid, .team__grid, .reviews__grid { grid-template-columns: 1fr 1fr; }
  .price-group--accent { grid-column: 1 / -1; }
  .booking__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .contact__hours-title { margin-top: 0; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid img { height: 260px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .section__title { margin-bottom: 36px; }
  .burger { display: block; position: relative; z-index: 60; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font: 500 28px/1 var(--font-head); text-transform: uppercase; }
  .about__grid { grid-template-columns: 1fr; }
  .about__grid .section__title { margin-bottom: 28px; }
  .features { grid-template-columns: 1fr; margin-top: 48px; }
  .price-grid, .team__grid, .reviews__grid { grid-template-columns: 1fr; }
  .hero {
    background:
      linear-gradient(0deg, var(--bg) 35%, rgba(18, 17, 16, 0.7)),
      url("img/hero.jpg") 70% top / cover no-repeat,
      var(--bg);
  }
  .hero__facts { gap: 28px; }
  .gallery__grid img { height: 180px; }
  .hero__facts strong { font-size: 32px; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .price-group { padding: 28px 22px; }
}
