/* 700.css — Дополнительные стили и утилиты для Рабочий Дом в Москве */
/* Версия: 1.0 | Дата: 2026-07-30 */

/* ===== Утилитарные классы ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.text-dim { color: var(--text-dim); }
.bg-bg-2 { background: var(--bg-2); }
.bg-bg-3 { background: var(--bg-3); }

.d-flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===== Анимации ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.animate-fade { animation: fadeIn 0.3s ease forwards; }
.animate-slide { animation: slideUp 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }

/* ===== Плавный скролл для якорей ===== */
html { scroll-behavior: smooth; }

/* ===== Улучшения для печати ===== */
@media print {
  .header, .footer, .float-btns, .modal, .cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { text-decoration: none; color: #000; }
  section { page-break-inside: avoid; padding: 20px 0; }
}

/* ===== Поддержка prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== High-DPI / Retina улучшения ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg {
    background-image: url('/img/header@2x.webp');
    background-size: cover;
  }
}

/* ===== Фокус для доступности ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Исправления для старых браузеров ===== */
@supports not (backdrop-filter: blur(10px)) {
  .header,
  .hero-float,
  .job-price,
  .modal {
    background: rgba(24, 25, 35, 0.95);
  }
}

/* ===== Дополнительные стили для компонентов ===== */
.job:hover .job-img img,
.guarantee:hover .guarantee-img img {
  will-change: transform;
}

.review {
  scroll-snap-align: start;
}

/* ===== Адаптивные отступы для очень маленьких экранов ===== */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .btn { padding: 12px 16px; font-size: 13px; }
  .section-title { font-size: 20px; }
}

/* ===== Заглушка для отсутствующих изображений ===== */
img[onerror] {
  background: var(--bg-2);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ===== Print-friendly телефонные ссылки ===== */
@media print {
  a[href^="tel:"]::after {
    content: " (телефон)";
    font-size: 0.9em;
    color: #666;
  }
}