/* Подаруй.UA — основні стилі */
:root {
  --red: #b3263a;
  --red-dark: #8c1c2d;
  --cream: #fbf6ef;
  --paper: #ffffff;
  --ink: #2b2226;
  --muted: #6f6468;
  --line: #ece3da;
  --gold: #c99a3b;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Шапка */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo b span { color: var(--red); }
.logo b { font-weight: 800; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--red); }

.menu-toggle { display: none; }

/* Головний банер */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  margin-left: 8px;
}
.btn-ghost:hover { background: var(--red); color: #fff; }

/* Секції */
.section { padding: 40px 0; }
.section h2 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.section .lead { color: var(--muted); margin: 0 0 24px; }

/* Картки категорій */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 34, 38, .08);
  color: var(--ink);
}
.cat .icon { font-size: 30px; }
.cat h3 { margin: 10px 0 4px; font-size: 18px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Картки статей */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f3d9d3, #f8eadf);
  display: grid;
  place-items: center;
  font-size: 48px;
}
.post .body { padding: 18px 20px 22px; }
.post .tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  font-weight: 700;
}
.post h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.35; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--red); }
.post p { margin: 0; color: var(--muted); font-size: 15px; }
.soon {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* Блок «Як ми обираємо» */
.how {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.how h3 { margin: 0 0 6px; font-size: 17px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

/* Стаття */
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px clamp(20px, 5vw, 56px);
  margin: 32px auto;
  max-width: 800px;
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article h2 { font-size: 26px; margin: 36px 0 12px; }
.article h3 { font-size: 20px; margin: 28px 0 8px; }

.disclosure {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
  margin: 0 0 24px;
}

.toc {
  background: var(--cream);
  border-radius: 10px;
  padding: 16px 22px;
  margin: 24px 0;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }

/* Картка товару всередині статті */
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.product .pic {
  aspect-ratio: 1;
  background: #f5ede5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 44px;
}
.product h3 { margin: 0 0 4px; }
.product .price { font-weight: 700; color: var(--red); margin-bottom: 6px; }
.product p { margin: 0 0 12px; }
.product .pros { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.product .btn { padding: 10px 20px; font-size: 15px; }

.tip {
  background: #fff7e6;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}

/* Підвал */
.site-footer {
  background: var(--ink);
  color: #d9cfd2;
  padding: 40px 0 28px;
  margin-top: 48px;
  font-size: 15px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .small {
  border-top: 1px solid #45393d;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
  color: #a99da1;
}

/* Мобільна версія */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 20px;
    cursor: pointer;
  }
  .hero { padding: 40px 0 28px; }
  .btn-ghost { margin: 10px 0 0; }
  .product { grid-template-columns: 1fr; }
  .product .pic { max-width: 160px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
