/* AUTO108 — Ремонт фар: дизайн-система v2.1
   Палитра выровнена с /services/ (v3): #238EE3 / #25D366 / #021138.
   ⚠️ Переменные с префиксом --rf-: страницы живут внутри шаблона auto108_v4,
   его design.css задаёт свои --accent/--line в :root и ПЕРЕБИВАЛ наши
   (синие цены на синем фоне). Не использовать здесь безпрефиксные имена. */

/* ===== CSS VARIABLES ===== */
:root {
  --rf-blue: #238EE3;
  --rf-blue-dark: #1470bf;
  --rf-blue-deep: #021138;
  --rf-blue-light: #EDF2F8;
  --rf-accent: #25D366;
  --rf-accent-dark: #1fb958;
  --rf-text: #1a1a2e;
  --rf-muted: #5a6070;
  --rf-border: #dde3ed;
  --rf-white: #ffffff;
  --rf-radius: 12px;
  --rf-shadow: 0 4px 20px rgba(0,0,0,.09);
}

/* ===== LAYOUT ===== */
.rf-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.rf-section { padding: 60px 0; }
.rf-section--alt { background: var(--rf-white); }

/* ===== SECTION TITLES ===== */
.section-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--rf-text); margin-bottom: 10px; }
.section-subtitle { color: var(--rf-muted); font-size: 1rem; margin-bottom: 40px; max-width: 620px; }
.section-title--center { text-align: center; }
.section-subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--rf-blue-deep) 0%, #031239 60%, #0a1f4d 100%);
  color: var(--rf-white);
  padding: 70px 0 60px;
}
.hero__inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.hero__badge { display: inline-block; background: var(--rf-accent); color: var(--rf-white); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.hero h1 em { color: var(--rf-blue); font-style: normal; }
.hero__lead { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 560px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero__tag { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: var(--rf-white); font-size: .82rem; padding: 5px 14px; border-radius: 20px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: var(--rf-accent); color: var(--rf-white); font-weight: 700;
  padding: 14px 32px; border-radius: 10px; font-size: 1rem;
  transition: background .2s, transform .1s;
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--rf-accent-dark); color: var(--rf-white); text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.5); color: var(--rf-white);
  padding: 12px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: border-color .2s, background .2s;
  display: inline-block; text-decoration: none;
}
.btn-outline:hover { border-color: var(--rf-white); color: var(--rf-white); background: rgba(255,255,255,.08); text-decoration: none; }
.btn-blue {
  background: var(--rf-blue); color: var(--rf-white); font-weight: 700;
  padding: 14px 32px; border-radius: 10px; font-size: 1rem;
  transition: background .2s;
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
}
.btn-blue:hover { background: var(--rf-blue-dark); color: var(--rf-white); text-decoration: none; }

