/* ==========================================================================
   ZM Dental Studio — сторінки-статті
   Дизайн за макетом: hero з ілюстрацією, «Коротко», смуга цифр, картки з номерами, CTA, джерела карткою.
   ========================================================================== */

.article-page,
.article-links {
  --art-teal: #17b3a1;
  --art-teal-deep: #0f9a8a;
  --art-teal-btn-1: #3fb3a6;
  --art-teal-btn-2: #2a8f87;
  --art-mint: #d9f3f0;
  --art-ink-soft: #4d5a6d;
  --art-muted: #6b778c;
  --art-card-shadow: 0 22px 46px -24px rgba(60, 100, 130, 0.3), 0 3px 12px rgba(60, 100, 130, 0.06);
}

/* ---------- Сторінка: м'який фон і декоративні кола ---------- */
.article-page {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfd 0%, #f8fbfb 38%, #fafcfc 100%);
}
.article-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(62vw, 780px);
  height: 1900px;
  pointer-events: none;
  background:
    radial-gradient(circle 150px at calc(100% + 30px) 1010px, #dcf5f1 0, #d8f3ef 70%, rgba(216, 243, 239, 0) 100%),
    radial-gradient(circle 210px at calc(100% + 90px) 820px, #e6f8f5 0, #e1f6f3 66%, rgba(225, 246, 243, 0) 100%),
    radial-gradient(circle 280px at calc(100% + 60px) 150px, #eaf9f7 0, rgba(234, 249, 247, 0) 100%);
}
.article-page > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.article-hero { padding: 9rem 0 0; }
.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 1rem 2rem;
}
.article-hero .breadcrumbs { margin-bottom: 1.4rem; }
.article-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 24px -12px rgba(40, 150, 135, 0.3), 0 2px 6px rgba(40, 90, 100, 0.05);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--art-teal-deep);
}
.article-pill .ic { width: 17px; height: 17px; }
.article-pill i { font-style: normal; opacity: 0.6; }
.article-hero h1 {
  max-width: 24ch;
  margin: 0 0 1.1rem;
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.article-hero__lead { max-width: 36rem; margin: 0; font-size: 1.15rem; line-height: 1.65; color: var(--art-ink-soft); }
.article-hero__art { justify-self: end; width: min(100%, 440px); }
.article-hero__art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 38px rgba(47, 160, 145, 0.14)); }

/* ---------- «Коротко» ---------- */
.key-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.6rem;
  align-items: center;
  margin-top: 2.1rem;
  padding: 1.5rem 1.8rem;
  border-radius: 26px;
  background: linear-gradient(135deg, #e8f8f5 0%, #d7f2ee 100%);
  box-shadow: 0 24px 46px -26px rgba(47, 160, 145, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.key-card__ico { display: grid; place-items: center; width: 52px; height: 52px; color: var(--art-teal); }
.key-card__ico .ic { width: 44px; height: 44px; stroke-width: 1.4; }
.key-card h2 { margin: 0 0 0.45rem; font-size: 1.2rem; color: var(--ink); }
.key-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; color: var(--art-ink-soft); font-size: 0.97rem; line-height: 1.5; }
.key-card li { position: relative; padding-left: 1.05rem; }
.key-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--art-teal); }
.key-card__btn,
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--art-teal-btn-1) 0%, var(--art-teal-btn-2) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 28px -12px rgba(42, 143, 135, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
}
.article a.article-cta__btn,
.article a.article-cta__btn:hover { color: #ffffff; }
.key-card__btn:hover,
.article-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 22px 34px -12px rgba(42, 143, 135, 0.8), 0 0 0 5px rgba(23, 179, 161, 0.14); color: #ffffff; }
.key-card__btn:active,
.article-cta__btn:active { transform: translateY(0) scale(0.985); }
.ic { width: 20px; height: 20px; flex: none; }
.ic--btn { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Смуга цифр ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.4rem 0 0;
  padding: 1.15rem 0;
  list-style: none;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--art-card-shadow);
}
.stat-strip li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  padding: 0.3rem 1rem;
  text-align: center;
}
.stat-strip li + li::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: #e8eef2; }
.stat-strip .ic { width: 26px; height: 26px; color: var(--art-teal); }
.stat-strip strong { font-size: 1.5rem; line-height: 1.15; color: var(--art-teal-deep); letter-spacing: -0.01em; }
.stat-strip span { font-size: 0.86rem; line-height: 1.4; color: var(--art-muted); max-width: 13rem; }

/* ---------- Текст ---------- */
.article { padding: 0.5rem 0 var(--space-8); font-size: 1.0625rem; line-height: 1.72; color: var(--art-ink-soft); }
.article > * + * { margin-top: var(--space-4); }
.article > p,
.article > ul,
.article > h2,
.article .item__body > * { max-width: 50rem; }
.article h2 { margin-top: var(--space-8); font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); }
.article h3 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.article h2 + * { margin-top: var(--space-3); }
.article a { color: var(--art-teal-deep); text-underline-offset: 3px; }
.article a:hover { color: var(--art-teal); }
.article strong { color: var(--ink); }
.article p { margin-bottom: 0; }

/* списки: м'ятні квадратики замість крапок */
.article ul,
.article .item__body ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.article ul > li { position: relative; padding-left: 2.1rem; }
.article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 7px;
  background: linear-gradient(145deg, #e6f8f5, #c9eee8);
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 8px -4px rgba(23, 179, 161, 0.4);
}

