@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0d0e10;
  --bg-soft: #15171b;
  --panel: rgba(24, 26, 31, 0.7);
  --text: #f5f0e7;
  --muted: #b7b2a9;
  --gold: #c8a56b;
  --cream: #f3e7d3;
  --line: rgba(255, 255, 255, 0.12);
  --ok: #75d299;
  --danger: #ff7a7a;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 165, 107, 0.2), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(243, 231, 211, 0.06), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.05"/></svg>');
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -2;
  background: conic-gradient(from 180deg at 50% 50%, rgba(200,165,107,.09), transparent 25%, rgba(243,231,211,.05), transparent 60%, rgba(200,165,107,.1));
  filter: blur(52px);
  animation: driftAura 20s linear infinite;
}
@keyframes driftAura {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: 88px 0; }
.section-top-tight { padding-top: 48px; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
p { margin: 0 0 16px; color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(200, 165, 107, 0.22);
}
.btn-primary { background: linear-gradient(135deg, #d5ba8f, #b58e53); color: #161311; border: 0; }
.btn-ghost { background: rgba(255,255,255,0.03); }
.btn::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 60%);
  transition: transform .35s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translate(-50%, -50%) scale(1); }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.glass:hover {
  border-color: rgba(200, 165, 107, 0.42);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}
.logo-mark { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
  color: #dfd8ca;
}
.nav-link.active, .nav-link:hover, .nav-link:focus-visible {
  color: #161311;
  background: linear-gradient(120deg, #dbc294, #b88f52);
}
.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.hero {
  padding: 90px 0 54px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}
.hero-media {
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
}
.hero-media:hover img { transform: scale(1.05); }
.hero-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(11, 11, 14, 0.78);
  border: 1px solid var(--line);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  padding: 16px 0;
  gap: 26px;
  color: #e8decf;
  font-weight: 700;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.card { padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.lookbook {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.lookbook img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  min-height: 180px;
  transition: transform .7s ease, filter .7s ease;
  filter: saturate(0.92) contrast(1.02);
}
.lookbook img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.1) contrast(1.08);
}
.lookbook .a { grid-column: span 4; }
.lookbook .b { grid-column: span 3; }
.lookbook .c { grid-column: span 5; }
.lookbook .d { grid-column: span 5; }
.lookbook .e { grid-column: span 4; }
.lookbook .f { grid-column: span 3; }

.process-step {
  padding: 20px;
  position: relative;
}
.process-step::after {
  content: attr(data-step);
  position: absolute;
  right: 16px;
  top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: rgba(200, 165, 107, 0.2);
}

.team-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.team-wall figure { margin: 0; }
.team-wall img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
}
.team-wall figcaption { padding-top: 8px; font-size: .9rem; color: #d7d0c3; }

.timeline {
  display: grid;
  gap: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 18px;
}
.timeline-year { color: var(--gold); font-weight: 800; letter-spacing: .08em; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  color: var(--text);
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
}
.faq-a { display: none; padding-top: 8px; }
.faq-item.open .faq-a { display: block; }

.form {
  display: grid;
  gap: 12px;
}
.field label { display: block; margin-bottom: 6px; color: #e6dccb; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.error { color: var(--danger); font-size: .86rem; min-height: 1.2em; }
.success { color: var(--ok); font-size: .92rem; }

.cookie-banner,
.promo-popup,
.cookie-modal {
  position: fixed;
  z-index: 220;
}
.cookie-banner {
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px;
  display: none;
  background: rgba(12, 13, 16, 0.96);
  border: 1px solid rgba(200, 165, 107, 0.3);
  backdrop-filter: blur(14px);
  max-width: 980px;
  margin: 0 auto;
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cookie-banner strong { color: #f4ead8; font-size: 1.15rem; }
.cookie-banner p { color: #ede3d2; margin-top: 8px; margin-bottom: 12px; }
.cookie-banner .btn { min-width: 120px; }

.promo-popup {
  right: 20px;
  bottom: 20px;
  width: min(410px, calc(100vw - 24px));
  padding: 22px;
  display: none;
}

.cookie-modal {
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.68);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-panel {
  width: min(680px, 100%);
  padding: 24px;
}

.page-hero {
  padding: 76px 0 30px;
}
.page-hero .lead {
  font-size: 1.1rem;
  max-width: 780px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 13px 8px;
}
.table th { color: #ece1ce; }
.table tbody tr {
  transition: background .3s ease, transform .3s ease;
}
.table tbody tr:hover {
  background: rgba(200, 165, 107, 0.08);
  transform: translateX(3px);
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
}

.account-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.account-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.account-tab { cursor: pointer; }
.account-panel { display: none; }
.account-panel.active { display: block; }
.dashboard-box { padding: 20px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 34px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .9fr;
  gap: 20px;
}
.footer-links a { display: block; padding: 4px 0; color: #ddd4c4; }
.small { font-size: .88rem; color: #b6ad9f; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 0%, rgba(200, 165, 107, 0.18), transparent 40%), #08090b;
  z-index: 300;
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 165, 107, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(200, 165, 107, 0); }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 290;
  pointer-events: none;
  transform: translateY(100%);
  background: linear-gradient(180deg, rgba(7, 7, 9, 0.97), rgba(14, 12, 9, 0.97));
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.page-transition.active { transform: translateY(0); }

/* Page-specific art direction */
.page-home .hero h1 {
  background: linear-gradient(110deg, #f5ecd8 20%, #c8a56b 55%, #f3e7d3 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-home .marquee-track { animation-duration: 24s; }

.page-haircuts .page-hero {
  position: relative;
  overflow: hidden;
}
.page-haircuts .page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -20px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,165,107,.28), transparent 62%);
}

.page-about .lookbook img:nth-child(odd) { transform: translateY(-4px); }
.page-about .lookbook img:nth-child(even) { transform: translateY(4px); }
.page-about .lookbook img:hover { transform: translateY(-8px) scale(1.03); }

.page-school .card h3 {
  color: var(--cream);
  text-shadow: 0 8px 25px rgba(200,165,107,.22);
}
.page-school .faq-item.open .faq-q { color: var(--gold); }

.page-history .timeline-item {
  position: relative;
  overflow: hidden;
}
.page-history .timeline-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(200,165,107,.16), transparent 45%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.page-history .timeline-item:hover::before { transform: translateX(0); }

.page-contacts .map-wrap {
  position: relative;
}
.page-contacts .map-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(200,165,107,.35);
  pointer-events: none;
  animation: mapPulse 2.8s ease-in-out infinite;
}
@keyframes mapPulse {
  0%,100% { opacity: .35; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.012); }
}

.page-account #dashboard .dashboard-box {
  background: linear-gradient(155deg, rgba(200,165,107,.17), rgba(255,255,255,.02));
}
.page-account #dashboard .dashboard-box h3 { color: #f2e5cf; }

.page-privacy .card,
.page-cookies .card {
  border-left: 2px solid rgba(200,165,107,.35);
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .grid-3, .footer-grid, .account-shell { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .lookbook .a, .lookbook .b, .lookbook .c, .lookbook .d, .lookbook .e, .lookbook .f { grid-column: span 6; }
  .team-wall { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .menu-btn { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 74px;
    background: #101114;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
  }
  .nav-links.open { display: grid; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .lookbook .a, .lookbook .b, .lookbook .c, .lookbook .d, .lookbook .e, .lookbook .f { grid-column: span 12; }
  .timeline-item { grid-template-columns: 1fr; }
}
