/* AnyRidge service page components for praktik72.ru
 * All custom classes are strictly prefixed with .ar-
 * Design tokens match praktik72.ru: #cd9f6c (gold), #323232 (charcoal),
 * #f7f4f0 (warm ivory), #595959 (price bar), #E00000 (red accent).
 *
 * ПРИМЕЧАНИЕ: добавление кнопки «Позвонить» в штатную мобильную панель
 * .p72-book-bar требует отдельной правки шаблона (cta.css / header.php).
 */

/* ===== HERO (First Screen) ===== */
.ar-hero {
  background: linear-gradient(135deg, #fbf9f6 0%, #f3ece2 100%);
  border-bottom: 1px solid #e8dfd3;
  padding: 36px 0 28px;
}

.ar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: center;
}

.ar-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ar-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 48px;
  background: #ffffff;
  border: 1px solid #e3d5c3;
  font-size: 13px;
  font-weight: 700;
  color: #8c6236;
  margin-bottom: 16px;
}

.ar-hero-content h1 {
  margin: 0 0 14px;
}

.ar-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0 0 22px;
  max-width: 580px;
}

.ar-hero-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 22px;
  padding: 14px 20px;
  background: #ffffff;
  border-left: 4px solid #cd9f6c;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(50, 50, 50, 0.05);
}

.ar-hero-price {
  font-family: "Romul", Georgia, serif;
  font-size: 32px;
  line-height: 1.15;
  color: #323232;
  font-weight: 700;
}

.ar-hero-price-note {
  font-size: 14px;
  color: #595959;
}

.ar-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.ar-hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ar-hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e6dfd6;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
  color: #323232;
}

.ar-hero-badge strong {
  display: block;
  font-size: 14.5px;
  color: #323232;
}

.ar-hero-badge span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #666666;
}

.ar-hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cd9f6c;
  flex-shrink: 0;
}

.ar-hero-media {
  position: relative;
  min-width: 0;
}

.ar-hero-photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(50, 50, 50, 0.14);
  object-fit: cover;
}

.ar-hero-disclaimer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e6dfd6;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #777777;
  text-align: center;
}

/* ===== INTRO 2-COLUMN BLOCK ===== */
.ar-intro {
  padding-top: 24px;
  margin-bottom: 56px;
}

.ar-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ar-intro-col {
  background: #fbf9f6;
  border: 1px solid #ece4d9;
  border-radius: 14px;
  padding: 22px 24px;
}

.ar-intro-col p {
  margin: 0;
  font-size: 15.5px;
  color: #3f3f3f;
}

/* ===== COMMON SECTION & TYPOGRAPHY ===== */
.ar-section {
  scroll-margin-top: 24px;
}

.ar-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #444444;
  margin: 0 0 28px;
  max-width: 820px;
}

.ar-stat {
  color: #8c6236;
  font-weight: 700;
  white-space: nowrap;
}

.ar-note {
  margin: 20px 0 0;
  font-size: 14.5px;
  color: #666666;
}

.ar-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #3f3f3f;
}

.ar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cd9f6c;
}

.ar-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ar-cta-btn {
  min-height: 48px;
}

/* ===== BLOCK 1: PRICES ===== */
.ar-price-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(50, 50, 50, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.ar-price-list {
  display: flex;
  flex-direction: column;
}

.ar-price-row {
  transition: background-color 0.15s ease;
}

.ar-price-row--highlight {
  background: #fbf7f0;
  border-left: 4px solid #cd9f6c;
}

.ar-price-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ar-price-name strong {
  font-size: 17px;
  color: #323232;
}

.ar-price-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.45;
}

.ar-price-val {
  flex-shrink: 0;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #323232;
}

.ar-price-row--highlight .ar-price-val .ar-stat {
  font-size: 24px;
  color: #323232;
}

.ar-price-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.ar-reassurance-item {
  background: #f7f4f0;
  border: 1px solid #e7dfd4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #323232;
}

.ar-reassurance-item strong {
  display: block;
  margin-bottom: 4px;
  color: #8c6236;
}

/* ===== BLOCK 2: ABOUT SYSTEM + SCHEMA ===== */
.ar-system-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ar-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ar-feature-card {
  background: #ffffff;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ar-feature-card:hover {
  border-color: #cd9f6c;
  box-shadow: 0 8px 24px rgba(50, 50, 50, 0.06);
}