.cite { margin-left: 0.1em; font-size: 0.72em; line-height: 0; white-space: nowrap; }
.cite a { text-decoration: none; padding: 0 0.1em; border-radius: 3px; }
.cite a:hover { background: var(--art-mint); }

/* ---------- Картки з номерами ---------- */
.items { display: grid; gap: 0.5rem; margin-top: var(--space-3); counter-reset: item; max-width: none; }
.item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1.3rem;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px -24px rgba(60, 100, 130, 0.34), 0 2px 8px rgba(60, 100, 130, 0.04);
  counter-increment: item;
}
.item__n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #eafaf7, #c5ebe5);
  color: var(--art-teal-deep);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 18px -10px rgba(23, 179, 161, 0.7), inset 0 1px 0 #fff;
}
.item__n::before { content: counter(item); }
.item__body > * + * { margin-top: 0.65rem; }

/* ---------- Таблиця порівняння ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 22px; background: #ffffff; box-shadow: var(--art-card-shadow); max-width: none; }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.compare th, .compare td { padding: 0.95rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid #edf1f4; }
.compare thead th { background: linear-gradient(180deg, #eef9f7, #e4f5f2); color: var(--ink); font-weight: 700; white-space: nowrap; border-bottom: 0; }
.compare tbody th { color: var(--ink); white-space: nowrap; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.article-note { max-width: none; padding: 1rem 1.2rem; border-radius: 16px; border-left: 4px solid var(--art-teal); background: #ffffff; box-shadow: var(--art-card-shadow); font-size: 0.95rem; line-height: 1.55; color: var(--art-ink-soft); }

/* ---------- CTA ---------- */
.article-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.6rem;
  align-items: center;
  margin-top: var(--space-6);
  padding: 1.4rem 1.8rem;
  border-radius: 26px;
  background: linear-gradient(135deg, #e8f8f5 0%, #d7f2ee 100%);
  box-shadow: 0 24px 46px -26px rgba(47, 160, 145, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.article-cta__art { width: 124px; margin: -0.5rem 0 -0.5rem 0; }
.article-cta__art svg { display: block; width: 100%; height: auto; }
.article-cta h2 { margin: 0 0 0.35rem; font-size: 1.25rem; color: var(--ink); }
.article-cta p { margin: 0; color: var(--art-ink-soft); }
.article-cta__actions { display: grid; justify-items: center; gap: 0.6rem; }
.article .article-cta__link { font-size: 0.9rem; font-weight: 700; color: #0b7f72; text-decoration: none; }
.article .article-cta__link:hover { color: #086a5f; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Джерела ---------- */
.sources { max-width: none; margin-top: var(--space-6); padding: 1.6rem 1.8rem; border-radius: 26px; background: #ffffff; box-shadow: var(--art-card-shadow); font-size: 0.93rem; line-height: 1.55; color: var(--art-muted); }
.sources h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-size: 1.25rem; }
.sources h2 .ic { width: 28px; height: 28px; color: var(--art-teal); }
.sources ol { margin: 0; padding: 0; list-style: none; counter-reset: src; display: grid; gap: 0.65rem; }
.sources li { position: relative; padding-left: 2.5rem; counter-increment: src; overflow-wrap: anywhere; }
.sources li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: -0.05em;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #e0f5f1;
  color: var(--art-teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
}
.sources li:target { background: #eef9f7; border-radius: 8px; }
.sources a { color: var(--art-teal-deep); }

/* ---------- Блок посилань на сторінці послуг ---------- */
.article-links { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.article-links a { display: grid; gap: 0.3rem; height: 100%; padding: 1.15rem 1.3rem; border-radius: 22px; background: #ffffff; box-shadow: var(--art-card-shadow); text-decoration: none; color: var(--body); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.article-links a:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -22px rgba(60, 100, 130, 0.4); }
.article-links strong { color: var(--ink); line-height: 1.35; }
.article-links span { font-size: 0.92rem; line-height: 1.5; }

/* ---------- Адаптивність ---------- */
@media (max-width: 960px) {
  .article-hero { padding-top: 6.4rem; }
  .article-hero__grid { grid-template-columns: 1fr; }
  .article-hero__art { justify-self: center; width: min(78%, 340px); order: 3; }
  .article-hero h1 { max-width: none; }
  .key-card { grid-template-columns: auto minmax(0, 1fr); }
  .key-card__btn { grid-column: 1 / -1; justify-self: start; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .stat-strip li:nth-child(3)::before { display: none; }
  .article-cta { grid-template-columns: auto minmax(0, 1fr); }
  .article-cta__actions { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 1.2rem; }
}
@media (max-width: 640px) {
  .article { font-size: 1rem; }
  .article-hero { padding-top: 5.6rem; }
  .article-hero__lead { font-size: 1.05rem; }
  .key-card { padding: 1.2rem; border-radius: 22px; }
  .key-card__ico { width: 40px; height: 40px; }
  .key-card__ico .ic { width: 34px; height: 34px; }
  .item { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.1rem 1.15rem; }
  .item__n { width: 38px; height: 38px; font-size: 0.95rem; }
  .article-cta { grid-template-columns: 1fr; padding: 1.2rem; }
  .article-cta__art { width: 104px; margin: 0; }
  .article-cta__actions { grid-auto-flow: row; justify-items: stretch; }
  .article-cta__btn { justify-content: center; }
  .sources { padding: 1.2rem; }
  .stat-strip strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .key-card__btn, .article-cta__btn, .article-links a { transition: none; }
  .key-card__btn:hover, .article-cta__btn:hover, .article-links a:hover { transform: none; }
}
