
/* ==========================================================================
   Kareva Nails — Editorial Botanical Luxury Redesign
   Палитра вдохновлена реальным кабинетом (глубокий изумруд + тёплый алебастр + шампань-золото)
   ========================================================================== */

:root {
  --emerald-950: #2A1E18;
  --emerald-900: #3D2B1F;
  --emerald-800: #4E3A2D;
  --emerald-700: #8A6E58;
  --emerald-100: #F2E4DC;

  --alabaster: #FBF6F2;
  --cream: #F7ECE9;
  --white: #ffffff;

  --ink: #3D2B1F;
  --ink-soft: #6B574A;
  --ink-muted: #8A7466;

  --gold: #B08D57;
  --gold-light: #E2CBA4;
  --coral: #D98FA3;
  --coral-dark: #C47A90;

  --border: rgba(26, 31, 30, 0.1);
  --border-light: rgba(255, 255, 255, 0.14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 20px rgba(42, 30, 24, 0.06);
  --shadow-md: 0 16px 40px rgba(42, 30, 24, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 21, 16, 0.22);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--alabaster);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ТИПОГРАФИКА И СЕКЦИИ
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--emerald-700);
}

.section-lead {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--ink-soft);
}

.section {
  padding: 76px 0;
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  background: var(--emerald-950);
  color: #FDFAF7;
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-title em {
  color: var(--gold-light);
}

.section-dark .section-lead {
  color: rgba(246, 243, 236, 0.76);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(217, 143, 163, 0.32);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.btn-emerald {
  background: var(--emerald-900);
  color: #fff;
  box-shadow: 0 10px 26px rgba(42, 30, 24, 0.2);
}

.btn-emerald:hover {
  background: var(--emerald-800);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--emerald-950);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--emerald-800);
  background: rgba(61, 43, 31, 0.04);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* ==========================================================================
   ЕДИНАЯ СОВРЕМЕННАЯ ШАПКА
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 30, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  color: #fff;
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(176, 141, 87, 0.6);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-name span {
  color: var(--gold);
}

.brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: #fff;
}

.burger-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-phone { display: inline; }
  .burger-btn { display: none; }
}

/* Мобильное меню */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 21, 16, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(86vw, 340px);
  height: 100%;
  background: var(--emerald-950);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid var(--border-light);
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.15s ease;
}

.drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   HERO — РЕДАКЦИОННЫЙ ПРЕМИАЛЬНЫЙ ПЕРВЫЙ ЭКРАН
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 82% 24%, rgba(176, 141, 87, 0.16), transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(217, 143, 163, 0.14), transparent 42%),
              linear-gradient(180deg, var(--emerald-950) 0%, var(--emerald-900) 100%);
  color: #fff;
  padding: 44px 0 68px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 56px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(176, 141, 87, 0.14);
  border: 1px solid rgba(176, 141, 87, 0.34);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee09c;
  box-shadow: 0 0 10px #6ee09c;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48ch;
}

.hero-offer {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-offer-price {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--gold-light);
  white-space: nowrap;
}

.hero-offer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.hero-offer-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: #fff;
  line-height: 1.1;
}

.metric-val span {
  color: var(--gold);
}

.metric-lbl {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
}

/* Правая витрина Hero */
.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  background: var(--emerald-800);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(42, 30, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.float-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.float-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.float-badge {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--emerald-950);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   О КАБИНЕТЕ (ФИЛОСОФИЯ + ИНТЕРЬЕР)
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 60px;
  }
}

.studio-photo-wrap {
  position: relative;
}

.studio-photo {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.studio-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--emerald-900);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.about-quote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.22;
  color: var(--emerald-900);
}

.about-body {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 16px;
}

.bento-perks {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 560px) {
  .bento-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.perk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.perk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.perk-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.perk-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.perk-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   ИНТЕРАКТИВНЫЙ ПРАЙС + КАЛЬКУЛЯТОР ВИЗИТА
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-900);
}

