/* Phanpy — палитра снята с баннера стора (assets/brand/banner.jpg):
   бирюза фона #45a5af/#5db3bd, белая словомарка с улыбкой под «a»,
   слоган Science-Led Feeding Solutions. Шрифты: Quicksand (округлый дисплей,
   как леттеринг словомарки) + Nunito Sans. */

@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/quicksand-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/nunitosans-latin.woff2) format('woff2'); }

:root {
  --teal: #45a5af;          /* бирюза баннера */
  --teal-deep: #2c7e88;
  --teal-dark: #14454c;     /* глубокий тил для заголовков/футера */
  --mint: #f1f8f8;          /* фон страницы */
  --card: #ffffff;
  --line: #d9e6e7;
  --muted: #5d7377;
  --coral: #f0876f;         /* тёплый акцент — кожа/румянец с фото баннера */
  --star: #dfa20c;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(20, 69, 76, .08);
  --shadow-hover: 0 12px 28px rgba(20, 69, 76, .16);
}

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

body {
  font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--teal-dark);
  background: var(--mint);
}

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

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

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

/* ---------- header: бирюзовый, как баннер стора ---------- */
.site-header {
  background: var(--teal);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo svg { width: 32px; height: 32px; }
.logo .logo-word { font-size: 25px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #eafcfd;
  padding: 8px 11px;
  border-radius: 999px;
}
.main-nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.main-nav a.active { background: rgba(255, 255, 255, .22); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- hero: баннер стора + бирюзовый градиент ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(31, 106, 115, .92) 0%, rgba(69, 165, 175, .82) 46%, rgba(69, 165, 175, .35) 100%),
    var(--hero-img) right 38% / cover no-repeat,
    var(--teal);
  color: #fff;
  position: relative;
}
.hero-inner { padding: 96px 22px 104px; max-width: 1180px; margin: 0 auto; }
.eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d6f3f4;
}
.hero h1 { font-size: 50px; font-weight: 700; margin: 10px 0 16px; max-width: 700px; }
.hero-sub { font-size: 19px; color: #e7f8f8; max-width: 560px; margin-bottom: 30px; }
.hero .btn { background: #fff; color: var(--teal-deep); }
.hero .btn:hover { background: #e2f2f2; }

/* ---------- category grid ---------- */
.categories { padding: 56px 22px 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.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: 4 / 3; 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(20, 69, 76, .92));
  color: #fff;
  padding: 44px 18px 14px;
}
.cat-overlay h3 { font-size: 18px; }
.cat-overlay p { font-size: 13.5px; color: #cfe7e9; }

/* ---------- catalog / cards ---------- */
.catalog { padding: 52px 22px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; color: var(--teal-dark); }
.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: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-title { font-size: 16px; font-weight: 600; color: var(--teal-dark); }
.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: 'Quicksand', sans-serif; font-weight: 700; font-size: 19px; color: var(--teal-dark); }
.stars .star { color: #c9d7d8; 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(--teal-dark); color: #fff; padding: 58px 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.value-item { text-align: center; }
.value-icon { margin-bottom: 10px; }
.value-icon svg { width: 34px; height: 34px; stroke: #7fd0d8; }
.value-item h3 { font-size: 19px; margin-bottom: 8px; }
.value-item p { color: #bdd8db; font-size: 15px; }

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

/* ---------- seo content ---------- */
/* ---------- numbers band ---------- */
.num-band { background: var(--mint); padding: 58px 0; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num-item { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; color: inherit; transition: box-shadow .2s; }
.num-item:hover { box-shadow: var(--shadow-hover); }
.num-fig { display: block; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 29px; color: var(--teal-deep); margin-bottom: 6px; }
.num-cap { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- fit finder ---------- */
.fit-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; }
.fit-band table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.fit-band th, .fit-band td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.fit-band th { background: var(--mint); font-family: 'Quicksand', sans-serif; color: var(--teal-dark); }
.fit-band td a { color: var(--teal-dark); border-bottom: 1px solid rgba(69, 165, 175, .4); }
.fit-band td a:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.fit-note { color: var(--muted); font-size: 14.5px; max-width: 780px; }

/* ---------- detail cards ---------- */
.detail-sec { padding: 58px 0 64px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.detail-card h3 { font-size: 19px; color: var(--teal-dark); margin-bottom: 8px; }
.detail-card p { font-size: 15.5px; color: #33555a; margin-bottom: 10px; }
.detail-card a { font-weight: 600; color: var(--teal-dark); border-bottom: 1px solid rgba(69, 165, 175, .4); }
.detail-card a:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }

.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(--teal-dark); margin-bottom: 16px; }
.seo-content h3 { font-size: 20px; color: var(--teal-deep); margin: 26px 0 10px; }
.seo-content p { margin-bottom: 12px; color: #33555a; }
.seo-content ul { margin: 10px 0 14px 22px; color: #33555a; }
.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(--mint); font-family: 'Quicksand', sans-serif; color: var(--teal-dark); }

/* ---------- ratings commentary ---------- */
.testimonials { padding: 58px 0 70px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.testi-stars { color: var(--star); font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-figure { font-family: 'Quicksand', sans-serif; font-weight: 700; color: var(--teal-deep); font-size: 15px; margin-bottom: 8px; }
.testi-card p { font-size: 15.5px; color: #33555a; }
.testi-name a { color: var(--teal-dark); border-bottom: 1px solid rgba(69, 165, 175, .4); }
.testi-name a:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.testi-name { margin-top: 12px; font-weight: 600; }

/* ---------- page hero (category / info) ---------- */
.page-hero {
  background: linear-gradient(135deg, #103a40, var(--teal-dark) 50%, #1f6a73);
  color: #fff;
  padding: 54px 0 50px;
}
.page-hero .eyebrow { color: #7fd0d8; }
.page-hero h1 { font-size: 38px; margin: 8px 0 10px; }
.page-hero-sub { color: #c6e0e3; 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(--teal-deep); }
.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: 90px;
}
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-info h1 { font-size: 27px; margin: 8px 0 12px; color: var(--teal-dark); }
.product-meta { margin-bottom: 12px; }
.product-price { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 32px; color: var(--teal-deep); margin-bottom: 18px; }
.product-info .btn-buy { padding: 14px 48px; font-size: 16.5px; }
.product-intro { margin-top: 22px; color: #33555a; font-size: 17px; }

/* ---------- авторские блоки товара ---------- */
.product-detail { padding: 10px 22px 34px; }
.feats-head { font-size: 25px; color: var(--teal-dark); margin: 14px 0 20px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; counter-reset: feat; }
.feat { position: relative; background: linear-gradient(165deg, #fff 60%, var(--mint) 100%); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--teal); padding: 24px 24px 24px 78px; transition: box-shadow .2s; }
.feat:hover { box-shadow: var(--shadow-hover); }
.feat::before { counter-increment: feat; content: counter(feat, decimal-leading-zero); position: absolute; left: 22px; top: 22px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 25px; line-height: 1; color: var(--coral); }
.feat h2 { font-size: 17.5px; color: var(--teal-deep); margin-bottom: 8px; }
.feat p { color: #33555a; font-size: 15.5px; }

/* ---------- 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(--teal-dark); font-size: 22px; margin: 24px 0 10px; }
.info-page h2:first-child { margin-top: 0; }
.info-page h3 { color: var(--teal-deep); font-size: 17.5px; margin: 18px 0 8px; }
.info-page p { margin-bottom: 12px; color: #33555a; }
.info-page ul, .info-page ol { margin: 10px 0 14px 22px; color: #33555a; }
.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(--mint); font-family: 'Quicksand', sans-serif; color: var(--teal-dark); }
.info-page a { color: var(--teal-deep); }

/* ---------- footer ---------- */
.site-footer { background: #103a40; color: #bdd8db; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 52px 22px 30px; }
.site-footer .logo-word { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.site-footer .logo-word .dot { color: var(--coral); }
.tagline { color: #7fd0d8; font-family: 'Quicksand', 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: #bdd8db; }
.foot-col a:hover { color: #7fd0d8; }
.foot-pay { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8fb0b4; font-size: 13.5px; }
.foot-bottom { padding: 14px 22px 26px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8fb0b4; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .testi-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 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: 38px; }
  .hero-inner { padding: 74px 22px 84px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--teal);
    flex-direction: column;
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-hover);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: 16px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .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; }
  .fit-band table { display: block; overflow-x: auto; white-space: nowrap; }
  .fit-band td { white-space: normal; min-width: 140px; }
  .product-price { font-size: 27px; }
  .logo .logo-word { font-size: 21px; }
}
