/* CLEVER DENTAL — стили SEO-страниц (системы, категории, блог, faq).
   Isolated from style.css to avoid regressions on existing pages.
   Design reference: Apple, Aesop, Leica, Straumann — clean, precise, confident.
*/

:root {
  --c-black: #0C0C0C;
  --c-text: #1a1a1a;
  --c-text-muted: #707070;
  --c-line: #e6e6e6;
  --c-bg: #ffffff;
  --c-bg-soft: #fafafa;
  --c-brand: #B5985A;
  --c-brand-dark: #8a7140;

  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-display: "Helvetica Neue", "Inter", var(--f-ui);

  --container: 1200px;
  --gap: 24px;
  --r-sm: 6px;
  --r-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-brand-dark); }

/* === Header === */
.seo-hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.seo-hdr__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: clamp(16px, 4vw, 40px);
}
.seo-hdr__logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-black);
  white-space: nowrap;
}
.seo-hdr__logo-dot { color: var(--c-brand); margin: 0 0.4em; }
.seo-hdr__logo-name { color: var(--c-text-muted); font-weight: 400; }
.seo-hdr__nav {
  flex: 1;
  display: flex; gap: clamp(12px, 2.5vw, 28px);
  font-size: 14px;
  color: var(--c-text-muted);
}
.seo-hdr__nav a:hover { color: var(--c-black); }
.seo-hdr__phone {
  font-weight: 500;
  font-size: 15px;
  color: var(--c-black);
  white-space: nowrap;
}

/* === Page shell === */
.seo-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px) 64px;
}

/* === Breadcrumbs === */
.breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  display: flex; gap: 8px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-black); }

/* === Hero sections === */
.system-hero, .category-hero {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-line);
}
.system-hero h1, .category-hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--c-black);
  max-width: 920px;
}
.system-description, .category-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0 0 16px;
  max-width: 820px;
}
.description-secondary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-muted);
  max-width: 820px;
  margin: 0 0 24px;
}
.system-meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.system-meta strong { color: var(--c-text); margin-right: 6px; }

/* === Product grid === */
.products-grid h2, .products-by-system h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--c-black);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.product-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px;
  background: var(--c-bg-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--c-brand);
  transform: translateY(-1px);
}
.product-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-brand-dark);
  margin-bottom: 8px;
}
.product-card__name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--c-black);
  line-height: 1.3;
}
.product-card__variants {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.product-card__price {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}

.system-block { margin-bottom: 40px; }

/* === FAQ === */
.faq {
  margin: 56px 0;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}
.faq h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 24px;
  color: var(--c-black);
}
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: 16px 0;
}
.faq summary {
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--c-black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-brand);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  margin: 12px 0 0;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* === CTA === */
.cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--c-black);
  border-radius: var(--r-md);
  text-align: center;
  color: white;
}
.cta h2 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 16px;
  color: white;
}
.cta p {
  color: rgba(255,255,255,0.7);
  margin: 0 0 24px;
}
.cta .btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--c-brand);
  color: var(--c-black);
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}
.cta .btn:hover { background: white; color: var(--c-black); }

/* === Footer === */
.seo-ftr {
  margin-top: 80px;
  background: var(--c-black);
  color: rgba(255,255,255,0.7);
  padding: 56px clamp(16px, 4vw, 40px) 24px;
}
.seo-ftr__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.seo-ftr__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
}
.seo-ftr__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.seo-ftr__links, .seo-ftr__plain {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 14px;
}
.seo-ftr__links li, .seo-ftr__plain li {
  margin-bottom: 8px;
}
.seo-ftr__links a:hover { color: var(--c-brand); }
.seo-ftr__bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* === Responsive === */
@media (max-width: 720px) {
  .seo-hdr__nav { display: none; }
  .seo-hdr__inner { gap: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .system-hero h1, .category-hero h1 { font-size: 26px; }
}