.tab-btn.active {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 780px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.price-card:hover {
  border-color: rgba(61, 43, 31, 0.28);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  background: linear-gradient(135deg, #3D2B1F 0%, #4E3A2D 100%);
  color: #fff;
  border-color: rgba(176, 141, 87, 0.5);
}

.price-card.featured .price-desc,
.price-card.featured .price-meta {
  color: rgba(255, 255, 255, 0.78);
}

.price-card.featured .price-amount {
  color: var(--gold-light);
}

.price-card.selected {
  border-color: var(--coral);
  box-shadow: 0 10px 28px rgba(217, 143, 163, 0.16);
}

.price-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.price-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--emerald-950);
}

.price-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.price-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--emerald-900);
  white-space: nowrap;
  line-height: 1.1;
}

.price-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(128, 128, 128, 0.22);
}

.price-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.select-service-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--alabaster);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.price-card.featured .select-service-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.price-card.selected .select-service-btn {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* Плавающая панель выбранных услуг (Калькулятор) */
.calc-bar {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--emerald-950);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.calc-bar.empty {
  background: var(--white);
  color: var(--ink-soft);
  border: 1px dashed rgba(61, 43, 31, 0.24);
  box-shadow: none;
}

.calc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.calc-total {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-light);
  line-height: 1;
}

.calc-list {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.calc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   ПОРТФОЛИО + LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  background: var(--cream);
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.gallery-item.hidden-item {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(42, 30, 24, 0.82));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  opacity: 0.95;
}

.gallery-zoom-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 21, 16, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-box {
  position: relative;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-height: 70vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.lightbox-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(42, 30, 24, 0.72);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(42, 30, 24, 0.78);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================================================
   ЭТАПЫ ПРОЦЕДУРЫ (01–06)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.step-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.step-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   ГИД (КОГДА НУЖЕН / КОГДА ОТЛОЖИТЬ) + РЕЗУЛЬТАТЫ + БЕЗОПАСНОСТЬ
   ========================================================================== */
.guide-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.guide-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.guide-panel h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.guide-tabs {
  display: inline-flex;
  background: var(--cream);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.guide-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab.active {
  background: var(--emerald-900);
  color: #fff;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.check-ok { background: #e3f3ea; color: #266b46; }
.check-warn { background: #FBE9E7; color: #B5453B; }

.guide-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.results-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .results-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.res-box {
  background: var(--alabaster);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
}

.res-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--emerald-900);
}

.res-box span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Блок Безопасность (тёмный изумруд) */
.safety-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.safety-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
}

.safety-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(176, 141, 87, 0.16);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.safety-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.safety-card p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.76);
}

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #d49b35;
  letter-spacing: 3px;
  font-size: 15px;
  margin-bottom: 10px;
}

.review-text {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
}

.review-meta {
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   FAQ АККОРДЕОН
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--emerald-700);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--emerald-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--emerald-900);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   ЗАПИСЬ И КОНТАКТЫ
   ========================================================================== */
.booking-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .booking-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

.booking-form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .booking-form-card { padding: 36px; }
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(26, 31, 30, 0.14);
  background: var(--alabaster);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald-700);
  background: #fff;
}

.form-consent {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 4px 0 0;
}

.form-consent a {
  text-decoration: underline;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contact-card small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.contact-card strong {
  font-size: 16px;
  color: #fff;
}

.contact-link {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ФУТЕР + МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ + МОДАЛКА ЗАЯВКИ
   ========================================================================== */
.footer {
  background: #241A15;
  color: rgba(255, 255, 255, 0.66);
  padding: 36px 0 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

@media (min-width: 768px) {
  .footer { padding: 36px 0; }
}

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

.footer-legal {
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* Мобильная нижняя панель быстрого действия */
.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  background: rgba(42, 30, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .mobile-dock { display: none; }
}

.mobile-dock .btn {
  padding: 11px 14px;
  font-size: 13.5px;
}

/* Модалка подтверждения заявки */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(30, 21, 16, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e3f3ea;
  color: #266b46;
  font-size: 28px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
}

.modal-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* Плавное появление блоков при скролле */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* ==========================================================================
   KARENA NAILS — ФИРМЕННЫЕ ПРАВКИ (кремово-розовая палитра, светлая шапка и hero)
   ========================================================================== */
.header {
  background: rgba(251, 246, 242, 0.92);
  border-bottom: 1px solid rgba(61, 43, 31, 0.1);
  color: var(--ink);
}
.brand-name { color: var(--ink); }
.brand-name span { color: var(--accent, #D98FA3); }
.brand-sub { color: var(--ink-muted); }
.nav-link { color: var(--ink-soft); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.header-phone { color: var(--gold); }
.header-phone:hover { color: var(--coral-dark); }
.burger-btn { border-color: rgba(61, 43, 31, 0.18); background: rgba(255,255,255,0.7); color: var(--ink); }

.hero {
  background: radial-gradient(circle at 84% 18%, rgba(217, 143, 163, 0.16), transparent 45%),
              radial-gradient(circle at 10% 88%, rgba(176, 141, 87, 0.14), transparent 42%),
              linear-gradient(180deg, #FBF6F2 0%, #F7ECE9 100%);
  color: var(--ink);
}
.hero-title { color: var(--ink); }
.hero-title em { color: var(--gold); }
.hero-desc { color: var(--ink-soft); }
.hero-offer { background: rgba(255, 255, 255, 0.75); border-color: rgba(61, 43, 31, 0.12); }
.hero-offer-price { color: var(--gold); }
.hero-offer-text { color: var(--ink-soft); }
.hero-offer-text strong { color: var(--ink); }
.hero-metrics { border-top-color: rgba(61, 43, 31, 0.12); }
.metric-val { color: var(--ink); }
.metric-val span { color: var(--gold); }
.metric-lbl { color: var(--ink-muted); }
.hero-frame { border-color: rgba(61, 43, 31, 0.1); background: var(--cream); }
.hero .btn-outline-light { color: var(--ink); border-color: rgba(61, 43, 31, 0.22); }
.hero .btn-outline-light:hover { background: rgba(217, 143, 163, 0.12); border-color: var(--coral); }
.hero-pill { background: rgba(176, 141, 87, 0.12); border-color: rgba(176, 141, 87, 0.34); color: #8A6E58; }

/* Контент виден всегда (появление при скролле больше не скрывает блоки) */
.reveal, .reveal.visible { opacity: 1; transform: none; }

.nav-link, .header-phone, .brand-sub, .brand-name { white-space: nowrap; }
@media (min-width: 1024px) { .nav-desktop { gap: 18px; } .nav-link { font-size: 13.5px; } }

.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.calc-chip:hover { background: rgba(217,143,163,0.35); border-color: var(--coral); }

@media (max-width: 560px) {
  .header-inner { gap: 10px; height: 64px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .brand-avatar { width: 38px; height: 38px; }
  .header-actions { gap: 8px; }
  .header .btn-sm { padding: 7px 10px; font-size: 11px; letter-spacing: 0; }
  .brand-name { font-size: 17px; }
  .header-inner { padding-left: 14px; padding-right: 14px; }
  body { padding-bottom: 76px; }
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* Ботанический орнамент */
.ornament { display: flex; justify-content: center; margin: 0 0 18px; color: var(--gold); }
.ornament svg { height: 34px; width: 116px; }

/* Подписи работ не показываем */
.gallery-caption { display: none; }
.gallery-item::after {
  content: "⤢";
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.85); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item { position: relative; }

.form-error { color: #B5453B; font-size: 13px; margin: 0; }
.form-consent a { color: var(--gold); text-decoration: underline; }
.form-success { text-align: center; padding: 18px 6px; }
.form-success h3 { font-family: var(--font-display); font-size: 28px; margin: 0 0 10px; color: var(--ink); }
.form-success p { color: var(--ink-soft); margin: 0 0 16px; font-size: 15px; }

/* Значок "Сделано в Спру" не показываем */
#spru-pages-badge-host { display: none !important; }