/* Hero card */
.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--rf-radius);
  padding: 28px 24px;
}
.hero__card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--rf-white); }
.hero__card ul { list-style: none; }
.hero__card ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; display: flex; justify-content: space-between; gap: 12px; }
.hero__card ul li:last-child { border-bottom: none; }
.hero__card .price { font-weight: 700; color: var(--rf-accent); white-space: nowrap; }
.hero__card .guarantee { margin-top: 16px; font-size: .82rem; color: rgba(255,255,255,.7); text-align: center; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--rf-blue-deep); padding: 20px 0; }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-item { color: var(--rf-white); }
.trust-item__num { font-size: 1.8rem; font-weight: 800; color: var(--rf-accent); line-height: 1; }
.trust-item__label { font-size: .82rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ===== INFO CARDS (Intro section) ===== */
.info-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.info-card { background: var(--rf-blue-light); border-radius: var(--rf-radius); padding: 24px; }
.info-card strong { color: var(--rf-blue-dark); }
.info-card p { font-size: .9rem; color: var(--rf-muted); margin-top: 8px; line-height: 1.6; }

/* ===== EXPERT BLOCK ===== */
.expert-block {
  background: var(--rf-white);
  border: 2px solid var(--rf-blue);
  border-radius: var(--rf-radius);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 40px 0 0;
}
.expert-block__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rf-blue-deep), var(--rf-blue));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--rf-white);
}
.expert-block__info { flex: 1; }
.expert-block__name { font-size: 1.2rem; font-weight: 800; color: var(--rf-text); margin-bottom: 4px; }
.expert-block__title { font-size: .88rem; color: var(--rf-blue-dark); font-weight: 600; margin-bottom: 12px; }
.expert-block__bio { font-size: .93rem; color: var(--rf-muted); line-height: 1.65; margin-bottom: 14px; }
.expert-block__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.expert-stat { text-align: center; }
.expert-stat__num { font-size: 1.4rem; font-weight: 800; color: var(--rf-blue-dark); line-height: 1; }
.expert-stat__label { font-size: .78rem; color: var(--rf-muted); margin-top: 2px; }
.expert-quote {
  background: var(--rf-blue-light);
  border-left: 4px solid var(--rf-blue);
  border-radius: 0 var(--rf-radius) var(--rf-radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--rf-text);
  font-size: .97rem;
  line-height: 1.7;
}
.expert-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--rf-blue-dark); }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.service-card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-accent));
}
.service-card:hover { box-shadow: var(--rf-shadow); transform: translateY(-3px); }
.service-card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--rf-text); }
.service-card__body { font-size: .95rem; color: var(--rf-muted); line-height: 1.65; margin-bottom: 18px; }
.service-card__list { list-style: none; margin-bottom: 20px; }
.service-card__list li { font-size: .9rem; color: var(--rf-muted); padding: 4px 0 4px 20px; position: relative; }
.service-card__list li::before { content: '\2713'; position: absolute; left: 0; color: var(--rf-accent); font-weight: 700; }
.service-card__price { font-size: 1.1rem; font-weight: 700; color: var(--rf-blue-dark); }
.service-card__price span { font-size: .85rem; font-weight: 400; color: var(--rf-muted); }
.service-card--wide { grid-column: 1 / -1; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: 24px; }
.comparison-table thead th { background: var(--rf-blue-deep); color: var(--rf-white); padding: 14px 16px; text-align: left; font-weight: 700; }
.comparison-table thead th:first-child { border-radius: 8px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 8px 0 0; }
.comparison-table tbody tr { border-bottom: 1px solid var(--rf-border); }
.comparison-table tbody tr:nth-child(even) { background: var(--rf-blue-light); }
.comparison-table tbody td { padding: 12px 16px; vertical-align: middle; }
.comparison-table .col-param { font-weight: 600; color: var(--rf-text); }
.comparison-table .col-old { color: var(--rf-muted); }
.comparison-table .col-new { color: #1a7a3c; font-weight: 700; }
.badge-good { display: inline-block; background: #d4f0de; color: #1a7a3c; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.badge-bad { display: inline-block; background: #fde8e8; color: #c0392b; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ===== PRICE TABLE ===== */
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table thead th { background: var(--rf-blue-deep); color: var(--rf-white); padding: 14px 16px; text-align: left; font-weight: 700; }
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr { border-bottom: 1px solid var(--rf-border); }
.price-table tbody tr:nth-child(even) { background: var(--rf-blue-light); }
.price-table tbody td { padding: 13px 16px; }
.price-table tbody td:last-child { text-align: right; font-weight: 700; color: var(--rf-blue-dark); white-space: nowrap; }
.price-table tfoot td { padding: 12px 16px; font-size: .85rem; color: var(--rf-muted); background: #f5f7fb; }

/* ===== PROCESS STEPS ===== */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 20px; }
.process-step { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: 28px 22px; text-align: center; }
.process-step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--rf-blue); color: var(--rf-white); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.process-step__title { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.process-step__body { font-size: .88rem; color: var(--rf-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq-item {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq-item[open] { border-color: var(--rf-blue); }
details.faq-item summary {
  padding: 20px 24px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--rf-blue); flex-shrink: 0; transition: transform .2s; }
details.faq-item[open] summary::after { content: '\2212'; }
.faq-item__answer { padding: 0 24px 20px; font-size: .95rem; color: var(--rf-muted); line-height: 1.7; }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: 24px; }
.review-card__stars { color: var(--rf-accent); font-size: 1.1rem; margin-bottom: 10px; }
.review-card__text { font-size: .92rem; color: var(--rf-muted); line-height: 1.65; margin-bottom: 14px; font-style: italic; }
.review-card__author { font-weight: 700; font-size: .9rem; }
.review-card__car { font-size: .82rem; color: var(--rf-muted); }

/* ===== CTA BLOCK ===== */
.cta-block {
  background: linear-gradient(135deg, var(--rf-blue-deep), #031239);
  color: var(--rf-white);
  border-radius: var(--rf-radius);
  padding: 50px 40px;
  text-align: center;
}
.cta-block h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1rem; }
.cta-block__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-block .cta-phone { margin-top: 16px; font-size: .95rem; color: rgba(255,255,255,.7); }
.cta-block .cta-phone a { color: var(--rf-white); font-weight: 700; }
.cta-block .cta-address { margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ===== LINKS ===== */
.rf-links { margin-bottom: 32px; }
.rf-links h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.rf-links ul { list-style: none; margin: 0; padding: 0; }
.rf-links li { padding: 6px 0; font-size: .95rem; }
.rf-links a { color: var(--rf-blue-dark); }
.rf-links a:hover { color: var(--rf-blue); text-decoration: underline; }

/* ===== ПАСПОРТ РАБОТЫ (факты модели: оптика, сроки, гарантия, цены) ===== */
.rf-passport { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); overflow: hidden; max-width: 820px; margin: 0 auto; }
.rf-passport__row { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--rf-border); }
.rf-passport__row:last-child { border-bottom: none; }
.rf-passport__row dt { padding: 14px 20px; font-size: .88rem; font-weight: 700; color: var(--rf-blue-dark); background: var(--rf-blue-light); }
.rf-passport__row dd { padding: 14px 20px; font-size: .92rem; color: var(--rf-text); margin: 0; }

/* ===== НАШИ РАБОТЫ ПО ЭТОЙ МОДЕЛИ (реальные кейсы портфолио) ===== */
.rf-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rf-case-card { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rf-case-card__date { font-size: .78rem; color: var(--rf-muted); text-transform: uppercase; letter-spacing: .5px; }
.rf-case-card__name { font-weight: 700; font-size: .98rem; line-height: 1.4; color: var(--rf-text); }
.rf-case-card__works { font-size: .87rem; color: var(--rf-muted); line-height: 1.6; }
.rf-case-card__total { font-weight: 800; color: var(--rf-accent-dark); font-size: .95rem; }
.rf-case-card__link { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--rf-blue-dark); }
.rf-case-card__link:hover { color: var(--rf-blue); text-decoration: underline; }
.rf-cases-more { text-align: center; margin-top: 28px; }

/* ===== ОБНОВЛЕНО: ДАТА ===== */
.rf-updated { font-size: .82rem; color: var(--rf-muted); text-align: right; max-width: 1280px; margin: 0 auto; padding: 12px 20px 0; }

/* =====================================================================
   ФОТО-СЛОЙ (2026-09): страницы моделей, собранные вокруг фото кейсов.
   Используется с remont-far/_img.php. Классы новые — старые страницы не затрагивает.
   ===================================================================== */
.rf-photo { display: block; margin: 0; position: relative; overflow: hidden; border-radius: var(--rf-radius); background: #0b1430; }
.rf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .35s ease; }
.rf-photo:hover img { transform: scale(1.03); }
.rf-photo__label {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  background: rgba(2,17,56,.82); color: var(--rf-white);
  font-size: .75rem; font-weight: 700; letter-spacing: .3px;
  padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(4px);
}
.rf-photo__label--bad { background: rgba(192,57,43,.9); }
.rf-photo__label--good { background: rgba(31,185,88,.92); }
.rf-fig { margin: 0; }
.rf-fig figcaption { font-size: .84rem; color: var(--rf-muted); padding: 10px 2px 0; line-height: 1.45; }

/* Hero с фото вместо ценовой карточки */
.hero--photo .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
.hero__visual { position: relative; }
.hero__visual .rf-photo { box-shadow: 0 20px 50px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.hero__visual-note {
  position: absolute; right: -10px; bottom: -18px;
  background: var(--rf-white); color: var(--rf-text);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--rf-shadow);
  font-size: .85rem; line-height: 1.35; max-width: 250px;
}
.hero__visual-note strong { display: block; color: var(--rf-accent-dark); font-size: 1.05rem; }
.hero__prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__price {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 10px 14px; min-width: 132px;
}
.hero__price span { display: block; font-size: .76rem; color: rgba(255,255,255,.7); }
.hero__price b { font-size: 1.05rem; color: var(--rf-accent); white-space: nowrap; }

/* Фото-история по шагам: симптом → причина → ремонт → результат */
.rf-story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: rfstory; }
.rf-story__step { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); overflow: hidden; display: flex; flex-direction: column; }
.rf-story__step .rf-photo { border-radius: 0; }
.rf-story__body { padding: 16px 18px 20px; }
.rf-story__body h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: var(--rf-text); }
.rf-story__body h3::before { counter-increment: rfstory; content: counter(rfstory); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rf-blue); color: #fff; font-size: .82rem; margin-right: 8px; vertical-align: 1px; }
.rf-story__body p { font-size: .88rem; color: var(--rf-muted); line-height: 1.6; margin: 0; }
.rf-callout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center;
  background: var(--rf-blue-deep); color: var(--rf-white); border-radius: var(--rf-radius);
  padding: 28px; margin-top: 28px;
}
.rf-callout h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; color: var(--rf-white); }
.rf-callout p { color: rgba(255,255,255,.82); font-size: .93rem; line-height: 1.65; margin: 0 0 10px; }
.rf-callout .comparison-table { margin-top: 0; background: var(--rf-white); border-radius: 8px; overflow: hidden; color: var(--rf-text); }

