/* ==========================================================================
   VARIABLES & BASE
   ========================================================================== */
:root {
  /* Surfaces */
  --bg:        #f7f5f2;
  --bg-soft:   #ebe6e0;

  /* Brand */
  --accent:    #b65f4a;
  --accent-2:  #d99884;
  --dark:      #2d2a28;

  /* Text */
  --text:      #2b2026;
  --muted:     #6e6a66;

  /* RGB triplets — used inside rgba() so all alpha tints share the same hue */
  --accent-rgb: 182, 95, 74;
  --dark-rgb:   45, 42, 40;

  --line:      rgba(var(--accent-rgb), .16);
  --card:      rgba(255, 255, 255, .78);
  --shadow:    0 24px 70px rgba(var(--dark-rgb), .13);
  --radius:    32px;
  --font-main:   'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--accent-rgb), .10), transparent 34%),
    radial-gradient(circle at 85% 0%,  rgba(var(--dark-rgb), .05),   transparent 30%),
    linear-gradient(180deg, #fbf9f6 0%, var(--bg) 48%, #fff 100%);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  z-index: -1;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

section { padding: 92px 0; }

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

.section-title {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--dark);
  font-weight: 400;
}

.section-note {
  max-width: 430px;
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(var(--accent-rgb), .22);
  transition: all .3s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(var(--accent-rgb), .35); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--dark);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(var(--accent-rgb), .05); box-shadow: none; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  width: min(1160px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 20px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 16px 45px rgba(var(--dark-rgb), .08);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--dark); }
.brand img { height: 44px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a.link { padding: 11px 15px; border-radius: 999px; transition: .25s ease; }
.nav-links a.link:hover { color: var(--dark); background: rgba(var(--accent-rgb), .08); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 80vh; display: grid; align-items: center; padding: 60px 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(217, 152, 132, .2);
}

.hero h1 {
  font-family: var(--font-accent);
  /* font-style: italic; */
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  color: var(--dark);
  font-weight: 400;
}
.hero h1 span {
  display: block;
  font-family: var(--font-main);
  font-style: normal;
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: -.03em;
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.lead { margin: 24px 0 32px; max-width: 520px; color: var(--muted); font-size: 18px; }

.badges-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.badges-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.visual-card {
  position: relative;
  padding: 14px;
  border-radius: 42px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}

.hero-img-wrapper {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 32px;
  background: url('../img/hero-salon.jpg') center / cover;
}

.floating-badge {
  position: absolute;
  right: -24px; top: 60px;
  width: 180px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(var(--dark-rgb), .15);
  color: var(--muted);
  line-height: 1.3;
  font-size: 14px;
}
.floating-badge strong {
  display: block;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .1);
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(var(--dark-rgb), .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(var(--dark-rgb), .12); }

.service-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }

.service-card-body { padding: 28px 30px 32px; }

.service-card .num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  font-size: 16px;
}
.service-card h3  { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.service-card p   { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-card .price-tag {
  font-weight: 700;
  color: var(--dark);
  font-size: 15px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(var(--accent-rgb), .08);
  border-radius: 999px;
}

/* ==========================================================================
   PRICES
   ========================================================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.price-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid rgba(var(--accent-rgb), .1);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(var(--dark-rgb), .05);
}
.price-card h3 {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--dark);
  font-family: var(--font-accent);
  font-style: italic;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(var(--accent-rgb), .15);
  font-size: 15px;
}
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row span { color: var(--text); font-weight: 500; }
.price-row b    { white-space: nowrap; color: var(--accent); font-weight: 700; }

.disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background: rgba(var(--accent-rgb), .05);
  border-radius: 16px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid rgba(var(--accent-rgb), .1);
  border-radius: 20px;
  padding: 24px 30px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .02);
}
.faq-item:hover { box-shadow: 0 8px 25px rgba(var(--dark-rgb), .08); }

.faq-q {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform .3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.active .faq-a { max-height: 200px; margin-top: 16px; }

/* ==========================================================================
   CONTACTS
   ========================================================================== */
.map-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.contacts-card {
  padding: 48px 40px;
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .2), transparent 40%),
    linear-gradient(135deg, var(--dark), var(--accent) 60%, var(--accent-2));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contacts-card h2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 42px;
  margin-bottom: 16px;
  font-weight: 400;
}
.contacts-card p { margin-bottom: 32px; opacity: 0.9; font-size: 16px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 16px;
  font-weight: 500;
}

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  background: #eee;
  border: 4px solid white;
  box-shadow: var(--shadow);
}
.map-card iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid rgba(var(--accent-rgb), .1);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo { height: 30px; opacity: 0.5; filter: grayscale(100%); transition: .3s; }
.footer-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .map-layout { grid-template-columns: 1fr; }
  .hero-img-wrapper { min-height: 400px; }
  .floating-badge { right: 10px; top: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero h1      { font-size: clamp(36px, 8vw, 64px); }
  .hero h1 span { font-size: clamp(22px, 4.5vw, 32px); }
  .section-title { font-size: clamp(30px, 6vw, 48px); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links a.link { display: none; }
  .hero { padding-top: 30px; }
  .floating-badge { display: none; }
  .contacts-card { padding: 30px 20px; }
  .contacts-card h2 { font-size: 30px; }
  .map-card { min-height: 300px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .hero h1      { font-size: clamp(30px, 9vw, 44px); line-height: 1.05; }
  .hero h1 span { font-size: clamp(18px, 5vw, 24px); }
  .section-title { font-size: clamp(26px, 7vw, 38px); }
  .lead { font-size: 16px; }

  /* lighter blurs — backdrop-filter is expensive on mobile GPUs */
  .service-card, .price-card, .contacts-card, .floating-badge, .faq-item {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  /* hero flare adds little on small screens */
  .hero-img-wrapper::after { display: none; }
}

@media (max-width: 480px) {
  .hero h1      { font-size: clamp(26px, 8vw, 34px); }
  .hero h1 span { font-size: 18px; }
  .section-title { font-size: 26px; }
  .container { width: calc(100% - 24px); }
}

/* ==========================================================================
   VISUAL EFFECTS
   ========================================================================== */

/* ── Scroll Reveal ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button shimmer sweep (hover-only, no constant repaint) ──────────────── */
.btn { overflow: hidden; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, .32) 50%,
    transparent 60%
  );
  transform: translateX(-110%);
  pointer-events: none;
  transition: transform .7s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* ── Hero image diagonal flare (блик) ───────────────────────────────────── */
.hero-img-wrapper::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, .18) 46%,
    rgba(255, 255, 255, .32) 50%,
    rgba(255, 255, 255, .18) 54%,
    transparent 70%
  );
  transform: skewX(-12deg);
  animation: hero-flare 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes hero-flare {
  0%   { left: -60%; opacity: 0; }
  8%   { opacity: 1; }
  35%  { left: 120%; opacity: 1; }
  45%  { opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* Disable heavy animations & blurs on mobile / reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-img-wrapper::after, .btn::after, .sparkle, .particle, .ripple {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Cursor sparkle ──────────────────────────────────────────────────────── */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: sparkle-float .7s ease-out forwards;
}
@keyframes sparkle-float {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(180deg); }
}

/* ── Floating hero particles ─────────────────────────────────────────────── */
@keyframes particle-float {
  0%   { opacity: 0;   transform: translateY(0)    scale(.6); }
  20%  { opacity: 1; }
  80%  { opacity: .6; }
  100% { opacity: 0;   transform: translateY(-80px) scale(1.1); }
}

/* ── Button click ripple ─────────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: ripple-expand .7s linear forwards;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(1); opacity: 0; }
}
