/* =============================================================
   Заявки по ремонту бытовой техники — styles.css
   Чистый CSS, без фреймворков. Адаптив 360–1920 px.
   ============================================================= */

/* ---------- Шрифт Golos Text (локально, woff2) ---------- */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/golos-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Токены ---------- */
:root {
  --text: #15181D;
  --text-muted: #5B6270;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --border: #E3E6EB;
  --accent: #147A45;
  --accent-hover: #106138;
  --accent-press: #0C4A2B;
  --accent-soft: #E6F2EA;
  --radius-lg: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --gutter: 20px;
  --section-y: clamp(48px, 6vw, 96px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Golos Text', -apple-system, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--alt { background: var(--bg-alt); }

h1, h2, h3, p { margin: 0; }

.h1 {
  font-size: clamp(28px, 1.3rem + 2.4vw, 52px);
  line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
  text-wrap: pretty;
}
.h2 {
  font-size: clamp(24px, 1.2rem + 1.4vw, 38px);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.015em;
  text-wrap: pretty;
}
.h3 {
  font-size: clamp(20px, 1.1rem + 0.8vw, 28px);
  line-height: 1.2; font-weight: 600;
}
.section-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.section-head .h2 + p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--text-muted); }

.icon { display: block; flex: 0 0 auto; }

/* ---------- Кнопки ---------- */
.btn {
  flex: 1 1 220px;
  min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn--primary:active { background: var(--accent-press); border-color: var(--accent-press); }

.btn--secondary { background: var(--bg); border-color: var(--border); color: var(--text); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--secondary:active { background: var(--bg-alt); }

.btn--ghost { background: transparent; border-color: var(--text-muted); color: #FFFFFF; }
.btn--ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn--ghost:active { background: #23272E; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .btn { flex: 1 1 100%; } }

.link-underline { font-weight: 600; border-bottom: 1px solid var(--accent); }
.link-underline:hover { text-decoration: none; border-bottom-color: var(--accent-press); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 56px;
  display: flex; align-items: center; justify-content: flex-end;
}
.site-header__phone {
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  font-weight: 600; color: var(--text);
  white-space: nowrap; letter-spacing: 0.01em;
}
.site-header__phone:hover { color: var(--text); text-decoration: none; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(24px, 4vw, 56px) var(--gutter) var(--section-y); }
.hero__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 40px);
}
.hero__text {
  flex: 1 1 420px; min-width: 0;
  display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px);
}
.hero__lead {
  font-size: clamp(16px, 0.95rem + 0.35vw, 20px);
  line-height: 1.45; color: var(--text-muted); max-width: 34em;
}
.hero__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 32px;
  margin-top: 8px;
  padding: 0; list-style: none;
}
.hero__point { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hero__check {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF; margin-top: 1px;
}
.hero__point span {
  min-width: 0;
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.35; font-weight: 500;
}
.hero__media { flex: 0 1 42%; min-width: min(280px, 100%); }
.hero__media img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: clamp(300px, 56vw, 724px);
  margin: 0 auto; border-radius: var(--radius-lg); background: var(--bg-alt);
}
.hero__cta { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__note { font-size: 14px; line-height: 1.4; color: var(--text-muted); }

/* ---------- Карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  padding: 0; list-style: none;
}
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; min-height: 150px;
  display: flex; flex-direction: column; gap: 14px;
}
.card__icon { color: var(--accent); }
.card__title { font-size: 16px; line-height: 1.3; font-weight: 500; margin-bottom: auto; }
.card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card__price b {
  font-size: 17px; font-weight: 700; color: var(--accent);
  letter-spacing: -0.01em; white-space: nowrap;
}
.card__price span { font-size: 13px; color: var(--text-muted); }

.note { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.after-grid { margin-top: clamp(24px, 3vw, 32px); font-size: 16px; line-height: 1.5; color: var(--text); }

/* ---------- Отзывы ---------- */
.reviews { display: flex; flex-wrap: wrap; gap: 16px; }
.reviews__col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.review {
  display: block; width: 100%;
  padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-family: inherit; cursor: zoom-in;
  transition: border-color .15s ease;
}
.review:hover { border-color: var(--text); }
.review:active { background: var(--bg-alt); }
.review img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--bg-alt); }
.reviews-after { margin-top: clamp(20px, 2.5vw, 28px); font-size: 16px; }

