/* =========================================================
   Mediation landing layout components
   Strictly uses existing teslya.kz design tokens & palette
   ========================================================= */

/* 0. Balanced above-the-fold Hero proportions */
.page--mediation .hero {
  padding: 36px 0 56px;
}

.page--mediation .hero__inner {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.page--mediation .hero__subtitle {
  max-width: 580px;
  font-size: 15.5px;
  margin-bottom: 18px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
  font-weight: 500;
}

.hero-points i {
  color: var(--accent);
  margin-top: 3px;
  font-size: 13px;
  flex-shrink: 0;
}

.page--mediation .hero__actions {
  margin-top: 0;
}

.hero__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__note i {
  color: var(--accent-dark);
}

.page--mediation .hero-metrics {
  margin-top: 26px;
  padding-top: 22px;
  gap: 36px;
}

.page--mediation .hero-card {
  max-width: 420px;
  padding: 24px;
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page--mediation .hero-card__badge {
  margin-bottom: 0;
}

.hero-card__city {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: #111827;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page--mediation .hero-card__photo {
  margin-bottom: 14px;
  max-height: 330px;
}

.page--mediation .hero-card__photo img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center 15%;
}

.page--mediation .hero-card__quote {
  margin-top: 12px;
  padding-top: 12px;
  margin-bottom: 0;
}

@media (min-width: 1366px) {
  .page--mediation .hero {
    padding-top: 40px;
  }
  .page--mediation .hero-card {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .page--mediation .hero {
    padding: 24px 0 28px;
  }
  .page--mediation .hero-card__photo {
    max-height: none;
  }
  .page--mediation .hero-card__photo img {
    height: auto;
    max-height: 380px;
  }
}

/* 1. Editorial 2-column photo cards (Family vs Business) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.audience-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.audience-card__media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.audience-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audience-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.audience-card__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 8px;
}

.audience-card__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}

.audience-card__footer {
  margin-top: auto;
  padding-top: 18px;
}

/* 2. Responsive comparison table: Mediation vs Court */
.table-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  overflow-x: auto;
  max-inline-size: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  text-align: left;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.comparison-table thead th {
  padding: 20px 24px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
}

.comparison-table thead th.is-highlight {
  background: #111827;
  color: #ffffff;
}

.comparison-table tbody th,
.comparison-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.55;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  width: 22%;
  background: rgba(248, 250, 252, 0.7);
}

.comparison-table tbody td {
  color: var(--text-muted);
  width: 39%;
}

.comparison-table tbody td.is-highlight {
  color: var(--text-main);
  font-weight: 500;
  background: rgba(217, 54, 51, 0.035);
}

@media (max-width: 768px) {
  .table-wrapper {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table tbody th,
  .comparison-table tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 14px;
    overflow: hidden;
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .comparison-table tbody th {
    background: #f5f6fa;
    padding: 14px 18px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .comparison-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  }

  .comparison-table tbody td:last-child {
    border-bottom: 0;
  }

  .comparison-table tbody td.is-highlight {
    border-left: 3px solid var(--accent);
  }

  .comparison-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
  }

  .comparison-table tbody td.is-highlight[data-label]::before {
    color: var(--accent-dark);
  }

  .page--mediation .comparison-table tbody td:nth-of-type(1)::before {
    content: "Суд в Астане";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
  }

  .page--mediation .comparison-table tbody td:nth-of-type(2)::before {
    content: "Медиация с Ольгой Тесля";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 4px;
  }
}

/* 3. Numbered editorial steps (no icons) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 24px 22px 26px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.step-card .step-card__num {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 14px;
}

.step-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.3;
}

.step-card p:not(.step-card__num) {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.callout-bar {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid rgba(217, 54, 51, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-subtle);
}

.callout-bar .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.callout-bar__text strong {
  display: block;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.callout-bar__text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 4. Editorial Case Cards (no icons) */
.case-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-card__badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(217, 54, 51, 0.08);
  padding: 5px 10px;
  border-radius: 999px;
}

.case-card__term {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.case-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.28;
  margin: 0;
}

.case-card__body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.case-card__result {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f6fa;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.case-card__result strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

/* 5. Pricing cards (typography + contrast card) */
.pricing-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  background: #111827;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.pricing-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 8px;
}

.pricing-card--featured .pricing-card__label {
  color: rgba(249, 250, 251, 0.68);
}

.pricing-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 20px;
  margin: 0 0 12px;
}

.pricing-card__price {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card--featured .pricing-card__price {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.pricing-card__note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.pricing-card--featured .pricing-card__note {
  color: rgba(249, 250, 251, 0.78);
}

.pricing-card .list--check {
  margin-bottom: 22px;
}

.pricing-card--featured .list--check li {
  color: rgba(249, 250, 251, 0.9);
}

.pricing-card__cta {
  margin-top: auto;
}

.pricing-card__cta .btn {
  width: 100%;
}

/* 6. Native <details> FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(217, 54, 51, 0.08);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::before {
  content: "−";
  background: var(--accent);
  color: #ffffff;
}

.faq-item__body {
  padding: 0 22px 20px 64px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item__body p {
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .audience-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .callout-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-item__body {
    padding: 0 18px 18px 18px;
  }
}
