/* COOL KNIGHT — kitchen grinders catalog. Палитра из лого и баннера:
   чёрный монохромный wordmark (CTA и заголовки), тёплый белый размытой кухни,
   зелень растений с баннера как единственный цветовой акцент. */

/* Шрифты свои: latin-подмножества woff2, без сторонних origin на критическом пути. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/outfit-latin.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/outfit-latin.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/outfit-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/sourcesans3-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/sourcesans3-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/sourcesans3-latin.woff2) format('woff2'); }

:root {
  --steel: #55504a;          /* тёплый серый вторичного текста */
  --steel-deep: #2b2724;     /* тёмные плашки и заголовки (чёрно-коричневый wordmark) */
  --ink: #231f1c;            /* чёрный логотипа */
  --ink-soft: #3a342e;       /* hover чёрной кнопки */
  --copper: #6b9e3e;         /* зелень растений с баннера (акцент) */
  --copper-dark: #557f31;
  --green-light: #a8cf7e;    /* акцент зелени на тёмном фоне */
  --cream: #f6f4ef;          /* тёплый белый кухни с баннера */
  --card: #ffffff;
  --line: #e5e1d8;
  --muted: #7a756c;
  --star: #bf9a3a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 34, 30, .08);
  --shadow-hover: 0 10px 26px rgba(38, 34, 30, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4, .logo-word { font-family: 'Outfit', 'Segoe UI', Arial, sans-serif; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .02em;
  padding: 13px 30px;
  border-radius: 999px;
  border: 0;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--ink-soft); transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { flex: 0 0 auto; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--cream); color: var(--steel); }
