/* kulki.store — design tokens: повітряна свіжість
   display: Comfortaa · body: Nunito */

:root {
  --cream: #FDFBF7;
  --cream-deep: #F6F1E7;
  --mint: #CFEAE0;
  --mint-deep: #9FD3C2;
  --coral: #F5B9A0;
  --coral-deep: #D9714B;
  --gold: #F2CB6B;
  --gold-deep: #C99A3B;
  --ink: #2E2E2E;
  --ink-soft: #6B6B66;
  --white: #FFFFFF;

  --font-display: 'Comfortaa', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 32px -16px rgba(46, 46, 46, 0.18);
  --shadow-card: 0 8px 20px -12px rgba(46, 46, 46, 0.14);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: rgba(245, 185, 160, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

section { padding: 28px 0; position: relative; }
section.tight { padding: 16px 0; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral-deep);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(217, 113, 75, 0.55);
}
.btn-primary:hover { background: #c8623d; }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--mint-deep);
}
.btn-secondary:hover { background: var(--mint); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(46, 46, 46, 0.14);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(207,234,224,0.55) 0%, rgba(253,251,247,0.96) 78%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--mint-deep);
  box-shadow: 0 6px 24px -14px rgba(46, 46, 46, 0.28);
}

.site-header .inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}

.brand {
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand .dot { color: var(--coral-deep); }

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--coral-deep); }

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

.header-phone {
  text-decoration: none;
  font-weight: 800;
  color: var(--coral-deep);
  font-size: 0.98rem;
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 2px solid var(--coral);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(217, 113, 75, 0.5);
}
.header-phone svg { flex-shrink: 0; }

.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 2px solid rgba(46,46,46,0.12);
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.social-icon-btn:hover { border-color: var(--coral-deep); color: var(--coral-deep); transform: translateY(-2px); }
.social-icon-btn svg { width: 18px; height: 18px; }


.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  /* Меню прив'язане до реальної висоти шапки (top: 100%), а не до
     зашитого значення — інакше при зміні розміру шапки воно налазить
     на кнопки. Ховаємо через opacity/visibility, а не transform, щоб
     закрите меню не просвічувало поверх шапки. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 2px solid var(--mint-deep);
    box-shadow: 0 12px 28px -18px rgba(46, 46, 46, 0.45);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 4px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(46, 46, 46, 0.07);
  }
  .main-nav li:last-child a { border-bottom: none; }

  .nav-toggle { display: block; }

  /* на вузьких екранах шапка не має розповзатись */
  .site-header .inner { padding: 14px 18px; gap: 10px; }
  .brand { font-size: 1.2rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 11px 18px; font-size: 0.9rem; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.05rem; }
  .header-actions .btn { padding: 10px 14px; font-size: 0.84rem; }
  .container { padding: 0 16px; }
}
@media (min-width: 861px) { .header-phone { display: inline-flex; } }

/* ---------- герой ---------- */

.hero {
  padding: 36px 0 36px;
  overflow: hidden;
  position: relative;
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}
.blob-1 { width: 220px; height: 220px; background: var(--mint); top: -40px; right: 6%; }
.blob-2 { width: 140px; height: 140px; background: var(--coral); bottom: 10%; right: 20%; animation-delay: -3s; }
.blob-3 { width: 90px; height: 90px; background: var(--gold); top: 40%; right: -10px; animation-delay: -6s; }

.hero-drift span {
  position: absolute;
  top: 0;
  border-radius: 50%;
  opacity: 0.5;
  animation: hero-drift-move linear infinite;
}
@keyframes hero-drift-move {
  0%   { transform: translateY(-15vh) translateX(0) scale(1); }
  25%  { transform: translateY(15vh) translateX(18px) scale(1.04); }
  50%  { transform: translateY(45vh) translateX(-14px) scale(0.97); }
  75%  { transform: translateY(75vh) translateX(16px) scale(1.03); }
  100% { transform: translateY(115vh) translateX(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .hero-drift span, .string-path, .reveal { animation: none !important; transition: none !important; }
}

.hero .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 920px) { .hero .inner { grid-template-columns: 1fr; } }

.hero-text .lede { font-size: 1.08rem; max-width: 46ch; }

.word-cycle {
  display: block;
  position: relative;
  height: 1.22em;
  overflow: hidden;
}
.word-cycle .word {
  position: absolute;
  left: 0; top: 0;
  color: var(--coral-deep);
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.word-cycle .word.is-active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .word-cycle .word { transition: none; }
}

.hero-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 22px;
}
.hero-line .brand-mark { color: var(--coral-deep); }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card .hint { font-size: 0.88rem; margin-bottom: 18px; }

/* ---------- стрічка-роздільник (сигнатура) ---------- */

.string-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  color: var(--mint-deep);
}

/* ---------- картки пропозицій ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 920px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.card-media:hover img { transform: scale(1.05); }
.card-media .placeholder { color: var(--mint-deep); font-size: 2.4rem; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-kind {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-deep);
}
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.card-desc { font-size: 0.92rem; margin: 0; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-price { font-weight: 800; font-size: 1.05rem; }
.card-price small { font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- фільтр ---------- */

