/* ===================================================
   QUIET CHERRY — Beauty Autopilot Template
   Solo hair master · calm editorial minimalism
   =================================================== */

:root {
  --bg: #f4f2ef;
  --bg-alt: #ece9e5;
  --bg-card: #fbfaf8;
  --surface: #f8f6f3;

  --text: #242321;
  --text-secondary: #605d59;
  --text-muted: #918b85;
  --text-dim: #b0aaa4;

  --graphite: #3b3937;
  --graphite-soft: #57534f;
  --graphite-faint: #78726c;

  --cherry: #7e4655;
  --cherry-soft: #a27581;
  --cherry-pale: #ebe1e4;

  --border: #d8d2cb;
  --border-light: #e7e2dd;
  --shadow: rgba(41, 32, 35, 0.045);
  --shadow-strong: rgba(41, 32, 35, 0.075);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --radius: 2px;
  --radius-sm: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; margin: 0; }
::selection { background: var(--cherry); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--graphite); }
:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(244, 242, 239, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 210, 203, 0.88);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-mark {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: var(--cherry);
  text-underline-offset: 0.55rem;
  text-decoration-thickness: 1px;
}

.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 2rem 4rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  gap: 4.5rem;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--cherry);
  font-style: normal;
}

.hero-lead {
  margin: 1.65rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiet-composition {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, rgba(126,70,85,0.04), rgba(126,70,85,0) 46%),
    var(--surface);
  box-shadow: 0 22px 60px var(--shadow);
  overflow: hidden;
}

.quiet-card {
  position: absolute;
  border: 1px solid var(--border);
  background: rgba(251, 250, 248, 0.82);
}

.quiet-card-large {
  inset: 12% 12% auto auto;
  width: 58%;
  height: 54%;
  box-shadow: 0 18px 40px var(--shadow);
}

.quiet-card-small {
  inset: auto auto 11% 10%;
  width: 44%;
  height: 28%;
  background: linear-gradient(180deg, rgba(126,70,85,0.06), rgba(126,70,85,0.02)), var(--bg-card);
}

.quiet-line {
  position: absolute;
  height: 1px;
  background: var(--graphite-faint);
  opacity: 0.65;
}

.quiet-line-top {
  top: 16%;
  left: -6%;
  width: 52%;
}

.quiet-line-bottom {
  right: -8%;
  bottom: 20%;
  width: 48%;
}

.quiet-dot {
  position: absolute;
  right: 16%;
  bottom: 16%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 0 12px rgba(126, 70, 85, 0.08);
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.button {
  background: var(--graphite);
  color: #fff;
  border-color: var(--graphite);
}

.button:hover {
  background: var(--cherry);
  border-color: var(--cherry);
  color: #fff;
  opacity: 1;
}

.ghost-button {
  background: rgba(251, 250, 248, 0.86);
  color: var(--graphite);
  border-color: var(--border);
}

.ghost-button:hover {
  border-color: var(--graphite);
  background: #fff;
  color: var(--graphite);
  opacity: 1;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.4rem 2rem;
}

.section-header {
  margin-bottom: 2.65rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-header .label {
  flex: none;
  color: var(--cherry);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.86fr;
  grid-auto-rows: 290px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: rgba(248, 246, 243, 0.92);
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}

.service-row:hover {
  background: rgba(255,255,255,0.5);
  margin: 0 -1.35rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.service-row h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.service-row .price {
  color: var(--graphite);
  font-size: 0.98rem;
  font-weight: 700;
}

.service-row .duration {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-row .button-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.service-row .button-sm:hover {
  border-color: var(--graphite);
  color: var(--graphite);
  background: #fff;
  opacity: 1;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.master-card {
  background: var(--bg-card);
  overflow: hidden;
}

.master-card picture {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.master-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.master-card:hover img {
  transform: scale(1.03);
}

.master-card .info {
  padding: 1.45rem;
  border-top: 1px solid var(--border-light);
}

.master-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.master-card .specialty {
  margin: 0 0 0.65rem;
  color: var(--cherry);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.master-card .bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.contacts-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-block {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-light);
}

.contact-block .tag {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-block .val {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.contact-block .val a {
  text-decoration: underline;
  text-decoration-color: var(--cherry-pale);
  text-underline-offset: 0.24rem;
}

.contact-block .val a:hover {
  text-decoration-color: var(--cherry);
}

.qr-frame {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2)), var(--bg-card);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 18px 42px var(--shadow);
}

.qr-frame img {
  margin: 0 auto 1rem;
}

.qr-frame figcaption {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg);
}

.footer-inner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-inner .brand {
  color: var(--graphite);
}

.detail-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 7.5rem 2rem 4rem;
}

.detail-wrap h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-wrap picture {
  display: block;
  margin: 1.8rem 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.detail-wrap picture img {
  width: 100%;
}

.detail-wrap .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.detail-wrap .meta strong {
  color: var(--graphite);
  font-weight: 700;
}

.detail-wrap .desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.76;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .contacts-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-inline: 1rem;
  }

  .header-inner {
    min-height: 60px;
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0;
    gap: 0.5rem;
  }

  .brand-mark {
    letter-spacing: 0.18em;
    font-size: 0.76rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    min-height: 30px;
    padding-inline: 0.55rem;
    font-size: 0.68rem;
  }

  .hero {
    padding: 8.7rem 1rem 3rem;
  }

  .section,
  .detail-wrap {
    padding-inline: 1rem;
  }

  .section {
    padding-block: 4.2rem;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    align-items: start;
  }

  .service-row .button-sm {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:first-child,
  .gallery-item:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr;
  }

  .detail-wrap .meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}
