/* =========================================
   Базові налаштування
========================================= */
:root {
  --bg: #0d0d0d;
  --bg-soft: #161616;
  --text: #f5f5f5;
  --text-muted: #a8a8a8;
  --border: #2b2b2b;
  --accent: #ffffff;
  --gray: #707070;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;

  --radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

a {
  color: var(--text);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   Кнопки
========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn--solid {
  background-color: var(--accent);
  color: #000;
}

.btn--solid:hover {
  background-color: var(--gray);
  border-color: var(--gray);
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
}

.btn--outline:hover {
  background-color: var(--text);
  color: #000;
}

.btn--ghost {
  border: none;
  text-decoration: underline;
  text-decoration-color: var(--gray);
  padding: 14px 0;
}

.btn--ghost:hover {
  text-decoration-color: var(--text);
}

/* =========================================
   Хедер / навігація
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.logo span {
  color: var(--gray);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.header__cta {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background-color: var(--text);
}

/* =========================================
   Hero
========================================= */
.hero {
  padding: 170px 0 90px;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* =========================================
   Декоративна "барбер-смуга" (ч/б)
========================================= */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    #000 0px,
    #000 18px,
    #f5f5f5 18px,
    #f5f5f5 36px
  );
}

/* =========================================
   Прайс
========================================= */
.prices {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-title--left {
  text-align: left;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.price-card {
  background-color: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.2s ease;
}

.price-card:hover {
  background-color: var(--bg-soft);
}

.price-card--accent {
  background-color: var(--bg-soft);
}

.price-card__icon {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.price-card__icon svg {
  width: 100%;
  height: 100%;
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.price-card__desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-grow: 1;
}

.price-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.prices__cta {
  text-align: center;
  margin-top: 56px;
}

/* =========================================
   Про майстра
========================================= */
.about {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  border: 1px solid var(--border);
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about__list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.about__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gray);
}

.about__note {
  margin-top: 28px;
}

/* =========================================
   Контакти
========================================= */
.contacts {
  padding: 90px 0;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 48px;
}

.contacts__info h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.contacts__row {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.contacts__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.contacts__row a {
  color: var(--text);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.socials__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.socials__link:hover {
  color: var(--text);
}

.socials__link svg {
  width: 22px;
  height: 22px;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  filter: grayscale(100%) invert(92%) contrast(85%);
}

/* =========================================
   Футер
========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__inner a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__inner a:hover {
  color: var(--text);
}

/* =========================================
   Модальне вікно онлайн-запису
========================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.modal__window {
  position: relative;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 32px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal__close:hover {
  background-color: var(--border);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
}

/* =========================================
   Форма
========================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__field input,
.form__field select {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}

.form__field input:focus,
.form__field select:focus {
  outline: 1px solid var(--text);
}

.form__fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  gap: 10px;
}

.form__fieldset > span {
  margin-bottom: 4px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  cursor: pointer;
}

.radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
}

.form__note {
  font-size: 0.8rem;
  color: var(--gray);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.form__submit {
  margin-top: 8px;
  width: 100%;
}

.form__success {
  text-align: center;
  padding: 24px 0;
}

.form__success p {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.form__success-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px !important;
}

.form__error {
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================
   Адаптивність
========================================= */
@media (max-width: 900px) {
  .about__inner,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__photo img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.is-open {
    max-height: 260px;
  }

  .nav__link {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }
}