.mini-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.mini-guide-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.mini-guide-item .eyebrow { margin-bottom: 8px; }
.mini-guide-item p { margin: 0; font-size: 0.9rem; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-pill {
  border: 2px solid rgba(46,46,46,0.12);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.filter-pill.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- галерея ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  background: var(--cream-deep);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-preview-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-deep);
}
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-preview-item:hover img { transform: scale(1.06); }

.gallery-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--white);
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(46,46,46,0.35);
  z-index: 2;
}

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 24px 12px 10px;
  background: linear-gradient(180deg, rgba(46,46,46,0) 0%, rgba(46,46,46,0.72) 100%);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- лайтбокс (галерея і картки послуг/товарів) ---------- */

.lightbox {
  position: fixed; inset: 0; background: rgba(46,46,46,0.88);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
}
.lightbox img { max-width: 92vw; max-height: 76vh; border-radius: var(--radius-md); display: block; }
.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--white);
}
.lightbox-caption .lb-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.lightbox-caption .lb-price { font-weight: 800; font-size: 1rem; color: var(--gold); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.14); border: 2px solid rgba(255,255,255,0.4);
  color: var(--white); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.4rem;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- відгуки ---------- */

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.review-quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 14px; }
.review-author { font-weight: 700; font-size: 0.9rem; }
.review-source { font-size: 0.82rem; color: var(--ink-soft); }
.review-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 14px;
}

/* ---------- форма ---------- */

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(46,46,46,0.12);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--mint-deep);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { font-size: 0.9rem; font-weight: 700; margin-top: 10px; display: none; }
.form-status.ok { color: #2f7d5c; display: block; }
.form-status.err { color: var(--coral-deep); display: block; }

/* ---------- модалка замовлення ---------- */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(46,46,46,0.5);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-soft);
}

/* ---------- CTA-блок ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.72); }

/* ---------- контакти ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(46,46,46,0.08); }
.contact-list .label { font-weight: 700; min-width: 130px; color: var(--ink-soft); font-size: 0.9rem; flex-shrink: 0; }
.work-hours { white-space: pre-line; line-height: 1.5; }
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: none; width: 100%; aspect-ratio: 4/3; display: block; }
.map-wrap { position: relative; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 34px; height: auto;
  filter: drop-shadow(0 6px 10px rgba(46,46,46,0.35));
  pointer-events: none;
}

/* ---------- футер ---------- */

.site-footer { padding: 48px 0 32px; border-top: 1px solid rgba(46,46,46,0.08); margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }
.footer-bottom { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- секції загалом ---------- */

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-soft);
  background: var(--white); border-radius: var(--radius-md);
}

/* ---------- анімація появи ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- адмінка (легка, окрема від публічного сайту) ---------- */

.admin-shell { display: flex; min-height: 100vh; font-family: var(--font-body); background: var(--cream-deep); }
.admin-sidebar { width: 220px; background: var(--ink); color: var(--white); padding: 24px 18px; flex-shrink: 0; }
.admin-sidebar .brand { color: var(--white); margin-bottom: 26px; }
.admin-sidebar nav a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: rgba(255,255,255,0.78); font-weight: 700; font-size: 0.92rem; margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}
.admin-main { flex: 1; padding: 32px 40px; max-width: 980px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(46,46,46,0.08); vertical-align: middle; }
.admin-table th { color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--cream-deep); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-service { background: var(--mint); color: #1f5c48; }
.badge-product { background: rgba(242,203,107,0.35); color: var(--gold-deep); }
.badge-kind { background: rgba(242,203,107,0.35); color: var(--gold-deep); }
.badge-off { background: rgba(46,46,46,0.08); color: var(--ink-soft); }
.row-actions { display: flex; gap: 8px; }
.row-actions .btn { padding: 7px 14px; font-size: 0.82rem; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream-deep); }
.login-box { background: var(--white); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 380px; box-shadow: var(--shadow-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-box { background: var(--white); border-radius: var(--radius-md); padding: 18px; text-align: center; box-shadow: var(--shadow-card); }
.stat-box .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.stat-box .label { font-size: 0.82rem; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 860px) {
  /* Раніше бічне меню адмінки на мобільному просто ховалось (display:none)
     і навігація зникала повністю. Тепер воно перетворюється на горизонтальну
     стрічку зверху, яку можна гортати. */
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .admin-sidebar .brand { margin-bottom: 0; font-size: 1.15rem; }
  .admin-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex: 1 1 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar nav a {
    margin-bottom: 0;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 0.86rem;
  }
  .admin-sidebar form { margin-top: 0 !important; }
  .admin-sidebar form .btn { padding: 9px 16px; font-size: 0.84rem; }
  .admin-main { padding: 20px 16px; }
  /* широкі таблиці не мають розпирати сторінку */
  .admin-card { overflow-x: auto; }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list .label { min-width: 0; }
  .cta-band { padding: 32px 22px; }
  .hero-card { padding: 22px; }
  .modal-box { padding: 24px 20px; }
  .review-photo { width: 120px; height: 120px; }
}
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }
