/* ============================================================
   ГРАНІТ УКРАЇНИ — Design System
   ============================================================ */

:root {
  --hf: #162015; --banner: #435a3d; --btn: #3b5235;
  --bg: #f5f3ef; --card: #ffffff; --text: #1a1a1a;
  --text-light: #e8e4db; --accent: #c9a84c; --accent2: #a37e2c;
  --border: #e0ddd6; --shadow: 0 2px 12px rgba(22,32,21,.10);
  --shadow-hover: 0 8px 32px rgba(22,32,21,.18);
  --radius: 10px; --transition: .25s cubic-bezier(.4,0,.2,1);
  --max-w: 1320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif; color: var(--text);
  background: var(--bg) url('../assets/bg/marble-bg.webp') center/cover fixed;
  min-height: 100vh; line-height: 1.6;
  display: flex; flex-direction: column;
}
main { flex: 1; }
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; border: none; outline: none;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ── Announcement Bar ── */
.announcement { display: none; }
.announcement.visible {
  display: block; background: var(--hf); color: var(--text-light);
  text-align: center; padding: 8px 16px; font-weight: 600;
  font-size: .85rem; position: relative; overflow: hidden;
}
.announcement .marquee {
  display: inline-block; white-space: nowrap;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }
.announcement a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ── Header ── */
.header {
  background: var(--hf); position: relative; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 52px; width: auto; border-radius: 6px; }
