/*
Theme Name: Repair Theme
Theme URI: https://example.com/repair-theme
Description: Тема для сайта ремонта бытовой и цифровой техники. Главная и посадочные страницы с формами заявок.
Version: 1.0.0
Author: Repair Site
Text Domain: repair-theme
*/

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f9fafb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Верхняя информационная полоса */
.top-bar {
  background: linear-gradient(135deg, #1e40af 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.top-bar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.top-bar-icon { flex-shrink: 0; }
.top-bar-phones {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.top-bar-phones .top-bar-phone {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.top-bar-phones .top-bar-phone:hover {
  color: #fff;
  text-decoration: none;
}
.top-bar-phone-sep { margin: 0 0.25rem; color: rgba(255,255,255,0.5); }

.top-bar-city-wrap { position: relative; padding-right: 0.5rem; }
.top-bar-city {
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; color: #e5e7eb;
  padding: 0.4rem 0.75rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, border-color 0.2s;
}
.top-bar-city:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.top-bar-city-arrow { font-size: 0.6rem; opacity: 0.9; }
.top-bar-city-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 0.35rem;
  min-width: 200px; padding: 0.5rem 0; background: #fff; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); list-style: none; z-index: 10000;
  border: 1px solid var(--color-border);
}
.top-bar-city-dropdown[hidden] { display: none !important; }
.top-bar-city-dropdown li { margin: 0; padding: 0; list-style: none; }
.top-bar-city-dropdown li::before { content: none; }
.top-bar-city-dropdown a {
  display: block; padding: 0.5rem 1rem; color: var(--color-text); text-decoration: none;
  font-size: 0.9375rem; transition: background 0.15s, color 0.15s;
}
.top-bar-city-dropdown a:hover { background: var(--color-bg); color: var(--color-primary); }

/* ========== Шапка и навигация (как rembitteh.ru) ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header .logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.site-header .logo-text { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.site-header .logo-desc { font-size: 0.75rem; color: var(--color-text-muted); }

/* Сброс глобальных стилей внутри шапки (перебиваем любые темы/плагины) */
.site-header ul,
.site-header .nav-dropdown-menu,
.site-header .nav-dropdown-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.site-header .nav-main a,
.site-header .nav-main .nav-link {
  text-decoration: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Навигация: одна строка, синие ссылки без подчёркивания */
.site-header .nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
  margin-right: 1rem;
}
.site-header .nav-main > .nav-link,
.site-header .nav-main > .nav-dropdown > .nav-link {
  padding: 0.5rem 0.65rem;
  color: var(--color-primary);
  font-size: 0.9375rem;
  white-space: nowrap;
  border-radius: 4px;
}
.site-header .nav-main > .nav-link:hover,
.site-header .nav-main > .nav-dropdown:hover > .nav-link {
  color: var(--color-primary-hover);
  background: var(--color-bg);
}
.site-header .nav-dropdown {
  position: relative;
}
.site-header .nav-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  user-select: none;
}
.site-header .nav-arrow { font-size: 0.5rem; margin-left: 0.15rem; opacity: 0.8; }

/* Выпадающие панели: скрыты по умолчанию, без маркеров */
.site-header .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 0.5rem 0 !important;
  background: #fff !important;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.site-header .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header .nav-dropdown-menu li {
  display: block !important;
}
.site-header .nav-dropdown-menu a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  color: var(--color-text) !important;
  font-size: 0.9375rem;
  background: transparent !important;
}
.site-header .nav-dropdown-menu a:hover {
  background: var(--color-bg) !important;
  color: var(--color-primary) !important;
}

/* Кнопка «Перезвоните мне» — оранжевая, справа */
.site-header .btn-header {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.site-header .btn-header:hover { background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%); color: #fff !important; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4); transform: translateY(-1px); }

/* Выпадающее «Ещё» прижато вправо */
.site-header .nav-dropdown--more .nav-dropdown-menu {
  left: auto;
  right: 0;
}

@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-header .nav-main { flex-wrap: wrap; margin-right: 0; justify-content: flex-start; }
}

main { padding: 2rem 0; min-height: 50vh; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

.city-grid, .device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.city-grid a, .device-grid a {
  display: block;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
}
.city-grid a:hover, .device-grid a:hover { border-color: var(--color-primary); color: var(--color-primary); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--color-primary-hover); }
.btn-block { width: 100%; }