/* ---------- Почему ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px; padding: 0; list-style: none;
}
.reason {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 24px); min-height: 180px;
  display: flex; flex-direction: column; gap: 12px;
}
.reason__n {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-press);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.reason__title {
  font-size: clamp(18px, 1rem + 0.3vw, 21px); font-weight: 600;
  line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty;
}
.reason__body { font-size: 16px; line-height: 1.45; color: var(--text-muted); margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-title { margin: clamp(40px, 5vw, 64px) 0 clamp(12px, 2vw, 20px); }
.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--border); }
.faq__end { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; background: transparent; border: 0;
  font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.35;
  color: var(--text); text-align: left; cursor: pointer;
  transition: color .15s ease;
}
.faq__q:hover { color: var(--accent); }
.faq__chevron {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; color: var(--text-muted);
  transition: transform .2s ease;
}
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__a {
  padding: 0 clamp(0px, 4vw, 40px) 20px 0;
  font-size: 16px; line-height: 1.5; color: var(--text-muted); max-width: 64ch;
}
.faq__a[hidden] { display: none; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px; margin-top: clamp(32px, 4vw, 48px);
  padding: 0; list-style: none;
}
.stat {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 8px;
}
.stat__num {
  font-size: clamp(34px, 1.6rem + 1.6vw, 48px);
  font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--accent);
}
.stat__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.stat__body { font-size: 15px; line-height: 1.45; color: var(--text-muted); }

/* ---------- Финальный CTA ---------- */
.cta {
  margin-top: clamp(40px, 5vw, 64px);
  background: #15181D; border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 48px);
  display: flex; flex-direction: column; gap: 24px;
}
.cta__title {
  font-size: clamp(20px, 1.1rem + 1vw, 30px);
  line-height: 1.25; font-weight: 600; color: #FFFFFF;
  max-width: 22ch; text-wrap: pretty;
}

/* ---------- Футер ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.site-footer .container {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  font-size: 14px; color: var(--text-muted);
}
.site-footer a { font-weight: 500; }
.site-footer .site-footer__policy { color: var(--text-muted); font-weight: 400; border-bottom: 1px solid var(--border); }
.site-footer__copy { margin-left: auto; flex: 1 1 220px; text-align: right; }

/* ---------- Уведомление о cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #15181D; border-top: 1px solid rgba(255, 255, 255, .12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cookie-banner__text {
  flex: 1 1 320px; margin: 0;
  font-size: 14px; line-height: 1.5; color: #C9CDD4;
}
.cookie-banner__text a { color: #FFFFFF; }
.cookie-banner__btn {
  flex: 0 0 auto;
  min-height: 44px; padding: 10px 28px;
  border-radius: var(--radius-sm); border: 1px solid var(--accent);
  background: var(--accent); color: #FFFFFF;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.cookie-banner__btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cookie-banner__btn:active { background: var(--accent-press); border-color: var(--accent-press); }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(21, 24, 29, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__frame {
  position: relative;
  max-width: min(900px, 100%); max-height: 90vh; overflow: auto;
  background: #FFFFFF; border-radius: var(--radius-sm); padding: 8px; cursor: default;
}
.lightbox__frame img {
  display: block; width: min(860px, calc(100vw - 56px)); height: auto;
  background: var(--bg-alt); border-radius: 4px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: #FFFFFF; }
body.is-locked { overflow: hidden; }

/* ---------- Юридическая страница ---------- */
.legal { max-width: 820px; }
.legal h2 {
  margin: clamp(28px, 3vw, 40px) 0 12px;
  font-size: clamp(19px, 1.05rem + 0.5vw, 24px); line-height: 1.25; font-weight: 600;
}
.legal p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.legal ul { margin: 0 0 12px; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.legal li { margin-bottom: 6px; }
.legal__meta { font-size: 15px; color: var(--text-muted); }
.legal__back { display: inline-block; margin-top: 32px; font-weight: 600; }

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .lightbox, .cookie-banner { display: none !important; }
}
