@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

:root {
  --olive: #7a7f3d;
  --olive-deep: #5f6430;
  --ink: #181818;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --pill: #efefef;
  --paper: #fff;
  --hero-dim: rgba(20, 18, 14, 0.35);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(24, 24, 24, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.logo-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.45em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: var(--olive);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--olive-deep);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.header--inner {
  position: sticky;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-word {
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.header--hero .logo,
.header--hero .phone,
.header--hero .nav a {
  color: #fff;
}

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

.nav a,
.nav-drop > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.18);
  font-size: 0.86rem;
}

.header--inner .nav a,
.header--inner .nav-drop > span {
  background: #f3f3f3;
  color: var(--ink);
}

.nav-drop {
  position: relative;
}

.nav-drop__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 40;
}

.nav-drop:hover .nav-drop__list,
.nav-drop:focus-within .nav-drop__list {
  display: grid;
  gap: 4px;
}

.nav-drop__list a {
  background: transparent;
  color: var(--ink);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  font-weight: 600;
  white-space: nowrap;
}

.burger,
.search-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
}

.header--inner .burger,
.header--inner .search-btn {
  background: #f3f3f3;
}

.burger {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #161310;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 16, 14, 0.38), rgba(18, 16, 14, 0.12));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: 140px 0 80px;
}

.hero__brand {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 2;
  font-size: clamp(2rem, 6vw, 4rem);
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: 96px 0;
}

.section--soft {
  background: #f7f6f2;
}

.section__num {
  margin: 0 0 8px;
  color: #b7b7b7;
  letter-spacing: 0.08em;
}

.section__lead {
  max-width: 560px;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 88px 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-row__num {
  color: #b7b7b7;
  font-size: 1.2rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 0.86rem;
}

.grid-4,
.grid-3,
.grid-2,
.salons,
.masters,
.blog,
.gallery {
  display: grid;
  gap: 18px;
}

.grid-4,
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-3,
.masters,
.blog {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2,
.salons,
.gallery {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.review,
.price-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card h3,
.review h3,
.master h3 {
  margin-bottom: 0.35em;
}

.card p,
.review p,
.muted {
  color: var(--muted);
}

.salon {
  min-height: 260px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-size: cover;
  background-position: center;
}

.salon h3 {
  color: #fff;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--pill);
  font: inherit;
  cursor: pointer;
}

.tab.is-active {
  background: var(--olive);
  color: #fff;
}

.reviews-panel[hidden] {
  display: none;
}

.master {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.master__photo {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.master__body {
  padding: 18px;
}

.shot {
  min-height: 240px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.page-hero {
  padding: 140px 0 48px;
}

.footer {
  padding: 56px 0 120px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer a {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}

.footer__sign {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.sign {
  margin: 0;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-6deg);
  letter-spacing: 0.04em;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  font-size: 0.85rem;
  font-weight: 700;
}

.cookie {
  position: fixed;
  left: 18px;
  bottom: 92px;
  z-index: 45;
  width: min(340px, calc(100% - 36px));
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie[hidden],
.modal[hidden],
.search[hidden],
.exit[hidden] {
  display: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 24, 24, 0.46);
}

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

.modal,
.search,
.exit {
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.form input.is-invalid,
.form select.is-invalid {
  border-color: #b04a3a;
}

.field-error {
  min-height: 1em;
  color: #b04a3a;
  font-size: 0.78rem;
  font-weight: 500;
}

.check {
  display: flex;
  align-items: start;
  gap: 8px;
  font-weight: 400;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 980px) {
  .nav,
  .phone {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: #fff;
    color: var(--ink);
  }

  .nav.is-open .nav-drop__list {
    display: grid;
    position: static;
    box-shadow: none;
    padding: 4px 0 10px;
  }

  .header--hero .nav.is-open a,
  .header--hero .nav.is-open .nav-drop > span {
    color: var(--ink);
    background: #f3f3f3;
  }

  .burger {
    display: block;
  }

  .service-row,
  .advantages,
  .grid-4,
  .grid-3,
  .grid-2,
  .salons,
  .masters,
  .blog,
  .gallery,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