/* Карточки услуг с фото */
.rf-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rf-svc { background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.rf-svc:hover { box-shadow: var(--rf-shadow); transform: translateY(-3px); }
.rf-svc .rf-photo { border-radius: 0; }
.rf-svc__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.rf-svc__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; color: var(--rf-text); }
.rf-svc__text { font-size: .93rem; color: var(--rf-muted); line-height: 1.65; margin: 0 0 14px; }
.rf-svc__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rf-border); }
.rf-svc__price { font-size: 1.15rem; font-weight: 800; color: var(--rf-blue-dark); }
.rf-svc__price span { font-size: .8rem; font-weight: 400; color: var(--rf-muted); }
.rf-svc__more { font-size: .88rem; font-weight: 700; color: var(--rf-blue-dark); }
.rf-svc__more:hover { color: var(--rf-blue); text-decoration: underline; }

/* Галерея (тюнинг «глазок») */
.rf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rf-gallery--3 { grid-template-columns: repeat(3, 1fr); }

/* Этапы с фото */
.rf-steps-photo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: rfstep; }
.rf-steps-photo .rf-story__body h3::before { counter-increment: rfstep; content: counter(rfstep); }

/* Обложка карточки кейса */
.rf-case-card--photo { padding: 0; overflow: hidden; }
.rf-case-card--photo .rf-photo { border-radius: 0; }
.rf-case-card--photo .rf-case-card__in { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* Единственный кейс в блоке: горизонтальная карточка (фото слева, текст справа).
   Иначе сетка растягивала его на всю ширину и фото 3:2 вырастало до ~830 px в высоту. */
.rf-cases:has(> .rf-case-card--photo:only-child) { grid-template-columns: 1fr; }
.rf-case-card--photo:only-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1000px; width: 100%; margin: 0 auto; }
.rf-case-card--photo:only-child .rf-case-card__in { justify-content: center; padding: 28px 32px; }
@media (max-width: 768px) {
  .rf-case-card--photo:only-child { grid-template-columns: 1fr; }
  .rf-case-card--photo:only-child .rf-case-card__in { padding: 18px 22px 22px; }
}

