/* iHave — палитра снята с баннера стора (assets/brand/banner.jpg):
   стально-голубые оконные рамы, латунная фурнитура, грейдж-камень, белая
   строчная словомарка «ihave» с округлыми буквами. Шрифты: Comfortaa
   (округлый дисплей, как леттеринг словомарки) + Karla (текст). */

@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/comfortaa-latin.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-latin.woff2) format('woff2'); }

:root {
  --steel: #4a6f88;         /* стально-голубой рам */
  --steel-deep: #3c5a6e;
  --ink: #22323d;           /* тёмный уголь заголовков/футера */
  --greige: #f5f2ec;        /* фон страницы — тёплый камень */
  --card: #ffffff;
  --line: #e3ddd1;
  --muted: #6b7480;
  --brass: #b3894c;         /* латунь смесителей и бра */
  --brass-soft: #c9a25e;
  --star: #d99e14;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(34, 50, 61, .07);
  --shadow-hover: 0 12px 26px rgba(34, 50, 61, .15);
}

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

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

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

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

.btn {
  display: inline-block;
  background: var(--steel-deep);
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 13px 30px;
  border-radius: 8px;
  border: 0;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--ink); transform: translateY(-1px); }
.btn-gold { background: var(--brass); }
.btn-gold:hover { background: #9a743c; }

/* ---------- header: тёмный уголь, латунная линия снизу ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; }
.logo .logo-word { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .015em; }
.logo .logo-word .dot { color: var(--brass-soft); }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #cfd9e0;
  padding: 8px 11px;
  border-radius: 7px;
}
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav a.active { background: rgba(201, 162, 94, .22); color: #f0dcb8; }
.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(96deg, rgba(29, 45, 56, .93) 0%, rgba(60, 90, 110, .82) 44%, rgba(60, 90, 110, .22) 100%),
    var(--hero-img) center 30% / cover no-repeat,
    var(--steel-deep);
  color: #fff;
  position: relative;
}
.hero-inner { padding: 94px 22px 102px; max-width: 1180px; margin: 0 auto; }
.eyebrow {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.hero h1 { font-size: 46px; font-weight: 700; margin: 12px 0 16px; max-width: 660px; }
.hero-sub { font-size: 18.5px; color: #dfe8ee; max-width: 560px; margin-bottom: 30px; }
.hero .btn { background: var(--brass); }
.hero .btn:hover { background: #9a743c; }
.hero .btn + .btn { background: rgba(255, 255, 255, .14); margin-left: 12px; }
.hero .btn + .btn:hover { background: rgba(255, 255, 255, .26); }

/* ---------- category grid ---------- */
.categories { padding: 56px 22px 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  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 / 10; 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(34, 50, 61, .93));
  color: #fff;
  padding: 46px 18px 14px;
}
.cat-overlay h3 { font-size: 18px; }
.cat-overlay p { font-size: 13.5px; color: #ccd8df; }

/* ---------- catalog / cards ---------- */
.catalog { padding: 52px 22px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 31px; color: var(--ink); }
.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);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--brass-soft); }
.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: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brass);
}
.card-title { font-size: 15.5px; font-weight: 700; 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: 'Comfortaa', sans-serif; font-weight: 700; font-size: 19px; color: var(--steel-deep); }
.stars .star { color: #d4d0c6; 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: 14px; }

/* ---------- value / mission bands ---------- */
.value-band { background: var(--ink); 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: var(--brass-soft); }
.value-item h3 { font-size: 18.5px; margin-bottom: 8px; }
.value-item p { color: #b9c5cd; font-size: 15px; }

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

/* ---------- sink finder: сколько щёток у раковины ---------- */
.sink-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; }
.sink-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.sink-card { background: var(--greige); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px 22px; }
.sink-count { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 30px; color: var(--brass); line-height: 1; margin-bottom: 8px; }
.sink-card h3 { font-size: 17.5px; color: var(--ink); margin-bottom: 8px; }
.sink-card p { font-size: 14.5px; color: #46545e; margin-bottom: 10px; }
.sink-card a { font-weight: 700; color: var(--steel-deep); border-bottom: 1px solid rgba(179, 137, 76, .5); }
.sink-card a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.sink-note { color: var(--muted); font-size: 14.5px; max-width: 780px; margin-top: 18px; }

/* ---------- numbers band ---------- */
.num-band { background: var(--greige); 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); border: 1px solid var(--line); 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: 'Comfortaa', sans-serif; font-weight: 700; font-size: 27px; color: var(--brass); margin-bottom: 6px; }
.num-cap { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- 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); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 24px; border-left: 4px solid var(--brass-soft); }
.detail-card h3 { font-size: 18.5px; color: var(--ink); margin-bottom: 8px; }
.detail-card p { font-size: 15.5px; color: #46545e; margin-bottom: 10px; }
.detail-card a { font-weight: 700; color: var(--steel-deep); border-bottom: 1px solid rgba(179, 137, 76, .5); }
.detail-card a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* ---------- 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: 26px; color: var(--ink); margin-bottom: 16px; }
.seo-content h3 { font-size: 19.5px; color: var(--steel-deep); margin: 26px 0 10px; }
.seo-content p { margin-bottom: 12px; color: #46545e; }
.seo-content ul { margin: 10px 0 14px 22px; color: #46545e; }
.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(--greige); font-family: 'Comfortaa', sans-serif; color: var(--ink); }
.seo-content td a { color: var(--steel-deep); border-bottom: 1px solid rgba(179, 137, 76, .4); }

/* ---------- 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); border: 1px solid var(--line); 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: 'Comfortaa', sans-serif; font-weight: 700; color: var(--brass); font-size: 15px; margin-bottom: 8px; }
.testi-card p { font-size: 15.5px; color: #46545e; }
.testi-name { margin-top: 12px; font-weight: 700; }
.testi-name a { color: var(--ink); border-bottom: 1px solid rgba(179, 137, 76, .5); }
.testi-name a:hover { color: var(--steel-deep); border-bottom-color: var(--brass); }

/* ---------- page hero (category / info) ---------- */
.page-hero {
  background: linear-gradient(120deg, #1c2b35, var(--ink) 46%, var(--steel-deep));
  color: #fff;
  padding: 54px 0 50px;
  border-bottom: 3px solid var(--brass);
}
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero h1 { font-size: 36px; margin: 8px 0 10px; }
.page-hero-sub { color: #c4d1da; max-width: 660px; }
.addr {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 16px 24px;
  line-height: 1.7;
  font-style: normal;
}

/* ---------- product page ---------- */
.breadcrumb { padding: 16px 22px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--steel-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);
  border: 1px solid var(--line);
  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: 26px; margin: 8px 0 12px; color: var(--ink); }
.product-meta { margin-bottom: 12px; }
.product-price { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 31px; color: var(--steel-deep); margin-bottom: 18px; }
.product-info .btn-buy { padding: 14px 46px; font-size: 16px; }
.product-intro { margin-top: 22px; color: #46545e; font-size: 17px; }

/* ---------- покупка: чипы наличия, сводка, примечание ---------- */
.product-avail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.chip.in { background: #e2eee2; color: #2e6b3f; }
.chip.out { background: #f6ecd9; color: #8a6420; }
.chip.ship { background: #fff; color: var(--steel-deep); border: 1px solid var(--line); }
.glance { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass-soft); border-radius: var(--radius); padding: 16px 20px 12px; }
.glance h2 { font-family: 'Comfortaa', sans-serif; font-size: 13.5px; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.glance ul { list-style: none; }
.glance li { position: relative; padding-left: 24px; margin-bottom: 6px; color: #46545e; font-size: 15px; }
.glance li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 700; }
.buy-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- авторские заметки: латунная рельса вместо плиток ---------- */
.product-detail { padding: 10px 22px 34px; }
.feats-head { font-size: 24px; color: var(--ink); margin: 14px 0 22px; }
.notes { max-width: 900px; border-left: 3px solid var(--brass-soft); padding-left: 30px; margin-left: 7px; }
.note { position: relative; padding-bottom: 24px; }
.note:last-child { padding-bottom: 4px; }
.note::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--greige);
  box-shadow: 0 0 0 1px var(--brass-soft);
}
.note h3 { font-size: 18px; color: var(--steel-deep); margin-bottom: 6px; }
.note p { color: #46545e; font-size: 15.5px; max-width: 780px; }
.related { padding: 12px 22px 54px; }

/* ---------- info pages ---------- */
.info-page { padding: 46px 0 64px; }
.info-page .wrap { max-width: 820px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 38px 42px; }
.info-page h2 { color: var(--ink); font-size: 21.5px; 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: #46545e; }
.info-page ul, .info-page ol { margin: 10px 0 14px 22px; color: #46545e; }
.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(--greige); font-family: 'Comfortaa', sans-serif; color: var(--ink); }
.info-page a { color: var(--steel-deep); }

/* ---------- footer ---------- */
.site-footer { background: #1c2b35; color: #b9c5cd; font-size: 14.5px; border-top: 3px solid var(--brass); }
.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: .015em; }
.site-footer .logo-word .dot { color: var(--brass-soft); }
.tagline { color: var(--brass-soft); font-family: 'Comfortaa', sans-serif; font-size: 13px; letter-spacing: .12em; 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: #b9c5cd; }
.foot-col a:hover { color: var(--brass-soft); }
.foot-pay { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8da0ac; font-size: 13.5px; }
.foot-bottom { padding: 14px 22px 26px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8da0ac; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .value-grid, .testi-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .sink-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .notes { padding-left: 24px; margin-left: 5px; }
  .note::before { left: -33px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-inner { padding: 74px 22px 84px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--ink);
    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; }
  .hero h1 { font-size: 29px; }
  .hero-sub { font-size: 17px; }
  .section-head h2 { font-size: 25px; }
  .page-hero h1 { font-size: 28px; }
  .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; }
  .seo-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .seo-content td { white-space: normal; min-width: 140px; }
  .product-price { font-size: 26px; }
  .logo .logo-word { font-size: 22px; }
  .hero .btn + .btn { margin-left: 0; margin-top: 10px; }
}
