/**
 * Single treatment page (CPT 'treatment')
 * Adapted from dent-aura-single-service.html mockup,
 * using existing brand tokens from main.css (--blue, --gray-*, fonts).
 */

/* ── Wrapper ── */
.treatment-page {
  /* та сама ширина контенту, що й на інших сторінках: поля 48px */
  padding: 0 48px;
}

/* ── Breadcrumb ── */
/* крихти — загальний стиль .ph-breadcrumb з main.css */
.t-bc { padding-top: 32px; margin-bottom: 0; }

/* ── HERO ── */
.t-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* фото — половина ширини (було 420px) */
  gap: 56px;
  align-items: center;
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--gray-10);
}
.t-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 14px;
}
.t-hero-h1 em { font-style: italic; color: var(--blue); }
.t-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-mid);
  max-width: 520px;
  margin-bottom: 24px;
}
.t-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.t-hero-img {
  background: #EBF2FD;
  border: 1px solid #D0E4F8;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-hero-icon-wrap { padding: 32px; }
.t-hero-icon-wrap img { width: 100%; max-width: 200px; height: auto; }
.t-hero-placeholder { color: var(--blue); opacity: .3; }

/* ── Section common ── */
.t-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-10);
}
.t-section:last-of-type { border-bottom: none; }

.t-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.t-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--blue); }

.t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--black);
  margin-bottom: 16px;
}
.t-h2 em { font-style: italic; color: var(--blue); }

.t-lead {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── ABOUT ── */
.t-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.t-about-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 14px;
}
.t-about-body strong { color: var(--black); font-weight: 600; }

.t-about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
}
.t-about-list li {
  font-size: 14px;
  color: var(--gray-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.t-about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  top: 1px;
}

.t-about-cards {
  background: var(--gray-05);
  border: 1px solid var(--gray-10);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.t-ac-item { display: flex; align-items: flex-start; gap: 14px; }
.t-ac-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #EBF2FD;
  border: 1px solid #D0E4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.t-ac-title { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.t-ac-sub  { font-size: 13px; color: var(--gray-mid); line-height: 1.5; }

/* ── CHOOSE (4 numbered cards) ── */
.t-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.t-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-10);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.t-choose-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.t-choose-item:hover { border-color: #D0E4F8; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.t-choose-item:hover::before { transform: scaleX(1); }
.t-ci-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-ci-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.t-ci-text  { font-size: 13px; color: var(--gray-mid); line-height: 1.6; margin: 0; }

/* ── STEPS ── */
.t-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 780px;
}
.t-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: var(--gray-10);
  z-index: 0;
}
.t-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  position: relative;
  z-index: 1;
}
.t-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.t-step:hover .t-step-num { background: var(--blue); color: #fff; }
.t-step-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.t-step-desc  { font-size: 14px; color: var(--gray-mid); line-height: 1.6; margin: 0; }

/* ── SUBSERVICES (children) ── */
.t-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.t-sub-card {
  border: 1px solid var(--gray-10);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 0;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.t-sub-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: var(--blue);
  transform: translateY(-3px);
}
.t-sc-num {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gray-light);
}
.t-sc-title { font-size: 16px; font-weight: 700; color: var(--black); padding: 8px 0 6px; line-height: 1.3; }
.t-sc-desc  { font-size: 13px; color: var(--gray-mid); line-height: 1.55; flex: 1; margin: 0 0 14px; }
.t-sc-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 0;
  border-top: 1px solid var(--gray-10);
  margin-top: auto;
  transition: gap .2s;
}
.t-sub-card:hover .t-sc-link { gap: 10px; }

