/* ===== Beauty salon "Л'Этуаль" — light airy ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fdfaf6;
  --bg-alt: #f8f0ea;
  --card: #ffffff;
  --rose: #d98ca0;
  --rose-deep: #c4708a;
  --gold: #d4af7a;
  --ink: #3d2f2a;
  --muted: #8d7a72;
  --radius: 20px;
  --shadow: 0 10px 34px rgba(190, 130, 120, 0.14);
  --font: "Nunito", "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
.container { width: min(1080px, 92%); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 14px;
  color: var(--ink);
}
.section__subtitle {
  text-align: center; color: var(--muted);
  max-width: 580px; margin: 0 auto 56px; font-size: 1.05rem;
}
.section__cta { text-align: center; margin-top: 52px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 800;
  text-decoration: none; transition: all 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(212, 140, 160, 0.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(212, 140, 160, 0.5); }
.btn--ghost {
  border: 1.5px solid var(--rose); color: var(--rose-deep);
  background: transparent;
}
.btn--ghost:hover { background: rgba(217, 140, 160, 0.08); }
.btn--light { background: #fff; color: var(--rose-deep); }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 122, 0.3);
}
.header__inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.logo span {
  display: block;
  font-family: var(--font); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-deep);
}
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  color: var(--muted); font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s; white-space: nowrap;
}
.nav a:hover { color: var(--rose-deep); }
.header__contacts { display: flex; align-items: center; gap: 12px; }
.phone { font-weight: 800; color: var(--ink); white-space: nowrap; }
.phone:hover { color: var(--rose-deep); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(217, 140, 160, 0.22), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(212, 175, 122, 0.25), transparent 45%),
    var(--bg);
}
.hero__blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.45; pointer-events: none;
}
.hero__blob--1 { width: 340px; height: 340px; background: var(--rose); top: -100px; right: -60px; }
.hero__blob--2 { width: 280px; height: 280px; background: var(--gold); bottom: -80px; left: -60px; }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  color: var(--rose-deep); font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--ink); margin-bottom: 22px;
}
.hero__title em { color: var(--rose-deep); font-style: italic; }
.hero__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 440px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__photos { position: relative; height: 480px; }
.hero__photo {
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero__photo--1 {
  width: 62%; height: 68%;
  top: 0; right: 0;
  transform: rotate(3deg);
}
.hero__photo--2 {
  width: 52%; height: 56%;
  bottom: 6%; left: 0;
  transform: rotate(-4deg);
}
.hero__photo--3 {
  width: 34%; height: 38%;
  top: 34%; left: 26%;
  transform: rotate(2deg);
  border-width: 5px;
}

/* ===== Rows ===== */
.rows { display: grid; gap: 72px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.row__img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.row__text h3 { font-size: 1.7rem; margin-bottom: 14px; color: var(--ink); }
.row__text p { color: var(--muted); font-size: 1.05rem; }

/* ===== Accordion ===== */
.accordion { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.acc {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 140, 160, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.25s;
}
.acc[open] { border-color: var(--rose); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--rose-deep);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc__hint {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}
.acc__list { list-style: none; padding: 0 28px 24px; }
.acc__list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed rgba(212, 175, 122, 0.3);
  font-size: 0.98rem;
}
.acc__list b { color: var(--rose-deep); white-space: nowrap; }

/* ===== Masters ===== */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.master {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.master:hover { transform: translateY(-5px); }
.master img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
}
.master h3 {
  font-size: 1.15rem;
  padding: 18px 20px 4px;
  text-align: center;
}
.master__role {
  text-align: center;
  color: var(--rose-deep);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0 16px;
}
.master__exp {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 16px 20px;
}

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
  border-top: 4px solid var(--pink, #f7c6d0);
}
.review p { font-style: italic; color: var(--ink); }
.review footer { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* ===== Promo ===== */
.promo {
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217, 140, 160, 0.35), transparent 60%),
    linear-gradient(160deg, var(--rose-deep), #b85f7e);
  color: #fff;
}
.promo h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.promo p { font-size: 1.15rem; margin-bottom: 32px; opacity: 0.95; }

/* ===== Contacts ===== */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts__list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contacts__list li { color: var(--muted); font-weight: 600; }
.contacts__list a { color: var(--rose-deep); font-weight: 800; text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.form h3 { font-size: 1.6rem; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 0.92rem; }
.form input, .form select {
  font: inherit; padding: 14px 18px;
  border: 1.5px solid rgba(212, 140, 160, 0.35);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(217, 140, 160, 0.15);
}
.form input.is-error { border-color: #d64545; }
.checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--muted); font-size: 0.82rem; }
.checkbox input { width: auto; margin-top: 4px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: var(--bg);
  padding: 48px 0; text-align: center;
}
.footer__inner { display: grid; gap: 10px; justify-items: center; }
.footer .logo { color: var(--bg); }
.footer .logo span { color: #f7c6d0; }
.footer p { font-size: 0.88rem; opacity: 0.85; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(50, 30, 28, 0.5); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: min(440px, 100%);
  background: var(--bg); border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close { position: absolute; top: 14px; right: 20px; font-size: 1.9rem; color: var(--muted); }
.modal__close:hover { color: var(--rose-deep); }
.modal__box h3 { font-size: 1.7rem; margin-bottom: 8px; }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.modal__box form { display: grid; gap: 16px; }
.modal__box label { display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; }
.modal__box input, .modal__box select {
  font: inherit; padding: 13px 16px;
  border: 1.5px solid rgba(212, 140, 160, 0.35);
  border-radius: 12px; background: #fff;
}
.modal__box input:focus, .modal__box select:focus { outline: none; border-color: var(--rose); }
.modal__success { text-align: center; padding: 20px 0 6px; }
.modal__success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #7fb069, #5a8f4e);
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__photos { height: 380px; }
  .row, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .masters-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg);
    padding: 20px; gap: 16px;
    border-bottom: 1px solid rgba(212, 140, 160, 0.3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .header__contacts { margin-left: auto; }
  .phone { display: none; }
  .burger { display: flex; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .masters-grid, .reviews-grid { grid-template-columns: 1fr; }
  .hero__photos { height: 300px; }
}
