/* =========================================================
   КОЛЬОРИ ТА ШРИФТИ — міняйте тут, і зміниться весь сайт
   ========================================================= */
:root {
  --color-main: #d4a24c;      /* акцент (кнопки, цифри) — золото */
  --color-main-dark: #b8873a; /* акцент темніший (при наведенні) */
  --color-bg: #111111;        /* основний фон — майже чорний */
  --color-bg-alt: #1a1a1a;    /* фон секцій, що чергуються */
  --color-card: #222222;      /* фон карток */
  --color-text: #f2f2f2;      /* основний текст */
  --color-muted: #9a9a9a;     /* сірий текст */
  --color-red: #b3261e;       /* червоний (смужки «барберського» стовпа) */
  --font-title: 'Oswald', Impact, sans-serif;
  --font-text: 'Inter', Arial, sans-serif;
  --radius: 6px;              /* кути — майже прямі, «чоловічий» стиль */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  background: var(--color-main); color: #111;
  padding: 15px 34px; border: 2px solid var(--color-main); border-radius: var(--radius);
  font-family: var(--font-title); font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: transform .25s, background .25s, color .25s;
}
.btn:hover { background: var(--color-main-dark); border-color: var(--color-main-dark); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: #111; border-color: #fff; }
.btn--small { padding: 9px 20px; font-size: .85rem; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 20px 0; transition: background .3s, padding .3s; }
.header.scrolled { background: rgba(17,17,17,.97); padding: 10px 0; border-bottom: 1px solid #2a2a2a; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; letter-spacing: 3px; line-height: 1; }
.logo span { display: block; font-family: var(--font-text); font-size: .6rem; letter-spacing: 5px; color: var(--color-main); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--color-main); transition: width .3s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; position: relative; z-index: 101; }
.burger span { width: 26px; height: 3px; background: #fff; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Головний екран ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(circle at 80% 40%, #2a2216 0%, var(--color-bg) 60%);
}
/* Рухомі смужки, як у барберського стовпа */
.hero__stripes {
  position: absolute; top: 0; right: 8%; width: 70px; height: 100%; opacity: .5;
  background: repeating-linear-gradient(45deg, var(--color-red) 0 22px, #fff 22px 44px, #1f3c88 44px 66px, #fff 66px 88px);
  background-size: 100% 250px;
  animation: pole 6s linear infinite;
  box-shadow: 0 0 80px rgba(212,162,76,.2);
}
@keyframes pole { to { background-position: 0 250px; } }
.hero__content { position: relative; padding: 130px 0 90px; }
.hero__tag { color: var(--color-main); letter-spacing: 3px; text-transform: uppercase; font-size: .85rem; margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-title); text-transform: uppercase; line-height: 1.05;
  font-size: clamp(2.5rem, 7vw, 5.5rem); margin-bottom: 26px;
}
.hero__title span { color: var(--color-main); }
.hero__text { max-width: 520px; font-size: 1.1rem; color: var(--color-muted); margin-bottom: 38px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__badge {
  position: absolute; right: calc(8% + 100px); bottom: 12%;
  width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--color-main);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(17,17,17,.8);
}
.hero__badge strong { font-family: var(--font-title); font-size: 3rem; color: var(--color-main); line-height: 1; }
.hero__badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-muted); }