/* ── PRICE TABLE ── */
.t-price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-10);
}
.t-price-table thead th {
  background: var(--gray-05);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-10);
}
.t-price-table tbody tr {
  border-bottom: 1px solid var(--gray-10);
  transition: background .2s;
}
.t-price-table tbody tr:last-child { border-bottom: none; }
.t-price-table tbody tr:hover { background: #EBF2FD; }
.t-price-table td { padding: 14px 20px; font-size: 14px; vertical-align: middle; }
.t-pt-name  { color: var(--black); font-weight: 500; }
.t-pt-name a { color: var(--black); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.t-pt-name a:hover { border-color: var(--blue); }
.t-pt-price { color: var(--blue); font-family: var(--font-serif); font-size: 17px; font-weight: 700; white-space: nowrap; }
.t-pt-consult { color: var(--gray-light); font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
.t-pt-note  { color: var(--gray-light); font-size: 12px; }
/* Без колонки «Примітка»: ціна праворуч */
.t-price-table--2 th:last-child, .t-price-table--2 .t-pt-price { text-align: right; width: 1%; }
.t-price-cta { display: flex; justify-content: center; margin-top: 24px; }

/* ── FAQ + CTA layout ── */
.t-faq-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

/* ── CTA card (compact) ── */
.t-cta-card {
  position: sticky;
  top: 88px;
  background: #FAFCFF;
  border: 1px solid #D0E4F8;
  border-radius: 12px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.t-cta-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin: 0 0 2px;
}
.t-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 13px;
}
.t-cta-divider {
  height: 1px;
  background: rgba(27, 90, 158, .12);
  margin: 4px 0;
}
.t-cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: color .2s;
}
.t-cta-phone:hover { color: var(--blue); }
.t-cta-msg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.t-cta-msg-row .chip { padding: 6px 10px; font-size: 11px; }
.t-cta-msg-row .chip svg { width: 12px; height: 12px; }
.t-cta-info {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.45;
}
.t-cta-icon { flex-shrink: 0; line-height: 0; padding-top: 1px; color: var(--blue); }
.t-cta-schedule { font-size: 12px; line-height: 1.55; color: var(--gray-mid); }
.t-cta-schedule strong { color: var(--black); font-weight: 600; }

/* ── FAQ accordion ── */
.admin-bar .t-cta-card { top: 120px; }

.t-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-faq-item {
  background: var(--white);
  border: 1px solid var(--gray-10);
  border-radius: 8px;
  overflow: hidden;
}
.t-faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  text-align: left;
  transition: background .2s;
}
/* GeneratePress красит button:hover/focus в свой фон и белый текст — перебиваем */
.t-faq-q:hover,
.t-faq-q:focus,
.t-faq-q:active { background: none; color: var(--blue); }
.t-faq-q:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: -2px; }
.t-faq-item { transition: border-color .2s, box-shadow .2s; }
.t-faq-item:hover,
.t-faq-item.is-open { border-color: var(--blue-mid); }
.t-faq-item.is-open { box-shadow: 0 6px 20px rgba(27,90,158,.06); }
.t-faq-item.is-open .t-faq-q { color: var(--blue); }
.t-faq-ch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EBF2FD;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s, color .2s;
}
.t-faq-q:hover .t-faq-ch { background: var(--blue-mid); }
.t-faq-item.is-open .t-faq-ch { transform: rotate(180deg); background: var(--blue); color: #fff; }
.t-faq-a { display: none; }
.t-faq-item.is-open .t-faq-a { display: block; }
.t-faq-a-in {
  padding: 4px 22px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-mid);
  border-top: 1px solid var(--gray-10);
}
.t-faq-a-in p { margin: 8px 0 0; }
.t-faq-a-in p:first-child { margin-top: 12px; }

/* ── RELATED ── */
.t-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.t-rel-card {
  border: 1px solid var(--gray-10);
  border-radius: 8px;
  padding: 18px 16px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-rel-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.t-rel-icon { width: 40px; height: 40px; object-fit: contain; }
.t-rel-title { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.3; }
.t-rel-arrow {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap .2s;
}
.t-rel-card:hover .t-rel-arrow { letter-spacing: .06em; }

/* ── SEO TEXT ── */
.t-seo-section { padding-top: 32px; }
.t-seo-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-mid);
  max-width: 880px;
}
.t-seo-text p { margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .t-related-grid { grid-template-columns: repeat(2, 1fr); }
  .t-sub-grid { grid-template-columns: repeat(2, 1fr); }
  .t-faq-layout { grid-template-columns: 1fr 260px; gap: 20px; }
}
@media (max-width: 900px) {
  .treatment-page { padding: 0 20px; }
  .t-hero { grid-template-columns: 1fr; gap: 24px; padding: 18px 0 32px; }
  .t-hero-img { aspect-ratio: 4/3; }
  .t-section { padding: 40px 0; }
  .t-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .t-choose-grid { grid-template-columns: 1fr; }
  .t-sub-grid { grid-template-columns: 1fr; }
  .t-related-grid { grid-template-columns: 1fr 1fr; }
  .t-faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .t-cta-card { position: static; }
  .t-hero-btns .btn-primary,
  .t-hero-btns .btn-outline { width: 100%; justify-content: center; }
  .t-price-table thead { display: none; }
  .t-price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .t-price-table td { padding: 0; }
  .t-pt-name { grid-column: 1 / span 2; font-weight: 600; }
  .t-pt-note { grid-column: 1 / span 2; }
}
@media (max-width: 560px) {
  .t-related-grid { grid-template-columns: 1fr; }
}

/* Ціни, привʼязані до долара (як у прайсі) */
.t-pt-price .pr-usd { font-family: var(--font-serif); font-size: .78em; font-weight: 600; color: #9A9A9A; margin-right: 10px; }