.ar-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.ar-card-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.ar-card-title {
  margin: 0;
  font-family: "Museo Sans Cyrl", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #323232;
}

.ar-feature-card p,
.ar-case-card p,
.ar-trust-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4f4f4f;
}

.ar-schema-box {
  margin: 0;
  background: #fbf9f6;
  border: 1px solid #e6dfd6;
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
}

.ar-schema-box > img {
  grid-row: 1 / span 3;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ar-schema-caption {
  font-family: "Romul", Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
  color: #323232;
}

.ar-schema-legend {
  margin-top: 0;
}

.ar-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ar-spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 48px;
  background: #ffffff;
  border: 1px solid #cd9f6c;
  font-size: 13px;
  font-weight: 700;
  color: #323232;
}

/* ===== BLOCK 3: INDICATIONS & CT BANNER ===== */
.ar-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.ar-case-card {
  background: #ffffff;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-ct-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: #fbf7f0;
  border: 1px solid #cd9f6c;
  border-left: 5px solid #cd9f6c;
  border-radius: 14px;
  margin-bottom: 20px;
}

.ar-ct-banner p {
  margin: 6px 0 0;
  font-size: 15px;
  color: #3f3f3f;
}

.ar-contra-box,
.ar-info-box,
.ar-warranty-box {
  background: #f7f4f0;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
}

.ar-contra-box p,
.ar-info-box p,
.ar-warranty-box p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #444444;
}

/* ===== BLOCK 4: COMPARISON TABLE ===== */
.ar-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(50, 50, 50, 0.05);
}

.ar-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.48;
}

.ar-compare-table th,
.ar-compare-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ece6dd;
}

.ar-compare-table thead th {
  background: #595959;
  color: #f5efd3;
  font-family: "Romul", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  vertical-align: middle;
}

.ar-compare-table tbody th {
  font-weight: 700;
  color: #323232;
  background: #fbf9f6;
  width: 19%;
}

.ar-compare-table tbody tr:last-child th,
.ar-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.ar-compare-table thead th.ar-col-highlight {
  background: #cd9f6c;
  color: #242424;
  font-weight: 700;
}

.ar-compare-table tbody td.ar-col-highlight {
  background: #fbf7f0;
  border-left: 2px solid #cd9f6c;
  border-right: 2px solid #cd9f6c;
  font-weight: 600;
  color: #242424;
}

.ar-flag {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 3px;
  width: 24px;
  height: 16px;
}

.ar-compare-links {
  margin-top: 16px;
  font-size: 15px;
  color: #4a4a4a;
}

.ar-compare-links p {
  margin: 0;
}

/* ===== BLOCK 5: TIMELINE & CABINET PHOTO ===== */
.ar-timeline {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ar-timeline-item {
  background: #ffffff;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.ar-timeline-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #cd9f6c;
  color: #323232;
  font-family: "Romul", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ar-timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ar-timeline-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4f4f4f;
}

.ar-timeline-term {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 48px;
  background: #f7f4f0;
  border: 1px solid #e3d6c4;
  font-size: 12px;
  font-weight: 700;
  color: #8c6236;
}

.ar-media-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  background: #fbf9f6;
  border: 1px solid #e6dfd6;
  border-radius: 16px;
  padding: 22px;
}

.ar-media-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* ===== BLOCK 6: WARRANTY & TRUST ===== */
.ar-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ar-trust-card {
  background: #ffffff;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== BLOCK 7: DOCTORS ===== */
.ar-doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ar-doctor-card {
  background: #ffffff;
  border: 1px solid #e6dfd6;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  box-shadow: 0 8px 24px rgba(50, 50, 50, 0.05);
}

.ar-doctor-photo-link {
  display: block;
  background: #f7f4f0;
  overflow: hidden;
}

.ar-doctor-photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: top center;
}

.ar-doctor-info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ar-doctor-name {
  margin: 0;
  font-family: "Romul", Georgia, serif;
  font-size: 20px;
  line-height: 1.25;
}

.ar-doctor-name a {
  color: #323232;
  text-decoration: none;
}

.ar-doctor-name a:hover {
  color: #8c6236;
  text-decoration: underline;
}

.ar-doctor-role {
  font-size: 14.5px;
  color: #595959;
}

.ar-doctor-exp {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 48px;
  background: #fbf7f0;
  border: 1px solid #cd9f6c;
  font-size: 13.5px;
  font-weight: 700;
  color: #323232;
}

