/* Казковий сад — Дизайн-система та базова верстка */
:root {
  --bg: #F7F4EE;
  --surface: #EFECE5;
  --sage: #E7ECE3;
  --text: #252722;
  --muted: #5C6158;
  --accent: #2E4938;
  --accent-hover: #23382A;
  --on-accent: #FFFFFF;
  --border: #DCD8CE;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 28px rgba(37, 39, 34, 0.05);
  --container-w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body { margin: 0; background-color: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.font-serif, h1, h2, h3, .brand-name { font-family: 'Lora', Georgia, serif; font-weight: 500; letter-spacing: -0.015em; line-height: 1.22; margin: 0; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand-name { font-size: 1.35rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-desktop { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text); padding: 6px 0; transition: opacity 0.18s ease; }
.nav-link:hover { opacity: 0.72; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 0.96rem; border: 1px solid transparent; transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease; text-align: center; }
.btn-primary { background-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-secondary { background-color: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background-color: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-full { width: 100%; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; font-weight: 600; }
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); padding: 22px 20px 36px; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mobile-drawer.open { display: flex; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.drawer-links { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.drawer-link { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; color: var(--text); }
main { flex: 1; }
.section { padding: 64px 0; }
.section-sage { background-color: var(--sage); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.section-subtitle { color: var(--muted); max-width: 600px; margin-top: 8px; }
.hero { padding: 44px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.35rem); margin-bottom: 14px; }
.hero-subtitle { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--text); font-weight: 500; margin-bottom: 14px; }
.hero-text { color: var(--muted); font-size: 1.02rem; max-width: 520px; margin-bottom: 26px; }
.hero-photo-wrap { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background-color: var(--surface); box-shadow: var(--shadow-soft); }
.photo-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 0.92rem; background: linear-gradient(145deg, #ece8df, #e2e7de); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: flex; flex-direction: column; gap: 12px; }
.category-thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.category-thumb img, .card-thumb img, .hero-photo-wrap img, .about-photo img, .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.category-card:hover .category-thumb img, .catalog-card:hover .card-thumb img { transform: scale(1.025); }
.category-title { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 600; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-card { display: flex; flex-direction: column; gap: 10px; background: transparent; }
.card-thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); margin-bottom: 4px; }
.card-title { font-family: 'Lora', Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.card-meta { font-size: 0.92rem; color: var(--muted); }
.card-price { font-size: 1.02rem; font-weight: 600; color: var(--text); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-pill { border: 1px solid var(--border); background: transparent; color: var(--text); padding: 9px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; transition: all 0.18s ease; }
.filter-pill.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.gallery-caption { font-size: 0.94rem; color: var(--text); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.about-text { font-size: 1.04rem; color: var(--text); }
.order-box { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; max-width: 820px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.detail-gallery { display: flex; flex-direction: column; gap: 14px; }
.detail-main-photo { width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.detail-main-photo img { width: 100%; height: auto; object-fit: contain; }
.detail-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-thumb-btn { width: 72px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface); }
.detail-thumb-btn.active { border-color: var(--accent); }
.detail-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.price-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.price-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 600; }
.specs-list { margin-top: 28px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-label { color: var(--muted); }
.spec-value { font-weight: 500; text-align: right; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
@media (max-width: 960px) {
  .hero-grid, .about-grid, .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo-wrap, .about-photo { max-width: 440px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .order-cta-mobile { width: 100%; }
}
@media (max-width: 440px) {
  .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
}