.main-nav a.active { color: var(--copper); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--steel); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(rgba(246, 244, 239, .55), rgba(246, 244, 239, .78)), url(../images/banner.png) left center/cover no-repeat;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 104px 22px 114px; max-width: 1180px; margin: 0 auto; }
.hero-inner h1, .hero-inner .eyebrow { max-width: 760px; }
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a8cf7e;
}
.hero .eyebrow { color: var(--copper-dark); }
.hero h1 { font-size: 52px; font-weight: 700; margin: 10px 0 16px; }
.hero-sub { font-size: 19px; color: #504a42; max-width: 560px; margin-bottom: 30px; }

/* ---------- category grid ---------- */
.categories { padding: 56px 22px 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-img { aspect-ratio: 16 / 9; background: #fff; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.cat-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(28, 32, 37, .92));
  color: #fff;
  padding: 44px 18px 14px;
}
.cat-overlay h3 { font-size: 19px; }
.cat-overlay p { font-size: 13.5px; color: #cfd2ce; }

/* ---------- catalog / cards ---------- */
.catalog { padding: 52px 22px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; color: var(--steel-deep); }
.section-head p { color: var(--muted); margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; flex: 1; }
.card-img { aspect-ratio: 1; background: #fff; padding: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
}
.card-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.card-short { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-bottom: 4px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 19px; color: var(--steel-deep); }
.stars .star { color: #cfc9ba; font-size: 14px; }
.stars .star.on { color: var(--star); }
.rcount { color: var(--muted); font-size: 13px; margin-left: 4px; }
.card .btn-buy { margin: 12px 16px 16px; text-align: center; padding: 11px 16px; font-size: 14.5px; }

/* ---------- value / mission bands ---------- */
.value-band { background: var(--steel-deep); color: #fff; padding: 58px 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.value-item { text-align: center; }
.value-icon { font-size: 30px; margin-bottom: 10px; color: #a8cf7e; }
.value-item h3 { font-size: 19px; margin-bottom: 8px; }
.value-item p { color: #c6ccd2; font-size: 15px; }

.mission-band { padding: 62px 0; text-align: center; }
.mission-band h2 { font-size: 28px; color: var(--steel-deep); max-width: 780px; margin: 0 auto 14px; }
.mission-band p { color: var(--muted); max-width: 720px; margin: 0 auto; }

/* ---------- seo content ---------- */
.seo-content { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; }
.seo-content h2 { font-size: 27px; color: var(--steel-deep); margin-bottom: 16px; }
.seo-content h3 { font-size: 20px; color: var(--steel-deep); margin: 26px 0 10px; }
.seo-content p { margin-bottom: 12px; color: #3b3e42; }
.seo-content ul { margin: 10px 0 14px 22px; color: #3b3e42; }
.seo-content li { margin-bottom: 6px; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.seo-content th, .seo-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.seo-content th { background: var(--cream); font-family: 'Outfit', sans-serif; color: var(--steel-deep); }

/* ---------- advantage table (главная) ---------- */
.advantage { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.advantage .section-head { margin-bottom: 26px; }
.adv-table-wrap { overflow-x: auto; }
.advantage table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.advantage th, .advantage td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.advantage thead th { background: var(--steel-deep); color: #fff; font-family: 'Outfit', sans-serif; font-weight: 600; }
.advantage thead th:first-child { background: #fff; border-color: var(--line); }
.advantage tbody th { background: var(--cream); font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--steel-deep); white-space: nowrap; }
.advantage td.win { background: #f2f7ea; }
.advantage td.win strong { color: var(--copper-dark); }
.adv-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- reviews (главная) ---------- */
.reviews { padding: 58px 0 26px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; display: flex; flex-direction: column; }
.review-stars { color: var(--star); font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
.review-card blockquote { font-size: 15.5px; color: #46413a; margin: 0 0 14px; }
.review-who { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.review-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--copper-dark); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.review-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--steel-deep); }
.review-item { font-size: 13px; color: var(--muted); }
.review-item a { color: var(--muted); border-bottom: 1px dotted var(--line); }
.review-item a:hover { color: var(--copper-dark); }

/* ---------- page hero (category / info) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink), var(--steel-deep) 55%, var(--steel));
  color: #fff;
  padding: 54px 0 50px;
}
.page-hero h1 { font-size: 38px; margin: 8px 0 10px; }
.page-hero-sub { color: #d3d7db; max-width: 640px; }

/* ---------- product page ---------- */
.breadcrumb { padding: 16px 22px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--copper); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; padding: 30px 22px 50px; }
.product-media {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  align-self: start;
  position: sticky;
  top: 92px;
}
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-info h1 { font-size: 27px; margin: 8px 0 12px; color: var(--ink); }
.product-meta { margin-bottom: 12px; }
.product-price { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 32px; color: var(--steel-deep); margin-bottom: 18px; }
.product-info .btn-buy { padding: 14px 46px; font-size: 16.5px; }
.product-intro { margin-top: 22px; color: #3b3e42; font-size: 17px; }

/* ---------- авторские блоки товара + спеки производителя ---------- */
.product-detail { padding: 0 22px 10px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.feat h2 { font-size: 17px; color: var(--steel-deep); margin-bottom: 8px; }
.feat p { color: #3b3e42; font-size: 15.5px; }
.specs { padding: 34px 22px 50px; }
.specs-head { font-size: 19px; color: var(--steel-deep); margin-bottom: 12px; }
.bullets { margin: 0 0 0 20px; }
.bullets li { margin-bottom: 10px; color: #3b3e42; font-size: 15px; }
.specs-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- info pages ---------- */
.info-page { padding: 46px 0 64px; }
.info-page .wrap { max-width: 820px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 42px; }
.info-page h2 { color: var(--steel-deep); font-size: 22px; margin: 24px 0 10px; }
.info-page h2:first-child { margin-top: 0; }
.info-page h3 { color: var(--steel-deep); font-size: 17.5px; margin: 18px 0 8px; }
.info-page p { margin-bottom: 12px; color: #3b3e42; }
.info-page ul, .info-page ol { margin: 10px 0 14px 22px; color: #3b3e42; }
.info-page li { margin-bottom: 6px; }
.info-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.info-page th, .info-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.info-page th { background: var(--cream); font-family: 'Outfit', sans-serif; color: var(--steel-deep); }
.info-page a { color: var(--copper); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c8c5be; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 52px 22px 30px; }
.logo-word { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .06em; }
.logo-word .dot { color: var(--copper); }
.tagline { color: #a8cf7e; font-family: 'Outfit', sans-serif; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 12px; }
.foot-text { margin-bottom: 14px; }
.foot-contact p { margin-bottom: 4px; }
.foot-col h3 { color: #fff; font-size: 15.5px; margin-bottom: 12px; letter-spacing: .04em; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: #c8c5be; }
.foot-col a:hover { color: #a8cf7e; }
.foot-bottom { padding: 14px 22px 26px; border-top: 1px solid rgba(255, 255, 255, .12); color: #97948d; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .feats { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-inner { padding: 78px 22px 88px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-hover);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 11px 10px; font-size: 16px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 31px; }
  .hero-sub { font-size: 17px; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .info-page .wrap { padding: 28px 20px; }
  .info-page table { display: block; overflow-x: auto; white-space: nowrap; }
  .info-page td { white-space: normal; min-width: 150px; }
  .product-price { font-size: 27px; }
  .logo-text { font-size: 18px; }
}