.logo-text { color: var(--text-light); }
.logo-text h1 { font-size: 1.15rem; font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
.logo-text small { font-size: .65rem; opacity: .7; letter-spacing: 2px; text-transform: uppercase; }

.search-box {
  flex: 1; max-width: 480px; min-width: 200px; position: relative;
}
.search-box input {
  width: 100%; padding: 10px 44px 10px 16px; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.15); transition: var(--transition);
}
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box input:focus { background: rgba(255,255,255,.2); border-color: var(--accent); }
.search-box .search-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.5); pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.phone-link {
  color: var(--accent); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 6px; transition: var(--transition);
}
.phone-link .phone-text { color: #e8e2d7; transition: var(--transition); }
.phone-link:hover { color: var(--accent); }
.phone-link:hover .phone-text { color: var(--accent); }
.phone-link svg { width: 18px; height: 18px; }

.social-icon {
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 50%; transition: var(--transition);
}
.social-icon:hover { background: rgba(201,168,76,.15); transform: scale(1.1); }
.social-icon svg { width: 20px; height: 20px; }



/* ── Category Nav ── */
.cat-nav { background: var(--banner); border-bottom: 2px solid rgba(0,0,0,.15); }
.cat-nav-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cat-dropdown { position: relative; flex: 1; max-width: 320px; }
.works-link {
  color: var(--hf); font-weight: 700; font-size: 0.8rem; text-align: center;
  line-height: 1.2; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; padding: 6px 12px; border: 1px solid var(--accent);
  border-radius: 6px; flex-shrink: 0; background: var(--accent);
  transition: var(--transition);
}
.works-link:hover { background: var(--hf); color: var(--accent); }
.cat-nav-inner {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-dropdown-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #42593c; border: 1px solid var(--accent);
  color: var(--text-light); font-weight: 600; font-size: .88rem;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  transition: var(--transition);
}
.cat-dropdown-toggle::after {
  content: ''; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--accent); transition: var(--transition);
}
.cat-dropdown.open .cat-dropdown-toggle::after {
  transform: rotate(180deg);
}
.cat-dropdown-toggle:hover,
.cat-dropdown.open .cat-dropdown-toggle {
  color: var(--accent);
}
.cat-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #42593c; border: 1px solid var(--accent);
  border-radius: 8px; z-index: 50;
}
.cat-dropdown-option:first-child { border-radius: 7px 7px 0 0; }
.cat-dropdown-option:last-child { border-radius: 0 0 7px 7px; }
.cat-dropdown.open .cat-dropdown-menu { display: block; }
.cat-dropdown-option {
  padding: 10px 16px; color: var(--text-light); font-weight: 500;
  font-size: .85rem; cursor: pointer;
}
.cat-dropdown-option:hover,
.cat-dropdown-option.highlighted {
  background: var(--accent) !important;
  color: var(--hf) !important;
}
.cat-dropdown-option:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── Banner ── */
.promo-banner {
  background: linear-gradient(135deg, var(--banner), #2d3e28);
  padding: 20px; border-radius: var(--radius); margin: 20px 0;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.02) 10px, rgba(255,255,255,.02) 20px);
}
.promo-banner-text {
  position: relative; z-index: 1; flex: 1; text-align: center;
}
.promo-banner-text p {
  color: var(--text-light); font-size: 1rem; line-height: 1.5;
}
.promo-banner-text .discount-badge {
  display: inline-block; background: var(--accent); color: var(--hf);
  padding: 4px 14px; border-radius: 20px; font-weight: 800;
  font-size: 1.1rem; margin-right: 8px; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.promo-banner .promo-phone {
  color: var(--accent); font-weight: 700; font-size: 1.1rem;
}

/* ── Sort Bar ── */
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; flex-wrap: wrap; gap: 10px;
}
.sort-bar .results-count { font-size: .9rem; color: #666; }
.sort-label { font-size: .85rem; color: #666; white-space: nowrap; }
.sort-dropdown {
  position: relative;
  min-width: 190px;
}
.sort-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #42593c;
  border: 1px solid var(--accent);
  color: var(--text-light);
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.sort-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--accent);
  transition: var(--transition);
}
.sort-dropdown.open .sort-dropdown-toggle::after {
  transform: rotate(180deg);
}
.sort-dropdown-toggle:hover,
.sort-dropdown.open .sort-dropdown-toggle {
  color: var(--accent);
}
.sort-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #42593c;
  border: 1px solid var(--accent);
  border-radius: 8px;
  z-index: 50;
  min-width: 190px;
  box-shadow: var(--shadow);
}
.sort-dropdown.open .sort-dropdown-menu {
  display: block;
}
.sort-dropdown-option {
  padding: 8px 14px;
  color: var(--text-light);
  font-size: .82rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.sort-dropdown-option:first-child { border-radius: 7px 7px 0 0; }
.sort-dropdown-option:last-child { border-radius: 0 0 7px 7px; }
.sort-dropdown-option:hover,
.sort-dropdown-option.highlighted {
  background: var(--accent) !important;
  color: var(--hf) !important;
}
.sort-dropdown-option:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.card-badge-new {
  background: #2e7d32 !important;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding-bottom: 40px;
}
.product-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); position: relative; cursor: pointer;
  display: flex; flex-direction: column;
  touch-action: manipulation;
}
.product-card .card-body { flex: 1; }
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.product-card .card-img {
  position: relative; overflow: hidden; aspect-ratio: 1/1;
  background: #f0ede7;
}
.product-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .card-img img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: #d32f2f; color: #fff; padding: 3px 10px;
  border-radius: 4px; font-size: .75rem; font-weight: 700; z-index: 2;
}

