/* Heart of Tafiti — style.css
   Палитра из лого/баннера: синий #2b5bc0 (баннер), бирюза #279a8e (спираль лого),
   тёмный графит #2f3a40, светлая мята #f4f9f8, зелёный акцент #5aa74b. */
:root {
  --blue: #2b5bc0;
  --blue-dark: #1d4293;
  --teal: #279a8e;
  --teal-dark: #1d6e64;
  --green: #5aa74b;
  --ink: #2f3a40;
  --muted: #5f6f75;
  --bg: #f4f9f8;
  --card: #ffffff;
  --line: #dcebe8;
  --star: #f5a623;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, .logo-word { font-family: 'Quicksand', 'Nunito Sans', sans-serif; font-weight: 700; }
a { color: var(--teal-dark); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--teal);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(31, 58, 64, .08);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { width: 56px; height: 56px; border-radius: 50%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-word { font-size: 1.15rem; color: var(--ink); letter-spacing: .01em; }
.logo .logo-word b { color: var(--teal); }
.main-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.main-nav a { font-weight: 600; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; font-size: .98rem; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* hero */
.hero {
  background: linear-gradient(118deg, var(--blue-dark) 0%, var(--blue) 55%, #3f74d8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -80px; bottom: -140px;
  width: 420px; height: 420px;
  border: 46px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.hero::before {
  content: '';
  position: absolute; right: 120px; top: -120px;
  width: 280px; height: 280px;
  border: 30px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 84px 20px 92px; position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700;
  color: #bcd2f5; margin-bottom: 14px;
}
.hero h1 { font-size: 3.1rem; line-height: 1.12; margin-bottom: 18px; font-weight: 700; }
.hero-sub { max-width: 560px; font-size: 1.12rem; color: #dbe7fb; margin-bottom: 30px; }
.btn {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 700;
  padding: 13px 30px; border-radius: 999px; transition: background .15s ease, transform .15s ease;
  border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* categories */
.categories { padding: 56px 20px 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(31, 58, 64, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 58, 64, .12); }
.cat-img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.cat-overlay { padding: 14px 16px 16px; border-top: 3px solid var(--teal); }
.cat-overlay h3 { font-size: 1.05rem; color: var(--ink); }
.cat-overlay p { font-size: .85rem; color: var(--muted); }

/* catalog grid */
.catalog { padding: 48px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: 1.9rem; color: var(--ink); margin-bottom: 8px; }
.section-head p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 58, 64, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 58, 64, .12); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-img { aspect-ratio: 1; background: #fff; padding: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 10px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--teal-dark); background: #e2f2ef; border-radius: 999px;
  padding: 3px 10px; margin-bottom: 8px;
}
.card-title { font-size: .98rem; line-height: 1.35; color: var(--ink); font-weight: 700; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-size: 1.15rem; font-weight: 800; color: var(--blue); }
.rating { display: inline-flex; align-items: center; gap: 5px; }
.stars .star { color: #ccd8d5; font-size: .9rem; }
.stars .star.on { color: var(--star); }
.rcount { color: var(--muted); font-size: .84rem; }
.btn-buy { margin: 0 16px 16px; text-align: center; }

/* value band */
.value-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.value-item { text-align: center; }
.value-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: #e2f2ef; color: var(--teal-dark); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.value-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.value-item p { color: var(--muted); font-size: .95rem; }

/* mission band */
.mission-band { background: linear-gradient(118deg, var(--teal-dark), var(--teal)); color: #fff; padding: 52px 0; text-align: center; }
.mission-band h2 { font-size: 1.7rem; margin-bottom: 12px; }
.mission-band p { max-width: 760px; margin: 0 auto; color: #dff1ee; }

/* seo content */
.seo-content { padding: 56px 0 30px; }
.seo-content h2 { font-size: 1.7rem; margin-bottom: 16px; }
.seo-content h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.seo-content p { margin-bottom: 12px; color: #48565c; }
.seo-content ul { margin: 10px 0 14px 22px; color: #48565c; }
.seo-content li { margin-bottom: 6px; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; background: #fff; border-radius: 12px; overflow: hidden; }
.seo-content th, .seo-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: .93rem; }
.seo-content th { background: #e2f2ef; color: var(--teal-dark); font-family: 'Quicksand', sans-serif; }

/* ratings block */
.testimonials { background: #fff; border-top: 1px solid var(--line); padding: 56px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.testi-stars .star { color: #ccd8d5; font-size: 1rem; }
.testi-stars .star.on { color: var(--star); }
.testi-figure { font-weight: 800; color: var(--blue); margin: 8px 0 10px; }
.testi-card p { font-size: .93rem; color: #48565c; }
.testi-name { margin-top: 12px; font-weight: 700; }

/* page hero */
.page-hero { background: linear-gradient(118deg, var(--blue-dark), var(--blue)); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero-sub { max-width: 640px; color: #dbe7fb; }
.page-hero .eyebrow { color: #bcd2f5; }

/* breadcrumb */
.breadcrumb { padding: 16px 20px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--teal-dark); }

/* product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 34px 20px 20px; align-items: start; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.product-media img { width: 100%; object-fit: contain; aspect-ratio: 1; }
.product-info h1 { font-size: 1.55rem; line-height: 1.3; margin: 10px 0 12px; }
.product-meta { margin-bottom: 12px; }
.product-price { font-size: 2rem; font-weight: 800; color: var(--blue); margin-bottom: 18px; }
.product-info .btn-buy { margin: 0 0 20px; display: inline-block; padding: 14px 44px; }
.product-intro { color: #48565c; }

.specs { padding: 10px 20px 40px; }
.specs-head { font-size: 1.3rem; margin-bottom: 12px; }
.bullets { margin-left: 22px; color: #48565c; }
.bullets li { margin-bottom: 8px; }
.specs-note { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* info pages */
.info-page { padding: 44px 0 56px; }
.info-page h2 { font-size: 1.4rem; margin: 26px 0 10px; color: var(--ink); }
.info-page h2:first-child { margin-top: 0; }
.info-page h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.info-page p { margin-bottom: 12px; color: #48565c; }
.info-page ul, .info-page ol { margin: 10px 0 14px 22px; color: #48565c; }
.info-page li { margin-bottom: 6px; }
.info-page table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; background: #fff; }
.info-page th, .info-page td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: .93rem; }
.info-page th { background: #e2f2ef; color: var(--teal-dark); }

/* footer */
.site-footer { background: #223034; color: #c3d2d6; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 48px 20px 26px; }
.foot-col h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: #c3d2d6; }
.foot-col a:hover { color: #fff; }
.logo-word { font-size: 1.3rem; color: #fff; }
.logo-word .dot { color: var(--teal); }
.tagline { color: var(--teal); font-weight: 700; margin: 6px 0 10px; }
.foot-text { font-size: .9rem; margin-bottom: 14px; }
.foot-contact p { font-size: .9rem; margin-bottom: 4px; }
.foot-pay { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #34464b; font-size: .85rem; }
.foot-bottom { padding: 14px 20px 26px; border-top: 1px solid #34464b; font-size: .84rem; color: #93a7ac; }

/* responsive */
@media (max-width: 980px) {
  .grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid, .value-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 720px) {
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 20px 16px;
    border-bottom: 3px solid var(--teal); box-shadow: 0 10px 20px rgba(31, 58, 64, .12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero-inner { padding: 56px 20px 64px; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 520px) {
  .grid, .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
