@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg-body: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-alt: #F5EBE0;
  --accent-primary: #C45C26;
  --accent-hover: #9A4520;
  --accent-light: #E9C46A;
  --text-primary: #3D2C29;
  --text-secondary: #7A6A63;
  --font-display: 'Libre Baskerville', serif;
  --font-body: 'Work Sans', sans-serif;
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem;
  --space-lg: 3rem; --space-xl: 5rem;
  --border-radius-sm: 8px; --border-radius-md: 16px; --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
  --transition: 0.3s ease;
  --header-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-primary); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--border-radius-pill); font-weight: 600; transition: var(--transition); }
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.product-tag { font-size: 0.75rem; padding: 4px 12px; background: var(--bg-alt); border-radius: var(--border-radius-pill); color: var(--text-secondary); display: inline-block; margin-top: 8px; }

.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: color-mix(in srgb, var(--bg-surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--accent-light); z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.header-nav { display: flex; gap: var(--space-md); align-items: center; }
.header-nav a { font-size: 0.9rem; font-weight: 500; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-nav { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--bg-surface); flex-direction: column; padding: var(--space-lg); transform: translateY(-120%); transition: transform 0.3s; }
  .header-nav.open { transform: translateY(0); }
}

.contacts-section { padding: var(--space-xl) 0; background: var(--bg-surface); }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); margin-top: var(--space-md); }
.contacts-grid h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.contacts-grid p { color: var(--text-secondary); font-size: 0.95rem; }

.site-footer { background: var(--bg-surface); padding: var(--space-xl) 0 var(--space-md); border-top: 1px solid var(--accent-light); }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.footer-block h4 { margin-bottom: var(--space-sm); }
.footer-block p, .footer-block a { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.footer-bottom { text-align: center; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--accent-light); color: var(--text-secondary); font-size: 0.85rem; }

.page-header { padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg); text-align: center; background: var(--bg-surface); }
.legal-content { background: var(--bg-surface); padding: var(--space-xl); border-radius: var(--border-radius-lg); max-width: 800px; margin: var(--space-lg) auto; }
.legal-content h2 { font-size: 1.2rem; margin: var(--space-md) 0 var(--space-sm); }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 0.5rem; }
.legal-content ul { padding-left: 1.2rem; list-style: disc; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-lg); padding: var(--space-xl) 0; }
.about-card { background: var(--bg-surface); padding: var(--space-lg); border-radius: var(--border-radius-md); box-shadow: var(--shadow-soft); }

.fade-in { opacity: 0; transform: translateY(16px); transition: 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

body.layout-sidebar { display: flex; min-height: 100vh; }
.site-sidebar { width: 240px; background: var(--bg-surface); border-right: 1px solid var(--accent-light); padding: var(--space-lg); position: fixed; height: 100vh; }
.site-sidebar .logo { display: block; margin-bottom: var(--space-xl); font-size: 1.2rem; }
.site-sidebar nav { display: flex; flex-direction: column; gap: var(--space-sm); }
.main-wrap { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }
.mobile-bar { display: none; padding: var(--space-sm) var(--space-md); background: var(--bg-surface); border-bottom: 1px solid var(--accent-light); }
.hero-compact { padding: var(--space-xl) var(--space-md); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); padding-bottom: var(--space-xl); }
.product-card { background: var(--bg-surface); border-radius: var(--border-radius-md); overflow: hidden; padding: var(--space-md); }
.product-image-wrapper img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius-sm); }
@media (max-width: 768px) { .site-sidebar { transform: translateX(-100%); transition: 0.3s; z-index: 200; } .site-sidebar.open { transform: translateX(0); } .main-wrap { margin-left: 0; } .mobile-bar { display: flex; gap: 1rem; align-items: center; } }