.landing-form { max-width: 400px; margin: 2rem 0; padding: 1.5rem; background: #fff; border-radius: 8px; border: 1px solid var(--color-border); }
.form-message { margin-top: 1rem; padding: 0.75rem; border-radius: 6px; display: none; }
.form-message.success { background: #d1fae5; color: #065f46; display: block; }
.form-message.error { background: #fee2e2; color: #991b1b; display: block; }

.cta-block { margin: 2rem 0; }
.cta-block .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }

.metro-list { list-style: none; padding: 0; margin: 1rem 0; }
.metro-list li { margin-bottom: 0.5rem; }
.metro-list a { color: var(--color-primary); text-decoration: none; }
.metro-list a:hover { text-decoration: underline; }

/* ========== Footer ========== */
.site-footer {
  margin-top: 3rem;
  background: #1e3a5f;
  color: #fff;
  font-size: 0.875rem;
}
.site-footer .footer-link { color: #93c5fd; text-decoration: none; }
.site-footer .footer-link:hover { text-decoration: underline; }
.footer-top {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-top-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.footer-top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-icon { flex-shrink: 0; }
.footer-phone { color: #fff; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }
.footer-social { margin-left: auto; display: flex; gap: 0.75rem; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.75rem;
}
.footer-social-link:hover { background: rgba(255,255,255,0.35); }
.footer-social-link .footer-social-icon { width: 1.25rem; height: 1.25rem; object-fit: contain; display: block; }
.footer-bottom { padding: 2rem 0; }
.footer-bottom-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-bottom-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2.5rem;
}
.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  opacity: 0.9;
}
.footer-left-sep {
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}
.footer-copy,
.footer-legal,
.footer-support { margin: 0; }
.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-nav-col ul { list-style: none; margin: 0; padding: 0; }
.footer-nav-col li { margin-bottom: 0.35rem; }
.footer-nav-title { margin: 0 0 0.75rem; font-size: 1rem; }
.footer-nav-col--repair { min-width: 140px; }
.footer-repair-item--hidden { display: none; }
.footer-nav-col--expandable.expanded .footer-repair-item--hidden { display: list-item; }
.footer-repair-toggle {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.25rem 0;
	font-size: 0.8125rem;
	color: #93c5fd;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
}
.footer-repair-toggle:hover { color: #fff; }
.footer-repair-toggle .footer-repair-toggle-close { display: none; }
.footer-nav-col--expandable.expanded .footer-repair-toggle .footer-repair-toggle-open { display: none; }
.footer-nav-col--expandable.expanded .footer-repair-toggle .footer-repair-toggle-close { display: inline; }
.footer-cta { text-align: right; justify-self: end; }
.btn-footer {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-footer:hover { opacity: 0.95; color: #fff !important; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45); transform: translateY(-1px); }
@media (max-width: 900px) {
  .footer-bottom-main { grid-template-columns: 1fr; }
  .footer-cta { text-align: left; justify-self: start; }
  .footer-left { padding-top: 1rem; }
  .footer-top-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-left: 0; }
}

@media (max-width: 640px) {
  .top-bar-inner { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .nav-dropdown-menu { min-width: 180px; }
}

/* ========== Layout: основная колонка + форма справа (30%) ========== */
.repair-landing .layout-with-form {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}
.repair-landing .layout-main {
  flex: 1;
  min-width: 0;
}
.repair-landing .layout-main .container {
  max-width: none;
  padding: 0 1rem;
  width: 100%;
}
.repair-landing .layout-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 280px;
  padding: 1.5rem 0 1.5rem 1.5rem;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  align-self: flex-start;
}
.repair-landing .sidebar-form-sticky {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.repair-landing .sidebar-form-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.repair-landing .sidebar-form-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.repair-landing .layout-sidebar .landing-form { max-width: none; margin: 1rem 0; }
.repair-landing .layout-sidebar .landing-form-messengers .messenger-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.repair-landing .layout-sidebar .btn-messenger { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 0.9375rem; transition: opacity 0.2s; }
.repair-landing .layout-sidebar .btn-messenger:hover { opacity: 0.9; }
.repair-landing .layout-sidebar .btn-messenger-telegram { background: #0088cc; color: #fff; }
.repair-landing .layout-sidebar .btn-messenger-whatsapp { background: #25d366; color: #fff; }

@media (max-width: 1024px) {
  .repair-landing .layout-with-form { flex-direction: column; }
  .repair-landing .layout-sidebar {
    flex: none;
    max-width: none;
    width: 100%;
    padding: 1.5rem;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .repair-landing .sidebar-form-sticky { position: static; }
}

/* ========== Landing blocks ========== */
.landing-block { padding: 2.5rem 0; }
.landing-block:nth-child(even) { background: #fff; }
.block-title { font-size: 1.5rem; margin: 0 0 1.5rem; font-weight: 700; }

/* Description block */
.block-description { padding-top: 0; padding-bottom: 1.5rem; }
.block-description-inner { max-width: 800px; }
.block-description-text { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--color-text-muted); }

/* 1. Hero */
.block-hero { position: relative; background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%); padding: 3rem 0; overflow-x: hidden; }
.block-hero-bg { position: absolute; inset: 0; opacity: 0.06; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232563eb' d='M20 20h20v20H20zM60 20h20v20H60zM20 60h20v20H20zM60 60h20v20H60z'/%3E%3C/svg%3E"); }
.block-hero-inner { position: relative; }
.block-hero-title { font-size: 2rem; margin: 0 0 0.5rem; }
.block-hero-subtitle { font-size: 1.25rem; font-weight: 600; color: var(--color-text); margin-bottom: 1rem; }
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-cta:hover { background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%); box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45); transform: translateY(-1px); }
.btn-cta-secondary { background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%); box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35); }
.btn-cta-secondary:hover { background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45); }
.block-hero-desc { color: var(--color-text-muted); margin: 1rem 0 1.5rem; max-width: 480px; }
.block-hero-devices-wrap { margin-top: 1.5rem; min-width: 0; overflow: hidden; }

/* Hero slider */
.hero-slider { position: relative; min-width: 0; }
.hero-slider .slider-viewport {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 2.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.hero-slider .slider-viewport::-webkit-scrollbar { height: 6px; }
.hero-slider .slider-viewport::-webkit-scrollbar-track { background: var(--color-border); border-radius: 3px; }
.hero-slider .slider-viewport::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }
.hero-slider .block-hero-devices {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.hero-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.hero-slider .slider-btn:hover { background: var(--color-primary); color: #fff; }
.hero-slider .slider-prev { left: 0; }
.hero-slider .slider-next { right: 0; }

.block-hero-device-icon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s;
}
.block-hero-device-icon-card:hover { border-color: var(--color-primary); }
/* Иконка: спрайт 64×64 px, номер позиции у каждого типа техники. */
.block-hero-device-icon.tech-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.block-hero-device-icon.block-hero-device-icon--media {
  background: transparent; border-radius: 0; font-size: 0;
}
.block-hero-device-icon--media img { width: 64px; height: 64px; object-fit: contain; }

/* 2. Advantages */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.advantage-card { padding: 1.25rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.advantage-icon { width: 3rem; height: 3rem; background: linear-gradient(135deg, var(--color-primary), #7c3aed); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem; }
.advantage-title { font-size: 1rem; margin: 0 0 0.25rem; font-weight: 600; }
.advantage-desc { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* 3. Map */
.block-map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); padding: 1.5rem; background: var(--color-bg); }
.block-map-desc { margin: 0 0 1rem; color: var(--color-text-muted); font-size: 1rem; }
.block-map-map { width: 100%; height: 360px; min-height: 280px; border-radius: 6px; }
.block-map-link { margin-top: 0.75rem; }
.block-map-link a { color: var(--color-primary); text-decoration: none; }
.block-map-link a:hover { text-decoration: underline; }
.block-map-geo-list { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; }
.block-map-geo-group { break-inside: avoid; }
.block-map-geo-title { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--color-text); }
.block-map-geo-links { list-style: none; margin: 0; padding: 0; }
.block-map-geo-links li { margin: 0.25rem 0; }
.block-map-geo-links a { color: var(--color-primary); text-decoration: none; font-size: 0.9375rem; }
.block-map-geo-links a:hover { text-decoration: underline; }

/* 4. Reviews */
.block-reviews-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); padding: 0.5rem 1.25rem; border-radius: 10px; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.btn-outline-cta { border-color: #ea580c; color: #ea580c; }
.btn-outline-cta:hover { background: #ea580c; color: #fff; }
.block-reviews-content { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.reviews-summary { padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; height: fit-content; }
.reviews-percent { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin: 0 0 0.25rem; }
.reviews-label { font-size: 0.875rem; margin: 0 0 1rem; }
.reviews-count { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.reviews-empty { padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-muted); }
.btn-link { background: none; color: var(--color-primary); padding: 0; border: none; text-decoration: underline; cursor: pointer; font-size: 1rem; }
.reviews-page-stats { margin: 1rem 0; font-size: 1rem; }
.reviews-page-percent { font-weight: 700; color: var(--color-primary); margin-right: 0.5rem; }
.reviews-page-label { margin-right: 0.5rem; }
.reviews-page-count { color: var(--color-text-muted); }
.block-reviews-content-page { padding-top: 1rem; padding-bottom: 2rem; }
.reviews-list--page { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.btn-link:hover { color: var(--color-primary-hover); }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.review-card { padding: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; }
.review-stars { color: #f59e0b; margin-bottom: 0.5rem; }
.review-text { font-size: 0.9375rem; margin: 0 0 0.5rem; }
.review-author { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0; }

/* Отдельные страницы: Цены, Контакты, О компании, Гарантия, Мастера, Вакансии */
.repair-page .block-content { padding: 2rem 0; }
.repair-page .entry-content { max-width: 640px; }
.repair-page .entry-content p { margin: 0 0 1rem; }
.contacts-list .contact-item { margin: 0 0 0.75rem; }
.contacts-list a { color: var(--color-primary); text-decoration: none; }
.contacts-list a:hover { text-decoration: underline; }
.vacancies-list { margin-bottom: 2rem; }
.vacancy-card { padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.vacancy-card:last-child { border-bottom: none; }
.vacancy-title { font-size: 1.25rem; margin: 0 0 0.75rem; }
.vacancy-description { margin: 0; color: var(--color-text); }
.repair-empty { color: var(--color-text-muted); margin: 1rem 0; }

/* 5. Schema */
.schema-steps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 1rem; }
.schema-step { flex: 1; min-width: 140px; padding: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; text-align: center; }
.schema-step-icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.5rem; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.schema-step-text { font-size: 0.875rem; margin: 0; }
.schema-arrow { color: var(--color-primary); align-self: center; }

/* 6. Articles + form */
.block-articles-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.articles-grid { list-style: none; padding: 0; margin: 0 0 1rem; }
.articles-grid li { margin-bottom: 0.75rem; }
.articles-grid a { color: var(--color-text); text-decoration: none; }
.articles-grid a:hover { color: var(--color-primary); text-decoration: underline; }
.block-articles-form { padding: 1.5rem; background: linear-gradient(135deg, var(--color-primary), #1e40af); border-radius: 8px; color: #fff; }
.block-form-title { color: #fff; margin: 0 0 0.5rem; font-size: 1.25rem; }
.block-form-desc { margin: 0 0 1rem; opacity: 0.95; font-size: 0.9375rem; }
.block-articles-form .btn-cta { background: #ea580c; color: #fff; }

/* 7. FAQ */
.faq-list { max-width: 720px; }
.faq-item { border: 1px solid var(--color-border); border-bottom: none; background: #fff; border-radius: 0; }
.faq-item:first-child { border-radius: 8px 8px 0 0; }
.faq-item:last-child { border-bottom: 1px solid var(--color-border); border-radius: 0 0 8px 8px; }
.faq-question { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: "▼"; font-size: 0.75rem; color: var(--color-primary); }
.faq-item[open] .faq-question::before { content: "▲"; }
.faq-answer { padding: 0 1.25rem 1rem; }
.faq-answer p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.repair-faq .block-hero--blog .block-hero-desc { margin: 0; color: var(--color-text-muted); }
.repair-faq .block-faq-content { padding: 2.5rem 0; }
.block-faq-teaser-desc { margin: 0 0 1rem; color: var(--color-text-muted); max-width: 640px; line-height: 1.6; }

/* 8. Discounts */
.discounts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.discount-card { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: flex-end; padding: 1rem; min-height: 140px; }
.discount-card-1 { background: linear-gradient(180deg, #a5b4fc 0%, #6366f1 100%); }
.discount-card-2 { background: linear-gradient(180deg, #fdba74 0%, #ea580c 100%); }
.discount-card-3 { background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%); }
.discount-card-4 { background: linear-gradient(180deg, #67e8f9 0%, #0d9488 100%); }
.discount-label { color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.discounts-note { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0; }

/* 9. Masters */
.masters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.master-card { padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; text-align: center; }
.master-card-link { text-decoration: none; color: inherit; display: block; }
.master-avatar { width: 4rem; height: 4rem; margin: 0 auto 0.75rem; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.master-avatar--photo { padding: 0; background: transparent; overflow: hidden; }
.master-avatar--photo img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; }
.master-name { margin: 0 0 0.5rem; font-size: 1rem; }
.master-spec { font-size: 0.875rem; color: var(--color-text-muted); margin: 0 0 0.5rem; }
.master-exp { font-size: 0.8125rem; color: var(--color-primary); margin: 0; }
.master-device-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-bottom: 0.75rem; }
.master-device-icon { width: 32px; height: 32px; flex-shrink: 0; background-color: var(--color-primary); background-repeat: no-repeat; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.65rem; color: #fff; }
.master-device-icon.tech-icon--small { width: 40px; height: 40px; font-size: 0.75rem; }
.master-device-icon--media { background: transparent; }
.master-device-icon--media img { width: 32px; height: 32px; object-fit: contain; }
.master-prices { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: 0.875rem; text-align: left; }
.master-price-item { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0; border-bottom: 1px solid var(--color-border); }
.master-price-item:last-child { border-bottom: none; }
.master-price-label { color: var(--color-text-muted); }
.master-price-value { font-weight: 600; }
.btn-link-small { font-size: 0.875rem; }
/* Single master page */
.repair-master-single .block-hero-inner--master { display: flex; flex-direction: column; align-items: center; }
.repair-master-single .master-single-photo img, .repair-master-single .master-single-avatar { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 1rem; object-fit: cover; }
.repair-master-single .master-single-avatar { background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2rem; }
.repair-master-single .master-single-devices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.repair-master-single .master-single-device-icon-link { display: inline-flex; text-decoration: none; color: inherit; transition: opacity 0.2s, transform 0.2s; }
.repair-master-single .master-single-device-icon-link:hover { opacity: 0.9; transform: scale(1.05); }
.repair-master-single .master-single-device-icon { width: 48px; height: 48px; flex-shrink: 0; background-color: var(--color-primary); background-repeat: no-repeat; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; color: #fff; }
.repair-master-single .master-single-device-icon--media { background: transparent; }
.repair-master-single .master-single-device-icon--media img { width: 48px; height: 48px; object-fit: contain; }
.repair-master-single .master-single-prices { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 400px; }
.repair-master-single .master-single-price-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.repair-master-single .master-single-price-value { font-weight: 600; }
.repair-master-single .master-single-cta { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.repair-master-single .master-description { margin-bottom: 2rem; line-height: 1.7; }
.repair-master-single .master-description p { margin: 0 0 1rem; }
.repair-master-single .master-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.repair-master-single .master-gallery .master-gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--color-border); }
.repair-master-single .master-gallery .master-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-form-master-contact .master-contact-phone { margin: 0 0 0.75rem; }
.landing-form-master-contact .messenger-buttons { margin-top: 0.5rem; }

/* 10. Brands — слайдер как на rembitteh.ru */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.block-brands-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.block-brands-head .block-title { margin: 0; }
.block-brands .slider-nav { display: flex; gap: 0.5rem; }
.block-brands .slider-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.block-brands .slider-btn:hover { background: var(--color-primary); color: #fff; }
.brands-slider .slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.brands-slider .slider-viewport::-webkit-scrollbar { display: none; }
.block-brands .brands-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.25rem 0 0.5rem;
}
.brand-card {
  display: flex; align-items: center; justify-content: center; padding: 0.75rem; background: #fff; border: 1px solid var(--color-border);
  border-radius: 6px; color: var(--color-text); text-decoration: none; font-size: 0.875rem; text-align: center;
}
.block-brands .brands-row .brand-card { flex-shrink: 0; min-width: 64px; width: 64px; height: 64px; padding: 0; }
.block-brands .brands-row .brand-card--icon .brand-card-icon {
  width: 40px; height: 40px; border-radius: 50%; background: transparent; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem;
}
/* Спрайт брендов: 64×64 px, номер позиции у каждого бренда. */
.block-brands .brand-card--sprite .brand-card-icon {
  width: 64px; height: 64px; border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: calc(-1 * var(--brand-index, 0) * 64px) 0;
  font-size: 0; color: transparent;
}
.block-brands .brand-card--sprite:hover .brand-card-icon { background-color: transparent; }
.brand-card:hover { border-color: var(--color-primary); color: var(--color-primary); }
.block-brands .brands-row .brand-card--icon:hover .brand-card-icon { background-color: transparent; color: var(--color-primary); }
.block-brands .brand-card--media .brand-card-icon {
  width: 64px; height: 64px; border-radius: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.block-brands .brand-card--media .brand-card-icon img { width: 64px; height: 64px; object-fit: contain; pointer-events: none !important; }
.block-brands .brand-card--media .brand-card-icon.brand-card-icon--bg { width: 64px; height: 64px; background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; }
.block-brands a.brand-card { display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.block-brands .brands-row .brand-card--sprite:hover .brand-card-icon { color: transparent; }

@media (max-width: 768px) {
  .block-reviews-content { grid-template-columns: 1fr; }
  .block-articles-wrap { grid-template-columns: 1fr; }
  .discounts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Blog (раздел блога) ========== */
.repair-blog { min-height: 50vh; }
.repair-blog .block-hero--blog { padding: 2.5rem 0; }
.repair-blog .block-hero--blog .block-hero-desc { margin: 0; color: var(--color-text-muted); }
.repair-blog .block-hero--single .block-hero-inner { padding-bottom: 0.5rem; }
.repair-blog .blog-single-date { display: block; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--color-text-muted); }

.block-blog-list { padding: 2.5rem 0; }
.repair-blog .blog-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.repair-blog .blog-card { margin: 0; }
.repair-blog .blog-card-link { display: block; padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; text-decoration: none; color: var(--color-text); transition: border-color 0.2s, box-shadow 0.2s; }
.repair-blog .blog-card-link:hover { border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1); }
.repair-blog .blog-card-title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--color-text); }
.repair-blog .blog-card-link:hover .blog-card-title { color: var(--color-primary); }
.repair-blog .blog-card-excerpt { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.5; }
.repair-blog .blog-card-date { font-size: 0.8125rem; color: var(--color-text-muted); }

.repair-blog .block-blog-list .pagination { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.repair-blog .block-blog-list .nav-links a, .repair-blog .block-blog-list .nav-links span { display: inline-block; padding: 0.5rem 0.75rem; background: #fff; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-primary); text-decoration: none; font-size: 0.9375rem; }
.repair-blog .block-blog-list .nav-links a:hover { background: var(--color-bg); border-color: var(--color-primary); }
.repair-blog .block-blog-list .nav-links .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.repair-blog .blog-empty { margin: 0; color: var(--color-text-muted); }

.repair-blog .block-blog-content { padding: 2rem 0; }
.repair-blog .container--narrow { max-width: 720px; }
.repair-blog .blog-single-body { font-size: 1.0625rem; line-height: 1.7; }
.repair-blog .blog-single-body p { margin: 0 0 1rem; }
.repair-blog .blog-single-body h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.repair-blog .blog-single-body h3 { font-size: 1.125rem; margin: 1.25rem 0 0.5rem; }
.repair-blog .blog-single-body ul, .repair-blog .blog-single-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.repair-blog .blog-single-body a { color: var(--color-primary); text-decoration: none; }
.repair-blog .blog-single-body a:hover { text-decoration: underline; }

.repair-blog .block-blog-back { padding-top: 0; padding-bottom: 2.5rem; }

/* Modals */
body.repair-modal-open { overflow: hidden; }
.repair-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}
.repair-modal[hidden] { display: none !important; }
.repair-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.repair-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.repair-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.repair-modal-close:hover { color: #333; background: #f0f0f0; }
.repair-modal-title { margin: 0 0 1.25rem; font-size: 1.375rem; }
.repair-modal .form-group { margin-bottom: 1rem; }
.repair-modal .form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.repair-modal .form-group input,
.repair-modal .form-group textarea,
.repair-modal .form-group select { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--color-border); border-radius: 8px; box-sizing: border-box; }
.repair-modal .form-message { margin-top: 1rem; font-size: 0.9375rem; }
.repair-modal .form-message.success { color: #059669; }
.repair-modal .form-message.error { color: #dc2626; }
.repair-modal .btn-block { width: 100%; margin-top: 0.5rem; }
