/* Kreativkucko — base styles */

:root {
  --bg: #FBF6F0;
  --text: #3A2E28;
  --text-soft: #6B5B52;
  --text-body: #4A3D36;
  --accent: #C1694F;
  --accent-hover: #9C4E38;
  --accent-soft: #FFF8F2;
  --border: #EAD9C9;
  --border-input: #E3D3C4;
  --footer-bg: #3A2E28;
  --footer-text: #D9C9BC;
  --footer-border: #4E4038;
  --footer-muted: #A7998E;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

input, textarea, button { font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
}
.logo:hover { color: var(--accent); }

.nav { display: flex; gap: 2px; flex-wrap: wrap; }

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.nav-btn:hover { color: var(--text); background: var(--accent-soft); }
.nav-btn.active { background: var(--accent); color: var(--accent-soft); }
.nav-btn.active:hover { color: var(--accent-soft); }

.cart-toggle {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 9px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 24px;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-soft); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-soft); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: #2a211c; color: var(--bg); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px; border-radius: 10px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--text-soft); font-size: 13px; cursor: pointer; text-align: left; padding: 4px 0; }

/* ---- Hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 520px;
}

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

.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
}

/* ---- Grids & cards ---- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-title {
  font-size: 28px;
  margin: 0 0 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
}
.feature-title { font-size: 19px; margin: 0 0 10px; }
.feature-card p { color: var(--text-soft); line-height: 1.6; margin: 0; font-size: 15px; }

.category-tile {
  text-align: left;
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  display: block;
}
.category-tile-img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.category-tile-name {
  font-family: var(--font-heading);
  font-size: 15px;
  margin-top: 12px;
  color: var(--text);
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.product-name { font-family: var(--font-heading); font-size: 14px; color: var(--text); min-height: 38px; }
.product-price { font-weight: 800; color: var(--accent); font-size: 15px; }

.article-card { background: #fff; border-radius: 16px; overflow: hidden; }
.article-img { width: 100%; height: 180px; object-fit: cover; }
.article-body { padding: 18px; }
.article-tag { font-size: 11px; color: #8FA888; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.article-title { font-family: var(--font-heading); font-size: 16px; margin-bottom: 8px; }
.article-excerpt { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: 0; }

.project-badges { display: flex; gap: 8px; margin-bottom: 10px; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 12px; }
.badge-green { background: #E6EDE2; color: #5B7256; }
.badge-pink { background: #F3E1E8; color: #8A5468; }

.testimonial-card { border-radius: 16px; padding: 24px; }
.testimonial-text { font-style: italic; color: var(--text); line-height: 1.6; margin: 0 0 12px; }
.testimonial-author { font-weight: 800; font-size: 13px; color: var(--text-soft); }

.newsletter-box {
  background: var(--text);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-box h3 { color: var(--bg); font-size: 22px; margin: 0 0 8px; }
.newsletter-box p { color: var(--footer-text); margin: 0; font-size: 14px; max-width: 420px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
  padding: 12px 16px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  width: 220px;
}

/* ---- Page intros / legal ---- */

.page-intro { padding-top: 56px; padding-bottom: 20px; }
.page-intro h1 { font-size: 36px; margin: 0 0 12px; }
.page-intro p { color: var(--text-soft); font-size: 16px; max-width: 640px; line-height: 1.6; margin: 0; }

.page-intro-about h1 { font-size: 36px; margin: 0 0 24px; }
.page-intro-about p { color: var(--text-body); font-size: 16px; line-height: 1.7; margin: 0 0 18px; }
.about-img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }

.value-card { background: #fff; border-radius: 14px; padding: 22px; }
.value-title { font-family: var(--font-heading); font-size: 17px; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: 0; }

.page-legal h1 { font-size: 34px; margin: 0 0 24px; }
.page-legal h3 { font-size: 18px; margin: 22px 0 8px; }
.page-legal p { color: var(--text-body); line-height: 1.7; font-size: 15px; margin: 0 0 6px; }

/* ---- Shop filters ---- */

.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.filter-btn {
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.no-products { color: var(--text-soft); font-size: 15px; }

/* ---- Tips ---- */

.tip-list { display: flex; flex-direction: column; gap: 14px; }
.tip-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tip-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tip-title { font-family: var(--font-heading); font-size: 17px; margin-bottom: 6px; }
.tip-text { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---- Materials category cards ---- */

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.category-card-name { font-family: var(--font-heading); font-size: 18px; }
.category-card-desc { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
}
.contact-grid h1 { font-size: 36px; margin: 0 0 20px; }
.contact-line { color: var(--text-soft); line-height: 1.8; font-size: 15px; margin: 0 0 6px; }
.map-placeholder {
  background: repeating-linear-gradient(135deg, #DDEFF0 0, #DDEFF0 14px, #B8DDE0 14px 28px);
  border-radius: 14px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
  margin-top: 20px;
  text-align: center;
  padding: 12px;
}
.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form h3 { margin: 0 0 4px; }

/* ---- Forms ---- */

.form-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  font-size: 14px;
  width: 100%;
}
textarea.form-input { resize: vertical; }
.form-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #E6EDE2;
  color: #3D5A38;
  font-size: 14px;
}
.form-message.error { background: #F3E1E8; color: #8A5468; }
.form-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #F3E1E8;
  color: #8A5468;
  font-size: 13px;
}

/* ---- Footer ---- */

.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px;
}
.footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--bg); margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.6; margin: 0 0 14px; max-width: 280px; }
.footer-legal { font-size: 13px; line-height: 1.7; margin: 0; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; color: var(--bg); margin-bottom: 12px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--footer-text); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--footer-muted);
}

/* ---- Cart drawer ---- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 40, 0.4);
  z-index: 150;
  display: none;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--bg);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-head h3 { font-size: 20px; }
.cart-close { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--text); }

.cart-step { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cart-empty { color: var(--text-soft); font-size: 14px; }

.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid #EEE3D8; padding-bottom: 14px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cart-item-price { font-size: 13px; color: var(--accent); font-weight: 800; margin-top: 4px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-input); background: #fff; cursor: pointer; }
.cart-item-qty { font-size: 13px; font-weight: 700; }
.remove-btn { margin-left: auto; font-size: 12px; color: var(--accent-hover); background: none; border: none; cursor: pointer; }
.cart-item-total { font-size: 13px; font-weight: 800; color: var(--text); }

.cart-summary { margin-top: auto; border-top: 1px solid #EEE3D8; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); }
.cart-summary-total { font-size: 17px; font-weight: 800; color: var(--text); margin-top: 6px; }
.cart-summary .btn { margin-top: 10px; }

.cart-form { gap: 12px; }
.cart-form-hint { font-size: 14px; color: var(--text-soft); margin-bottom: 4px; }

.cart-done { text-align: center; padding: 40px 10px; justify-content: center; }
.cart-done-check { font-size: 44px; margin-bottom: 14px; }
.cart-done-title { font-family: var(--font-heading); font-size: 19px; margin-bottom: 10px; }
.cart-done-text { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

/* ---- Cookie banner ---- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 18px 24px;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 13px; max-width: 720px; line-height: 1.5; }
.cookie-banner a { color: #F0D9C9; }
.cookie-banner .btn { white-space: nowrap; padding: 10px 22px; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-img { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .nav { gap: 0; }
  .nav-btn { padding: 8px 10px; font-size: 13px; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .newsletter-box { flex-direction: column; align-items: flex-start; }
  .newsletter-input { width: 100%; }
}
