/* Beauty Every Day — стили */

:root {
  --cream: #FCF8F5;
  --cream-2: #F5EDE6;
  --nude: #E7D6C9;
  --rose: #C08578;
  --rose-dark: #A76A5D;
  --gold: #B08D5B;
  --ink: #2C2320;
  --ink-2: #5C4E48;
  --ink-3: #8B7A72;
  --line: #E4D8CF;
  --white: #FFFFFF;

  --shadow-s: 0 2px 10px rgba(58, 40, 32, .06);
  --shadow-m: 0 12px 36px rgba(58, 40, 32, .10);
  --shadow-l: 0 28px 70px rgba(58, 40, 32, .16);

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --wrap: 1180px;
  --pad: clamp(18px, 5vw, 48px);

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* height:auto обязателен: иначе атрибут height у <img> перебивает aspect-ratio */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}

h1 { font-size: clamp(40px, 7.5vw, 78px); }
h2 { font-size: clamp(30px, 4.6vw, 50px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
}

.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); }

.muted { color: var(--ink-3); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--rose-dark); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1FB855; }

.btn-lg { padding: 17px 34px; font-size: 15px; }

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 248, 245, .88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-s); }

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

.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: .01em;
}
.logo__sub {
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color .18s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header__phone {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  height: 1.4px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger::before { top: 15px; }
.burger span { top: 20.3px; }
.burger::after { bottom: 15px; }
.burger.is-open::before { transform: translateY(5.3px) rotate(45deg); }
.burger.is-open span { opacity: 0; }
.burger.is-open::after { transform: translateY(-5.3px) rotate(-45deg); }

/* ---------- герой ---------- */

.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(50px, 7vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--rose); }

.hero__lead { max-width: 46ch; margin: 0 0 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(18px, 4vw, 40px);
  justify-content: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fact__n {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  display: block;
}
.fact__t { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; display: block; max-width: 15ch; }

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero__media img { border-radius: var(--r-l); box-shadow: var(--shadow-m); object-fit: cover; width: 100%; }
.hero__media img:nth-child(1) { aspect-ratio: 3/4; }
.hero__media img:nth-child(2) { aspect-ratio: 3/4; margin-top: 42px; }

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--shadow-m);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.hero__badge b { font-size: 15px; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- секции ---------- */

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .eyebrow { color: var(--nude); }
.section--dark .lead { color: rgba(252, 248, 245, .74); }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 54px); }
.section__head p { margin: 16px 0 0; }

/* ---------- услуги ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }

.service h3 { margin-bottom: 10px; }
.service__lead { font-size: 14.5px; color: var(--ink-2); margin: 0 0 20px; }

.service ul { list-style: none; margin: 0; padding: 0; }
.service li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.service li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--nude);
}

.service__note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- галерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery figure { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.gallery img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.gallery button:hover img { transform: scale(1.05); }

/* лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 21, 18, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--r-m);
  object-fit: contain;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- мастер ---------- */

.master {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.master__photo { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); }
.master__photo img { aspect-ratio: 4/5; object-fit: cover; }
.master p { color: var(--ink-2); }
.master p + p { margin-top: 14px; }

.quote {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--nude);
  padding-left: 22px;
  margin: 28px 0 0;
}

/* ---------- отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.review {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(252,248,245,.13);
  border-radius: var(--r-m);
  padding: 26px 26px 24px;
}
.section--tint .review { background: var(--white); border-color: var(--line); }
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; }
.review p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; }
.review cite { font-style: normal; font-size: 13px; opacity: .68; }

.reviews__foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13.5px;
}

/* ---------- запись / форма ---------- */

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(192, 133, 120, .16);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: 12px; color: var(--ink-3); margin: 2px 0 0; }
.form__ok {
  display: none;
  background: #EDF7EF;
  border: 1px solid #C6E4CD;
  color: #2C6B3B;
  border-radius: var(--r-s);
  padding: 13px 15px;
  font-size: 14px;
}
.form__ok.is-visible { display: block; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list .k { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.contact-list .v { font-size: 17px; text-decoration: none; }
.contact-list a.v:hover { color: var(--rose-dark); }

.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.messengers a {
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .18s ease, background .18s ease;
}
.messengers a:hover { border-color: var(--ink); background: var(--white); }

/* ---------- карта ---------- */

.map {
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  background: var(--cream-2);
}
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-size: clamp(16px, 1.9vw, 19px);
  font-family: var(--display);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--rose);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; max-width: 72ch; }

/* ---------- прайс ---------- */

.price-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: clamp(26px, 4vw, 44px);
  max-width: 720px;
}
.price-empty h3 { margin-bottom: 12px; }
.price-empty p { color: var(--ink-2); margin: 0 0 20px; }

.price-group { margin-bottom: 40px; }
.price-group h3 { margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: baseline; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.price-table .note { display: block; font-size: 12.5px; color: var(--ink-3); }

/* ---------- страничный заголовок ---------- */

.pagehead { padding: clamp(38px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.pagehead p { max-width: 60ch; margin: 16px 0 0; }

.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- CTA-полоса ---------- */

.cta-strip {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-l);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-strip h2 { max-width: 18ch; }
.cta-strip .btn-primary { background: var(--cream); color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--nude); }

/* ---------- подвал ---------- */

.footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- появление при скролле ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero__grid, .master, .book, .footer__grid { grid-template-columns: 1fr; }
  .footer__grid { gap: 26px; }
  .hero__media { max-width: 460px; }
  .hero__badge { left: auto; right: 8px; }
  .master__photo { max-width: 380px; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px;
    box-shadow: var(--shadow-m);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  .facts { grid-template-columns: 1fr 1fr; gap: 22px; }
  .facts > div:last-child { grid-column: 1 / -1; }
  .facts > div:last-child .fact__t { max-width: none; }

  /* на телефоне фото работ — первым экраном, над заголовком */
  .hero { padding-top: 20px; }
  .hero__media { order: -1; margin-bottom: 18px; }
  .hero__media img:nth-child(1), .hero__media img:nth-child(2) { aspect-ratio: 4/5; }
  .hero__media img:nth-child(2) { margin-top: 26px; }
  .hero__badge { bottom: -16px; padding: 9px 16px; font-size: 12px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .field--row { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
