/* ============================================================
   Riza Herb — дизайн-система
   Белый стиль, синие акцентные цвета, нежные тона,
   лёгкие бордер-радиусы, мягкие тени.
   ============================================================ */

:root {
  /* Палитра */
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fd;
  --c-bg-tint: #eaf1fc;
  --c-bg-tint-2: #dbe9fb;
  --c-border: #e4ebf4;
  --c-border-strong: #cddcf0;

  --c-text: #1f2a37;
  --c-text-soft: #55637a;
  --c-text-muted: #8996ab;

  --c-primary: #2f6bd8;
  --c-primary-hover: #245ac0;
  --c-primary-soft: #6f9ee8;
  --c-accent: #3b9ae1;

  --c-success: #2f9e6f;
  --c-star: #f5b301;

  /* Радиусы */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Тени */
  --sh-sm: 0 1px 2px rgba(31, 42, 55, .05), 0 1px 3px rgba(31, 42, 55, .04);
  --sh-md: 0 4px 16px rgba(47, 107, 216, .08), 0 2px 6px rgba(31, 42, 55, .05);
  --sh-lg: 0 12px 40px rgba(47, 107, 216, .12);

  /* Слой */
  --container: 1140px;
  --gap: 24px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--c-text); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .3em 0; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }
small { font-size: .85em; color: var(--c-text-muted); }
table { border-collapse: collapse; width: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: var(--c-bg-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head p { color: var(--c-text-soft); margin: 0; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--c-text-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer; transition: .18s ease;
  background: var(--c-primary); color: #fff;
}
.btn:hover { background: var(--c-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-bg-tint); color: var(--c-primary-hover); box-shadow: none; }
.btn--soft { background: var(--c-bg-tint); color: var(--c-primary-hover); }
.btn--soft:hover { background: var(--c-bg-tint-2); color: var(--c-primary-hover); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-top {
  font-size: .82rem; color: var(--c-text-soft);
  background: var(--c-bg-tint);
  border-bottom: 1px solid var(--c-border);
}
.header-top .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.header-top a { color: var(--c-text-soft); }
.header-top a:hover { color: var(--c-primary); }
.header-main .container {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--c-text); letter-spacing: -.02em; }
.logo:hover { color: var(--c-text); }
.logo .logo-mark { width: 34px; height: 34px; flex: none; }
.logo b { color: var(--c-primary); }
.main-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.main-nav a { color: var(--c-text); font-weight: 500; font-size: .96rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--c-primary); border-color: var(--c-primary-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.header-phone:hover { color: var(--c-primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 82% -10%, var(--c-bg-tint-2), transparent 60%),
    radial-gradient(760px 360px at 8% 110%, var(--c-bg-tint), transparent 55%),
    var(--c-bg);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--c-border);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { font-size: 1.12rem; color: var(--c-text-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-figure {
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #ffffff, var(--c-bg-tint));
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-lg);
  padding: 22px;
}
.hero-figure img { border-radius: var(--r-lg); }

/* ---------- Trust bar ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; color: var(--c-text-soft); font-size: .92rem; }
.trust .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--c-primary); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: .18s ease;
  overflow: hidden;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--c-border-strong); }

/* Product card */
.product-card { display: flex; flex-direction: column; }
.product-card .thumb {
  background: var(--c-bg-soft);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--c-border);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-primary); font-weight: 600; }
.product-card h3 { margin: 6px 0 6px; font-size: 1.12rem; }
.product-card p { font-size: .92rem; color: var(--c-text-soft); margin: 0 0 14px; }
.product-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .price { font-weight: 800; font-size: 1.12rem; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; color: var(--c-text-soft); }
.rating svg { color: var(--c-star); }

/* Feature / icon card */
.feature { padding: 26px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--c-bg-tint); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: .35em; }
.feature p { font-size: .93rem; color: var(--c-text-soft); margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--c-text-muted); padding: 16px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--c-border-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--c-text-soft); }