/* ---------- Бігучий рядок ---------- */
.marquee { background: var(--color-main); color: #111; overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 25s linear infinite; }
.marquee span { font-family: var(--font-title); font-size: 1.4rem; letter-spacing: 2px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секції ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__tag { color: var(--color-main); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; text-align: center; margin-bottom: 8px; }
.section__title {
  font-family: var(--font-title); text-transform: uppercase; text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 56px; line-height: 1.1;
}
.section__title--left, .booking__text .section__tag, .contacts__info .section__tag { text-align: left; }
.section__title--left { margin-bottom: 24px; }

/* ---------- Послуги ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: #2a2a2a; border: 2px solid #2a2a2a; }
.service { background: var(--color-bg); padding: 40px 32px; transition: background .35s; }
.service:hover { background: var(--color-card); }
.service__num { font-family: var(--font-title); font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1px var(--color-main); }
.service h3 { font-family: var(--font-title); text-transform: uppercase; font-size: 1.35rem; margin: 14px 0 10px; letter-spacing: 1px; }
.service p { color: var(--color-muted); }
.service:hover .service__num { color: var(--color-main); }

/* ---------- Ціни ---------- */
.price-table { max-width: 760px; margin: 0 auto; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 10px; border-bottom: 1px solid #2c2c2c; transition: padding .25s, background .25s;
}
.price-row:hover { background: var(--color-card); padding-left: 22px; padding-right: 22px; }
.price-row b { font-size: 1.1rem; font-weight: 600; }
.price-row small { display: block; color: var(--color-muted); }
.price-row span { font-family: var(--font-title); font-size: 1.5rem; color: var(--color-main); white-space: nowrap; }
.price-row--hit { border: 1px solid var(--color-main); border-radius: var(--radius); }
.price-row--hit small { color: var(--color-main); }
.price-note { text-align: center; margin-top: 36px; color: var(--color-muted); }
.price-note b { color: var(--color-main); }

/* ---------- Майстри ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.master { text-align: center; }
/* Замість фото — блок з ініціалами. Для клієнта: замініть на <img src="photo.jpg"> */
.master__photo {
  aspect-ratio: 4/5; margin-bottom: 20px; border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--font-title); font-size: 4rem; color: rgba(212,162,76,.6);
  background: linear-gradient(160deg, #2b2b2b, #151515);
  border: 1px solid #2c2c2c; transition: transform .4s, border-color .4s;
}
.master:hover .master__photo { transform: scale(1.03); border-color: var(--color-main); }
.master h3 { font-family: var(--font-title); text-transform: uppercase; font-size: 1.5rem; letter-spacing: 1px; }
.master p { color: var(--color-main); }
.master small { color: var(--color-muted); }

/* ---------- Відгуки (слайдер) ---------- */
.slider { max-width: 760px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(30px); transition: opacity .6s, transform .6s; pointer-events: none; }
.slide.active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.slide p { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-style: italic; margin-bottom: 24px; }
.slide b { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 2px; margin-right: 12px; }
.slide span { color: var(--color-main); letter-spacing: 3px; }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.slider__dots button { width: 34px; height: 4px; border: none; background: #444; cursor: pointer; transition: background .3s; }
.slider__dots button.active { background: var(--color-main); }

/* ---------- Запис ---------- */
.booking-section {
  background:
    linear-gradient(rgba(17,17,17,.92), rgba(17,17,17,.92)),
    repeating-linear-gradient(45deg, #222 0 2px, transparent 2px 14px);
  border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
}
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.booking__text p:last-child { color: var(--color-muted); font-size: 1.1rem; }
.form { display: grid; gap: 14px; background: var(--color-card); padding: 36px; border-radius: var(--radius); border-top: 3px solid var(--color-main); }
.form input, .form select {
  width: 100%; padding: 14px 16px; background: var(--color-bg); color: var(--color-text);
  border: 1px solid #333; border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  color-scheme: dark; transition: border-color .2s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--color-main); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; }
.form__success { display: none; text-align: center; color: var(--color-main); font-weight: 600; }
.form__success.show { display: block; }

/* ---------- Контакти ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.contacts__info p { margin-bottom: 18px; }
.contacts__info b { display: block; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 2px; color: var(--color-main); font-weight: 500; font-size: .85rem; }
.contacts__info a:hover { color: var(--color-main); }
.map { height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid #2c2c2c; }
/* Карта в темних тонах під стиль сайту */
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

.footer { padding: 28px 0; text-align: center; color: var(--color-muted); font-size: .9rem; border-top: 1px solid #2a2a2a; }

/* Кнопка «Записатись» внизу екрана — тільки на телефоні */
.sticky-cta { display: none; }

/* =========================================================
   АНІМАЦІЯ ПРИ СКРОЛІ
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   МОБІЛЬНА ВЕРСІЯ
   ========================================================= */
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 75%; max-width: 320px;
    background: #0b0b0b; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.2rem;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.6); }
  .hero__stripes { right: 0; width: 22px; top: 90px; }
  .hero__badge { display: none; }
  .section { padding: 75px 0; }
  .booking, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .map { height: 300px; }
  .sticky-cta {
    display: block; position: fixed; left: 4%; right: 4%; bottom: 14px; z-index: 90;
    background: var(--color-main); color: #111; text-align: center; padding: 15px;
    font-family: var(--font-title); text-transform: uppercase; letter-spacing: 2px; border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
    transform: translateY(150%); transition: transform .35s;
  }
  .sticky-cta.show { transform: none; }
  .footer { padding-bottom: 90px; }
}
@media (max-width: 480px) {
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__buttons .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