@media (max-width: 1024px) {
  .rf-story, .rf-gallery { grid-template-columns: repeat(2, 1fr); }
  .rf-steps-photo { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero--photo .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual-note { position: static; max-width: none; margin-top: 12px; font-size: .82rem; }
  .rf-svc-grid { grid-template-columns: 1fr; }
  .rf-callout { grid-template-columns: 1fr; padding: 22px 18px; }
  .rf-callout > * { min-width: 0; }
  .rf-callout .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rf-steps-photo, .rf-gallery--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rf-story, .rf-gallery, .rf-gallery--3, .rf-steps-photo { grid-template-columns: 1fr; }
  .hero__price { min-width: calc(50% - 5px); flex: 1; }
}


/* Синий акцент (как у шаблона сайта v4) для страниц фото-слоя: зелёный #25D366 —
   наследие палитры услуг v3, на новых страницах моделей его не используем. */
.rf-page--blue { --rf-accent: #238EE3; --rf-accent-dark: #1470bf; }
.rf-page--blue .rf-photo__label--good { background: rgba(35,142,227,.92); }
.rf-page--blue .hero__badge { background: rgba(35,142,227,.18); color: #9fd0ff; border: 1px solid rgba(35,142,227,.45); }

/* Увеличение фото (remont-far/lightbox.js): только десктоп */
@media (min-width: 769px) { a.rf-photo { cursor: zoom-in; } }
@media (max-width: 768px) { a.rf-photo { cursor: default; } .rf-photo:hover img { transform: none; } }
.rf-lb { position: fixed; inset: 0; z-index: 2147483000; background: rgba(4,10,28,.92); display: none; align-items: center; justify-content: center; padding: 40px 80px; }
.rf-lb.is-open { display: flex; }
.rf-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.rf-lb__fig img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rf-lb__fig figcaption { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: 14px; text-align: center; max-width: 900px; }
.rf-lb__close, .rf-lb__nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rf-lb__close:hover, .rf-lb__nav:hover { background: rgba(255,255,255,.22); }
.rf-lb__close { top: 20px; right: 24px; }
.rf-lb__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.rf-lb__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Хабы марок (remont-far/_hub.php): сетка моделей с фото из страниц моделей */
.rf-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rf-hub-card { display: flex; flex-direction: column; background: var(--rf-white); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); overflow: hidden; color: var(--rf-text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.rf-hub-card:hover { box-shadow: var(--rf-shadow); transform: translateY(-3px); text-decoration: none; color: var(--rf-text); }
.rf-hub-card__img { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--rf-blue-deep), #0a1f4d); overflow: hidden; }
.rf-hub-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rf-hub-card:hover .rf-hub-card__img img { transform: scale(1.03); }
.rf-hub-card__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #9fd0ff; font-size: 2rem; font-weight: 800; }
.rf-hub-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.rf-hub-card__name { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.rf-hub-card__desc { font-size: .86rem; color: var(--rf-muted); line-height: 1.5; }
.rf-hub-card__more { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 700; color: var(--rf-blue-dark); }
.rf-hub-note { margin: 24px 0 0; font-size: .92rem; color: var(--rf-muted); }
.rf-hub-note a { color: var(--rf-blue-dark); font-weight: 700; }
.rf-svc-grid--text { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (max-width: 480px) { .rf-hub-grid { grid-template-columns: 1fr; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 0 30px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .hero h1 { font-size: 1.5rem; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards-grid { grid-template-columns: 1fr; }
  .expert-block { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .expert-block__stats { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: auto; }
  .comparison-table { font-size: .8rem; }
  .price-table { font-size: .85rem; }
  .cta-block { padding: 32px 20px; }
  .cta-block h2 { font-size: 1.3rem; }
  .rf-section { padding: 40px 0; }
  .rf-passport__row { grid-template-columns: 1fr; }
  .rf-passport__row dt { padding-bottom: 6px; }
  .rf-passport__row dd { padding-top: 6px; }
}
@media (max-width: 480px) {
  .hero { padding: 30px 0 20px; }
  .hero h1 { font-size: 1.3rem; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .rf-section { padding: 32px 0; }
  .service-card { padding: 24px 20px; }
  .expert-block { padding: 20px; }
}