.card-body { padding: 14px; display: flex; flex-direction: column; }
.card-body .card-top { flex: 1; }
.card-body .card-actions { margin-top: auto; }
.card-body .card-title {
  font-family: 'Montserrat', sans-serif; font-size: .92rem;
  font-weight: 700; margin-bottom: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .card-material { font-size: .78rem; color: #888; margin-bottom: 8px; }
.card-body .card-price {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--btn); font-size: .95rem;
}
.card-body .card-actions { display: flex; gap: 8px; margin-top: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: .85rem; cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary { background: #394d34; color: var(--text-light); }
.btn-primary:hover { background: #394d34; color: var(--accent); transform: translateY(-1px); }
.btn-outline {
  background: #394d34; color: var(--text-light);
  border: 1.5px solid #394d34;
}
.btn-outline:hover { background: #394d34; color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--hf); }
.btn-accent:hover { background: var(--accent2); }
.btn-viber { background: #394d34; color: var(--text-light); }
.btn-viber:hover { background: #394d34; color: var(--accent); }
.btn-telegram { background: #394d34; color: var(--text-light); }
.btn-telegram:hover { background: #394d34; color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ── Product Detail Page ── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 30px 0 50px;
}
.pd-gallery { position: relative; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lightbox { display:none; position:fixed; top:0; left:0; width:100%; height:100%; z-index:2000; background:rgba(0,0,0,.92); justify-content:center; align-items:center; flex-direction:column; }
.lightbox.active { display:flex; }
.lb-img { max-width:92vw; max-height:85vh; object-fit:contain; border-radius:8px; }
.lb-close { position:absolute; top:16px; right:20px; font-size:2rem; color:#fff; cursor:pointer; z-index:2001; opacity:.7; transition:.2s; }
.lb-close:hover { opacity:1; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); font-size:2.5rem; color:#fff; cursor:pointer; padding:16px; opacity:.6; transition:.2s; -webkit-user-select:none; user-select:none; z-index:2001; }
.lb-nav:hover { opacity:1; }
.lb-prev { left:8px; }
.lb-next { right:8px; }
.lb-dots { position:absolute; bottom:20px; display:flex; gap:10px; }
.lb-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.4); transition:.2s; }
.lb-dot.active { background:#fff; transform:scale(1.2); }
.pd-gallery img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #f0ede7;
}
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-breadcrumb { font-size: .82rem; color: #888; margin-bottom: 4px; }
.pd-breadcrumb a { color: var(--btn); }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-title { font-size: 1.6rem; font-weight: 800; }
.pd-article { font-size: .85rem; color: #888; }
.pd-desc { font-size: .95rem; line-height: 1.7; color: #444; }
.pd-material {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(67,90,61,.08);
  border-radius: 8px; font-size: .9rem;
}
.pd-price-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pd-price { font-size: 1.3rem; font-weight: 800; color: var(--btn); }
.pd-discount {
  background: #d32f2f; color: #fff; padding: 4px 12px;
  border-radius: 20px; font-size: .8rem; font-weight: 700;
}
.pd-actions { display: flex; flex-direction: column; gap: 10px; }
.pd-contact {
  padding: 20px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pd-contact h3 { font-size: 1rem; margin-bottom: 12px; }
.pd-contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: #999;
}
.empty-state svg { width: 64px; height: 64px; color: #ccc; margin-bottom: 16px; }

/* ── Works / Blog Page ── */
.works-page { padding: 30px 0 50px; }
.works-feed { display: flex; flex-direction: column; gap: 30px; }
/* ── Works Page ── */
.works-desc { color: #666; margin-bottom: 20px; }
.works-back { margin-top: 20px; margin-bottom: 40px; }

.work-post {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; padding: 20px;
  border: 3px solid #42593c;
}
.work-post-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.work-post-date { font-size: 0.85rem; color: #888; font-weight: 600; }
.work-post-desc { font-size: 0.95rem; line-height: 1.5; margin-bottom: 16px; white-space: pre-wrap; }
/* 1 photo - full width */
.work-post-images.single img {
  width: 100%; height: auto; max-height: 500px;
  object-fit: contain; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); transition: var(--transition);
  margin-bottom: 16px;
}
/* Collage grid - photos keep proportional aspect ratio */
.work-post-images.two,
.work-post-images.four {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.work-post-images.two img {
  aspect-ratio: 4 / 3;
}
.work-post-images.three {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.work-post-images.three img:first-child {
  grid-column: 1 / -1; aspect-ratio: 2 / 1;
}
.work-post-images.three img:nth-child(2),
.work-post-images.three img:nth-child(3) {
  aspect-ratio: 1 / 1;
}
.work-post-images.many {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.work-post-images.four img,
.work-post-images.many img {
  aspect-ratio: 1 / 1;
}
.work-post-images:not(.single) img {
  width: 100%; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); transition: var(--transition);
}
.work-post-images:not(.single) img:hover { opacity: 0.8; }
/* Description with link (banner-style) */
.work-post-desc { font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; }
.work-post-desc a {
  color: var(--btn); font-weight: 600; text-decoration: underline;
}
.work-post-desc a:hover { color: var(--accent2); }


/* ── Admin Panel ── */
.admin-page { padding: 30px 0 50px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
}
.stat-card .stat-num {
  font-family: 'Montserrat', sans-serif; font-size: 2rem;
  font-weight: 800; color: var(--btn);
}
.stat-card .stat-label { font-size: .82rem; color: #888; margin-top: 4px; }
.admin-table-wrap {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow-x: auto;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.admin-table th {
  background: var(--hf); color: var(--text-light);
  padding: 12px 14px; text-align: left; font-weight: 600;
  white-space: nowrap;
}
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover { background: rgba(67,90,61,.04); }
.admin-table img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.admin-actions { display: flex; gap: 6px; }
.admin-actions button {
  padding: 5px 10px; border-radius: 4px; font-size: .78rem;
  cursor: pointer; border: none; transition: var(--transition);
}
.admin-actions .edit-btn { background: #394d34; color: var(--text-light); }
.admin-actions .edit-btn:hover { background: #394d34; color: var(--accent); }
.admin-actions .del-btn { background: #c0392b; color: #fff; }
.admin-actions .del-btn:hover { background: #a93226; color: #fff; }
.del-btn { background: #c0392b; color: #fff; border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer; font-size: .78rem; }
.del-btn:hover { background: #a93226; color: #fff; }
.w-del-btn { background: #c0392b; color: #fff; border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer; font-size: .78rem; }
.w-del-btn:hover { background: #a93226; color: #fff; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; max-width: 520px; width: 100%;
  box-shadow: 0 16px 48px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

/* Auth */
.auth-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.auth-box {
  background: var(--card); padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; max-width: 380px; width: 100%;
}
.auth-box h2 { margin-bottom: 20px; }
.auth-box input { margin-bottom: 14px; }

/* ── Footer ── */
.footer {
  background: var(--hf); color: var(--text-light); padding: 40px 0 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer h4 {
  font-size: .95rem; margin-bottom: 14px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
}
.footer p, .footer a { font-size: .85rem; line-height: 1.8; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px; text-align: center; font-size: .78rem; opacity: .6;
}
.footer .social-links { display: flex; gap: 12px; margin-top: 10px; }
.footer .social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1.1rem; color: var(--accent);
}
.footer .social-links a:hover { background: rgba(201,168,76,.15); transform: scale(1.1); }

/* ── Responsive ── */
@media(max-width:1100px) { .product-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:800px) {
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .header-top { padding: 8px 0; }
  .logo img { height: 40px; }
  .logo-text h1 { font-size: .95rem; }
  .search-box { order: 3; min-width: 100%; }
  .promo-banner { flex-direction: column; text-align: center; }
}
@media(max-width:520px) {
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .cat-btn { padding: 10px 14px; font-size: .8rem; }
  .pd-title { font-size: 1.2rem; }

  .footer-grid { text-align: center; }
  .footer-grid > div { display: flex; flex-direction: column; align-items: center; }
  .header-top { justify-content: center; gap: 8px; }

}
@media(hover:none) {
  .social-icon:hover,
  .social-icon:active,
  .social-icon:focus { background: transparent; transform: none; }
}

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--btn); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(20px);
  transition: var(--transition); font-size: 1.2rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--hf); }

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.skeleton-card { pointer-events: none; }
.skeleton-card .card-body { gap: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--hf); color: var(--text-light); padding: 12px 24px;
  border-radius: 8px; font-size: .88rem; font-weight: 600; z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transition: var(--transition);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Page Loader ── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--btn); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.page-loader .loader-text {
  font-size: .85rem; color: #888;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll Sentinel ── */
.scroll-sentinel { height: 1px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--btn); box-shadow: 0 0 0 3px rgba(59,82,53,.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }
