/* ============================================================
   МАЙСТЕРНЯ 84 — Головний файл стилів
   ============================================================ */

/* --- Імпорт шрифтів --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Змінні --- */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --accent: #8B6F47;
  --accent-hover: #7A5F3A;
  --accent-light: #F5EFE6;
  --border: #E5E0D8;
  --border-dark: #C8BFB2;
  --success: #2D7D4A;
  --success-bg: #EAF7EE;
  --error: #C0392B;
  --error-bg: #FDEDEC;
  --warning: #B7791F;
  --warning-bg: #FEF9E7;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);

  --header-h: 64px;
  --max-w: 1100px;
  --section-py: 72px;
}

/* --- Скидання та базові стилі --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Контейнер --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; fill: #fff; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Навігація */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-link.cta {
  background: var(--accent);
  color: #fff;
  margin-left: 8px;
}

.nav-link.cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Гамбургер */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобільне меню */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  font-size: 1rem;
  padding: 12px 16px;
}

.mobile-nav .nav-link.cta {
  margin-left: 0;
  margin-top: 8px;
  text-align: center;
}

/* ============================================================
   ПІДВАЛ
   ============================================================ */
.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-logo { margin-bottom: 12px; }
.footer-logo .logo-name { color: #fff; font-size: 1.1rem; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-logo .logo-icon { background: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ЗАГАЛЬНІ КОМПОНЕНТИ
   ============================================================ */

/* Секція */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--surface); }

/* Заголовок секції */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,111,71,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* Іконка в кнопці */
.btn svg { width: 18px; height: 18px; }

/* Картка */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Сітка карток */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Іконка картки */
.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--accent); }

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Повідомлення */
.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-info { background: var(--accent-light); color: var(--accent); border: 1px solid var(--border-dark); }
.notice-success { background: var(--success-bg); color: var(--success); border: 1px solid #A8D5B5; }
.notice-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #F6D860; }

/* ============================================================
   ХІРО-СЕКЦІЯ (Головна)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2C1F0E 0%, #4A3320 50%, #3D2B15 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #D4B896;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span { color: #D4B896; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #D4B896;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Права частина хіро */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-main-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.hero-machine-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.hero-machine-icon svg { width: 44px; height: 44px; fill: var(--accent); }

.hero-main-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-main-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.hero-badge {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.hero-badge svg { width: 16px; height: 16px; fill: var(--accent); }

.hero-badge-1 { top: -16px; right: -20px; }
.hero-badge-2 { bottom: -16px; left: -20px; }

/* ============================================================
   СЕКЦІЯ ДОВІРИ
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.trust-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   КРОКИ ПРОЦЕСУ
   ============================================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-body { padding: 8px 0 32px; }

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================================
   CTA-БАНЕР
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #6B4F32 100%);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   ТАБЛИЦЯ ЦІН
   ============================================================ */
.price-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-group-title {
  padding: 14px 24px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.1s;
}

.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--bg); }

.price-name { font-size: 0.92rem; }

.price-range {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.price-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--accent-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.price-note svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   ФОРМА ЗАПИСУ
   ============================================================ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.form-label span { color: var(--error); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,111,71,0.12);
}

.form-control.error { border-color: var(--error); }

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 5px;
}

.form-error.show { display: block; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5C5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.booking-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.info-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child { border-bottom: none; }
.info-list li svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }

.booking-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.booking-success.show { display: block; }

.success-icon {
  width: 72px; height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 36px; height: 36px; fill: var(--success); }

.booking-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.booking-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

/* ============================================================
   КОНТАКТИ
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; fill: var(--accent); }

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.contact-item-value a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-item-value a:hover { color: var(--accent-hover); }

.history-card {
  background: var(--accent-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
}

.history-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.history-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   ПОСЛУГИ — ДЕТАЛЬНА СТОРІНКА
   ============================================================ */
.service-block {
  margin-bottom: 56px;
}

.service-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.service-block-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-block-icon svg { width: 28px; height: 28px; fill: var(--accent); }

.service-block-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.service-list-item svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; }

/* ============================================================
   СТОРІНКА 404
   ============================================================ */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   АДМІН-ПАНЕЛЬ
   ============================================================ */
body.admin-body {
  background: #F0EDE8;
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-login-icon {
  width: 64px; height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.admin-login-icon svg { width: 32px; height: 32px; fill: var(--accent); }

.admin-login-card h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-login-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.admin-login-error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.admin-login-error.show { display: block; }

/* Адмін-хедер */
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-title svg { width: 20px; height: 20px; fill: var(--accent); }

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

/* Адмін-основний контент */
.admin-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Панель дій */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-filters {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
}

.filter-btn:hover:not(.active) {
  background: var(--accent-light);
  color: var(--accent);
}

/* Список записів */
.admin-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.admin-empty svg { width: 48px; height: 48px; fill: var(--border-dark); margin: 0 auto 16px; }
.admin-empty h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.admin-empty p { font-size: 0.88rem; }

.admin-date-group { margin-bottom: 28px; }

.admin-date-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.admin-date-label span {
  float: right;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Картка запису */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.booking-card:hover { box-shadow: var(--shadow-md); }

.booking-card.status-confirmed { border-left: 4px solid #2D7D4A; }
.booking-card.status-done { border-left: 4px solid var(--border-dark); opacity: 0.75; }
.booking-card.status-cancelled { border-left: 4px solid var(--error); opacity: 0.6; }
.booking-card.status-pending { border-left: 4px solid var(--warning); }

.booking-card-info { flex: 1; min-width: 0; }

.booking-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.booking-card-service {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.booking-card-phone a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.booking-card-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2px;
}

.booking-card-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.status-badge:hover { opacity: 0.8; }
.status-badge.pending { background: var(--warning-bg); color: var(--warning); }
.status-badge.confirmed { background: var(--success-bg); color: var(--success); }
.status-badge.done { background: #F0F0F0; color: #555; }
.status-badge.cancelled { background: var(--error-bg); color: var(--error); }

.booking-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; fill: var(--text-secondary); }
.icon-btn:hover svg { fill: var(--accent); }

.icon-btn.delete:hover { background: var(--error-bg); border-color: var(--error); }
.icon-btn.delete:hover svg { fill: var(--error); }

/* Модальне вікно */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: background 0.15s;
}

.modal-close:hover { background: var(--border); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn { flex: 1; }

/* Підтвердження видалення */
.confirm-modal { text-align: center; }
.confirm-modal svg { width: 48px; height: 48px; fill: var(--error); margin: 0 auto 16px; }
.confirm-modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.confirm-modal p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }

.btn-danger {
  background: var(--error);
  color: #fff;
  border: none;
}
.btn-danger:hover { background: #A93226; color: #fff; }

/* ============================================================
   АДАПТИВНІСТЬ
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --section-py: 48px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 36px 24px; }
  .hero { padding: 56px 0 64px; }
  .booking-card { flex-wrap: wrap; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-filters { justify-content: center; }
  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cards-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   УТИЛІТИ
   ============================================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

@media print {
  .admin-header, .admin-toolbar, .booking-card-actions, .booking-card-status { display: none !important; }
  body { background: #fff; }
  .booking-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   АДМІН — ТАБИ
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin-tab.active {
  background: var(--accent);
  color: #fff;
}

.admin-tab:hover:not(.active) {
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   АДМІН — УПРАВЛІННЯ ПОСЛУГАМИ
   ============================================================ */
.service-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.service-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.service-category-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  flex: 1;
}

.service-category-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.service-items-table {
  width: 100%;
  border-collapse: collapse;
}

.service-items-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.service-items-table tr:last-child { border-bottom: none; }
.service-items-table tr:hover { background: var(--bg); }

.service-items-table td {
  padding: 11px 18px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.service-item-name {
  color: var(--text);
  flex: 1;
}

.service-item-price {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  width: 160px;
}

.service-item-actions {
  width: 80px;
  text-align: right;
}

.service-empty-row td {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.83rem;
  padding: 14px 18px;
  text-align: center;
}

/* ============================================================
   АДМІН — КАЛЕНДАР
   ============================================================ */
.admin-calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.admin-calendar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-transform: capitalize;
}

.admin-calendar-nav {
  display: flex;
  gap: 6px;
}

.admin-calendar-nav button {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}

.admin-calendar-nav button:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.admin-cal-dow {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.admin-cal-day {
  min-height: 68px;
  padding: 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  cursor: default;
  transition: background 0.1s;
}

.admin-cal-day:nth-child(7n) { border-right: none; }

.admin-cal-day.other-month { background: #F8F5F0; opacity: 0.6; }

.admin-cal-day.today .cal-day-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
}

.admin-cal-day.has-bookings { cursor: pointer; }
.admin-cal-day.has-bookings:hover { background: var(--accent-light); }
.admin-cal-day.selected { background: var(--accent-light); outline: 2px solid var(--accent); outline-offset: -2px; }

.cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.cal-booking-dot {
  display: block;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cal-booking-dot.status-confirmed { background: #2E7D32; }
.cal-booking-dot.status-done { background: #78909C; }
.cal-booking-dot.status-cancelled { background: #B0BEC5; color: #fff; }

@media (max-width: 640px) {
  .admin-tabs { width: 100%; }
  .admin-tab { flex: 1; justify-content: center; font-size: 0.82rem; padding: 8px 10px; }
  .admin-cal-day { min-height: 48px; }
  .cal-booking-dot { display: none; }
  .cal-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
  }
}