.ar-doctor-list {
  margin: 4px 0 10px;
  gap: 6px;
}

.ar-doctor-list li {
  font-size: 14px;
}

.ar-doctor-info .ar-cta-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== BLOCK 8: FAQ ===== */
.ar-faq-section .faq-block {
  max-width: 960px;
}

/* ===== BLOCK 9: FINAL CTA ===== */
.ar-final-cta {
  background: linear-gradient(135deg, #2f2c29 0%, #3d3731 100%);
  color: #f5f1eb;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(50, 50, 50, 0.16);
}

.ar-final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.ar-final-cta-content h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.ar-final-cta-content .ar-lead {
  color: #e6dfd6;
  margin-bottom: 18px;
}

.ar-final-list li {
  color: #f0ebe3;
}

.ar-final-contacts {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ar-final-phone {
  margin-bottom: 10px;
}

.ar-final-phone a {
  font-family: "Romul", Georgia, serif;
  font-size: 28px;
  color: #cd9f6c;
  text-decoration: none;
  font-weight: 700;
}

.ar-final-phone a:hover {
  color: #f5efd3;
  text-decoration: underline;
}

.ar-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  color: #e0d9cf;
}

.ar-contact-list strong {
  color: #ffffff;
}

.ar-final-photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ===== RESPONSIVE: TABLET (<= 1024px) ===== */
@media (max-width: 1024px) {
  .ar-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ar-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ar-schema-box {
    grid-template-columns: 1fr;
  }
  .ar-schema-box > img {
    grid-row: auto;
  }
  .ar-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ar-doctors-grid {
    grid-template-columns: 1fr;
  }
  .ar-final-cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE: MOBILE (<= 767px, incl. 390 & 320) ===== */
@media (max-width: 767px) {
  .ar-hero {
    padding: 18px 0 22px;
  }
  .ar-hero-eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
  .ar-hero-sub {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .ar-hero-price-box {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .ar-hero-price {
    font-size: 26px;
  }
  .ar-hero-actions {
    margin-bottom: 16px;
  }
  .ar-hero-actions .btn,
  .ar-cta-row .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .ar-hero-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ar-intro {
    margin-bottom: 36px;
  }
  .ar-intro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ar-intro-col {
    padding: 16px;
  }
  .ar-lead {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .ar-price-val {
    text-align: left;
  }
  .ar-price-reassurance {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ar-cards-grid,
  .ar-cases-grid,
  .ar-timeline,
  .ar-trust-grid,
  .ar-media-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ar-ct-banner {
    flex-direction: column;
    padding: 18px 16px;
  }
  .ar-schema-box {
    padding: 16px;
  }
  .ar-doctor-card {
    grid-template-columns: 1fr;
  }
  .ar-doctor-photo {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .ar-doctor-info {
    padding: 16px;
  }
  .ar-doctor-info .ar-cta-btn {
    width: 100%;
  }
  .ar-final-cta {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .ar-final-phone a {
    font-size: 22px;
  }
}

@media (max-width: 359px) {
  .ar-hero-price {
    font-size: 23px;
  }
  .ar-final-cta {
    padding: 20px 14px;
  }
  .ar-feature-card,
  .ar-case-card,
  .ar-trust-card,
  .ar-contra-box,
  .ar-info-box,
  .ar-warranty-box {
    padding: 16px 14px;
  }
}

/* Сброс правила сайта `.text img {margin:30px auto; width:100%; max-height:350px; object-fit:cover}`
   (template_*.css): внутри секций AnyRidge картинки размеряются классами ar-*. Найдено на dev2 26.11. */
.text.ar-section img { margin: 0; max-height: none; }
.text.ar-section .ar-flag { display: inline-block; width: 24px; height: 16px; margin: 0 6px 0 0; object-fit: contain; }
.text.ar-section .ar-card-icon img { width: 48px; height: 48px; object-fit: contain; }
.text.ar-section .ar-doctor-photo { object-fit: cover; }
/* Сайт: `ul li {color:#323232}` перебивает светлый текст на тёмной плашке записи. */
.text.ar-section .ar-final-cta li, .text.ar-section .ar-final-cta p { color: #f5f1eb; }
/* Сайт: строка .priceElement в одну линию — на телефоне название зажато (приёмка 2 dev2, 390 px). Ставим цену под название. */
@media (max-width: 767px) {
  .text.ar-section .ar-price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .text.ar-section .ar-price-val { text-align: left; }
}