/* ---------- Product page ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 30px 0 50px; align-items: start; }
.product-gallery {
  border: 1px solid var(--c-border); border-radius: var(--r-xl);
  background: var(--c-bg-soft); padding: 20px; box-shadow: var(--sh-sm);
}
.product-gallery img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbs img { width: 72px; height: 72px; border-radius: var(--r-sm); border: 1px solid var(--c-border); }
.product-info .cat { color: var(--c-primary); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.product-info h1 { margin: 8px 0 10px; }
.product-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; color: var(--c-text-soft); font-size: .9rem; }
.price-box {
  background: var(--c-bg-tint); border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg); padding: 20px 22px; margin: 20px 0;
}
.price-box .big { font-size: 1.9rem; font-weight: 800; }
.price-box .old { text-decoration: line-through; color: var(--c-text-muted); margin-left: 10px; font-size: 1.05rem; font-weight: 500; }
.price-box .note { font-size: .85rem; color: var(--c-text-soft); margin: 6px 0 0; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pill-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  margin: 0; background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: .86rem; color: var(--c-text-soft);
}
.callout {
  border-left: 3px solid var(--c-primary-soft);
  background: var(--c-bg-soft);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .92rem; color: var(--c-text-soft); margin: 18px 0;
}
.disclaimer { font-size: .82rem; color: var(--c-text-muted); background: var(--c-bg-soft); border: 1px dashed var(--c-border-strong); border-radius: var(--r-sm); padding: 12px 16px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table th, .prose table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-border); font-size: .93rem; vertical-align: top; }
.prose table th { background: var(--c-bg-soft); font-weight: 600; width: 38%; }

.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-border); font-size: .93rem; }
.spec-table th { background: var(--c-bg-soft); font-weight: 600; width: 40%; color: var(--c-text-soft); }

/* FAQ */
.faq details {
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: 4px 18px; margin-bottom: 12px; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--c-primary); font-weight: 700; margin-right: 10px; }
.faq details[open] summary::before { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--c-border); }
.faq details p { padding: 12px 0 4px; margin: 0; color: var(--c-text-soft); font-size: .93rem; }

/* Reviews */
.review { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 18px; background: #fff; }
.review .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review .name { font-weight: 600; font-size: .95rem; }
.review .date { font-size: .8rem; color: var(--c-text-muted); }
.review p { margin: 0; font-size: .92rem; color: var(--c-text-soft); }

/* ---------- Blog ---------- */
.post-card .thumb { aspect-ratio: 16/9; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 22px; }
.post-card .date { font-size: .8rem; color: var(--c-text-muted); }
.post-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.post-card p { font-size: .92rem; color: var(--c-text-soft); margin: 0 0 12px; }
.article { max-width: 760px; margin: 0 auto; }
.article-hero img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16/8; object-fit: cover; margin: 18px 0 8px; }
.article .meta { color: var(--c-text-muted); font-size: .88rem; margin-bottom: 8px; }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--r-md); }
.article figcaption { font-size: .82rem; color: var(--c-text-muted); margin-top: 6px; text-align: center; }

/* ---------- Forms / auth ---------- */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-card { border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 32px; background: #fff; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--c-text-soft); }
.field input {
  width: 100%; padding: 11px 14px; font: inherit;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  background: var(--c-bg-soft); color: var(--c-text);
}
.field input:focus { outline: 2px solid var(--c-primary-soft); outline-offset: 1px; background: #fff; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--c-text-soft); margin-top: 16px; }

/* ---------- Category / catalog ---------- */
.cat-hero { background: var(--c-bg-tint); border-bottom: 1px solid var(--c-border); padding: 40px 0; }
.cat-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 34px; }
.cat-nav a { padding: 9px 18px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-border-strong); font-size: .9rem; color: var(--c-text); font-weight: 500; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; border-radius: var(--r-xl); padding: 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 20px; }
.cta-band .btn { background: #fff; color: var(--c-primary); }
.cta-band .btn:hover { background: var(--c-bg-tint); color: var(--c-primary-hover); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); padding: 52px 0 26px; margin-top: 64px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--c-text-soft); }
.site-footer a:hover { color: var(--c-primary); }
.footer-badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-badge { font-size: .72rem; font-weight: 600; color: var(--c-primary-hover); background: var(--c-bg-tint); border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); padding: 5px 10px; }
.footer-bottom { border-top: 1px solid var(--c-border); margin-top: 34px; padding-top: 20px; color: var(--c-text-muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.tag { display: inline-block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--c-primary-hover); background: var(--c-bg-tint); padding: 4px 10px; border-radius: var(--r-pill); }
.stack > * + * { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .product-hero, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hero-figure { order: -1; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .header-main .container { flex-wrap: wrap; gap: 14px; }
  .section { padding: 40px 0; }
  .cta-band, .auth-card { padding: 26px; }
}
